Skip to content

Allow principals to view audit trails for their agents #357

@beubax

Description

@beubax

What happened?

Audit records are currently only viewable by admins. This means an individual principal cannot inspect the actions taken by their identities/agents, even though those actions affect their own vaults, credentials, and connected apps.

As Authsome moves toward explicit users, identities, principals, and vaults, audit visibility should not be limited to global administrators only.

What did you expect?

A principal should be able to view the audit trail for actions performed by identities/agents linked to that principal. The view should show the relevant action history end-to-end, including who/what initiated the action, which provider or vault was affected, timestamps, outcomes, and enough context to understand the trail.

This should remain scoped: principals should only see audit events they are authorized to see, not global server-wide audit logs for other principals.

Steps to reproduce

  1. Perform actions as an identity/agent linked to a principal, such as login, token refresh, revoke, logout, provider configuration, or vault access.
  2. Log in or open the UI as that principal.
  3. Try to inspect the audit trail for the principal's identities/agents.
  4. Observe that audit visibility is admin-only.
  5. Add scoped audit visibility so principals can view the action trail for their own agents and resources.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions