The InfraOrcinus Audit Trail: What Is Recorded, What Is Not, and How to Make It Tamper-Evident

By Chirag Panchal · Founder & Lead Architect · · 8 min read

What the InfraOrcinus audit trail records for every state-changing request, how humans, machine tokens and AI agents are told apart, how a copy streams to your SIEM without ever slowing a request, and where integrity comes from today: your own append-only store for the trail, and signed evidence bundles for change plans. Hash chaining and a locked-down database role are not shipped yet, and this article says so.

Development Status & Architectural Evolution: InfraOrcinus is in active development. Architecture specifications, internal interfaces, and operational protocols described herein reflect our current engineering design and are continuously refined to make InfraOrcinus robust, resilient, and enterprise-grade.

An audit trail answers three questions after the fact: who did this, when, and was it allowed. It is only useful if it is complete enough to answer them and if you can trust that nobody has edited it since.

This article is about both halves, and it is deliberately specific about where the second half stands. An earlier version described a cryptographically chained ledger with a database role that cannot modify rows. Neither of those is shipped. What exists is described below, along with the controls that cover the gap today.


1. What Gets Recorded

Every state-changing request (create, update, delete, approve, and so on) is written to the audit table in PostgreSQL by middleware, so a new endpoint is audited without its author remembering to do it. Read-only GET requests are not recorded.

Each entry captures:

  • When it happened and who did it (identifier and display name).
  • What: the method and path, the resource type and identifier where they are known, the HTTP status and a success or failure outcome.
  • From where: the client IP.
  • Which organization, so an organization administrator sees only their own trail while a platform administrator sees all of it.
  • What kind of actor: a person, a machine, or an agent.

Some events are not an HTTP call, so they are written by the component that made the decision and carry a structured detail instead. The policy engine writes policy.evaluation each time a plan's evaluation is saved (the run, whether it passed, whether it blocks, how many violations), and policy.blocked when an approval or an apply was refused because policy said no. Git publishing writes blueprint.publish.requested, succeeded and failed, and connection changes are audited too, with identifiers and outcomes only.

Humans, machines and agents are different actors

An entry records an actor type: human, machine (an API token) or agent (an AI-proposed change). A machine call also records which token made it, by id and prefix, and an agent action links to the proposal it came from. When an AI agent drafts a change plan through the MCP server, the trail shows an agent proposed it, which token carried it, and which different person approved it. A request can also record a hash of its inputs, so an entry can be matched to the exact inputs without storing them.


2. What Is Deliberately Not Recorded

Entries hold metadata only: no request or response bodies and no secrets. That keeps the trail from becoming a second place where credentials leak, at the cost of not being a full replay of what was sent.

Auditing is also non-blocking. If the database cannot take an audit write, the failure is logged and the user's request still succeeds. For a control plane that people need during an incident that is a deliberate trade, and it is the reason the next section exists.


3. A Second Copy, Streamed to Your SIEM

A trail in the same database as the thing it audits has one weakness: whoever can alter that database can alter the trail. The answer is to keep another copy somewhere else, as it happens.

InfraOrcinus can forward every entry to a security information and event management system, through either:

  • Syslog (RFC 5424, over UDP or TCP), with the main fields as structured data and the whole entry as JSON in the message. Values are escaped and control characters removed, so a user name or path an attacker controls cannot end a line early or forge another message.
  • A signed webhook that posts batches of entries as JSON, with an HMAC-SHA256 signature header so the receiver can tell the request came from InfraOrcinus.

The exporter is built so it can never hurt the platform. Entries go into a bounded in-memory queue (5,000 by default), a background worker sends them in batches of up to 100 every couple of seconds, a failed batch is retried with a doubling back-off, and if the SIEM is down long enough to fill the queue the oldest unsent entries are dropped and counted rather than blocking requests. The copy is sent even when the database write failed, because that is exactly the day you want a second record. The database stays the system of record, so a drop is a gap in the copy, not in the trail. A UDP message that is lost is not detected, so use TCP or the webhook where that matters.


4. Integrity Today, Honestly

Records are appended by the application and nothing in the product edits or deletes them. That is a property of the application, not of the database, so it protects against product bugs and ordinary users, not against someone with database privileges.

Two stronger guarantees are on the roadmap and not shipped: hash-chaining each record to its predecessor so any edit is detectable, and a database role that cannot update or delete audit rows. Until they ship, you can build the same guarantee around the product:

  1. Restrict write privileges on the audit table in your own deployment.
  2. Stream the trail to a SIEM or append-only store you control, as above, and treat that as the tamper-resistant copy.
  3. Set a retention that outlasts the resources, for example a year or more. The built-in retention setting currently prunes document-database deployments only, so a PostgreSQL operator needs their own cleanup job.

Where there is cryptographic integrity: evidence bundles

For change plans there is already a signed answer. An evidence bundle exports a plan with its approvals, runs, verification and the related audit entries as JSON files, lists them with SHA-256 hashes in a manifest, and signs the manifest with an Ed25519 key that you hold. Anyone with the public key can recompute every hash and check the signature. The article on evidence bundles covers it in full.


Summary

The audit trail records every state-changing request with who, what, from where and as which kind of actor, adds explicit entries for policy decisions and Git publishing, and keeps metadata only. A bounded, non-blocking exporter ships a second copy to syslog or a signed webhook. Hash chaining and a locked-down database role are not shipped, so today tamper resistance comes from the copy you keep outside the database and from the signed evidence bundles for change plans.