Saturday, November 21, 2026

What is JWKS with OIDC?

 OpenID Connect (OIDC) with uploaded JSON Web Key Sets (JWKS) is an authentication configuration where you manually provide a static JSON file of public cryptographic keys directly to a service or cloud provider, rather than letting that service automatically fetch the keys from a live public URL.

Core Concepts

  • OpenID Connect (OIDC). An identity protocol built on OAuth 2.0 that verifies a user's or workload's identity using cryptographically signed JSON Web Tokens (JWTs). [1, 2]
  • JSON Web Key Set (JWKS). A standardized JSON object containing an array of public cryptographic keys used to verify the digital signatures of incoming JWTs. [3, 4]

How "Uploaded JWKS" Differs from Standard OIDC

In a standard OIDC setup, the verifying application queries the Identity Provider's discovery document (/.well-known/openid-configuration) to find a public jwks_uri and dynamically downloads the public keys over the internet. [3]
When you upload a JWKS manually instead:
  • No public endpoint is required. The relying party (such as AWS IAM, Google Cloud Workload Identity Federation, or an internal API gateway) reads the public keys directly from the static JSON payload you uploaded.
  • Offline or air-gapped validation. It enables token verification for private, internal, or self-hosted identity providers whose key endpoints are behind a firewall and unreachable from the public internet.
  • Custom token issuers. It allows systems to trust custom JWTs generated by internal CI/CD runners, Kubernetes clusters, or custom scripts without hosting a full OIDC web server.

Key Trade-offs and Considerations

  • Manual key rotation. Because the verifying service does not poll a live URL for updates, rotating signing keys requires you to manually re-upload the updated JWKS file before the old keys expire.
  • Higher security isolation. Since there is no external network call to fetch keys, you eliminate the risk of DNS hijacking or Server-Side Request Forgery (SSRF) during key discovery, provided the uploaded file is managed securely. [3, 4]
Are you trying to configure this for a specific platform (like AWS IAM, Google Cloud, or Kubernetes), or are you looking for help generating a JWKS file? Let me know your setup and I can share exact configuration steps.

No comments:

Post a Comment