Repository navigation
[Cherry-pick to branch-1.3] [#13967] fix(spark-connector): Reject Kerberos for routed Iceberg REST catalogs (#13968) - #14034
Merged
Conversation
…uted Iceberg REST catalogs (#13968) ### What changes were proposed in this pull request? - With `spark.sql.gravitino.authType=token`, pass the bearer token to the routed Iceberg REST client as the `token` property. - With `kerberos`, fail at catalog initialization with an error naming the auth mode. - Explicit `rest.auth.*`, `token` or legacy OAuth2 properties keep priority and disable both. ### Why are the changes needed? Routed Iceberg catalogs reach IRC without credentials under token auth and fail with 401, and Kerberos fails silently. Fix: #13967 ### Does this PR introduce _any_ user-facing change? Yes. Token is reused for IRC, and a Kerberos session with a routed Iceberg catalog and no explicit `rest.*` auth now fails at initialization. Docs are updated. No new property keys. ### How was this patch tested? Added unit tests in `TestIcebergRestOAuthConfig`.
The token auth type (#12570) is not in branch-1.3, so only the Kerberos fail-fast is backported.
Author
Code Coverage Report
Files
|
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.
Cherry-pick Information:
branch-1.3tokenauth type ([#12569] feat(spark-connector): add token auth and key caches on identity #12570) is not in branch-1.3. Only the Kerberos fail-fast is backported.