Skip to content

Authorization server: audit events for exchange grants, ID-JAG issuance and redemption, and revocation #7375

Backlog

Description

@jhrozek

Part of #6886. Depends on #3919 (the authorization server's auditor and event types) and #3918.

Problem: grants issued by token exchange (#6897) and ID-JAG issuance (#6898) shipped without audit events, because the authorization server has no auditor yet. #6886 asks each sub-issue to emit its events in the same change. Those that shipped could not.

Change: once #3919's auditor exists, emit:

  • exchange_grant.created and exchange_grant.derived: client, user (sub), the grant's ID, the parent grant's ID (derived only), its output, expires_at as echoed, and, for created, the jti of the exchanged access token;
  • exchange_grant.id_jag_issued: client, user, the source grant's ID, target issuer, resource, ID-JAG jti and exp, and the signed call entry's operation_id or method. The actor fields are Audit the actor validator's input identity at ID-JAG issuance #7187;
  • oauth_id_jag_redeemed: ID-JAG iss and jti, client, local user, actor, resource, the issued access token's jti, and the outcome with its reason;
  • refusals as the same event types with outcome failure or denied and the stable reason code (grant_invalid, revoked, parent_revoked, not_issuable, ...).

Open sub-issues of #6886 (#6966, #6972, #6973, #6978) emit their own events in their change, using these types and #3919's auditor.

Record identifiers only. Never record token values, assertions, sub_id, or upstream_subject.

Acceptance: for each event above, a test reads the configured destination and finds one event with the listed fields, and no token or assertion value.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions