Skip to content

Delegated access: actor checks at ID-JAG redemption #7245

Done

Description

@jhrozek

Part of "Delegated access: subject mapping at ID-JAG redemption" (#6887).

Branch: as2-subject-mapping-2-actor-checks (about 100 lines). Phase: 1.

Problem. For a resolve issuer nothing checks who the acting agent is. The act claim is copied into the token and is the audit trail and the basis for session binding.

Change (resolve issuers only):

  • The effective actor is the outermost act; an act without iss takes the token's iss; a missing or malformed act is refused as actor_denied.
  • act.iss must be the ID-JAG's own iss or in actor_issuers, else it is refused before the policy runs.
  • The actor policy runs. A policy error means "could not decide" and returns server_error (the held branch returns actor_denied; this changes it).
  • New reason actor_denied (access_denied). The code gate moves to after these checks so they are reachable and testable. Namespaced issuers are unchanged.

Acceptance. One table-driven test per check with the exact error and reason. The two-server integration test (AS-1 mints with an actor validator, AS-2 redeems) asserts actor_denied against the gate's subject_unknown over HTTP. Refusals are logged with issuer, client and reason, never the subject, the jti or any act value. The PR documents what the default policy does not check: it checks only the actor's issuer, so any act.sub at an allowed issuer passes.

Adds. The actor_denied reason, the row that "Authorization server: reason codes in error_description for ID-JAG redemption refusals" (#7030) assigned to subject mapping. That issue is already closed.

Depends on. "Delegated access: subject mapping setting and code gate for ID-JAG issuers".

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