Skip to content

Send audit records to storage mecak8s cannot change #2846

Open

Description

@ChrisJBurns

Depends on: #2566 (audit records and delivery)

Problem

Audit records are only as trustworthy as where they are kept. A record that a compromised mecak8s can change or delete is not evidence.

Implements

Scope

  • A reference configuration points every component's sink (mecak8s, the broker, AS-1, AS-2, and the vMCP) at a store mecak8s cannot write to or delete from. It also gives investigators read-only access.
  • The operator steps are documented, including who owns retention and for how long.
  • The operator steps state the retention class of each record and its reason:
    • schedule grant records (setup and renewal): the deployment's retention period, counted from the record's own LoggedAt, plus AS-1's horizon cap, because a scheduled run's records reference the current grant record, which can be up to the cap older than them;
    • every other record: the deployment's retention period.
      AS-1's records of schedule grants follow the same rule once AS-1 records them ([Phase 3] Authorization server and gateway audit records, and reconciliation #2848).
  • The reference configuration routes by the event's type and component, so a store that sets retention per stream or prefix applies the classes without parsing Data.
  • Mecatl states the minimums. The store enforces retention, immutability, and deletion; Mecatl runs no retention timers.
  • AS-1 and AS-2 emit records from [Phase 3] Authorization server and gateway audit records, and reconciliation #2848 onward and use the same configuration.
  • Tamper evidence (hash chains, signed checkpoints, signed records) is [Phase 3] Tamper-evident audit records #2808's.

Done when

  • In the reference deployment, records already delivered by any component cannot be changed or deleted by mecak8s within the retention period.
  • In the reference deployment, schedule grant records are kept for the longer period.
  • Investigators can read the records but not change them.
  • The operator steps are documented, and list the retention classes with the reason for each.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions