Group vs Superb-Grained Entry Management in Cloudera Knowledge Platform Public Cloud

0/5 No votes

Report this app



Cloudera Knowledge platform (CDP) offers a Shared Knowledge Expertise (SDX) for centralized information entry management and audit within the Enterprise Knowledge Cloud. The Ranger Authorization Service (RAZ) is a brand new service added to assist present fine-grained entry management (FGAC) for cloud storage. We coated the worth this new functionality offers in a earlier weblog. RAZ for S3 and RAZ for ADLS introduce FGAC and Audit on CDP’s entry to recordsdata and directories in cloud storage making it in line with the remainder of the SDX information entities.  On this weblog put up we’ll evaluate implementing insurance policies utilizing the group-based mechanism (IDBroker) to how it’s completed in a RAZ-enabled setting. 

Adjustments with file entry management 

Previous to the introduction of RAZ, controlling entry to ADLS or S3 can solely be achieved at a coarse-grained group degree.  Whereas manageable for a few groups, a lot of our clients require a whole bunch of Ranger insurance policies for HDFS to regulate entry for his or her totally different groups and initiatives. This group degree entry management is managed with the CDP IDBroker service and requires a re-architecting of how entry is managed. Every coverage change, or introduction of a brand new consumer or new group usually requires interplay between CDP directors and AWS/Azure directors and potential modifications to current functions. This may be time consuming and cumbersome: because the variety of groups and customers grows, the hassle required to handle entry this manner turns into unwieldy.

Within the subsequent sections, we’ll stroll by a easy information entry situation each with out and with RAZ for 2 separate groups — the info scientists and the info engineers.  Though in our instance we use RAZ for S3,  RAZ for ADLS works analogously.

With out RAZ: Group-based entry management with IDBroker

Historically with a CDP Personal Cloud Base Version, HDP, or CDH deployment safety of recordsdata and directories is achieved by a mixture of HDFS ACLs (CDP, HDP, CDH) and Ranger HDFS insurance policies (CDP, HDP). Since these on-prem capabilities weren’t initially out there in CDP Public Cloud, sure use instances wanted alternate means to regulate entry to particular recordsdata and directories.

With out RAZ, the beneficial resolution is to make use of IDBroker to create a mapping from CDP customers or teams to AWS IAM (ADLS AD) roles. This method retains AWS or ADLS credentials from leaking into your utility’s code and permits for good credential hygiene. The process to onboard CDP customers and teams for AWS cloud storage with an instance for an information scientist (DS) and information engineering (DE) group is documented right here

With this in place, once you entry cloud storage, CDP talks to IDBroker, exchanges your CDP id for a AWS IAM function, after which performs the operation because the IAM function.  

So, what are the results of this implementation? Let’s have a look at the influence when a brand new consumer is added and likewise when a consumer is added to a number of teams utilizing the IDBroker method

Let’s add a brand new consumer, Bob. There are two potential approaches with IDBroker: 

  1. Create an IDBroker mapping for every CDP consumer like Bob to a novel AWS IAM function. Entry selections are made primarily based on Bob’s AWS IAM function and ACLs on S3 buckets/objects.  Including Bob implies that he might want to have an IAM function created in AWS by an AWS admin.  The AWS admin then wants to offer Bob learn and write entry by way of ACLs on particular person objects or on the bucket degree. Nonetheless, this method has recognized limitations together with a 20kb coverage dimension restrict on buckets and a max of 100 grants on objects that limits the whole variety of customers that may be related.   Because the variety of customers grows, this method turns into impractical and forces the CDP admin to go to a per group IAM function.
  2. Create an IDBroker mapping to a shared AWS IAM function per CDP group and assign CDP customers like Bob to that group.  Entry selections are made primarily based on the group’s AWS IAM function and ACLs on S3 buckets/objects.  Including a consumer merely requires including the CDP consumer to the CDP group.

Let’s say you utilize the CDP group to AWS IAM mapping.  This has the implication that you just can not differentiate between two totally different customers that belong to the identical group. Let’s say that each Jon and Remi belong to the Knowledge Engineering group.  Each Jon and Remi subsequently have the identical permissions to learn and write recordsdata in CDP.  The issue is that Jon can not stop Remi from deleting recordsdata that he had written, and worse but, he doesn’t have a helpful audit path to find out that Remi in actual fact deleted the file!  The one audit path is in AWS stating that the Knowledge Engineer group’s IAM function created and deleted recordsdata at a selected time.

Including a consumer to a number of teams

The group method has an necessary caveat.  Primarily based on AWS IAM’s design, your CDP id can solely be mapped to at least one AWS IAM function. This makes composing and managing the rights conferred by being a member of a number of teams extraordinarily complicated.  Let’s say you needed a consumer that had the rights of each DE and DS teams, you’d should both:

  1. modify your utility to decide on which function you have been going to make use of for every entry, or 
  2. have your AWS admin create a brand new IAM function that had the rights that the union of the roles had. You’d additionally want your CDP admin to create a brand new IDBroker group mapping for this Knowledge Engineer + Knowledge Science group.  Moreover, to maintain the DE + DS function in line with the DE or DS function, the AWS Admin would additionally want to take care of and replace the DE + DS function anytime both of the 2 particular person roles  modified.  They might nonetheless run into the coverage dimension / grants limitation.

All of those choices are troublesome to scale because of the implementation of the underlying techniques or the operational burdens they impose. 

With RAZ: Superb-Grained entry management with RAZ for ADLS/S3

The introduction of RAZ for ADLS and RAZ for S3’s fine-grained entry controls for cloud storage avoids the operational and scalability burdens the IDBroker method faces.  With the RAZ method, you get just about equivalent capabilities that the Ranger HDFS insurance policies present in HDP or CDP Personal Cloud Base. This contains file entry audit, useful resource primarily based entry insurance policies, tag-based entry insurance policies, and complicated entry circumstances.

So what are the results of this implementation? Let’s have a look at what it takes when including a brand new consumer and when including a consumer to a number of teams utilizing the RAZ method.

When a consumer is added to the company IdP, the consumer will mechanically be put into the general public group after they log into CDP.  Entry is enforced by Ranger insurance policies. No new AWS IAM function is required and thus no interplay with the AWS Admin required.

The situation with Jon and Remi above is dealt with properly as effectively — a Ranger S3 coverage is ready up by default that successfully provides Jon and Remi their very own dwelling directories.  If each Jon and Remi have entry to a shared listing, Ranger additionally data and audits all operations in order that Jon can decide that it was Remi who deleted his recordsdata.

Including a consumer to a number of teams is simple too.  Simply add your consumer to the group within the IdP or in your CDP teams.  The up to date group membership will likely be propagated mechanically and close to instantaneously to Ranger. When a consumer tries to entry a file, RAZ and Ranger consider the request and make coverage selections primarily based on the consumer id and the union of all of their teams. Once more, no new AWS IAM function is required and thus no interplay with the AWS Admin wanted.

From one single pane of glass a CDP admin can handle all information entry insurance policies in CDP:   recordsdata, information warehouse  tables, information flows, metadata, operational tables, and extra.  Whatever the storage sort or location, all is dealt with persistently and audited on a per consumer foundation.


The RAZ method is a significant operational win for managing entry management and audits on file entry in opposition to cloud storage corresponding to S3 and ADLS-gen2. It additionally solves the a number of group membership downside elegantly.  Please check out this use case weblog to see how these instances can be found for CDP Public Cloud deployments.

RAZ for S3 and RAZ for ADLS each out there now in CDP-PC for tech preview, so please attain out to your account group to allow this functionality.

For extra particulars, see the next assets

  1. Introduction to enabling multi-user fine-grained entry management for cloud storage in CDP
  2. Our current weblog strolling by the right way to allow particular use instances with RAZ for ADLS 


Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.