Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Situation Awareness
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive
Help Center/ Cloud Search Service/ User Guide (Ankara Region)/ Elasticsearch/ Kibana Platform/ Creating a User and Granting Permissions by Using Kibana

Creating a User and Granting Permissions by Using Kibana

Updated on 2024-12-02 GMT+08:00

Prerequisites

The security mode has been enabled for the cluster.

Parameter Description

Table 1 Parameters for creating a user and assigning permissions on Kibana

Parameter

Description

Permission

Single action, for example, creating an index (for example, indices:admin/create)

Action group

A group of permissions. For example, the predefined SEARCH action group grants roles permissions to use _search and _msearchAPI.

Role

A role is a combination of permissions and action groups, including operation permissions on clusters, indexes, documents, or fields.

Backend role

(Optional) Other external roles from the backend such as LDAP/Active Directory

User

A user can send operation requests to the Elasticsearch cluster. The user has credentials such as username and password, zero or more backend roles, and zero or more custom attributes.

Role mapping

A user will be assigned a role after successful authentication. Role mapping is to map a role to a user (or a backend role). For example, the mapping from kibana_user (role) to jdoe (user) means that John Doe obtains all permissions of kibana_user after being authenticated by kibana_user. Similarly, the mapping from all_access (role) to admin (backend role) means that any user with the backend role admin (from the LDAP/Active Directory server) has all the permissions of role all_access after being authenticated. You can map each role to multiple users or backend roles.

Procedure

NOTE:
  • The Kibana UI varies depending on the Kibana version, but their operations are similar. This section takes Kibana 7.6.2 as an example to describe the procedure.
  • You can customize the username, role name, and tenant name in Kibana.
  1. Log in to the CSS management console.
  2. Choose Clusters in the navigation pane. On the Clusters page, locate the target cluster and click Access Kibana in the Operation column.
    Enter the administrator username and password to log in to Kibana.
    • Username: admin (default administrator account name)
    • Password: Enter the administrator password you set when creating the cluster in security mode.
    Figure 1 Login page
  3. Click the Security icon on the Kibana operation page.
    Figure 2 Going to the Security page
  4. Create a user.
    1. Choose Authentication Backends > Internal Users Database.
      Figure 3 Adding a user (1)
    2. On the Internal Users Database page, choose . The page for adding user information is displayed.
      Figure 4 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.

  5. Configure roles and permissions for the user.
    1. Click Roles.
      Figure 5 Adding a role
    2. On the Open Distro Security Roles page, click .
      1. Enter a role name on the Overview page.
        Figure 6 Entering a role name
      2. Configure CSS cluster permissions on the Cluster Permissions page. Set cluster permissions based on service requirements. If this parameter is not specified for a role, the role has no cluster-level permissions.

        You can set cluster permissions in Permissions: Action Groups. For example, if you select the read permission for a cluster, you can only view information such as the cluster status and cluster nodes.

        After selecting Show Advanced, you can also configure Permissions: Single Permissions. For example, if the single permission is set to indices:data/read, the indexes can only be read.

        Figure 7 Cluster Permissions tab
      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. On the Tenant Permissions page, set role permissions based on service requirements.

        In Global permissions, you can select kibana_all_read or kibana_all_write to set the Kibana read and write permissions for the role.

        You can add tenant patterns in the Tenant Permissions tab and set the kibana_all_read or kibana_all_write permission for the new tenant patterns.
        Figure 8 Tenant Permissions tab

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

  6. Assign a role to the user.
    1. Click Role Mappings.
      Figure 9 Role mapping
    2. Click to add the mapping between users and roles.
      Figure 10 Users and roles
    3. Click Submit.
  7. Verify that the configuration takes effect in Kibana.

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback