Skip to content

Authorization server: require the issuer as the only aud of a private_key_jwt client assertion #7039

Closed

Description

@jhrozek

Part of #6886. Split out of #7028.

Problem

newClientAssertionAudienceConfig (pkg/authserver/server/private_key_jwt_client_auth.go) accepts a client assertion whose aud is the issuer or the token endpoint URL, or an array that contains either. #6946 said a later release would require the issuer as the only value. Mecatl's broker design requires the same (credentials-and-lifecycle.md, step 5).

Change

  • Add an option that accepts only an aud that is the issuer, as a single string.
  • fosite checks only that one of the accepted URLs is among the aud values, so rejecting an array needs its own check.
  • Decide where the option lives (RunConfig only, or also a CRD) and what the default is, so existing clients that send the token URL can migrate.

Acceptance

With the option on, an assertion whose aud is the token endpoint URL, or an array with an extra value, gets 401 invalid_client and no token is issued. With it off, behavior is unchanged.

Activity

  1. added
    needs-triage
    on Nov 3, 2026
  2. added a commit that references this issue on Nov 22, 2026
    f852ed3
  3. added a commit that references this issue on Nov 23, 2026
    112147d
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

    needs-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions