Repository navigation
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #20959 +/- ##
============================================
- Coverage 80.86% 76.56% -4.30%
+ Complexity 36130 34311 -1819
============================================
Files 2590 2590
Lines 147743 147743
Branches 18253 18253
============================================
- Hits 119473 113125 -6348
- Misses 19993 26820 +6827
+ Partials 8277 7798 -479
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
This branch has not been deployed
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.
Describe the issue this Pull Request addresses
Closes #20605.
The Helm-deployed Spark Connect endpoint accepts anonymous, plaintext connections by default. This PR lets operators require a shared bearer token and use TLS without changing the local quickstart.
Summary and Changelog
auth.existingSecretto supply the token to Spark 4.1.3. Spark's built-in authentication interceptor validates it on each RPC; no custom interceptor or proxy-side token check is needed.tls.existingSecretto terminate TLS in an HAProxy sidecar. The Service routes clients to HAProxy, and Spark listens only on Pod loopback. Operators with an existing gRPC gateway can omit the sidecar, forward the bearer header, and protect the gateway-to-Spark connection separately.Impact
Both features are opt-in. With neither Secret configured, the anonymous quickstart behaves as before. The token controls access to the Spark Connect endpoint; it does not provide per-user authorization or tenant isolation. Authenticated clients still use the driver's storage credentials. Spark UI and History Server access are unchanged.
Risk Level
Medium. A misconfigured Service route, certificate, or credential could either block legitimate clients or leave an unintended plaintext path.
SELECT 1through the TLS sidecar. PySpark rejected an untrusted certificate, plaintext gRPC was rejected, and missing or incorrect tokens returnedUNAUTHENTICATED.1over verified TLS using a saved database connection. The database API did not expose the token when the connection was read back.Documentation Update
Updated the Spark Connect chart README with both TLS deployment options, Secret configuration, and verification steps. The Agent Gateway, Superset, and Zeppelin guides explain how each client supplies the token and trusts the endpoint certificate.
Contributor's checklist