Repository navigation
Widen revoked_token.jti to store external-issuer token identifiers - #73562
Merged
Merged
Conversation
pierrejeambrun
marked this pull request as ready for review
September 23, 2026 11:12
pierrejeambrun
requested review from
XD-DENG,
ashb and
ephraimbuddy
as code owners
September 23, 2026 11:12
ashb
approved these changes
Sep 23, 2026
The column stored the JWT jti recorded when a token is revoked, sized at 32 characters to fit Airflow's own uuid4().hex. External identity providers accepted via [api_auth] trusted_jwks_url mint longer jti claims -- RFC 4122 UUIDs are 36 characters -- which overflow the column and raise a DataError on databases that enforce length (PostgreSQL, MySQL), so those tokens could not be recorded. Widening to 255 fits any realistic identifier while staying within the MySQL primary-key index limit.
pierrejeambrun
force-pushed
the
widen-revoked-token-jti
branch
from
September 23, 2026 11:14
e76c099 to
93edebf
Compare
potiuk
approved these changes
Sep 23, 2026
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.
The
revoked_token.jticolumn stores the JWTjti(token identifier) recorded when a token is revoked. It was sizedString(32)to fit Airflow's ownuuid4().hexidentifiers.External identity providers accepted through
[api_auth] trusted_jwks_urlmint longerjticlaims — RFC 4122 UUIDs are 36 characters, and other issuers use longer opaque identifiers. These overflow the 32-character column and raise aDataErroron databases that enforce length (PostgreSQL, MySQL), so those tokens could not be recorded in the table.This widens the column to
String(255), which fits any realistic identifier while staying within the MySQL primary-key index limit, and adds the corresponding migration.Was generative AI tooling used to co-author this PR?
Generated-by: Claude Code (Opus 4.8) following the guidelines