Skip to content

feat(auth): tie service clients to issuers #375

Closed

Description

@uniqueg

Problem

Service clients (security.auth.service_clients, #340) are recognized by client_id (or azp) and subject only. Client IDs are unique only per issuer, so with several trusted issuers, someone who registers the same client ID at another issuer is treated as that service client, and with on_behalf_of can name any user (who then owns the resources it creates). FOCA currently only warns about this setup.

Decision (maintainer, 2026-10-22)

  • Add an optional issuer field to each entry of security.auth.service_clients.
  • With exactly one trusted issuer, it's implied (may be omitted; if given, it must be that issuer).
  • With more than one trusted issuer, it's required: startup fails if any service client lacks it, or names an issuer that isn't trusted. This replaces the current warning.
  • A token counts as a service token only if its iss equals the client's issuer.
  • Tests, docs (authentication, configuration, templates/config.yaml) and the 0.16 migration guide.

Activity

  1. added
    priority: high
    status: in progress
    type: auth
    type: security
    workload: hours
    on Oct 22, 2026
  2. uniqueg commented on Oct 22, 2026

    @uniqueg
    MemberAuthor

    Done in #376.

  3. removed
    status: in progress
    on Oct 22, 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: hours

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions