can abac be applied to a data lake?

Michael Liveri 0 Reputation points
2024-09-13T04:26:59.0133333+00:00

Can abac be applied to a data lake storage account or does it have to be rbac with potential ACL?

Azure Data Lake Storage
Azure Data Lake Storage
An Azure service that provides an enterprise-wide hyper-scale repository for big data analytic workloads and is integrated with Azure Blob Storage.
1,466 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Vinodh247 18,906 Reputation points
    2024-09-13T06:04:52.4+00:00

    Hi Michael Liveri,

    Thanks for reaching out to Microsoft Q&A.

    In ADLS, RBAC and ACL's are the primary methods for controlling access. Attribute-Based Access Control (ABAC) is not natively supported for ADLS as of now. However, ABAC is a more granular access control model, which allows defining access permissions based on attributes such as user attributes, resource tags, or environmental factors, while RBAC is role-based.

    For Azure Data Lake, the combination of RBAC and ACL's offers the necessary granularity for data access:

    1. RBAC: Provides broad access control at the container level by assigning roles to users, groups, or applications (like Reader, Contributor, etc.).
    2. ACLs: Offers more detailed access at the file and directory level within a data lake.

    To achieve ABAC like capabilities, you might need to manage policies externally or implement custom logic in your application, but the native control would still rely on RBAC and ACLs within the Azure environment.

    While RBAC and ACLs are the standard methods for controlling access in Azure Data Lake Storage, ABAC would require custom implementation if needed, but it cannot be directly applied within ADLS as of today.

    Please 'Upvote'(Thumbs-up) and 'Accept' as an answer if the reply was helpful. This will benefit other community members who face the same issue.


  2. Nehruji R 7,556 Reputation points Microsoft Vendor
    2024-09-13T12:58:53.2333333+00:00

    Hello Michael Liver,

    Greetings! Welcome to Microsoft Q&A Platform.

    Azure Data Lake Storage supports the following authorization mechanisms:

    • Shared Key authorization
    • Shared access signature (SAS) authorization
    • Role-based access control (Azure RBAC)
    • Attribute-based access control (Azure ABAC)
    • Access control lists (ACL)

    Azure ABAC builds on Azure RBAC by adding role assignment conditions based on attributes in the context of specific actions. A role assignment condition is an additional check that you can optionally add to your role assignment to provide more refined access control. You cannot explicitly deny access to specific resources using conditions.

    For more information on using Azure ABAC to control access to Azure Storage, see Authorize access to Azure Blob Storage using Azure role assignment conditions.

    data lake storage permission flow

    You can manage the access to containers, directories and blobs by using Access control lists (ACLs) feature in Azure Data Lake Storage Gen2.

    You can associate a security principal with an access level for files and directories. Each association is captured as an entry in an access control list (ACL). Each file and directory in your storage account has an access control list. When a security principal attempts an operation on a file or directory, An ACL check determines whether that security principal (user, group, service principal, or managed identity) has the correct permission level to perform the operation.

    refer this following doc for more detailed steps in creating the same - https://learn.microsoft.com/en-us/azure/storage/blobs/data-lake-storage-access-control, https://learn.microsoft.com/en-us/azure/storage/blobs/storage-auth-abac-portal.

    I would like to highlight that users must have Reader permissions for storage in order to access storage account resources/containers. These permissions do not grant the ability to modify data in Azure storage.

    I would suggest granting Reader permissions at the storage account level and Storage Blob data contributor permissions at the container level. This will enable users to access the specific container while maintaining restrictions on access to other containers within the storage account.

    Assign an Azure role for access to blob data - Azure Storage | Microsoft Learn

    Similarly, you can assign roles at the container level. When you open a container in the azure portal, you will see the blade where you can grant Storage Data Reader / Storage Data Contributor at the user or group level.

    You can manage access at the container level by setting up access policies. Here’s how:

    Go to your storage account in the Azure portal.

    Find the container you want to restrict access to.

    Under the settings blade, select “Access Policy.”

    Click “Add Policy” and choose the permissions you want to grant for that specific container.

    Keep in mind that public access levels (such as “Blob” or “Container”) are set at the container level, so you can control access there.

    reference thread - https://learn.microsoft.com/en-us/answers/questions/606190/adls-container-level-access,

    To grant access to a container, you can assign an RBAC role at the container scope or above to a user, group, service principal, or managed identity. You may also choose to add one or more conditions to the role assignment. You can read about the assignment of roles at Assign Azure roles using the Azure portal.

    Also, folders in the Azure Blob storage are virtual. They look like folders, but they are not real folders just like the folders on your local computer.

    If you need to grant access on folder level, you need to use Azure Data Lake Gen2 i.e. Azure Storage account where Hierarchical namespace setting is enabled. For existing storage account blob container/ folder: Access control lists (ACLs) in Azure Data Lake Storage Gen2

    Hope this answer helps! Please let us know if you have any further queries. I’m happy to assist you further.


    Please "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.