A self-hosted OIDC issuer is a token service you run yourself, so your workloads can prove who they are.
This guide is for anyone who has heard that a cluster or platform "is its own issuer" and wants to know what that means. You do not need to write code. If your team runs its own Kubernetes or build servers and connects them to a cloud, this probably affects you.
In short
- An issuer hands out signed tokens that say "this workload is who it claims to be".
- Other systems, such as a cloud provider, check those tokens using public keys the issuer publishes on the web.
- When you run the issuer yourself, you own its signing key, its web address and its records.
- Protect the signing key above all, keep the address under your control, and keep tokens short-lived.
What you will learn
- Explain what an OIDC issuer does in plain words.
- Describe the two files an issuer publishes and why.
- Spot why the private signing key is the most valuable part.
- Ask who owns the issuer in your organisation.
- Token maker (issuer)
- the service that creates and signs identity tokens.
- Signed pass (token)
- a short piece of data that says who a workload is, with a signature to prove it.
- Program at work (workload)
- an app, job or service that runs and needs access to other systems.
What is a self-hosted OIDC issuer?
Think of a sports club that prints its own membership cards. Partner clubs agree to accept them, so the club pins a public sample of its stamp by the door for anyone to compare.
An OIDC issuer does the same for software. OIDC is short for OpenID Connect. It is a common standard for identity tokens. The issuer signs a token for a workload. Another system checks the signature against public keys the issuer publishes, and if they match, it trusts the token [1].
"Self-hosted" means you run the issuer rather than a cloud provider or a vendor. A common case is a Kubernetes cluster, a system that runs containers, which can act as the issuer for its own workloads [2].
Where the comparison stops working: a forged card often looks wrong. A token signed with a stolen signing key looks exactly right, because the signature checks out.
Each workload that gets these tokens is a non-human identity, because it has its own account and credentials. Tokens like these are dynamic credentials: issued when needed, and short-lived. See Non-Human Identities for Beginners.
Why does it matter?
Running an issuer means other systems trust whatever it signs. That makes it a quiet but powerful part of your setup.
If you run a platform team
What could happen: the signing key is copied from a backup, and someone signs tokens your cloud accepts.
Check this: find where the issuer's private key is stored and who can read it.
If you are new to cloud work
What could happen: a cloud trust is set up for "any token from this issuer", so every workload gets the same access.
Check this: ask which workload names and audiences each cloud trust accepts.
If you manage IT risk
What could happen: the issuer's web address lapses, and someone else could take it over.
Check this: make sure the issuer's domain has a named owner and renewal date.
What does it look like?
Here is a made-up, short discovery file. An issuer shares it so others know how to check its tokens.
Example only. All values are made up.
{
"issuer": "https://id.example.com/cluster-0000", (1)
"jwks_uri": "https://id.example.com/cluster-0000/keys", (2)
"id_token_signing_alg_values_supported": ["RS256"], (3)
"note": "EXAMPLE only, FAKE values"
}
- The issuer's address. Each token must name this exact address.
- Where the public keys live. In a real file, this line would point to keys anyone can download.
- The signing method used for tokens.
Why this is risky: if these files sit on storage nobody owns, someone else could later serve their own keys there.
The safer way: host the files on a domain your team owns. Keep the private key out of every published file.
How does it work?
- Publish the issuer's details. The issuer serves a discovery file at a fixed path, /.well-known/openid-configuration, under its https address. The file names where its public keys are [1].
- Publish the public keys. The key set, called a JWKS (JSON Web Key Set, a list of public keys), lets others check signatures. It must not contain private keys [1][3].
- Sign a token for a workload. The issuer uses its private signing key (the secret used to sign tokens) to create a token. In Kubernetes, a token can be set to expire, for example after two hours [2].
- The workload shows the token. It sends the token to another system, such as a cloud provider, and asks for access.
- The other system checks it. It reads the discovery file and the key set, then checks the signature and that the issuer address matches exactly [1]. In AWS, this trust is set up as an OIDC identity provider, and a matching role hands back temporary credentials [3].


When a cloud provider runs the issuer for you, it looks after the key and the address. When you run it yourself, those jobs are yours: keeping the key safe, keeping the address alive, and keeping records.

A worked example
This story is made up to show the idea.
Sana Iqbal joins the platform team at Quillford Analytics. The team runs its own Kubernetes cluster in its data centre. Their nightly reports job copies files to a cloud storage account.
Until last year, the job used a long-lived cloud key saved in a settings file. Her colleague Tariq Hussain replaced it. Now the cluster acts as its own OIDC issuer. The job gets a short-lived token, and the cloud swaps it for temporary access.
Sana is asked to review the setup. She starts with three questions. Where is the signing key? Where are the public files hosted? What does the cloud trust accept?
She finds the key sits in a file on the control servers, and a copy is included in the nightly backups. She also finds the public files are hosted in a storage bucket created by a contractor who has left.
Sana and Tariq make a plan. They remove the key from the backups and limit who can read it. They move the public files to a domain the team owns, with renewal on the team calendar. They narrow the cloud trust so it accepts only the reports job, not every workload in the cluster.
They also note that if the key was ever copied, swapping it for a new one is the fix. So they write down the steps to publish a new key, switch over and retire the old one.
Sana learned that running an issuer is not just a setting. It is a service with a key, an address and an owner.
Myths and mistakes
| What people think | What is true |
|---|---|
| The key set file is secret. | The key set is public by design. It must hold only public keys.[1] |
| Short-lived tokens mean nothing can go wrong. | Short tokens help, but a stolen signing key can make new tokens at will. |
| Trusting the issuer is enough. | Each cloud trust should also check which workload and audience the token is for. |
| The issuer address can change any time. | Cloud trusts are tied to the exact address, so a change needs planning on both sides. |
| Backups of the key are always good practice. | Every copy of the private key is another place it can leak. Control and record each copy. |
What can I do this week?
- Ask whether any of your clusters or platforms act as their own issuer.
- Find out where each issuer's private signing key is kept and who can read it.
- Check that the issuer's web address is on a domain your team owns.
- List the cloud trusts that accept tokens from each issuer.
Checklist
- I can explain what an OIDC issuer does.
- I know the discovery file and key set are public, and the signing key is not.
- Each self-hosted issuer has a named owner.
- The signing key is stored with tight access, ideally in a key service.
- The issuer's domain and hosting are owned and renewed by our team.
- Cloud trusts check the workload and audience, not just the issuer.
- Tokens are set to expire quickly.
- We have written steps for swapping the signing key.
Common questions
Why would anyone run their own issuer?
To avoid stored keys. A self-run cluster or build server can prove who its workloads are with short-lived tokens, and a cloud can accept those tokens. That replaces long-lived cloud keys saved in files, which are easy to copy and hard to track.
Is a Kubernetes cluster really an issuer?
Yes. A Kubernetes cluster signs tokens for its service accounts. With issuer discovery switched on, it serves a discovery file and a public key set, so outside systems can check those tokens [2]. Managed cloud clusters often run this part for you.
What happens if the signing key leaks?
Treat it as an emergency. Anyone holding the key could sign tokens that other systems accept. AWS's guidance treats a published private key as compromised and points to replacing keys, reviewing records and ending sessions [3]. The practitioner guide covers the steps.
Does the issuer address have to use https?
Yes. The OpenID Connect discovery standard requires the issuer address to use https. The address in each token must exactly match the issuer's own address, which helps stop a fake discovery file from being trusted [1].
How is this different from workload identity federation?
They work together. Workload identity federation is the overall pattern of swapping a token from one system for access in another. A self-hosted issuer is one possible source of those tokens: the part you run yourself, rather than one a vendor runs.
Where next?
Ready for the detail? Read the practitioner guide: Self-Hosted OIDC Issuer Security Guide. It goes further into signing key custody, where to host the public files, and how to rotate keys or change the issuer address safely.
Also useful:
- Workload Identity Federation for Beginners
- Workload Identity Federation Guide
- How to audit AWS IAM Roles Anywhere and OIDC identity providers
- Non-Human Identities for Beginners
Related NHI Mgmt Group resources: OAuth 2.0 vs OIDC, Workload Identity Federation Trust Review Checklist and Secrets Management for Beginners.
Key terms
- OIDC issuer
- The service that signs OpenID Connect tokens, names itself in each token, and publishes its details and public keys.
- OpenID Connect
- A common standard for identity tokens, built on top of OAuth 2.0.
- JSON Web Key Set
- A published list of public keys that others use to check signed tokens.
- Signing key
- The secret key an issuer uses to sign tokens. Whoever holds it can make tokens others trust.
- Workload identity federation
- Letting a workload in one system use short-lived tokens to get access in another, without stored keys.
- Kubernetes service account
- An identity Kubernetes gives to workloads running in a cluster.
Sources and further reading
- OpenID Foundation, "OpenID Connect Discovery 1.0 incorporating errata set 2", Final, 15 December 2023. https://openid.net/specs/openid-connect-discovery-1_0.html (accessed 4 Dec 2026).
- The Kubernetes Authors, "Configure Service Accounts for Pods", Kubernetes Documentation, section "Service account issuer discovery". https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ (accessed 4 Dec 2026).
- Amazon Web Services, "Create an OpenID Connect (OIDC) identity provider in IAM", AWS Identity and Access Management User Guide. https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_create_oidc.html (accessed 4 Dec 2026).