-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
feat(conduit): Add conduit auth functions #101729
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
IanWoodard
wants to merge
4
commits into
master
from
ianwoodard/infreng-97-create-helper-functions-for-generating-tokens-and-channel
Open
feat(conduit): Add conduit auth functions #101729
IanWoodard
wants to merge
4
commits into
master
from
ianwoodard/infreng-97-create-helper-functions-for-generating-tokens-and-channel
Conversation
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
@github-actions
github-actions
bot
added
the
Scope: Backend
Automatically applied to PRs that change backend components
label
Oct 17, 2025
cursor[bot]
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@ ## master #101729 +/- ## =========================================== + Coverage 80.97% 80.98% +0.01% =========================================== Files 8700 8705 +5 Lines 386852 387374 +522 Branches 24514 24514 =========================================== + Hits 313236 313719 +483 - Misses 73268 73307 +39 Partials 348 348 |
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.
Adds backend helpers for generating Conduit authentication credentials. Conduit is Sentry's real-time delivery platform that enables scalable streaming from backend services to frontend clients.
This PR provides the foundational utilities needed for API endpoints to generate Conduit credentials (JWT tokens and channel IDs) that the conduit-client will use to establish streaming connections.
Changes
New utilities in
src/sentry/conduit/auth.py
generate_channel_id()
: UUID4 generation for stream identifiersgenerate_conduit_token()
: RS256 signed JWT with org_id, channel_id, and 10 minute expirationget_conduit_credentials()
: Returns{url, token, channel_id}
dict for the clientConfiguration
src/sentry/conf/server.py
CONDUIT_PRIVATE_KEY
(required): RSA private key for JWT signingCONDUIT_GATEWAY_URL
: Gateway base URLCONDUIT_JWT_ISSUER
/CONDUIT_JWT_AUDIENCE
: JWT claimsNote: Requires
CONDUIT_PRIVATE_KEY
environment variable to be set before use.