Skip to Content
AgentShield
Self-Hosting

MinIO and Object Storage

Configure S3-compatible object storage for AgentShield evidence bundles. Bucket setup, credentials, TLS, and tamper resistance.

The event relay stores evidence bundles in an S3-compatible bucket, and the control plane reads them back after verifying their SHA-256. Development uses MinIO; any S3-compatible service works.

What is stored

For every content.flagged and tool.failed event, one JSON object at:

<organization id>/<yyyy>/<mm>/<dd>/<event id>.json

The bundle contains the event, invocation, decision, execution, and alerts, all copied from rows that were already redacted. Its SHA-256, size, bucket, and key are recorded in evidence_objects.

Configuration

Both the relay (writes) and the control plane (reads) need:

MINIO_ENDPOINT=objects.internal:9000     # host:port, no scheme
MINIO_ACCESS_KEY=<access key>
MINIO_SECRET_KEY=<secret key>
MINIO_USE_SSL=true                        # required in production unless loopback

The relay also reads MINIO_BUCKET (default agentshield-evidence). The control plane reads from the bucket recorded with each evidence row.

Without MINIO_ENDPOINT, the relay publishes events but writes no evidence, and the console cannot open bundles.

Bucket

  • Create the bucket before starting the relay. Compose's minio-init creates agentshield-evidence as private.
  • Grant the relay write access and the control plane read access. Neither needs delete.
  • Keep the bucket private. Evidence contains redacted but sensitive operational data.

Tamper resistance

ThreatProtection
An object is modifiedDetected: the control plane recomputes SHA-256 on every read, refuses a mismatch with 409, and appends evidence.integrity_failed
An object is deletedNot prevented by AgentShield. Enable object lock (WORM) or versioning on the bucket
A bundle is written twicePrevented: the object is written before its row, and an event with a row is acknowledged without rewriting

For regulated environments, enable object lock in compliance or governance mode with a retention period that matches your audit requirements.

Development

Compose runs cgr.dev/chainguard/minio, pinned by digest, because the upstream minio/minio image is no longer published for anonymous pulls. The S3 API is on 127.0.0.1:9000, and the console on 127.0.0.1:9001, with user agentshield and password agentshield-dev-only.

Was this page helpful?

On this page