Skip to content

Audit logging: capture scopes/allow-list on key create/update/use #19857

Closed as not planned

Description

@ThomasK33

Description

  • Extend audit events to include full scopes[] and allow_list[] for API key create, update, delete, and usage events.
  • Where feasible, include the “effective scope set” used during a request in security/audit logs for forensics.

Key files/areas

  • enterprise/audit/table.go (add new fields if needed).
  • Emit fields from token handlers and request middleware.
  • Docs: update docs/admin/security/audit-logs.md tables.

Acceptance criteria

  • Audit events appear with the new fields; docs reflect the changes.
  • Tests validating audit entries for create/update use-cases.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions