You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "Ayush Mantri (Jira)" <ji...@apache.org> on 2021/03/15 11:23:00 UTC

[jira] [Created] (ZOOKEEPER-4249) Support custom authentication info provider to plug-in custom authentication

Ayush Mantri created ZOOKEEPER-4249:
---------------------------------------

             Summary: Support custom authentication info provider to plug-in custom authentication
                 Key: ZOOKEEPER-4249
                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-4249
             Project: ZooKeeper
          Issue Type: New Feature
          Components: security
         Environment: **
            Reporter: Ayush Mantri
             Fix For: 3.8.0


*Problem Background:*
ZooKeeper server provides option to add custom authentication providers.
When those custom authentication providers are enabled, all client apps have to add authentication info by changing their code
For example:

{code:java}
ZooKeeper zooKeeper=connectToZK();
zooKeeper.addAuthInfo("customAuthScheme", authenticationInfoBytes);
//start ZK operation
{code}


Changing code on multiple client applications is not convent. This JIRA is to solve this inconvenient.

*Proposed Solution:*
Add AuthInfoProvider interface
Expose zookeeper.custom.authinfo.provider client configuration
Users can implement AuthInfoProvider and configure implementation class in zookeeper.custom.authinfo.provider cofiguration
If zookeeper.custom.authinfo.provider is configured ZooKeeper automatically adds authentication info into the connection.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)