Repository navigation
P10: Port ACL dry-run mode to ZooKeeper 3.8.7 - #186
Merged
Merged
Conversation
This was referenced Nov 23, 2026
bellatrix007
force-pushed
the
adbansal/zk-387-p10-acl-dry-run
branch
from
November 27, 2026 07:17
990d1d5 to
6502f76
Compare
arkmish
reviewed
Dec 1, 2026
bellatrix007
force-pushed
the
adbansal/zk-387-p10-acl-dry-run
branch
from
December 3, 2026 05:09
95f52ba to
7ceb89f
Compare
arkmish
approved these changes
Dec 3, 2026
arkmish
left a comment
There was a problem hiding this comment.
LGTM. Thanks for addressing the comments.
Base automatically changed from
adbansal/zk-387-p09-spiffe-identity
to
li-dev/base-3.8.7
December 3, 2026 09:03
Port PR163 behavior from branch-3.6 onto the reviewed P09 identity APIs. Preserve enforcing and bypass modes; test isolated configuration parsing, ACL evaluation, credential-safe warnings, and forwarded request identity/session context. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The JVM property is compared literally, while the existing configuration parser trims values before setting it. No runtime or test changes. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Clarify the READ permission check for existing znodes when upgrading from 3.6.3-35 to 3.8.7. Describe the conditional WARN-volume risk without claiming a measured operation mix. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Exercise existing-node exists requests in enforcing, bypass and dry-run mode. Isolate the dry-run READ warning and verify authorized and missing-node requests do not emit it. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
bellatrix007
force-pushed
the
adbansal/zk-387-p10-acl-dry-run
branch
from
December 3, 2026 09:04
7ceb89f to
9463340
Compare
Require an explicit successful sync as well as a zero client exit status. Preserve per-direction client/server diagnostics and upload them on failures. Add hermetic harness regression tests. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This reverts commit 281f05e at the user request. Restore the prior CI harness and workflow; keep the retained diagnostic evidence outside the repository. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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 #163 to ZooKeeper 3.8.7 on
li-dev/base-3.8.7, following the merged #185. Addzookeeper.skipACL=dryrun: evaluate ACLs, log checks that would end in NOAUTH, and allow the request to proceed. This is not a no-write simulation; allowed requests execute normally.no(default) and unrecognized values enforce ACLs.yesretains the existing bypass without ACL evaluation.dryrunretains matching/evaluation but replaces the final NOAUTH rejection with a WARN. Other error/check paths are not broadly suppressed.Diagnostics include path, requested permission, session ID, client address, and scheme:user descriptions of client identities and node ACLs. Standard digest password hashes and unrecognized-provider credential strings are omitted. Forwarded requests retain their request session ID and P09 identity context even when there is no local client connection.
Differences from
branch-3.6at9d245933379762dc83e8f44934ac1d80b7c55897:zoo.cfgparser, and to clarify initialization timing and warning contents.Tests
Added/adapted
ClientSkipACLDryRunTestandClientTest; the existingClientSkipACLTestalso runs the shared operation checks. The shared checks include existing-nodeexists()in enforcing, bypass and dry-run modes. The dry-run diagnostics test isolates the unauthorizedexists()READ warning and checks that authorized and missing-node calls do not produce it.Earlier matrix validation, before the additional
exists()assertions: selected baseline and ACL/identity/diagnostic/quota/audit suites passed 95 cases on each of Java 8/11/17: 285 passed executions, zero failures/errors/skips/automatic reruns.Eleven fresh-JVM configuration cases per JDK verify default/enforcing, bypass and dry-run modes, invalid/case/whitespace values, and class-initialization timing. Provider call counts distinguish evaluation from bypass; WARN assertions distinguish a would-be denial from an allowed ACL check.
Real local client operations exercise enforcing and permissive modes. Typed SPIFFE/legacy checks and component forwarding tests verify matching direction, missing context and session diagnostics. Standard digest hashes and unknown credential strings are checked for omission from the new diagnostics.
The earlier Java 11 assembly/static checks and cross-JDK matrix used runtime/test baseline
763d2ea2;990d1d54added the configuration-whitespace documentation clarification.exists()follow-up: 4 focused Java 11 executions passed, zero failures/errors/skips/reruns, using separate JVMs for the three ACL-mode classes. RAT, Checkstyle including tests and server SpotBugs passed. The full suite and Java 8/17 matrix were not rerun for this test-only change.Full upstream/hosted CI, deployed clients, real mixed-version ensembles and rollout qualification remain separate.
Local code review completed
Changes that Break Backward Compatibility (Optional)
zookeeper.skipACL=dryrunpreviously behaved like an unrecognized value and enforced ACLs. It now intentionally permits requests that fail ACL authorization. Both permissive modes leave ACL-guarded operations open; dry-run is not an enforcement mode.zoo.cfgparser trims configuration values first.Documentation (Optional)
Updated
zookeeperAdmin.mdwith mode values/defaults, the permissive nature of dry-run, diagnostic fields, initialization timing, JVM-versus-configuration-file whitespace handling, and the upgrade-specificexists()READ-check warning-volume risk.🤖 Generated with GitHub Copilot CLI
Tests generated with unit-tests plugin