> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nebius.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Using an OIDC public endpoint in Managed Service for Kubernetes® clusters

All Managed Service for Kubernetes clusters expose a public OpenID Connect (OIDC) discovery endpoint. External systems can use this endpoint to independently verify workload identities by using [JSON Web Tokens (JWT)](https://kubernetes.io/docs/reference/access-authn-authz/authentication/#json-web-token-authentication) that Kubernetes issues automatically.

You can use this endpoint to let an external service trust your Managed Kubernetes cluster workloads.

To let users sign in to the cluster with tokens from an external identity provider, see [Authentication with external OIDC providers in Managed Service for Kubernetes®](https://docs.nebius.com/kubernetes/authentication/oidc-providers.md). You can't add the OIDC endpoint of a cluster as an identity provider for that same cluster.

## OIDC endpoints

For every cluster, Managed Kubernetes exposes the following endpoints at `https://oidc.mk8s.api.nebius.cloud`:

| Endpoint | Description |
| - | - |
| `GET /<cluster_ID>/.well-known/openid-configuration` | OIDC discovery document for the cluster. |
| `GET /<cluster_ID>/openid/v1/jwks` | JSON Web Key Set (JWKS) containing the public keys used to verify the tokens issued by the cluster. |

Both endpoints are accessible without authentication, so any OIDC-compatible service can fetch them directly.

## How to get a cluster's OIDC endpoint URLs

1. Get the ID of your cluster by its name:

   ```bash theme={null}
   nebius mk8s cluster get-by-name \
      --name <cluster_name> --format jsonpath='{.metadata.id}'
   ```

2. Replace `<cluster_ID>` with your cluster ID in the endpoint URLs:

   ```text theme={null}
   https://oidc.mk8s.api.nebius.cloud/<cluster_ID>/.well-known/openid-configuration
   https://oidc.mk8s.api.nebius.cloud/<cluster_ID>/openid/v1/jwks
   ```

3. Use these URLs when you register an OIDC identity provider or configure workload identity federation.
