Repository navigation
P03: Port X509 and znode-group ACL support to ZooKeeper 3.8.7 - #177
Merged
Merged
Conversation
1 task
1 task
arkmish
reviewed
Nov 24, 2026
arkmish
reviewed
Nov 24, 2026
arkmish
left a comment
There was a problem hiding this comment.
Provenance notes for P03, compared with the LinkedIn release branch-3.6 (3.6.3-35) and Apache release-3.8.7. They cover three things: Apache 3.8.7 lines this PR changes, LinkedIn behaviour that is not carried over (checked through P14/#190), and LinkedIn comments that were dropped. Items owned by later PRs in the stack (P04/P09/P10/P11) are left for those PRs.
Reconcile final branch-3.6 P03 behavior with PR #132, excluding SPIFFE and later patch groups. Preserve upstream TLS policy and READ/watch authorization, adapt internal watch callbacks, safely publish lazy state, and restrict open-read ACLs to automatically replaced ACLs. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Apply configured READ prefixes within the existing group-processing gates, independently of per-writer ownership ACL replacement. Cover retained ACL validation and secure/unified TLS create and setACL behavior. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Revert six added volatile modifiers and restore the source rationale and SpotBugs suppressions. Preserve the two originally volatile fields and required 3.8.7 adaptations. Remove the obsolete volatility-specific test while retaining configuration-prefix coverage. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Restore fork certificate helper signatures and mapping-test ordering and isolation. Restore explanatory Netty and ACL comments, and clarify the configuration-key parsing paths. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
bellatrix007
force-pushed
the
adbansal/zk-387-p03-acl
branch
from
November 27, 2026 06:10
034bdaf to
6663ac2
Compare
Use the bound IPv4 endpoint and a matching certificate SAN for TLS tests. Close the previous read-only test client and isolate its replacement watcher. Wait for the enqueue metric before asserting the throttler request count. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
arkmish
approved these changes
Dec 3, 2026
arkmish
left a comment
There was a problem hiding this comment.
LGTM. Thanks for addressing the comments.
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.
Description
Port configurable SAN identities, watched URI/domain mappings, group/superuser authorization, automatic ACLs and dedicated-domain filtering above #175. Preserve
branch-3.6's volatile/non-volatile field declarations, lazy-initialization rationale and SpotBugs suppressions, while retaining required upstream TLS/watch adaptations.Preserve configured open-read semantics on create and setACL: matching paths receive
world:anyoneREAD even when writers retain supplied ownership ACLs, subject to the existing group-provider, automatic/allowlist and non-dedicated gates.Tests
e2eb2356, Java 11test checkstyle:checkpassed 20 existing cases acrossRequestThrottlerTest,ReadOnlyModeTestandX509GroupAclIntegrationTest, with no failures/errors/skips or automatic retries. Checkstyle included test sources. The JVM preferred IPv6 addresses with IPv4 forcing disabled; the TLS fixture still uses its explicitly bound IPv4 endpoint and retains hostname verification.7278cdf7): selected Java 11clean testrun passed 36 tests, with no failures/errors/skips. Selection:X509AuthenticationConfigTest,X509ZNodeGroupAclProviderTest,ZkClientUriDomainMappingHelperTest,TestFixupACLandX509GroupAclIntegrationTest. RAT, Checkstyle including test sources, and SpotBugs passed.3492f002:clean verifypassed 103 tests per JDK (8/11/17), 309 total, with no failures/errors/skips. Selection: 27 established baseline cases plusX509AuthTest,X509AuthenticationConfigTest,TestFixupACL,X509ZNodeGroupAclProviderTest,ZkClientUriDomainMappingHelperTest,X509GroupAclIntegrationTest,PersistentWatcherACLTest,ACLTestandClientSSLTest. Java 11 assembly, RAT, Checkstyle and SpotBugs also passed at that revision. Java 8/17 and assembly were not rerun for7278cdf7.3492f002and7278cdf7used process-local-Djava.net.preferIPv4Stack=true; initial Java 8/11 hostname connection timeouts were diagnosed and retained. IPv6 connectivity remains unqualified.Changes that Break Backward Compatibility (Optional)
Automatic ACL replacement, configured public READ and dedicated-domain filtering are opt-in access policies. Feature defaults and wire formats are unchanged.
The group-ACL X509 provider now follows Apache 3.8.7 password-file handling: nonempty
zookeeper.ssl.keyStore.passwordPath/zookeeper.ssl.trustStore.passwordPathoverride the corresponding inlinezookeeper.ssl.keyStore.password/zookeeper.ssl.trustStore.passwordvalues. Password-file read failures propagate asIllegalStateException, without falling back to inline passwords. With no password path configured, inline-password behavior is unchanged.Documentation (Optional)
The admin guide describes configuration, defaults, mapping-root lifecycle and open-read behavior with retained ownership ACLs.
🤖 Generated with GitHub Copilot CLI