Skip to content

ezgh iam oidc-providers update

Rename an OIDC provider, or replace its audiences or stored keys.

Updated View as Markdown
ezgh iam oidc-providers update <provider> [--name n] [--audiences a,…] [--jwks-file f] [flags]

Rename an OIDC provider, or replace its audiences or, for a provider with stored keys, the keys. Its issuer can’t change, nor where its keys come from: register another provider instead. Sent with the ETag ezgh read, so a change someone made in between isn’t lost.

--jwks-file replaces the stored keys with the issuer’s JWKS (- for stdin). Do it when the issuer rotates its signing key, like a Kubernetes cluster rotating its service account key: upload the old and new keys together until no token signed by the old one is in use. Removing a key refuses new exchanges of tokens it signed, but doesn’t end API keys already issued.

kubectl get --raw /openid/v1/jwks | ezgh iam oidc-providers update my-cluster --jwks-file -

Part of ezgh iam oidc-providers.

Flags

Flag Type Default Description
--audiences strings, comma-separated or repeated the audiences accepted, replacing the current ones
--jwks-file string replace a provider’s stored keys with this JWKS file (- for stdin), when the issuer rotates its key
--name string the new name

This command also takes the global flags.

Navigation

Type to search…

↑↓ navigate↵ selectEsc close