Skip to content

fix(celestia): send auth token on block timestamp lookups - #55

Merged
auricom merged 2 commits into
mainfrom
recur/35-celestia-token-auth-header
Oct 20, 2026
Merged

auricom merged 2 commits into
mainfrom
recur/35-celestia-token-auth-header

Conversation

@auricom

@auricom auricom commented Oct 20, 2026

Copy link
Copy Markdown
Collaborator

GetBlockTimestamp makes a raw HTTP request that bypassed the JSON-RPC client, so it never sent the configured --celestia-token. Against a celestia-node with auth enabled (the default), these lookups failed. The client now stores the token and sets Authorization: Bearer <token> on that request when a token is configured.

Adds a test covering the header with and without a token, and updates the README description of --celestia-token.

🤖 Generated with Claude Code

GetBlockTimestamp issued a raw HTTP request without the Authorization
header, so it failed against celestia-nodes with auth enabled. Store the
token on the client and send it as a Bearer token, and add a test
covering the header. Clarify the --celestia-token flag in the README.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: ff129707-bb99-48f9-b9a1-d47bb352f3ac
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant