User management
The Kafka data bus is used to stream messages. To access the message queue in the Kafka cluster tops, you must first create a user.The user is assigned roles that determine the user's ability to read and send messages in the top.You can assign a role to a user and grant access:
- for one topic;
- of a few prefix topics;
- of all the topics.
Create user
- In the Control panel, on the top menu, click Products and select Cloud Databases.
- Open the Active tab.
- Open the Database Cluster page → Users tab.
- Click Create User.
- Enter a name and password. Save the password — it will not be stored in the control panel.
- Click Create.
Change user password
After the cluster is created, the user password can be changed. Remember to change the password in your application.
- In the Control panel, on the top menu, click Products and select Cloud Databases.
- Open the Active tab.
- Open the cluster page → Users tab.
- From the user's menu, select Change Password.
- Enter or generate a new password and click Save.
User Roles
Users can have roles:
- consumer — receives and processes messages from the topic to which it has access;
- producer — sends messages to a topic to which he/she has access.
Read more in the Apache Kafka documentation for the concumer and producer.
Grant access to a user
-
In the Control panel, on the top menu, click Products and select Cloud Databases.
-
Open the Active tab.
-
Open the cluster page → Users tab.
-
From the user's menu, select Customize Accesses.
-
Select the type of access to tops:
- by prefix — to a number of tops united by a repeated part at the beginning of the name;
- by name — to a specific topic. Available only if there are created topics;
- all the tops.
-
If you selected the access type by topic prefix, enter the prefix in the Value field.
-
If you selected the access type by topic name, select the topic name in the Value field.
-
Select a user role. You can assign one or two roles to a user.
-
Click .
-
To grant multiple accesses to a user, click Add Access and repeat steps 5-9.
Change user access
You can only change the role in the access row. If you need to change the access type or value, delete the access string you want to correct and add a new access.
- In the Control panel, on the top menu, click Products and select Cloud Databases.
- Open the Active tab.
- Open the cluster page → Users tab.
- From the user's menu, select Customize Accesses.
- To change the role, in the access bar, click .
- Change the role.
- Click .