Got it

[ Technical Dry Goods ] Ranger overall architecture

Latest reply: Mar 30, 2021 02:15:29 101 1 1 0 0

Hello, everyone!

Today I'm going to introduce you DAYU


Several features of Ranger

• Policy-based access permission model
• General policy synchronization and decision logic to facilitate the extended access of control plug-ins
• Built-in control plug-ins for common systems (such as 12 HDFS, YARN, HBase, etc.), and can be extended
• Built-in user synchronization mechanism based on LDAP, File, and Unix, and can be extended

Permission model

Permission model
Access permissions define the relationship between "user-resource-permission". Ranger abstracts this relationship based on policies, and then extends its own permission model. The meaning of "user-resource-authority" is explained in detail:
•  User : expressed by User or Group, User represents the user who accesses the resource, and Group represents the user group to which the user belongs.
•  Resource : Expressed by Resource, the business resources corresponding to different components are different, such as File Path of HDFS and Table of HBase.
•  Permission : Expressed by (AllowACL, DenyACL), similar to whitelist and blacklist mechanisms, AllowACL is used to describe the situation of allowed access, and DenyACL is used to describe the situation of denied access. The permissions corresponding to different components are also different.
The access permission model in Ranger can be described by the following expression, which abstracts the relationship between the three "user-resource-permissions":

Service = List<‘Policy’>
Policy = List<‘Resource’> + AllowACL + DenyACL
AllowACL = List<‘AccessItem’> allow + List<‘AccssItem’> allowException
DenyACL = List<‘AccessItem’> deny + List<‘AccssItem’> denyException
AccessItem = List<‘User/Group’> + List<‘AccessType’>

Description:
Resource here refers to the actual resource of the component, such as hdfs path, hive database, table, column, etc.
AccessType here refers to the type of access permissions, such as read, write,
excute and other operations. AccessItem here is the access item, including users and access permissions Two-part
priority
denyException> deny> allowException> allow

o


The following table lists the model entity enumeration values (that is, access permission types) of some systems supported by Ranger:

ServiceResourceAccess Type
HDFSPathRead,Write,Execute
HBaseTable,Column-family,ColumnRead,Write,Create,Admin
HiveDatabase,Table,UDF,Column,URLSelect,Update,Create,Drop,Alter,Index,Lock,Write,Read,ALL


System plug-in (AgentPlugin)

The system plug-in is mainly responsible for three things:
• Regularly pull the policy from RangerAdmin
• Execute the access decision tree according to the policy
• Real-time record access audit

The following table lists the extended interfaces of the Ranger plug-in to partially supported systems:

ServiceExtensible InterfaceRanger Implement Class
HDFSorg.apache.hadoop.hdfs.server.namenode.INodeAttributeProviderorg.apache.ranger.authorization.hadoop.RangerHdfsAuthorizer
HBaseorg.apache.hadoop.hbase.protobuf.generated.AccessControlProtos.AccessControlService.Interfaceorg.apache.ranger.authorization.hbase.RangerAuthorizationCoprocessor
Hiveorg.apache.hadoop.hive.ql.security.authorization.plugin.HiveAuthorizerFactoryorg.apache.ranger.authorization.hive.authorizer.RangerHiveAuthorizerFactory



well done
View more
  • x
  • convention:

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.