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
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/ MapReduce Service/ Component Operation Guide (LTS) (Ankara Region)/ Using Ranger/ Using the RangerKMS Native UI to Manage Permissions and Keys

Using the RangerKMS Native UI to Manage Permissions and Keys

Updated on 2024-11-29 GMT+08:00

Scenario

After KMS is installed, you need to create a user on FusionInsight Manager and associate the user with the KeyAdmin role to grant it the permission to manage keys and encrypt HDFS partitions.

If it is your first time logging in to the RangerKMS UI, you can log in as user rangerkms or keyadmin. By default, the keyadmin user has only the key management permission. User rangerkms has both key management permission and key operation permission.

Prerequisites

  • The Ranger service has been installed and is running properly.
  • You have created a human-machine user and do not need to add permission.

Adding the KeyAdmin Role to a User

  1. Log in to FusionInsight Manager as user admin. Choose Cluster > Services > Ranger.
  2. Click RangerAdmin in the Basic Information area. The Ranger web UI is displayed.
  3. On the Ranger web UI, click the username in the upper right corner, and choose Log Out to log out of the current user.

  4. Log in to the system again as user rangerkms or keyadmin. Change the password upon the first login.

    For details about the username and default password, contact the MRS cluster administrator.

  5. Choose Settings > Users. In the User Name column, click the user to whom you want to assign the KeyAdmin role permission.
  6. Select KeyAdmin from the Select Role drop-down list box. In the dialog box that is displayed, click OK.
  7. Click Save. The KeyAdmin role is added.

Key Permission Management

  1. Log in to the Ranger UI as rangerkms, keyadmin, or a user with the KeyAdmin role.
  2. On the Access Manager page, click kmsdev.

  3. You can click Add New Policy in the upper right corner to add a policy.
  4. Configure the parameters listed in the table below based on service requirements.

    Table 1 Parameters for adding a new policy

    Parameter

    Description

    Policy Type

    Access

    Policy Name

    Policy name, which is mandatory.

    Policy Label

    Policy label, which is used to classify policies.

    Key Name

    Key name and EZK name stored in KMS. This policy takes effect for the configured key. If this parameter is set to *, all keys are selected.

    Description

    Content of a policy.

    Audit Logging

    Audit function.

    Allow Conditions

    Allow policy to grant permissions to selected users, user groups, or roles. Available key words are as follows:

    • Create: Create a key.
    • Delete: Delete a key.
    • Rollover: Update a key.
    • Set Key Material: Set the key ciphertext.
    • Get: Read a key.
    • Get keys: Read all keys (keys configured in the policy).
    • Get Metadata: Get the metadata of a key.
    • Generate EEK: Generate an EEK.
    • Decrypt EEK: Decrypt an EEK.

    Exclude from Allow Conditions: Configure exception rules.

    Deny All Other Accesses

    Whether to reject all other access requests.

    • True: All other access requests are rejected.
    • False: Deny Conditions can be configured.

    Deny Conditions

    Policy rejection condition, which is used to configure the permissions and exceptions to be denied in the policy. The configuration method is similar to that of Allow Conditions.

    The priority of Deny Conditions is higher than that of allowed conditions configured in Allow Conditions.

    Exclude from Deny Conditions: exception rules excluded from the denied conditions

  5. Click Add. The role, user group, or user corresponding to the policy has the key-related permissions in the policy.

Managing Keys on the Native UI

  1. Log in to the Ranger management page as user rangerkms or keyadmin.
  2. Click Encryption. The key management page is displayed.
  3. Select kmsdev from the Select Service drop-down list.

  4. Click Add New Key on the right to create a key.

    Table 2 Parameters on the Add New Key page

    Parameter

    Description

    Key Name

    Key name.

    Cipher

    Encryption algorithm. The default value is AES/CTR/NoPadding and cannot be changed.

    Length

    Key length. The value can be 128 or 256.

    Description

    Content of a key.

    Attributes

    Custom attribute of the key. You do not need to add any attributes.

  5. Click the modification icon to update a key.

  6. If you need to delete a key, click the delete icon.

Permission Management for Common Clusters

  1. Log in to FusionInsight Manager, choose Cluster > Services > Ranger, click Configurations > RangerKMS, and click Customizations.
  2. Add the following parameter to the dbks-site.xml line:

    hadoop.kms.security.authorization.manager and empty value

  3. Save the configuration and restart RangerKMS.
  4. If the key management permission is required, add the user to the rkmsadmin group.

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