-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add option to log but not enforce connection filtering, reset proposal stats through Admin server API #112
Add option to log but not enforce connection filtering, reset proposal stats through Admin server API #112
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you can answer the test case related, thing, that will help to approve the change.
zookeeper-server/src/main/java/org/apache/zookeeper/server/admin/Commands.java
Outdated
Show resolved
Hide resolved
zookeeper-server/src/main/java/org/apache/zookeeper/server/auth/X509AuthenticationConfig.java
Show resolved
Hide resolved
zookeeper-server/src/main/java/org/apache/zookeeper/server/auth/X509AuthenticationConfig.java
Show resolved
Hide resolved
zookeeper-server/src/main/java/org/apache/zookeeper/server/quorum/QuorumPeerConfig.java
Show resolved
Hide resolved
...test/java/org/apache/zookeeper/server/auth/znode/groupacl/X509ZNodeGroupAclProviderTest.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for working on this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for working on this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall LGTM thanks for making this change.
@@ -377,28 +376,6 @@ public void parseProperties(Properties zkProp) throws IOException, ConfigExcepti | |||
backupConfigBuilder.setTimetableStoragePath(value); | |||
} else if (key.equals(BackupSystemProperty.BACKUP_TIMETABLE_BACKUP_INTERVAL_MS)) { | |||
backupConfigBuilder.setTimetableBackupIntervalInMs(Long.parseLong(value)); | |||
} else if (key.equals(X509AuthenticationConfig.SET_X509_CLIENT_ID_AS_ACL)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this is not correct then essentially we are doing lazy binding of these variables. Other way to fix this is fix these if blocks. I would suggest separate out this change into separate PR and test it independently and make sure "all" these fields are lazily bound in their getter methods.
zookeeper-server/src/main/java/org/apache/zookeeper/server/auth/X509AuthenticationConfig.java
Show resolved
Hide resolved
…ion FIPS_mode Modifications: - remove the block, as it is used only for debug More details here: https://issues.apache.org/jira/browse/ZOOKEEPER-4641 Author: Enrico Olivelli <[email protected]> Reviewers: Andor Molnar <[email protected]>, Chris Nauroth <[email protected]>, Mate Szalay-Beko <[email protected]> Closes apache#1951 from eolivelli/fix/ZOOKEEPER-4641
Description
X509ZNodeGroupAclProvider.enforceDedicatedDomain
is false and a client with ID not part of the corresponding dedicated domain tries to connect, ZK server logs a warning but allows the connection to be established. WhenX509ZNodeGroupAclProvider.enforceDedicatedDomain
is true, ZK server disconnects the connection (current and default behavior).zookeeper.X509ZNodeGroupAclProvider
related properties from zoo.cfg.zoo.cfg
line,X509ZNodeGroupAclProvider.setX509ClientIdAsAcl=true
X509AuthenticationConfig.SET_X509_CLIENT_ID_AS_ACL
is equal tozookeeper.X509ZNodeGroupAclProvider.setX509ClientIdAsAcl
, butkey
isX509ZNodeGroupAclProvider.setX509ClientIdAsAcl
(withoutzookeeper.
).X509ZNodeGroupAclProvider
and usage of associated setters (like in the aboveif
block) was never being used so far.else
block below to setX509ZNodeGroupAclProvider.setX509ClientIdAsAcl
from zoo.cfg aszookeeper.X509ZNodeGroupAclProvider.setX509ClientIdAsAcl
System property, which is then read by associated getters.Tests
Dedicated domain =
DomainX