prismor proxy and prismor eval-server are long-lived surfaces rather than
per-call hooks: they front an agent Prismor cannot hook, so they run beside it
rather than inside it. packaging/docker/ holds an image and a compose file
that stand one up next to n8n, wired to your SIEM and to the console.
cd packaging/docker
cp prismor.env.example prismor.env # enrollment token, agent name, mode
docker compose up -dThen set the OpenAI credential's Base URL inside n8n to
http://prismor:7080/v1 — the compose network resolves prismor — and the
workflow is governed. See n8n.md for the walkthrough with
screenshots.
Every release publishes the image as ghcr.io/prismorsec/prismor, for
linux/amd64 and linux/arm64, tagged with the full version (X.Y.Z), the
minor line (X.Y, which follows its newest patch) and — for final releases —
latest; the tags come from the release tag, nothing is edited per release.
The compose file pulls it;
set PRISMOR_VERSION to pin one, or docker compose build to build from the
checkout instead.
docker run -d -p 127.0.0.1:7080:7080 -v prismor_home:/var/lib/prismor \
--read-only --tmpfs /tmp --cap-drop ALL \
ghcr.io/prismorsec/prismor:latest # the LLM proxy
docker run -d -p 127.0.0.1:7071:7071 -v prismor_home:/var/lib/prismor \
-e PRISMOR_EVAL_KEY="$(openssl rand -hex 24)" \
ghcr.io/prismorsec/prismor:latest eval-server # for non-Python SDKseval-server refuses to start without PRISMOR_EVAL_KEY (or --api-key):
inside a container it binds every interface, so anything that can reach the
container could otherwise evaluate against your policy. Callers send it as
Authorization: Bearer <key>. Any other argument runs as a plain prismor
command, e.g. docker run --rm ghcr.io/prismorsec/prismor check "<command>".
volumes:
- prismor_home:/var/lib/prismor # keep this
- ./policy.yaml:/var/lib/prismor/.prismor/policy.yaml:ro # this path exactly$PRISMOR_HOME holds the device identity, the session store and the audit
trail. Without a volume, every restart is a new unenrolled device and the trail
starts over.
The policy path is the one that catches people. A workspace's policy is read
from <workspace>/.prismor/policy.yaml; mounted one level up, the file is
silently ignored — the surface still enforces the bundled defaults, so it looks
like it is working while no sink you configured ever fires.
Sinks are declared under settings.outputs in that policy file and dispatched
the moment a finding is produced — before the block is returned to the agent,
so a SIEM sees denied calls, not just allowed ones. Every sink is best-effort:
one that is down warns on stderr and never blocks a tool call.
settings:
outputs:
- type: otel # any OpenTelemetry collector
endpoint: http://otel-collector:4318
headers: { "Authorization": "Bearer ${OTEL_TOKEN}" }
- type: splunk # HEC, OCSF body
url: https://splunk.example.com:8088/services/collector
token: ${SPLUNK_HEC_TOKEN}
- type: prismor # the console; needs no configwebhook, syslog, datadog and file (json / cef / ocsf) are also
available — see telemetry-sinks.md. Every ${VAR}
resolves from the container's environment, so tokens live in prismor.env and
never in the policy file you commit.
A delivered finding carries the rule, the verdict and the identity of what proposed it:
{ "severity": "HIGH", "category": "remote_execution", "action": "block",
"agent": "prismor-proxy", "agent_name": "n8n-agent",
"session_id": "proxy-1788780852-1", "mode": "enforce",
"title": "Blocks curl | bash, wget | sh fetch-and-execute chains" }Whatever else it reports to, the surface keeps a local view. prismor dashboard serves it from $PRISMOR_HOME, so a container's sessions are
readable without a control plane at all:
docker compose run --rm -p 127.0.0.1:7070:7070 prismor \
dashboard --no-open --host 0.0.0.0It runs beside the proxy on the same volume; only the proxy's port is published otherwise, so the dashboard needs its own.
Bound off loopback, the dashboard requires a token: open the
/?token=… URL it prints (or set PRISMOR_DASHBOARD_TOKEN).
A governed n8n agent shows up as its own session, under the agent name the surface reports:
Opening it gives the turn as the policy engine saw it — the prompt allowed, the shell command the model proposed blocked, and the rule that decided it:
The right-hand panel is the control half. Block / Allow apply a rule for
that tool tag to this session, this agent, or across agents, taking
effect on the next call — including in observe mode, which is the useful shape
when you are still deciding what the policy should be. Pause Prismor and
Clear scope undo, in that order of bluntness.
Two environment variables decide whether this container is a device you can watch and control, or a black box that merely enforces:
PRISMOR_ENROLL_TOKEN— enrolls on first boot, which is what creates the device, its sessions and its per-agent controls in the console. Enrollment failure is deliberately not fatal: a proxy that refuses to start because the control plane is unreachable would take the agent down with it.PRISMOR_WORKSPACE_SCOPE=managed— a container has no git remote to claim, so without this the workspace resolves as personal and reports nothing.
PRISMOR_AGENT_NAME is what the console shows the surface as, and what the
per-agent kill switch and mode override target. Give each deployment its own
(n8n-prod, n8n-staging) or they share one row.
The session snapshot the console reads is rebuilt periodically and again on
shutdown, so docker stop (SIGTERM) flushes the session in flight while
docker kill (SIGKILL) leaves it on disk as a log with no session row. Compose
does the right thing by default; a supervisor configured to kill -9 does not.

