- This repo will spin-up a kafka, zookeeper, schema-registry, ldap server and AKHQ instance using docker-compose
- This will also populate a some test data and with some topics.
aTopic
bTopic
- ldap will have users. Some of them are below
aUser1
=>Group: aTopicDevs
aUser2
=>Group: aTopicDevs
aUser3
=>Group: aTopicDevsAll
aUser4
=>Group: aTopicDevsAll
aUser1
andaUser2
will have justread
permissions on topicaTopic
.aUser3
andaUser4
will have bothread
andconfig
permissions on topicaTopic
.- Creates a local user
admin123
with passwordadmin123
having all the permissions on kafka resources. - Makes ldap user
admin
with paswordadmin
having all the permissions on kafka resources.
docker-compose up
docker-compose ps
Note: iftest-data
container may not run successully and may exit (in above command output), then start is again using following commanddocker-compose up test-data
Note:docker-compose up
command will attach to your current terminal. Usedocker-compose up -d
to detach the terminal.test-data
container createsaTopic
andbTopic
topics.
- Open URL
http://localhost:8080
in your browser. - Use above mentioned super users
admin
(ldap account) andadmin123
(local account) (their passwords are different) to login and make sure you can seeaTopic
andbTopic
topics. - Login with
aUser1
andaUser2
accounts (ldap accounts). These users will be able to see justaTopic
. These will not be able to modify its configurations. WhereasaUser3
andaUser4
will be able to both read and modify configuration foraTopic
. bUser1
andbUser2
will not be able to login. Note: Password for above users are inscripts/security/ldap_users
folder.
docker-compose down
docker volume rm $(docker volume ls -q)
- Code in this repo is taken from following links
- Kafka is not configured to use SSL in this repo.