fix(controlplane): stored container policies replace file profiles; add profile image and workflow examples

A stored container-runtime-policies document that carries Profiles now
replaces the file's profiles instead of merging into them, so a profile
deleted in the dashboard stays deleted; one stored before profiles existed
still inherits the file's. Profiles drop their json tags so the stored
document keys them like its other fields.

Adds examples/profiles/Dockerfile.agent-net (agent image plus network
lookup tools) with a build-only agent-net compose service,
examples/workflows/firewall-investigate.yaml with a test that parses every
example against the registered step vocabulary, and names the postgres
service in the compose header.
This commit is contained in:
sam committed 2026-09-24 20:58:08 +10:00
1 parent 7b7aa62c28
commit 4046766abe
8 files changed
+128 -7

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
# An agent profile image: the archie-agent image plus network lookup tools,
# for a workflow that investigates addresses rather than code. Select it with
# [containers.profiles.network-investigator] image = "archie-agent-net:local".
#
# Build: docker compose build agent-net
ARG AGENT_IMAGE=ghcr.io/samcharles93/archie-agent:latest
FROM ${AGENT_IMAGE}
RUN apt-get update && apt-get install -y --no-install-recommends \
whois dnsutils iputils-ping traceroute && \
rm -rf /var/lib/apt/lists/*
@@ -0,0 +1,18 @@
# A workflow with no repository: a binding on a firewall event type assigns
# src_ip from a mapped parameter and runs one agent mission in a scratch
# workspace under the network-investigator profile. Paste it into the
# dashboard's workflow definitions.
id: firewall-investigate
repository: none
profile: network-investigator
inputs:
src_ip: { type: string, required: true }
severity: { type: string }
steps:
- type: agent.run
settings:
mission: >-
Investigate the source address in the inputs: who owns it, what it
resolves to, and whether it is reachable. Report what you found and
how serious it looks given the severity.
read_only: true