Skip to content

fix(github): add write credential correlation telemetry - #1654

Open
sentry-junior[bot] wants to merge 3 commits into
mainfrom
fix/github-write-token-correlation-telemetry
Open

fix(github): add write credential correlation telemetry#1654
sentry-junior[bot] wants to merge 3 commits into
mainfrom
fix/github-write-token-correlation-telemetry

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Aug 22, 2026

Copy link
Copy Markdown
Contributor

Intermittent GitHub write 403s after a successful installation-token mint are hard to diagnose because Junior does not correlate the token across mint and the rejected hop.

This keeps the change small:

  • log a short token fingerprint when an installation token is minted
  • attach the same fingerprint on sandbox.egress.upstream_auth.rejected

No retry and no other behavior change. After deploy, the next snuba push flake should show whether the rejected hop used the same token that was just minted.

Requested by David Cramer.

--

View Junior Session [Sentry]

Log a safe token fingerprint from mint through lease cache and outbound injection, and keep mint permissions/repositories on the issue path so intermittent git-receive-pack 403s can be correlated.

Co-Authored-By: David Cramer <david@sentry.io>
@vercel

vercel Bot commented Aug 22, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
junior-docs Ready Ready Preview Aug 22, 2026 5:40am

Request Review

Comment thread packages/junior/src/chat/credentials/token-fingerprint.ts Fixed
Use HMAC domain fingerprints for credential correlation and keep plugin.ts under the 1000-line limit.
@dcramer
dcramer marked this pull request as ready for review August 22, 2026 05:36
@github-actions github-actions Bot added the risk: medium PR risk score: medium label Aug 22, 2026
Keep only a mint fingerprint and the same fingerprint on upstream auth rejection. Drop the extra lease/injection events and mint-envelope logging.

Co-Authored-By: David Cramer <david@sentry.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: medium PR risk score: medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant