Skip to content

Preserve API-token attribution when issuing a confirmation token #348

Closed

Description

@samuelmbabhazi

Problem

A permitted API bearer token can issue a confirmation, but the confirmation.issued audit event always records a user actor. This loses the token identifier and makes automation indistinguishable from a direct user request at this step.

The destructive operation itself uses the resource actor correctly. This issue is an audit-attribution defect, not an authorization or confirmation bypass.

Evidence

  • Confirmation issuance event hard-codes a user actor.
  • The confirmation endpoint permits the applicable scoped API tokens.
  • A local invocation of the actual command with an API-credential context and mocked persistence/event capture reproduced the user-only actor.

Acceptance criteria

  • Use the existing resource-context actor convention when publishing confirmation.issued.
  • Preserve the API-token identifier and associated user identity consistently with other resource mutations.
  • Add coverage for browser-session and API-token requests, without storing raw credentials.
  • Retain permission rechecks and transactional audit failure behavior.

Activity

  1. added
    bug
    priority:P3
    on Nov 19, 2026
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

    bugpriority:P3securitytrack:control-plane

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions