Skip to main content
User management
Last update:

User management

The Kafka data bus is used to stream messages. To access the message queue in topics of a Kafka cluster, you must first create a user. A user is assigned roles, which define the user's ability to read and send messages in a topic. You can assign a role to a user and grant access:

  • for one topic;
  • of several prefix topics;
  • of all the topics.

Create user

  1. In Control Panel, go to Cloud PlatformDatabases.
  2. Open the Database Cluster page → Users tab.
  3. Click Create User.
  4. Enter your name and password. Save the password — it will not be stored in the control panel.
  5. Press Create.

Change user password

After the cluster is created, the user password can be changed. Don't forget to change the password in your app.

  1. In Control Panel, go to Cloud PlatformDatabases.
  2. Open the cluster page → Users tab.
  3. From the menu ( ) of the user, select Change Password.
  4. 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.

See the Apache Kafka documentation for concumer and producer for more details.

Grant access to the user

  1. In Control Panel, go to Cloud PlatformDatabases.

  2. Open the cluster page → Users tab.

  3. From the ( ) user menu, select Customize Accesses.

  4. 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. Only available if there are created topics;
    • all the tops.
  5. If you selected the access type by topic prefix, enter the prefix in the Value field.

  6. If you have selected the access type by topic name, select the topic name in the Value field.

  7. Select user role. You can assign one or two roles to a user.

  8. Click .

  9. To grant multiple accesses to a user, click Add Access and repeat steps 4-8.

Change access for user

In the access bar, you can only change the role. If you need to change the access type or value, delete the access string you need to correct and add new access.

  1. In Control Panel, go to Cloud PlatformDatabases.
  2. Open the cluster page → Users tab.
  3. From the ( ) user menu, select Customize Accesses.
  4. To change the role, in the access bar, click .
  5. Change the role.
  6. Click .