Author: hdeng Date: Tue May 5 17:29:23 2015 New Revision: 1677867 URL: http://svn.apache.org/r1677867 Log: ZOOKEEPER-2153 X509 Authentication Documentation (Ian Dimayuga via hdeng) Modified: zookeeper/trunk/CHANGES.txt zookeeper/trunk/src/docs/src/documentation/content/xdocs/zookeeperAdmin.xml zookeeper/trunk/src/docs/src/documentation/content/xdocs/zookeeperProgrammers.xml Modified: zookeeper/trunk/CHANGES.txt URL: http://svn.apache.org/viewvc/zookeeper/trunk/CHANGES.txt?rev=1677867&r1=1677866&r2=1677867&view=diff ============================================================================== --- zookeeper/trunk/CHANGES.txt (original) +++ zookeeper/trunk/CHANGES.txt Tue May 5 17:29:23 2015 @@ -129,6 +129,9 @@ IMPROVEMENTS: ZOOKEEPER-2176 Unclear error message should be info not error (rgs via hdeng) + ZOOKEEPER-2153 X509 Authentication Documentation + (Ian Dimayuga via hdeng) + Release 3.5.0 - 8/4/2014 NEW FEATURES: Modified: zookeeper/trunk/src/docs/src/documentation/content/xdocs/zookeeperAdmin.xml URL: http://svn.apache.org/viewvc/zookeeper/trunk/src/docs/src/documentation/content/xdocs/zookeeperAdmin.xml?rev=1677867&r1=1677866&r2=1677867&view=diff ============================================================================== --- zookeeper/trunk/src/docs/src/documentation/content/xdocs/zookeeperAdmin.xml (original) +++ zookeeper/trunk/src/docs/src/documentation/content/xdocs/zookeeperAdmin.xml Tue May 5 17:29:23 2015 @@ -1058,10 +1058,10 @@ server.3=zoo3:2888:3888 - zookeeper.DigestAuthenticationProvider.superDigest + DigestAuthenticationProvider.superDigest - (Java system property only: (Java system property: zookeeper.DigestAuthenticationProvider.superDigest) By default this feature is - zookeeper.client.secure + X509AuthenticationProvider.superUser - If you want to connect to server's secure client port, you need to - set this property to true on client. - This will connect to server using SSL with specified credentials. Note that - you also need to plug-in Netty client. - + (Java system property: zookeeper.X509AuthenticationProvider.superUser) + + The SSL-backed way to enable a ZooKeeper ensemble + administrator to access the znode hierarchy as a "super" user. + When this parameter is set to an X500 principal name, only an + authenticated client with that principal will be able to bypass + ACL checking and have full privileges to all znodes. @@ -1126,6 +1129,43 @@ server.3=zoo3:2888:3888 + + ssl.authProvider + + (Java system property: zookeeper.ssl.authProvider) + + Specifies a subclass of + org.apache.zookeeper.auth.X509AuthenticationProvider + to use for secure client authentication. This is useful in + certificate key infrastructures that do not use JKS. It may be + necessary to extend javax.net.ssl.X509KeyManager + and javax.net.ssl.X509TrustManager + to get the desired behavior from the SSL stack. To configure the + ZooKeeper server to use the custom provider for authentication, + choose a scheme name for the custom AuthenticationProvider and + set the property zookeeper.authProvider.[scheme] + to the fully-qualified class name of the custom + implementation. This will load the provider into the ProviderRegistry. + Then set this property + zookeeper.ssl.authProvider=[scheme] and that provider + will be used for secure authentication. + + + + + zookeeper.client.secure + + (Java system property only: zookeeper.client.secure) + If you want to connect to server's secure client port, you need to + set this property to true on client. + This will connect to server using SSL with specified credentials. Note that + you also need to plug-in Netty client. + + + + Modified: zookeeper/trunk/src/docs/src/documentation/content/xdocs/zookeeperProgrammers.xml URL: http://svn.apache.org/viewvc/zookeeper/trunk/src/docs/src/documentation/content/xdocs/zookeeperProgrammers.xml?rev=1677867&r1=1677866&r2=1677867&view=diff ============================================================================== --- zookeeper/trunk/src/docs/src/documentation/content/xdocs/zookeeperProgrammers.xml (original) +++ zookeeper/trunk/src/docs/src/documentation/content/xdocs/zookeeperProgrammers.xml Tue May 5 17:29:23 2015 @@ -888,6 +888,12 @@ significant bits of the client host IP. + x509 uses the client + X500 Principal as an ACL ID identity. The ACL expression is the exact + X500 Principal name of a client. When using the secure port, clients + are automatically authenticated and their auth info for the x509 scheme + is set. +