0
Let an integration rotate its own client secret, and accept GitHub Actions OIDC for release uploads
Source: getsentry/sentry#128745 · opened by @jeffwhelpley
Title: Let an integration rotate its own client secret, and accept GitHub Actions OIDC for release uploads Problem statement We upload source maps from GitHub Actions with a public integration: CI signs a jwt-bearer grant with the integration's client secret and gets an eight-hour installation token. That client secret is the one long-lived Sentry credential we hold, and we rotate it on a fixed cadence for SOC 2. Two gaps keep it a long-lived, human-rotated secret: 1. Self-rotation. POST /api/0/sentry-apps/{slug}/rotate-secret/ (added in #69015) accepts bearer tokens, but SentryAppRotateSecretPermission needs a token with org:write and an organization membership. The integration's own installation token has neither, because its proxy user has no OrganizationMember, so a rotation always needs a person with Manager or Owner. We tested this with an installation token on our integration and got a 403 at the scope gate. 2. Keyless CI uploads. #127086 added SENTRY_EXTRA_API_AU…
No pledges yet. Be the first to back this.
Comments
Similar requests
Allow locking a project to semver release ordering
0 votes · 0 comments
Release filtering does not work as expected in Discover
0 votes · 0 comments
"Open this line in GitHub" at specific commit with GitHub integration
0 votes · 0 comments
Enable multipart/form-data POST Request Monitoring with Binary File Upload (e.g., Audio/Image)
0 votes · 0 comments
Enable PR comments to be triggered via GitHub Actions / CLI
0 votes · 0 comments
No comments yet.