Repository navigation
feat(balance): add --balance.token for authenticated gRPC endpoints - #62
Merged
Merged
Conversation
Add a --balance.token flag whose value is sent as x-token gRPC metadata on every balance query to each consensus RPC URL, as required by DA-proxy endpoints. It is separate from --celestia-token so the DA token is not sent to third-party consensus nodes. The token is threaded from the flag through balance.NewMetricsExporter into cosmos.NewClient. Tests cover the header being sent and omitted, and the README documents the new flag. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
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.
Adds a
--balance.tokenflag. Its value is sent asx-tokengRPC metadata on every balance query to every URL in--balance.consensus-rpc-urls, which DA-proxy gRPC endpoints require. It is kept separate from--celestia-tokenso the DA token isn't sent to third-party consensus nodes. The token is also sent over plaintexthttp://endpoints; the code notes switching to per-RPC credentials with TLS enforcement as the upgrade path.cosmos.NewClientandbalance.NewMetricsExportertake the new token argument. A new test checks the header is sent only when a token is set, and the README documents the flag.🤖 Generated with Claude Code