-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #42 from ansible-middleware/feat-zk-authentication
Enable Zookeeper authentication
- Loading branch information
Showing
9 changed files
with
112 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// {{ ansible_managed }} | ||
|
||
// Broker-Zookeeper Authentication | ||
|
||
Client { | ||
org.apache.kafka.common.security.plain.PlainLoginModule required | ||
username="{{ amq_streams_zookeeper_auth_user }}" | ||
password="{{ amq_streams_zookeeper_auth_pass }}"; | ||
}; |
This file contains 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
This file contains 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
This file contains 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
32 changes: 32 additions & 0 deletions
32
roles/amq_streams_zookeeper/templates/zookeeper-jaas.conf.j2
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// {{ ansible_managed }} | ||
|
||
// Zookeeper Server-to-Server Authentication | ||
// Zookeeper Intercluster - Server | ||
|
||
QuorumServer { | ||
org.apache.zookeeper.server.auth.DigestLoginModule required | ||
user_{{ amq_streams_zookeeper_auth_user }}="{{ amq_streams_zookeeper_auth_pass }}"; | ||
}; | ||
|
||
// Zookeeper Intercluster - Client | ||
|
||
QuorumLearner { | ||
org.apache.zookeeper.server.auth.DigestLoginModule required | ||
username="{{ amq_streams_zookeeper_auth_user }}" | ||
password="{{ amq_streams_zookeeper_auth_pass }}"; | ||
}; | ||
|
||
// Zookeeper - Local clients | ||
|
||
Client { | ||
org.apache.zookeeper.server.auth.DigestLoginModule required | ||
username="{{ amq_streams_zookeeper_auth_user }}" | ||
password="{{ amq_streams_zookeeper_auth_pass }}"; | ||
}; | ||
|
||
// Client-to-Server Authentication | ||
|
||
Server { | ||
org.apache.zookeeper.server.auth.DigestLoginModule required | ||
user_{{ amq_streams_zookeeper_auth_user }}="{{ amq_streams_zookeeper_auth_pass }}"; | ||
}; |
This file contains 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