Skip to main content
User management

User management

The Kafka data bus is used to stream messages. To access the message queue in topics of the Kafka cluster must first create a user. The user is assigned roles that determine whether a user can read and post messages in a topic. You can assign a role to a user and grant access:

  • for one topic;
  • of a few prefix topics;
  • of all the topics.

Create a user

  1. В control panels go to Cloud platformDatabases.
  2. Open the Database Cluster page → tab Users.
  3. Click Create a user.
  4. Enter a name and password. Save the password — it will not be stored in the control panel.
  5. Click Create.

Change user password

After the cluster is created, the user password can be changed. Remember to change the password in your application.

  1. В control panels go to Cloud platformDatabases.
  2. Open the cluster page → tab Users.
  3. On the menu. user select Change password.
  4. Enter or generate a new password and press 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.

For more information, see the Apache Kafka documentation for concumer и producer.

Grant access to a user

  1. В control panels go to Cloud platformDatabases.

  2. Open the cluster page → tab Users.

  3. On the menu. user 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. Available only if there are created topics;
    • all the tops.
  5. If you have selected the access type by topic prefix, in the field Significance enter the prefix.

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

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

  8. Click .

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

Change user access

You can only change the role in the access string. If you need to change the access type or value, delete the access line you want to correct and add new access.

  1. В control panels go to Cloud platformDatabases.
  2. Open the cluster page → tab Users.
  3. On the menu. user select Customize accesses.
  4. To change the role, in the access bar, click .
  5. Change the role.
  6. Click .