[KYUUBI #7348] Separate the principal and keytab used for ZooKeeper authentication between the service and the engine#7349
Conversation
…eper authentication between the service and the engine
docs/configuration/settings.md
Outdated
| | kyuubi.ha.zookeeper.engine.auth.principal | <undefined> | Kerberos principal name that is used for the engine's ZooKeeper authentication. | string | 1.12.0 | | ||
| | kyuubi.ha.zookeeper.engine.auth.keytab | <undefined> | Location of the Kyuubi server’s keytab that is used for the engine's ZooKeeper authentication. | string | 1.12.0 | |
There was a problem hiding this comment.
If they are unset, what are used by default? Would you document?
There was a problem hiding this comment.
Thank you for your review.
I have added the document for fallback of kyuubi.ha.zookeeper.engine.auth.principal and kyuubi.ha.zookeeper.engine.auth.keytab in 20b6f0d.
There was a problem hiding this comment.
I realized that instead of updating it manually, I should use dev/gen/gen_all_config_docs.sh, so I’ve update it.
| }) | ||
| Configuration.setConfiguration(jaasConf) | ||
| case _ => | ||
| } |
There was a problem hiding this comment.
The indents look incorrect. Would you keep the current indents so that reviewers can easily review the diff.
There was a problem hiding this comment.
I set it up according to IntelliJ IDEA Setup Guide — Apache Kyuubi, so I understand that this indentation is the result of automatic formatting. (It’s possible that I misconfigured something, though.)
Do I need to intentionally disable this and adjust it manually?
f2c2693 to
84da062
Compare
…keeper.engine.auth.principal` and `kyuubi.ha.zookeeper.engine.auth.keytab`
84da062 to
20b6f0d
Compare
kyuubi-ha/src/main/scala/org/apache/kyuubi/ha/HighAvailabilityConf.scala
Show resolved
Hide resolved
kyuubi-ha/src/main/scala/org/apache/kyuubi/ha/HighAvailabilityConf.scala
Outdated
Show resolved
Hide resolved
|
Hi @LamiumAmplexicaule would you fix the test failure https://github.com/apache/kyuubi/actions/runs/22996851002/job/66896343535?pr=7349#step:7:429? It looks related to the patch. |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #7349 +/- ##
======================================
Coverage 0.00% 0.00%
======================================
Files 698 698
Lines 43657 43667 +10
Branches 5896 5896
======================================
- Misses 43657 43667 +10 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
…iguration` on zookeeper auth test
Why are the changes needed?
The engine and the service are separate components, so their authentication principal and keytab should also be separated.
Close: #7348
How was this patch tested?
Unit tests.
Was this patch authored or co-authored using generative AI tooling?
No.