Repository navigation
fix(chart): keep keys across upgrades and serve metrics from a dedicated listener - #1406
Merged
Merged
Conversation
Every render generated new random keys, so each helm upgrade rotated them, invalidating every token and breaking publishers. Reuse the keys stored in the release Secret, and hash the Secret's inputs rather than its render.
The metrics Service targeted the admin API, which only listens on localhost: making it work meant binding the admin API to the pod network, which exposes /load, /config and /stop.
With the chart's catch-all SERVER_NAME, the hub derives the token audience from the client's Host. resourceIdentifier and publicUrls pin it for hubs reachable under any Host, such as several hubs trusting one issuer.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
lookup, so ahelm upgradeno longer rotates them, invalidating every token. The checksum annotation hashes the Secret's inputs rather than its render./load,/configand/stop, to the pod network.resourceIdentifierandpublicUrlsvalues pin the hub identity. With the chart's catch-allSERVER_NAME, the hub otherwise derives the token audience from the client'sHost.Notes
resourceIdentifierandpublicUrlsare opt-in: deriving them from the ingress hosts would makekubectl port-forwardand NodePort access answer 421.