Creating a User and Granting Permissions by Using Kibana

Prerequisites

The security mode has been enabled for the cluster.

Procedure

Note

This section takes Kibana 7.6.2 as an example to describe the procedure.

  1. Log in to the CSS management console.

  2. Click Access Kibana in the Operation column of a cluster.

    **Figure 1** Logging in to Kibana (1)

    Figure 1 Logging in to Kibana (1)

  3. Log in to Kibana.

    **Figure 2** Logging in to Kibana (2)

    Figure 2 Logging in to Kibana (2)

    • Username: admin

    • Password: Enter the password set during cluster creation.

  4. Click the Security icon on the Kibana operation page.

    **Figure 3** Going to the Security page

    Figure 3 Going to the Security page

  5. Create a user.

    1. Choose Authentication Backends >Internal Users Database.

      **Figure 4** Adding a user (1)

      Figure 4 Adding a user (1)

    2. On the Internal Users Database page, choose image1. The page for adding user information is displayed.

      **Figure 5** Adding a user (2)

      Figure 5 Adding a user (2)

    3. On the user creation page, configure Username and Password, and click Submit.

      The user will be displayed in the user list.

  6. Configure roles and permissions for the user.

    1. Click Roles.

      **Figure 6** Adding a role

      Figure 6 Adding a role

    2. On the Open Distro Security Roles page, click image2.

      1. Enter a role name on the Overview page.

        **Figure 7** Entering a role name

        Figure 7 Entering a role name

      2. Configure CSS cluster permissions on the Cluster Permissions page. You can skip this step.

      3. Configure index permissions on the Index Permissions page.

        Index patterns: Set this parameter to the name of the index whose permission needs to be configured. For example, my_store.

        Note

        Use different names for the index and the user.

        Configure Permissions: Action Groups as required, for example, select the read-only permission Search.

      4. Retain the default settings on the Tenant Permissions page.

        After the configuration is complete, the role will be displayed.

  7. Assign a role to the user.

    1. Click Role Mappings.

      **Figure 8** Role mapping

      Figure 8 Role mapping

    2. Click image3 to add the mapping between users and roles.

      **Figure 9** Users and roles

      Figure 9 Users and roles

    3. Click Submit.

  8. Verify that the configuration takes effect in Kibana.