fix(event-bus): add diagnostic logging for auth flow in event delivery#2523
Merged
fix(event-bus): add diagnostic logging for auth flow in event delivery#2523
Conversation
Add 11 targeted [EventBus:Debug] logs across the event bus → binding auth chain to diagnose "Streamable HTTP error" failures during async event delivery. Logs trace org context, JWT permissions, membership lookups, and downstream token state without exposing full secrets. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Contributor
🧪 BenchmarkShould we run the Virtual MCP strategy benchmark for this PR? React with 👍 to run the benchmark.
Benchmark will run on the next push after you react. |
Contributor
Release OptionsShould a new version be published when this PR is merged? React with an emoji to vote on the release type:
Current version: Deployment
|
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.
Summary
[EventBus:Debug]diagnostic logs across the event bus → binding auth chain to diagnose "Streamable HTTP error" failures during async event deliverynotify.ts,headers.ts,outbound/index.ts,runtime/index.ts,runtime/bindings.ts,context-factory.tsWhat to look for in logs
orgId: "NONE"anywhere → org context is lost in the chainpermissionKeysmissing the BigQuery connection ID → JWT permissions don't grant accessdownstream tokenexpired with no refresh → OAuth token is deadJWT membership SKIPPED→ second-hop auth has no role, which may block accessTest plan
grep "EventBus:Debug"and verify the expected log sequence appears🤖 Generated with Claude Code
Summary by cubic
Adds focused [EventBus:Debug] logs to the event-bus → bindings auth chain to diagnose "Streamable HTTP error" during async event delivery. Traces org context, permission keys, membership results, token issuance/refresh state, and outbound header keys (tokens truncated; no secrets).
Written for commit 0f1645a. Summary will update on new commits.