Skip to content

fix(auth): namespace subjects by issuer #503

Closed
2 of 2 issues completed
Closed

Description

@uniqueg

Why?

security.auth.issuers accepts several trusted issuers, but access control identifies users by claim_identity (e.g. sub) alone (get_current_subject). sub is only unique per issuer (OIDC Core §2). With two trusted issuers, a user of issuer B whose sub equals that of a user of issuer A gets that user's roles and owned resources.

What?

  • When more than one issuer is trusted, namespace subjects by issuer, e.g. <iss>|<sub> or a configured prefix per issuer, consistently in policies, ownership records and get_current_subject().
  • Keep single-issuer deployments unchanged, so that existing records stay valid. Document how to migrate from one issuer to several.
  • Allow per-issuer settings where providers differ: the audience, the group claim, and optionally the user info claims.

Acceptance criteria

  • Equal sub values from different trusted issuers never map to the same subject.
  • Single-issuer apps behave as before.

Needed for UIs that offer several login providers (elixir-cloud-aai/cloud-registry-ui).

Sub-issues

Sub-issues

2 of 2 Issues completed
Loading 2 sub-issues

Activity

  1. added
    priority: high
    status: triage
    type: auth
    type: security
    workload: days
    on Oct 25, 2026
  2. added
    status: in progress
    and removed
    status: triage
    on Oct 26, 2026
  3. added this to the v0.18.0 milestone on Oct 26, 2026
  4. removed
    status: in progress
    on Oct 26, 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

    priority: hightype: authtype: securityworkload: days

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions