Docs cipi.yml Web panel API MCP Guides Compare GitHub Telegram channel
  1. Docs
  2. Deploy
  3. Deploy audit ledger

Deploy audit ledger

A hash-chained record of who deployed what, and from where.

Deploy

Every deploy, rollback and failure is written to a tamper-evident ledger, whoever started it: the CLI, the panel, a webhook, an AI agent, cron or someone typing dep deploy over SSH. Useful for incident reviews and for auditors.

bash
cipi deploy myapp --audit                    # last 90 days
cipi deploy myapp --audit --days=365 --json
cipi compliance deploys                      # verify the chain, find gaps

What a record proves#

The app's deploy recipe calls a root-owned helper at each outcome. Root verifies facts itself instead of trusting the caller:

FieldSource
Eventpublished, failed, rollback
Release and commitRead from disk by root
OriginFrom the process chain: cipi-cli, panel, webhook, app-queue, ssh, cron, root-shell…
OperatorThe login user ID set by PAM (the user can't change it)
IPThe SSH client address
ClaimedWhat only the app can say (e.g. who clicked deploy in an MCP client), kept apart from verified facts

The ledger#

/var/log/cipi/deploys.jsonl is root-only. Each line carries a sequence number and the SHA-256 of the previous line, and is also sent to syslog (cipi-deploy), so log forwarding keeps an independent copy off the server.

cipi compliance deploysWhen
FailsThe hash chain is broken
WarnsAn app's recipe lost its hook, its sudo rule is missing, or Deployer knows a release the ledger never saw

The panel shows the ledger on each app's Deploy tab; the API serves it at GET /api/apps/{name}/deploy/audit.

The chain proves nothing older than the newest record was changed. Root could still rewrite the whole file, which is why the syslog copy matters. File edits over SFTP are not deploys; malware scan integrity covers those.