feat(nats): present projected SA-token as NATS bearer (B4)#2
Merged
Conversation
The velocity proxy plugin's NatsHandler connected with no credentials, so the v2.2 auth-callout broker rejects it once deny-by-default (B5) lands. Add a tokenSupplier that reads the projected grounds-services SA-token from GROUNDS_TOKEN_FILE and presents it as the NATS bearer (CONNECT auth_token). Re-read per (re)connect for kubelet rotation; skipped when absent so local/dev still connects. Bump jnats 2.21.1 → 2.25.3 (tokenSupplier needs >= 2.21.4). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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.
What
The velocity proxy plugin's
NatsHandlerconnected to NATS with no credentials → the v2.2 auth-callout broker rejects it once deny-by-default (B5) lands. Add atokenSupplierreading the projectedgrounds-servicesSA-token fromGROUNDS_TOKEN_FILEas the NATS bearer (CONNECTauth_token).tokenSupplierneeds ≥ 2.21.4).Completes the bearer wiring for the last velocity in-process NATS client. Same pattern as service-config (#30), plugin-chat (#1), plugin-config (#12). plugin-proxy handles
proxy.system.*+proxy.transfer.*.🤖 Generated with Claude Code