How to Implement ABAC Capabilities with Global Security Policies

You can translate the document:

Goal

This document explains about the concept Attribute Based Access Control (ABAC) which can be used in tandem with the Global Security Policies (GSP).

Note: Global Security Policies are available with Denodo Enterprise Plus License.

What is Attribute Based Access Control?

Attribute Based Access Control (ABAC) is one of the Access Control Models which can be used to restrict access to the users based on their connected session.

ABAC defines an access control paradigm where a subject's authorization to perform a set of operations is determined by evaluating attributes associated with the subject, object, requested operations, and, in some cases, environment attributes.

This is essentially the What, Where and Who of a specific user session and with the concept of ABAC, administrators can have a better control of fine grained privilege assignment.

In addition complex business rules can be easily written based on which the end users access can be controlled accordingly.

Unlike role-based access control (RBAC), which defines roles that carry a specific set of privileges associated with them and to which subjects are assigned, ABAC can express complex rule sets that can evaluate many different attributes. Through defining consistent subject and object attributes into security policies, ABAC eliminates the need for explicit authorizations to individuals’ subjects needed in a non-ABAC access method, reducing the complexity of managing access lists and groups.

For instance, if a user “Giyu Tomioka” logs in to the server, the following details  can be extracted  from the User Session:

Name: Giyu Tomioka

Country: Japan

Department: Ninja Corps

User-Agent: DataNinja

IP-Address: 0.0.0.0

…

…

When the above user logs in to the Virtual DataPort (VDP) server, the above session attributes will be available and the administrator can  leverage these attributes to effectively restrict access to elements with the help of GSP.

How to Extract the Session Based attributes?

In the VDP server, session attributes can be extracted when the user logs into the server using  protocols such asLDAP, Kerberos, OAuth or the Denodo Security Token.

Based on the protocol used, the respective configuration in the VDP server must be updated.

For instance, if the user logs into Design Studio using Single Sign-On(SSO) with SAML protocol, then the Denodo Security Token will be used. In this case, the section Administration > Server Configuration > Security > Denodo Token Configuration in Design Studio needs to be updated with the session attribute details:

As depicted in the screenshot, Session attribute is the attribute name which will be used in the VDP user session while the Authentication attribute is the attribute name which is retrieved via the actual identity provider ( or user management system).

How can the Session Attributes Be Used with GSP?

While configuring the GSPs, there is an option to specify the “Attributes of the user’s session” where in the attributes defined in the server level would be available and the same can be used in the policy.

Sample Scenario

To illustrate the workflow of ABAC with GSP, consider the following use case:

Let's consider a scenario where multiple users access the Denodo platform. These users can be categorized into two main groups: Internal and External users. Each of these user types has specific roles assigned to them, such as Finance Business Manager, Finance Business Admin, and others.

These users are based out of different countries as illustrated in the Use Case diagram below:

The requirement is to restrict the data based on the specific user criteria like the user types, roles and the user country.

Restricting data access based on these specific criterias can be a demanding task for administrators. Traditionally, this has been addressed using Role Based Access Control (RBAC), which involves creating numerous roles and applying distinct restrictions for each role. However, as the number of roles increases, this approach can become cumbersome and challenging to manage.

Attribute-Based Access Control (ABAC) offers a more efficient solution to tackle complex data access scenarios. When combined with Global Security Policies (GSPs), ABAC simplifies the  Restriction Management. With ABAC, administrators can control data access on a global scale through GSPs, minimizing the need to create multiple roles with specific restrictions for each user. This approach streamlines the implementation and management of access controls.

To elaborate more on the specific use case, let us go through the setup:

In this example, we are using Okta as the Identity Provider (IdP) and we have defined the attributes as below for each user based on the use case.

Each user has their own User type and Country which are the actual user attributes and these will be used in GSP as Session Attributes.

Note that we will perform Single Sign On (SSO) using SAML protocol via the IdP Okta and in this scenario, the Denodo Security Token will come into play. SSO with protocol such as SAML is configured in the Solution Manager and the Denodo Security Token carry forwards the SSO configuration to the rest of the Denodo Web Applications (based on the configuration), i.e. the Denodo Security Token is the communicating medium for the SSO flow. Due to this reason, we are defining the Session Attributes for Denodo Security Token. More information on the SSO flow can be found under the Authenticating with Single Sign-On and Denodo Security Token section of the Solution Manager Administration Guide.

Further, tags such as block_external have been created and assigned to the Views along with different roles like finance_business_manager. More information about Tags and GSP can be referred to under the Global Security Policies section of the Virtual DataPort Administration Guide.

Here are the sample definitions of a couple of GSPs where we are using the Session Attributes:

Policy #1: block_external_users

The policy "block_external_users" is intended to be applied to all roles, except those users who belong to the "finance_business_admin" role.

This policy relies on the "userType" attribute to distinguish between internal and external users. According to this policy, external users will not be able to run queries on views tagged as  "block_external".

Policy #2: hide_country_info

The policy “hide_country_info” defined in the screenshots below is targeted at a similar audience as the previous policy and should be self explanatory.

Filtering by the attribute value

In this scenario it is important to introduce an important element which is the getvar  function. The data access is restricted by the condition “country = getvar(‘country’,’text’)”. That is, the rows will be filtered by the particular country the authenticated user has assigned in the IdP (Okta in this case).

Sample Executions

After defining the two policies as indicated in the previous section along with the user definitions in the Identity Provider, let's now see them in action.

Based on the different user definitions, here are the different executions over the view “bv_customer”. The result of the execution matches the desired behavior described in Figure 3.

User - John Smith

The user is of type External thus the execution is stopped.



User - Lucy Adams

This user is based out of the country Portugal and hence can see the results related to PORTUGAL only. Also, this user is Internal so she is able to execute the view.

In addition, Lucy has the role finance_business_user  which imposes some additional restrictions on sensitive information (columns around birth date namely c_birth_day, c_birth_month, and c_birth_year are masked). These restrictions have been assigned through the traditional  RBAC and will be applied in combination with the Global Policies.

Here is a sample output for the view “bv_customer” along with the snippet of the execution trace:

image

User - Susan Spencer

This user is based out of the country Spain and can see the results  related to SPAIN only.

Here is the sample output for this user along with the snippet of the execution trace:

image

Upon correlating the above results with the Okta Session Attributes, the displayed results change as expected, reflecting the users attributes accurately.

Summary

Adopting Attribute-Based Access Control (ABAC) along with Global Security Policies (GSPs) offers a more effective way to manage data access restrictions. ABAC simplifies the implementation process and enhances overall access control management. Leveraging Identity Providers (IdPs) to define and obtain user attributes helps organizations to efficiently regulate data access, ensuring a secure and optimized data environment.

References

Global Security Policies

Attribute-based access control

Disclaimer

The information provided in the Denodo Knowledge Base is intended to assist our users in advanced uses of Denodo. Please note that the results from the application of processes and configurations detailed in these documents may vary depending on your specific environment. Use them at your own discretion.

For an official guide of supported features, please refer to the User Manuals. For questions on critical systems or complex environments we recommend you to contact your Denodo Customer Success Manager.
Recommendation

Recommended resources Recommendations generated by AI

Implementing Data Protection with Global Security Policies and Session Roles

Time-based Access Management in Denodo

Global Security Policies: Creating a Global Security Policy

Global Security Policies: Intro

Global Security Policies: Results of using Global Security Policies

Questions

Ask a question

You must sign in to ask a question. If you do not have an account, you can register here