Introduction

Data Security allows you to control the permissions required for accessing resources. You can create permission policies to control the access to your data. The access permissions are allocated in line with the least privilege principle, therefore largely reducing data security risks.

Access permissions control has the following features:

  • Centralized access control

    Data Security can be used to control the access permissions required for HDFS, Hive, HBase, Yarn, Kafka, Storm, and Elasticsearch in an MRS cluster. Permissions control for more cloud services will be available soon. Once you can control the access permissions required for one cloud service, you can also control the access permissions required for other cloud services. In a word, you can easily control the access permissions required for multiple MRS services on a unified GUI. This centralized access permissions control is an effective way to avoid problems caused by decentralized access permissions control.

  • Diverse permission policies

    Data Security provides diverse permission policy settings. The fine-grained permissions control for resources and all-round user permissions control, peered with the settings of policy effective time and overwriting options, give you many choices to control your permissions.

  • Refined access control for MRS resources

    Data Security is in line with the least privilege principle. You can use Data Security to grant the access permissions required for MRS resources at a finer granularity. When authorizing the permissions required for accessing MRS resources, you can also create fine-grained access control measures to safeguard your resource security.

  • Comprehensive permission reports

    Data Security provides comprehensive permission reports to help administrators easily view the details about the permission policies of each user.

  • Detailed authorization and authentication log audit

    Data Security provides detailed authorization and authentication logs to help users identify unauthorized and high-risk operations to reduce data risks.

Operation Process

For details on the access permissions control process, see Figure 1.

Figure 1 Access permissions control process
  1. View the list of MRS Ranger clusters.

    The resource configurations of MRS Ranger clusters are important references for setting resource access permissions.

  2. Configure permissions.

    Create policies to set resource permissions.

  3. View permission reports.

    The reports display the details of created permission policies.

  4. Access resources.

    After the permission policy is created, you can access resources.

  5. Perform compliance audit.

    A log is generated when a user configured with a permission policy with the audit log enabled accesses a resource.

MRS Components that Support Access Control and the Permission List

Ranger uses plug-ins to integrate components in an MRS cluster (the MRS cluster version is 3.0.0 or later). Ranger can be used to implement fine-grained access permissions control on components. Table 1 lists the supported components and describes related permissions.

Table 1 Supported components and permissions

Component

Permission

HDFS

HDFS file permissions:

  • Read: the permission required for read
  • Write: the permission required for write
  • Execute: the permission required for executing a job

Hive

Hive database, data table, and column permissions:

  • Select: the permission required for query
  • Update: the permission required for update
  • Create: the permission required for creation
  • Drop: the permission required for dropping
  • Alter: the permission required for alteration
  • All: the permissions required for all operations
  • Temporary UDF Admin: the permission required for managing a temporary UDF

Yarn

Yarn queue permissions:

  • submit-app: the permission required for submitting a queue
  • admin-queue: the permission required for managing a queue

HBase

HBase column and column family permissions:

  • Read: the permission required for read
  • Write: the permission required for write
  • Create: the permission required for creation
  • Admin: the permission required by an administrator

Kafka

Kafka topic permissions:

  • Publish: the permission required for production
  • Consume: the permission required for consumption
  • Configure: the permission required for expanding the capacity of a topic
  • Describe: the permission required for query
  • Create: the permission required for creating a topic
  • Delete: the permission required for deleting a topic
  • Describe Configs: the permission required for querying configurations
  • Alter Configs: the permission required for modifying configurations

Storm

Storm topology permissions:

  • Submit Topology: the permission required for submitting a topology
  • File Upload: the permission required for uploading a file
  • File DownLoad: the permission required for downloading a file
  • Kill Topology: the permission required for deleting a topology
  • Rebalance: the permission required for rebalance
  • Activate: the permission required for activation
  • Deactivate: the permission required for deactivation
  • Get Topology Conf: the permission required for getting the configurations of a topology
  • Get Topology: the permission required for getting a topology
  • Get User Topology: the permission required for getting a user topology
  • Get Topology Info: the permission required for getting the information of a topology
  • Upload New Credential: the permission required for uploading a new credential

Elasticsearch

Elasticsearch index permissions:

  • all: the permission required for all operations
  • monitor: the permission required for monitoring
  • manage: the permission required for management
  • view_index_metadata: the permission required for viewing the metadata of an index
  • read: the permission required for read
  • read_cross_cluster: the permission required for cross-cluster read
  • index: the permission required for write and update
  • create: the permission required for creation is temporarily not supported.
  • delete: the permission required for deleting a document
  • write: the permission required for write
  • delete_index: the permission required for deleting an index
  • create_index: the permission required for creating an index