Skip to content

Unit 2: Registry audit trail — structured mutation logging #19

Description

@TeoSlayer

Scope

Structured audit logging for all registry mutations via slog JSON events.

Deliverables

  • audit() helper emitting slog JSON events
  • 18 mutation handlers instrumented:
    • node.registered, key.rotated
    • network.created, network.joined, network.left, network.deleted, network.renamed
    • trust.created, trust.revoked
    • visibility.changed, task_exec.changed
    • handshake.relayed, handshake.responded
    • hostname.changed, tags.changed
    • node.deregistered
    • invite.created, invite.responded
  • Filterable via jq 'select(.msg=="audit")'

Files

  • pkg/registry/server.go
  • tests/audit_test.go (6 tests)

Status: Complete

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions