Skip to content
POLICIES

Production Setup

A practical production checklist for running Faramesh with durable storage, monitoring, secret boundaries, and staged rollout.

This page turns the core production checklist into a concrete deployment path for running Faramesh in a real environment.

  1. Keep a dedicated policy file in version control.
  2. Use a dedicated data directory and back it up.
  3. Run Faramesh under a service manager or container supervisor.
  4. Expose and monitor the /metrics endpoint.
  5. Run regular audit verify checks.
Terminal window
faramesh serve \
--policy /etc/faramesh/policy.yaml \
--data-dir /var/lib/faramesh \
--socket /var/run/faramesh.sock \
--dpr-hmac-key <DPR_HMAC_KEY> \
--metrics-port 9108 \
--log-level info

If you do not pass --dpr-hmac-key, the daemon persists a generated key under the data directory as faramesh.hmac.key.

Use the credential broker to keep secrets out of the agent process by default.

Terminal window
faramesh credential enable --policy /etc/faramesh/policy.fpl
faramesh up --policy /etc/faramesh/policy.fpl
faramesh run --broker --agent-id payments-prod -- python your_agent.py
Terminal window
faramesh credential enable \
--policy /etc/faramesh/policy.fpl \
--backend vault \
--vault-addr https://vault.company.internal:8200 \
--vault-token "$VAULT_TOKEN"
faramesh up --policy /etc/faramesh/policy.fpl

Operational helpers:

Terminal window
faramesh credential status
faramesh credential vault status
faramesh credential vault down

If you run SPIRE, point Faramesh at the SPIFFE Workload API socket:

Terminal window
faramesh serve \
--policy /etc/faramesh/policy.yaml \
--data-dir /var/lib/faramesh \
--spiffe-socket unix:///run/spire/sockets/agent.sock

Then verify identity and trust material:

Terminal window
faramesh identity status
faramesh identity verify --spiffe spiffe://example.org/agent/faramesh
faramesh identity trust --domain example.org --bundle /etc/spiffe/bundle.pem
Terminal window
faramesh status
faramesh approvals history --agent payments-prod
faramesh explain agent payments-prod
faramesh explain run <run-or-session-id>
faramesh audit verify /var/lib/faramesh/faramesh.wal
faramesh audit show <action-id>
Terminal window
faramesh pack status faramesh/<pack>
faramesh pack shadow faramesh/<pack>
# monitor coverage / audit outcomes
faramesh pack enforce faramesh/<pack>

Use the same /metrics endpoint for common observability stacks:

  • Prometheus / Grafana
  • Datadog OpenMetrics
  • New Relic Prometheus ingestion
Terminal window
faramesh auth login
faramesh auth status
faramesh serve --policy /etc/faramesh/policy.yaml --sync-horizon
  • faramesh-core/docs/simple/07_PRODUCTION_SETUP.md
  • faramesh-core/README.md
  • faramesh-core/docs/guides/DPR_HMAC_KEY.md