ezgh iam oidc-providers create <name> --issuer <url> [--audiences a,…] [--jwks-file f] [flags]Register an OpenID Connect identity provider. Workloads holding its ID tokens can exchange them for API keys of bots whose OIDC trust matches (ezgh iam bots oidc-trust add). The issuer is compared with tokens’ iss exactly and can’t change.
Where its signing keys come from is fixed when it’s created:
- by default, from the issuer: EZGH Cloud reads its discovery document now, and its keys on
every exchange, so the issuer must be publicly reachable over https.
- with --jwks-file, from you: the issuer's public keys (its JWKS, {"keys": [...]}; - reads
stdin) are stored with the provider and nothing is ever fetched. Use it when the issuer isn't
publicly reachable, like a self-managed Kubernetes cluster's
https://kubernetes.default.svc.cluster.local. The stored keys don't follow the issuer: when the
cluster rotates its service account signing key, update them (old and new together, across the
overlap) with `ezgh iam oidc-providers update <provider> --jwks-file`, or tokens signed by the new
key are refused. Clusters sharing an issuer are one provider each, told apart by their keys.--audiences are the aud values accepted (default: the profile’s domain, which ezgh auth oidc-exchange asks GitHub for). For GitHub Actions:
ezgh iam oidc-providers create github --issuer https://token.actions.githubusercontent.comFor a Kubernetes cluster, with its keys from kubectl:
kubectl get --raw /openid/v1/jwks | ezgh iam oidc-providers create my-cluster \
--issuer https://kubernetes.default.svc.cluster.local --audiences ezghcloud.com --jwks-file -Part of ezgh iam oidc-providers.
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--audiences |
strings, comma-separated or repeated | the audiences accepted, 1 to 10 (default: the profile’s domain) | |
--issuer |
string | the issuer URL, exactly as tokens’ iss says it (required) | |
--jwks-file |
string | store the issuer’s public keys from this JWKS file (- for stdin) instead of fetching them: for an issuer that isn’t publicly reachable |
This command also takes the global flags.