able-cartoon-45682
06/24/2025, 1:04 PMOAUTH2_EXPERIMENTAL_JWT_GRANT_VALIDATION_STRATEGY=jwt
OAUTH2_EXPERIMENTAL_JWT_GRANT_ASSERT_ISSUER=<https://kubernetes.default.svc.cluster.local>
OAUTH2_EXPERIMENTAL_JWT_GRANT_HOOK_URL=<http://idp.172.18.0.3.nip.io/jwt-bearer>
OAUTH2_EXPERIMENTAL_JWT_GRANT_JWKS_URLS=<https://kubernetes.default.svc.cluster.local/openid/v1/jwks>
The error message I get from Hydra is:
time=2025-06-24T13:01:13Z level=info msg=access denied audience=application error=map[debug:Unable to locate the resource message:invalid_grant reason:No public JWK was registered for issuer "<https://kubernetes.default.svc.cluster.local>" and subject "system:serviceaccount:demo:demo-account", and public key is required to check signature of JWT in "assertion" request parameter. stack_trace: ...
I cannot see any attempt to retrieve required material from https://kubernetes.default.svc.cluster.local/openid/v1/jwks, how can I register or ensure that this keys will get processed? Any solution is acceptable, pre-registering jwk or having hydra fetch them at runtime.