mirror of
https://github.com/openziti/ziti.git
synced 2026-09-11 13:29:03 +00:00
4a8b63d99d
KeySet() formatted a peer controller's SHA1 cert fingerprint with %s instead of %x, producing an undecodable raw-byte kid in the /oidc/keys JWKS response for every entry sourced from GetPeerSigners(). The error-path logging four lines below this already used %x correctly. In a multi-controller raft HA deployment, each controller signs OIDC/OTT JWTs with its own root ctrl-plane-identity key. A JWKS lookup landing on a controller other than the signer sees the true signer's key advertised under this corrupt kid and cannot match it against the token's kid header, failing verification. Fixes #4067 Co-authored-by: Björn Mage <4495532+bjornmage@users.noreply.github.com>