Kubernetes structured authentication configuration for multiple OIDC issuers

Moving from --oidc flags to an AuthenticationConfiguration file lets one cluster accept tokens from several OIDC issuers, with explicit claim rules, anonymous access limits and configuration reloads. This page explains the decisions, the build sequence and what to confirm for your Kubernetes version.

On this page

Kubernetes multiple OIDC issuers with AuthenticationConfiguration: what it changes

A cluster that must accept logins from more than one identity provider, such as a workforce directory plus a partner or contractor issuer, runs into a limit of the classic approach: the API server accepts one OpenID Connect issuer through its --oidc-* flags. Structured authentication configuration replaces those single-issuer flags with one AuthenticationConfiguration file that lists several JWT issuers at once. The Kubernetes authentication docs describe OpenID Connect and JWT bearer tokens as a supported method, and the file is the mechanism that lets the API server trust more than one of them.

The file controls four things: which issuers are trusted and which audiences each one may present, how token claims are validated, how claims are mapped to the username and groups that RBAC later sees, and whether anonymous requests are allowed at all. Each of these is a security decision. A loose audience or claim rule lets a token from one issuer act as a user from another, and the mapping rules determine which RBAC bindings a partner account can reach. Before drafting the file, the team should list every issuer, its audiences and the claims that identify a person or group, and agree who approves each entry.

Two version questions come before any design work. Feature availability, the exact file format and any feature gates differ by Kubernetes version, so the reader must confirm them for the version they run in the official Kubernetes documentation and in the release notes of their kubeadm or distribution. Managed or distribution-specific control planes may also restrict which flags and files the operator can change, so confirm with the vendor whether the API server configuration path is open to them.

The practical check is to test a second issuer in a non-production cluster before touching production. Confirm that a token from each issuer authenticates, that a token with a wrong audience is rejected, and that the resulting user and groups match the RBAC bindings you expect. Record the configuration version alongside the change, because the file will need to be reviewed again at each Kubernetes upgrade.

When single-issuer flags are enough and when multiple issuers need a file

When every human user signs in through one corporate identity provider, the classic --oidc-issuer-url, --oidc-client-id, --oidc-username-claim and --oidc-groups-claim flags usually cover the requirement. The team gains a short, well-understood configuration that most platform engineers already know how to troubleshoot, and the change is a single set of flags on each control plane node. What it gives up is room to grow: the flags describe one issuer, so adding a second one later means moving to a file anyway.

  • Gains: a small change set and familiar flag names that are easy to review.
  • Gives up: multiple issuers, per-issuer claim rules and reloading without a restart.
  • Self-managed control plane: the team must edit kube-apiserver startup arguments on every control plane node, so a rolling change is part of the plan.
  • Managed control plane: the provider may expose OIDC settings through its own console or API, so confirm what it allows before designing around flags.
  • Question to answer first: who owns the single issuer, and will any partner or customer ever need to sign in to the same cluster?

Before relying on flags, confirm the issuer's discovery endpoint and group claims with your identity team.

Configuration options in the AuthenticationConfiguration file and when each fits

This table compares the main settings in an AuthenticationConfiguration file, what each one controls and when a team would set it. Read it as a checklist: start with the issuer and audience entries for each identity provider, then add claim rules and mappings only where your tokens need them. Confirm exact field names and supported values against the authentication reference for your target Kubernetes version before you write the file.

OptionWhat it controlsWhen a team sets it
jwt entriesEach list item defines one JWT issuer the API server trusts to authenticate users, so several identity providers can be accepted at the same time.Set one entry per identity provider when engineers, contractors or partners sign in through different OIDC issuers.
Issuer URL and audiencesThe issuer URL identifies the token issuer, and the audiences list the client IDs whose tokens the API server accepts.Set one audience per client application, such as a kubectl login client, so tokens meant for other applications are rejected.
audienceMatchPolicySets how the token's audience must match the configured audiences when more than one is listed.Review when a single issuer serves several clients and you need to decide how strictly audiences must match. Confirm supported values for your version.
certificateAuthorityProvides the CA bundle the API server uses to verify the issuer's TLS certificate and keys during discovery.Set when the identity provider uses a private or internal CA, which is common in regulated and air-gapped environments.
claimValidationRulesRequires specific token claims to have expected values, for example restricting logins to a particular tenant or domain.Set when an issuer serves more users than should reach the cluster and you need a claim check to narrow access.
claimMappings: usernameChooses which token claim becomes the Kubernetes username and whether a prefix is added.Set to keep usernames unique across issuers, so two providers cannot produce the same name for different people.
claimMappings: groupsChooses the claim that carries group membership, which RBAC bindings can then reference.Set when RBAC should follow directory groups instead of individual user bindings. Confirm how group prefixes behave in your version.
claimMappings: uid and extraMaps an optional unique identifier and extra attributes from tokens into the authenticated user's details.Set only when a policy engine, audit process or admission rule needs attributes beyond username and groups.
userValidationRulesApplies checks to the final mapped username or groups before the request is authenticated.Set to block reserved prefixes or malformed names produced by mapping, as a last safeguard across issuers.
Top-level anonymous settingsControl whether unauthenticated requests are allowed and which endpoints they may reach.Review to confirm anonymous access is limited or disabled, because a permissive default can expose discovery and health paths to unknown callers.

How a bearer token passes through several issuers before RBAC applies

The request starts at the user's client, which sends a bearer token to kube-apiserver. The API server checks the token against each configured issuer in turn, and only the issuer that validates the token supplies claims. Those claims go through claim validation and then claim mapping, which produce the username and groups that RBAC and admission evaluate. Requests without a valid token take a separate anonymous branch, controlled by the anonymous access settings in the same file, so check that branch as carefully as the token path.

Token path through several issuers, with the anonymous branch shown separately.

Setting up structured authentication for multiple issuers, step by step

This sequence moves a self-managed cluster from single OIDC flags to one AuthenticationConfiguration file that accepts tokens from several identity providers, with checks at each stage that confirm logins, group mappings and the break-glass path still work.

  1. Inventory issuers, keys and discovery endpoints

    Platform and identity teams list every OIDC issuer that should reach the cluster, including the issuer URL, the discovery document location, the signing key set each issuer publishes, and who owns each identity provider. Confirm that each issuer serves its discovery document over a reachable address from every control plane node, because kube-apiserver must fetch keys from there. Record the audience (client ID) each issuer uses for the cluster. The step is done when a table exists with one row per issuer and every row has been checked from a control plane node.

  2. Decide username and group claims per issuer

    For each issuer, choose the claim that becomes the Kubernetes username and the claim that carries group membership, and decide whether a prefix should be added so identities from different issuers cannot collide. Work with the identity team to confirm the claims exist in tokens for real users and service accounts, and note any issuer that omits groups so that RBAC is not bound to something the token never contains. The step is done when a claim mapping sheet has been signed off by the team that owns RBAC.

  3. Draft the AuthenticationConfiguration file in a test cluster

    Write the AuthenticationConfiguration file with one entry per issuer, the claim mappings from the previous step, and the anonymous access setting chosen for the environment. Load the file into a non-production cluster built to the same kubeadm layout as production, then start kube-apiserver with the matching configuration flag. Confirm that the API server starts and logs no validation errors for any issuer. Check the documentation for the Kubernetes version you run, since the supported fields and the reload behavior depend on that release. The step is done when the test cluster starts cleanly with the draft file.

  4. Test each issuer and the rejection path

    Obtain a test token from each issuer and send a request to the test cluster with each one, confirming that the expected username and groups appear in the authenticated identity. Then send a token with a bad signature, an expired token, a token from an issuer that is not in the file, and a token with the wrong audience, and confirm that each is rejected. The step is done when every accepted token maps to the intended identity and every invalid token returns an authentication failure.

  5. Confirm group claims map to the intended RBAC bindings

    Bind a test role to a group name that comes from one issuer, then confirm that a user from that issuer receives exactly the permissions the binding grants and no more. Repeat for a second issuer whose group names look similar, to confirm the prefix keeps the groups apart. Review any binding that refers to a broad group against the least-privilege role design used elsewhere in the cluster. The step is done when each group resolves to the expected permissions in both directions, with a record kept of the test users and bindings.

  6. Place the same file on every control plane node

    Copy the approved file to the same path on each control plane node, following the node layout in the kubeadm high availability guide, which describes either a stacked control plane or an external etcd topology with at least three control plane nodes behind a TCP load balancer on port 6443. Every control plane node must receive an identical file, because a request can land on any API server behind the load balancer and a mismatch produces logins that succeed on one node and fail on another. Keep the file under configuration management so drift is visible. The step is done when a checksum comparison across all control plane nodes matches.

  7. Point kube-apiserver at the file and restart or reload

    Set the configuration flag on kube-apiserver to the file path on each control plane node, removing the older single-issuer OIDC flags so that two sources of truth do not disagree. Apply the change one control plane node at a time, and restart or reload according to the documented behavior for the cluster's Kubernetes version. Between nodes, repeat the test tokens against the load balancer endpoint to confirm the change is visible. The step is done when every API server reports the new configuration and the test tokens succeed through the load balancer.

  8. Verify the break-glass credential still works

    Before closing the change, confirm that the break-glass credential kept outside the identity provider still authenticates to every control plane endpoint, and that it is still bound to a limited administrative role rather than being used for daily work. Document where the credential is stored, who can retrieve it, and how it is tested on a schedule. Keep this check in the change record so that a future misconfiguration of the issuer list cannot lock out all administrators. The step is done when a break-glass login succeeds after the production change and the result is recorded.

How configuration reloads work and where a restart is still needed

The main reason to move to an AuthenticationConfiguration file is that you can change issuers, claim rules and anonymous access limits without rebuilding the kube-apiserver command line. That benefit only holds if you know which edits the API server applies live and which still need a restart. Reloads depend on the Kubernetes version you run and on how the file reaches the control plane, whether it is a mounted file referenced by the API server flag or a file written through your distribution's own configuration path. Confirm both points before you plan a change window, and do not assume that a reload on one version or distribution behaves the same way on another.

The larger operational risk is a half-updated fleet. In a high availability control plane, each kube-apiserver reads its own copy of the file, so during a rollout some nodes can validate tokens against the new issuers while others still use the old rules. Users may then see intermittent authentication failures that depend on which API server answers their request. A staged rollout on a test cluster first gives you a way to observe this behavior before production. Apply the same file through the same delivery path you will use in production, change one issuer or rule at a time, and check the result from several kubeconfig contexts that land on different API servers.

Build the test into your change process. Record, for each kind of edit you plan (adding an issuer, changing a claim mapping, tightening anonymous access), whether the API server picked it up without a restart, and what you had to do to make it take effect. Keep a rollback copy of the previous file and confirm you can restore it on every control plane node. Use the authentication documentation as the starting point for the reload behavior of your Kubernetes version, but treat your own test results as the final answer for your environment.

Security risks in multi-issuer authentication and how to contain them

Accepting tokens from several OIDC issuers widens who can become a cluster user and what that user can do. The cards below cover the failure modes we see most often when an AuthenticationConfiguration file is introduced, and the control to apply to each one before the file reaches production.

Over-trusted issuer mints broad groups

Every issuer in the file can assert identities the cluster will accept, so a partner or test tenant that is less controlled than your primary identity provider becomes a path into the cluster. Confirm which groups each issuer can assert and whether its tokens carry groups that exist in your production RBAC. Bind roles only to groups owned by the issuer that should grant them, and remove issuers that no longer need access.

Authentication docs

Free-text claim maps to admin

A claim mapping that copies a user-editable attribute, such as a display name or free-form department field, into a group or username can let a user claim membership in a privileged group. Check every claimMappings expression against the identity provider's attribute controls, and prefer stable, administrator-managed claims. Bind cluster-admin only to a small, reviewed group and test that a user with a modified attribute cannot reach it.

Anonymous access left enabled

Anonymous requests can reach the API server when anonymous authentication is enabled and no rule stops them, which matters most when the file adds issuers and the team assumes the cluster is now closed. Review whether the cluster needs anonymous access at all, and where it does, use anonymous authentication conditions to limit which paths and requests it can reach. Run an unauthenticated request against the API server after each change and record the result, since the CIS Kubernetes Benchmark covers this area as a configuration check.

Break-glass access lost after file breaks login

A malformed AuthenticationConfiguration file, an unreachable issuer discovery endpoint or a wrong audience can stop every OIDC login at once. If the only remaining credential depends on the same path, administrators lose access during the incident that needed them. Keep a break-glass credential that does not use the new file, store it offline, and test the recovery path on a non-production cluster before changing production authentication.

Issuer material and config files exposed

The authentication configuration file, issuer CA bundles and any client material sit on control plane nodes, where read access to the file system or to the API server manifests exposes trust decisions. Restrict file permissions to root, keep issuer material out of world-readable locations and manage changes through reviewed configuration. Confirm encryption at rest for etcd, because Secrets are stored unencrypted in etcd by default, and any Secret holding issuer material is exposed without it.

Secrets good practices

No record of which issuer authenticated

Without audit evidence, a suspicious request cannot be traced to the issuer and identity that presented the token, which weakens incident response and any access review. Enable API server audit logging, confirm the audit policy records authentication-related events, and make sure log retention matches your review cycle. Test the pipeline with a login from each issuer so the issuer name appears in the records your team searches.

Kubernetes multiple OIDC issuers: cost, effort and what you need to provide

What drives the effort of a multiple OIDC issuer setup?

Effort rises with the number of issuers, how complex the claim rules are, how many clusters receive the file, and how strict your change control is. Each issuer needs its discovery URL, audience, claim mapping and username and group prefixes checked, and each one adds a case to test. Claim expressions that combine several fields or handle optional claims take longer to validate than a plain username claim. Multiplying the setup across clusters or Kubernetes distributions adds repeated testing, and a change process that requires review and a rollback path adds more work than an informal rollout. Ask any partner to break the quote down by these factors.

Can an internal team configure multiple OIDC issuers alone?

An experienced platform team can often do it, provided it has a non-production cluster, access to the API server configuration on that cluster, and people who understand the identity provider's token contents. The risk sits in production changes: a mistake in the authentication configuration can lock out administrators or accept tokens you did not intend to trust. Confirm whether your team has run a configuration reload on your chosen distribution, has a tested break-glass path, and can review claim rules against real tokens from each issuer. If any of these are missing, a fixed-scope engagement can cover the gap, and the written scope will say which parts your team still owns.

What do we need to provide for an OIDC authentication project?

The work depends on several inputs from your side:

  • Named owners for each identity provider, who can confirm issuer URLs, audiences, claim names and group membership.
  • A test cluster on the same Kubernetes version and distribution as production, with control plane access.
  • Sample tokens or a way to obtain them for each user type, so claim mapping can be checked before rollout.
  • Access to change control, plus a maintenance window for the API server restart or reload.
  • A documented break-glass plan, including who holds emergency credentials and where they are stored.

Confirm these inputs before the scope is agreed, because missing owners or test access are the most common causes of delay.

How long does a multiple issuer OIDC project take?

No duration figure is supplied for this work, so no timeline can be quoted from this page. Duration depends on the same drivers as effort: the number of issuers, the claim logic, the number of clusters and the speed of approvals from issuer owners. The scope, deliverables and timeline are agreed in writing before work starts, and a partner should show which phases depend on your reviews or test access. Ask for the dependencies to be listed as milestones so that delays from your side are visible.

Can DeployOpen give a quote without a published price list?

Yes. DeployOpen does not publish a price list, and a quote follows from a written scope. To get a useful quote, provide the number of identity providers, the clusters and distributions in scope, the expected claim mapping complexity, whether reloading configuration without restarts must be verified, and what your change control requires. Ask the quote to separate one-time implementation, testing and documentation from any recurring support or upgrade retainer. Most engagements are fixed-scope, so the agreed deliverables define what the price covers.

How do Kubernetes upgrades change the authentication configuration file?

Upgrades can change which fields the authentication configuration accepts, so the file must be checked against the target version before the control plane is upgraded. The Kubernetes version skew policy requires kube-apiserver to be upgraded one minor version at a time, and the API server is the component that reads this file. Plan the upgrade in a test cluster first, confirm the file parses and tokens from each issuer still validate, then roll the change through production. Your upgrade plan should also list the Kubernetes release you are moving to and its end-of-life date, which you should confirm on the official releases page for your version.

Does the engagement include the security review of our identity settings?

The implementation work covers configuring issuers, claim validation, mapping rules and anonymous access limits, and it can include checks that those settings behave as written. A separate security review of your identity provider, RBAC bindings or cluster hardening is a different scope and needs its own written agreement. Confirm with any partner which controls are tested, what evidence you receive, and whether the output supports a compliance assessment. DeployOpen prepares systems and evidence for assessments, but independent auditors issue any audit report or certification.

Limits to confirm in your environment before you change the API server

Structured authentication moves identity settings out of API server flags and into a file that the API server reads. Before you edit anything, confirm the cluster version, the distribution's control over the API server, and how the new file behaves alongside the authenticators and issuers you already run.

Cluster version and file format

Confirm that your Kubernetes minor version includes the AuthenticationConfiguration feature and the file schema you plan to write. Check the release notes for the version you run and the version you plan to reach, not only the current latest release. Kubernetes maintains only the three most recent minor releases, so a cluster on an older minor may need an upgrade before this change is possible. Record the exact API version string the docs give for your release.

Kubernetes releases

Distribution and managed service control

Check whether your distribution or managed service lets you mount a file into the API server pod and set its startup arguments. Some managed services do not expose control plane flags at all, and some distributions manage the manifests themselves. Ask the vendor or read their documentation for the exact procedure, and confirm whether changes survive upgrades and node replacement.

Conflicts with existing OIDC flags

Find every API server flag that configures OIDC on your control plane nodes, including the manifests in /etc/kubernetes/manifests on kubeadm clusters. Confirm how your version treats the legacy flags when the file is also supplied, and whether the two sources can run together. Decide which source is authoritative before the change, and plan the removal of the old flags as a separate, tested step.

Interaction with other authenticators

Client certificates, bearer tokens, webhook token authentication and any authenticating proxy may already serve your users or automation. Map which authenticator handles each identity today and confirm how the file's JWT issuers are evaluated alongside them. Keep at least one tested break-glass path, and verify that a failed OIDC login falls through to the expected authenticator rather than failing silently.

Authentication docs

Version skew during the upgrade

The version skew policy requires kube-apiserver to be upgraded one minor version at a time, before kube-controller-manager, kube-scheduler and kubelets. Plan any move to a newer minor release around this order, and confirm that the file format you adopt is supported on every control plane node during the rolling change. Schedule the configuration change so that all API server replicas run the same minor version.

Version skew policy

Issuer discovery and key rotation paths

Each JWT issuer must be reachable from every API server node over the network path you intend to use, because the API server fetches discovery documents and signing keys from the issuer. Confirm the outbound routes, proxies and DNS entries, and check how each issuer rotates its keys and how long old keys remain published. Test a key rotation on a non-production cluster before you rely on it, and record the expected behavior when an issuer is unavailable.

How DeployOpen works on this

DeployOpen scopes, builds, tests and hands over structured authentication for Kubernetes API servers that trust more than one OIDC issuer. Work runs in the clusters and identity infrastructure you control, with the AuthenticationConfiguration file, claim rules and rollout plan agreed in writing before changes start.

How we scope

  • Inventory every identity issuer, client ID, audience and group claim that the API server must accept.
  • Agree in writing which issuers, claim mappings, username prefixes and anonymous access settings are in scope.
  • Confirm the Kubernetes version and API server control, since the structured configuration file depends on the release running in your cluster.
  • Define the RBAC group names that each issuer's claims will map to, and who approves changes to them.

How we build

  • Write the AuthenticationConfiguration file with one entry per issuer, including audiences, claim validation rules and claim mappings.
  • Set anonymous authentication limits and document which unauthenticated paths remain reachable after the change.
  • Stage the file on a non-production cluster first, then mount it into the kube-apiserver and point it at the file path.
  • Test each issuer with real tokens from test accounts, covering allowed, denied and malformed token cases.

How we hand over

  • Deliver the configuration file, its version history, the claim mapping rules and the RBAC bindings they feed.
  • Document how to reload configuration after edits, and what the API server does when a reload fails.
  • Provide a runbook for adding or retiring an issuer, including the break-glass credential procedure.
  • Walk your platform and security teams through the test results and the evidence they can keep for reviews.

How we support

  • Retest issuer onboarding, claim rule changes and Kubernetes upgrades that touch authentication behavior.
  • Keep the configuration aligned with the supported minor versions listed in the Kubernetes release schedule as your upgrade plan moves.
  • Offer ongoing support, upgrades and continuous testing as a retainer after the fixed-scope engagement ends.
  • Ask for a quote built from the written scope, covering the number of issuers, clusters and environments involved.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.