Skip to content

Improve runner auth error handling - #44

Merged
BotCoder254 merged 1 commit into
mainfrom
feat/event-driven-orchestration
Jul 17, 2026
Merged

Improve runner auth error handling#44
BotCoder254 merged 1 commit into
mainfrom
feat/event-driven-orchestration

Conversation

@BotCoder254

Copy link
Copy Markdown
Owner

Tighten and clarify runner authentication and error messages. Parse the Authorization header robustly (bearer_credential) and distinguish missing_token, empty_token, invalid_token and bootstrap_expired categories; add unit tests. Fail fast on set-but-blank RUNNER_TOKEN (token_from_env) so runners exit with actionable guidance instead of looping on unrecoverable 401s. Provide per-category remediation text in the runner WS client (auth_failure_help). Update docs (docs/deploy-runner.md and CLAUDE.md) to explain hosted-runner behavior and 401 reasons.

Tighten and clarify runner authentication and error messages. Parse the Authorization header robustly (bearer_credential) and distinguish missing_token, empty_token, invalid_token and bootstrap_expired categories; add unit tests. Fail fast on set-but-blank RUNNER_TOKEN (token_from_env) so runners exit with actionable guidance instead of looping on unrecoverable 401s. Provide per-category remediation text in the runner WS client (auth_failure_help). Update docs (docs/deploy-runner.md and CLAUDE.md) to explain hosted-runner behavior and 401 reasons.
@netlify

netlify Bot commented Jul 17, 2026

Copy link
Copy Markdown

Deploy Preview for overup-app ready!

Name Link
🔨 Latest commit 9f188c0
🔍 Latest deploy log https://app.netlify.com/projects/overup-app/deploys/6a5a23218c8991000823f077
😎 Deploy Preview https://deploy-preview-44--overup-app.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@vercel

vercel Bot commented Jul 17, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
overup Ready Ready Preview, Comment Jul 17, 2026 12:42pm

@coderabbitai

coderabbitai Bot commented Jul 17, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@BotCoder254, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 29 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Free

Run ID: 4df86ecd-784b-4fba-a26e-1bf47fac43e4

📥 Commits

Reviewing files that changed from the base of the PR and between dc54f46 and 9f188c0.

📒 Files selected for processing (5)
  • CLAUDE.md
  • backend/src/handlers/runner_ws.rs
  • docs/deploy-runner.md
  • runner/src/main.rs
  • runner/src/ws.rs

Note

🎁 Summarized by CodeRabbit Free

Your organization is on the Free plan. CodeRabbit will generate a high-level summary and a walkthrough for each pull request. For a comprehensive line-by-line review, please upgrade your subscription to CodeRabbit Pro by visiting https://app.coderabbit.ai/login.

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

@amazon-q-developer amazon-q-developer Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR successfully improves runner authentication error handling with robust bearer credential parsing and clear per-category remediation guidance. The implementation correctly handles HTTP protocol details (RFC 9110 compliance for case-insensitive scheme matching and OWS stripping), adds fail-fast validation for blank tokens at runner boot, and provides comprehensive test coverage. The changes are security-conscious, well-documented, and follow established patterns in the codebase. All tests verify the correct behavior for edge cases including the outage regression scenario. Ready to merge.


You can now have the agent implement changes and create commits directly on your pull request's source branch. Simply comment with /q followed by your request in natural language to ask the agent to make changes.

@BotCoder254
BotCoder254 merged commit b751519 into main Jul 17, 2026
8 checks passed
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