Skip to content

JWKS with new kids gets not loaded after a change of JWKS contents #36

@hofmannmich

Description

@hofmannmich

We rotate our JWKS entry from time to time. On dev-stage we rotate every 4h (just for testing purposes). Traefik with this plugin was installed static (not loading during startup). And the configuration of JWKS is set to load on startup (default value).

After rotating the JWKs in JWKS with changed kid, the plugin does not reload the new JWK from the endpoint. I added the output of the changed JWKS response during time change.

new contents:
dev-10.03.2025-13:26:00.output.json

old contents:
dev-10.03.2025-11:23:52.output.json

remark: some of the JWK in the two output files stays the same (also only for testing purposes). Only one JWKS gets inserted (Eb7byZME1IbSn9MZay8_04D5s-02i68TGxwk_lEyO0A) and one gets rotated out (5dqj7bThbhAW1HF7GDGl5OBKOfUon5Q1umS5tD5WbfQ).

After changed JWKS contents on our IDP: every request gets blocked with 401 by the plugin. And I can not see a reload of the new kids in the log as it was done in the startup-sequence of treafik.

After restarting treafik the new contents of JWKS will be fetched and printed to log. And the request will be allowed by the plugin (no more 401).

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions