User management

Updated at:

A Fluss cluster supports two types of connection credentials. One is the built-in username and password of the cluster, which connects as the administrator and does not isolate permissions by user. The other is the Fluss user credential described in this topic, which an administrator generates for a RAM user after registering the user and enabling password authentication. This credential isolates permissions by user. The Fluss username is the UID of the RAM user, and the password is generated by the system.

Limits

  • The Fluss username is the UID of a RAM user and cannot be customized.

  • The password is generated by the system and cannot be customized.

  • Password authentication cannot be disabled after it is enabled, and passwords cannot be reset.

  • When password authentication is enabled, the password is displayed to the administrator only once. After the dialog box is closed, the administrator cannot view it again. The user can view their own password on the Overview page.

  • A deleted user cannot be restored. Add the user again and grant the permissions again.

Permissions

Operation

Authorized accounts

Add a user, enable password authentication, edit a role, or delete a user

The cluster owner or an Editor (super administrator)

View your own username and password

The user whose password authentication is enabled

If you do not have the required permissions, the related buttons are dimmed. Moving the pointer over a button shows Current account has no permission to operate, please contact the administrator.

Add a user

  1. Log on to the Realtime Compute console and click the Streaming Storage Fluss tab.

  2. Find the target instance and click Console in the Actions column.

  3. In the left-side navigation pane, click Security.

  4. On the Members tab, click Add Member.

  5. Configure the user.

    Parameter

    Description

    ID

    The UID of the RAM user. Enter the UID or select a user from the drop-down list.

    Role

    Editor (super administrator): has all permissions on the cluster and requires no further authorization. Viewer (regular user): has access to the cluster, and the databases and tables that the user can operate on must be authorized separately.

  6. Click OK.

The system registers the user with the UID as the Fluss username. The Password Auth column then shows Not Enabled. If the role is Viewer, the console asks whether to authorize the user immediately.

Note

Adding a user only registers the Fluss user and sets the role. For permissions on databases and tables, see Authorize access to a Fluss cluster and Table-level permissions.

Enable password authentication

  1. On the Members tab, find the target user.

  2. In the Password Auth column, click Enable.

  3. In the Password Authentication Enabled dialog box, view the Fluss Username and Password, and click the copy icons to save both credentials.

  4. Click Saved, Close.

Important

The dialog box cannot be closed by clicking the mask, and the password is displayed only this once. After the dialog box is closed, the administrator cannot view the password again, and password authentication can be neither disabled nor reset. If the administrator did not save the password in time, the user can view it by following the next section.

View your own username and password

  1. Go to the Fluss cluster console and click Overview in the left-side navigation pane.

  2. In the Cluster Overview section, view Access Credentials and click the eye icon to display the password.

Note

If an administrator has not enabled password authentication for your account, Contact an administrator to enable it. is displayed in place of the credentials.

Delete a user

  1. On the Members tab, find the target user and click Delete in the Actions column.

  2. In the confirmation dialog box, click OK.

After the user is deleted, the username, password, and permission records of the user are immediately invalidated and removed. The deletion cannot be undone.

Connect to the cluster with a username and password

Clients connect to a Fluss cluster over SASL authentication. The following example creates a Fluss Catalog in the Realtime Compute development console. On the Scripts page, enter the following statement and run it.

CREATE CATALOG fluss_catalog WITH (
  'type' = 'fluss',
  'bootstrap.servers' = '<bootstrap.servers>',
  'default-database' = 'fluss',
  'client.security.protocol' = 'SASL',
  'client.security.sasl.mechanism' = 'PLAIN',
  'client.security.sasl.username' = '<username>',
  'client.security.sasl.password' = '<password>'
);

Parameter

Description

Required

client.security.protocol

The authentication protocol. Set the value to SASL.

Yes

client.security.sasl.mechanism

The SASL authentication mechanism. Set the value to PLAIN.

Yes

client.security.sasl.username

The Fluss username. For a Fluss user credential, this is the UID of the RAM user. For the built-in cluster credential, this is the username displayed on the Overview page.

Yes

client.security.sasl.password

The corresponding password.

Yes

Note

The SQL method requires a session cluster of VVR 11.7 or later. For the UI method, the password-free method, and the full parameter description, see Manage a Fluss Catalog.

References