SOLR-18659: Secure embedded ZooKeeper automatically when SSL is on #5329
All Vouch review confidence checks passed
Residual risk 0.23 = Change Risk (0.43) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.43 · 382 lines diff across 4 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.356
Shallow Review Depth
shallow_review_depth
0.344
Real PR Conversation Timeline
1 comments
"Review active on #5329"
general
weight: 0.35
nick-boss-tech
https://issues.apache.org/jira/browse/SOLR-18659
Summary
-z/--zk-host), the embedded ZooKeeper's client port now accepts TLS only. Solr configures this in Java at startup, in memory: theclientPortbecomes a NettysecureClientPortusing Solr's HTTPS keystore, truststore, and SSL credential providers.zoo.cfgand the include file are not rewritten, and no password files are created. This is a behavior change on upgrade for any such deployment, with bothbin/solrandbin/solr.cmd.bin/solrCLI commands must add-Dzookeeper.client.secure=true(toSOLR_OPTSandSOLR_TOOL_OPTSrespectively); Solr then derives thezookeeper.ssl.client settings from thejavax.net.ssl.ones.ZookeeperStatusHandler(the Admin UI's ZooKeeper status page, SOLR-14027) now uses a TLS socket for its four-letter-word commands whenzookeeper.client.secureis set. Two known limitations are left as TODOs: its cached SSL context isn't rebuilt when a keystore or truststore is replaced, and hostnames the JDK rejects for SNI (such aszoo_1) fail the request.NodeConfig's startup ZooKeeper connection check, since that ZooKeeper isn't running yet. This makes-DzkHost, including a chroot, usable with the embedded ZooKeeper; previously that startup always timed out.SecurityAwareZkACLProvidernow handles the root namespace (no chroot), with a new unit test.bin/solr start -e secureexample and the securing-Solr tutorial (from #5306) rely on the automatic TLS instead of configuring it by hand, and use a/solrZooKeeper chroot.Originally tracked under SOLR-18527 (now closed/merged for the base secure example); this follow-on work is tracked under SOLR-18659.
Test plan
test_secure_example.batspasses: the Admin UI ZooKeeper status endpoint against the TLS-only embedded ZooKeeper, the/solrchroot, ACL checks, and a plainbin/solr start -cwith HTTPS and no-zSolrZkServerTest,SSLConfigurationsTest,ZookeeperSSLContextSupplierTest,NodeConfigZookeeperTlsTest,ZookeeperStatusHandlerSocketTest,SecurityAwareZkACLProviderTest-DzkHostchanges)bin/solr.cmdwith HTTPS and embedded ZooKeeper (untested)🤖 Generated with Claude Code
https://claude.ai/code/session_018RwsEje8u9apx3SRzissZm