Skip to content

Add options, exposed through operator CRD, to use a CA bundle and authentication when fetching JWKs - #978

Merged
jhrozek merged 5 commits into
mainfrom
jwks-ca-bundle
Jul 11, 2025
Merged

jhrozek merged 5 commits into
mainfrom
jwks-ca-bundle

Conversation

@jhrozek

@jhrozek jhrozek commented Jul 8, 2025

Copy link
Copy Markdown
Contributor

When deploying an MCP server and an agent in Kubernetes we found out that when we wanted to use service accounts as agent identity and set up the operator authz to validate the JWTs, we couldn't fetch the JWKs from the in-cluster endpoint. That was because Kubernetes certificates were not trusted and the caller must authenticate (might be with its own SA) to fetch the JWKs.

These patches add new options to specify the CA bundle that should be trusted when fetching the JWKs, a file containing an authentication token and whether to allow fetching JWKs from a private address. The options are exposed by the operator in its CRDs, with a convenience boolean option (enabled by default) for running in-cluster.

Comment thread pkg/networking/http_client.go Resolved
JAORMX
JAORMX previously approved these changes Jul 8, 2025
@jhrozek

jhrozek commented Jul 10, 2025

Copy link
Copy Markdown
Contributor Author

I didn't merge in time because I didn't want to disturb a release which resulted in conflicts :-/

sorry!

@jhrozek
jhrozek merged commit 3f86462 into main Jul 11, 2025
@jhrozek
jhrozek deleted the jwks-ca-bundle branch July 11, 2025 08:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants