Skip to content

Data access control across Athena, LakeFormation, and QuickSight

0

I did a search but couldn't find anything that quite fit the bill - IHAC that is setting up Athena + LakeFormation / LakeHouse + QuickSight for data exploration in preparation to create data products for teams to consume. They want to implement row-based access control end to end.

I know you can set up row-level security in QuickSight and that you can control access in LakeFormation via tags and attributes but it's not at all clear to me whether or how the access controls in LakeFormation propagate or extend to QuickSight or if they have to configure access in both.

Any help (documentation, blog, customer story you can share, etc) would be greatly appreciated!

AWS

asked a year ago724 views

2 Answers
0

AWS Lake Formation provides centralized data access governance across AWS analytics services, including Athena and QuickSight. When implementing row-based access control end-to-end, you have several options:

  1. Lake Formation offers fine-grained access control at the table, column, row, and cell levels for data in your data lake. These permissions are enforced when users query data through Athena, which integrates seamlessly with Lake Formation.

  2. When connecting QuickSight to data sources through Athena, Lake Formation permissions are applied. QuickSight can access databases and tables by name or through SQL queries, with the underlying Lake Formation permissions controlling what data users can see.

  3. For row-level security specifically, Lake Formation's Data filters can be used to control query results, securing tables in Amazon S3 data lakes at a granular level.

  4. If you're working with corporate identity providers (like Okta or Azure AD), the Trusted Identity Propagation feature simplifies access management by allowing data permissions to be granted directly to corporate user identities without needing AWS IAM role provisioning.

  5. For QuickSight specifically, you can implement row-level security with tag-based rules. This is particularly useful for embedding dashboards for anonymous users, where RLS tags are added to a dataset and values are assigned at runtime.

The key benefit of using Lake Formation is that it provides a centralized permissions model that applies across your analytics services. When properly configured, the access controls defined in Lake Formation will be enforced when users query data through Athena and subsequently visualize it in QuickSight. This creates a consistent security model across your data pipeline.

However, for some specific QuickSight use cases (like anonymous embedding), you may need to configure additional row-level security within QuickSight itself to complement the Lake Formation permissions.
Sources
Using AWS Lake Formation with Amazon Athena - AWS Lake Formation
Community | Trusted Identity Propagation Feature | S02EP18 | Lets talk about data show
Using row-level security with tag-based rules to restrict access to a dataset when embedding dashboards for anonymous users - Amazon QuickSight
Authorizing connections through AWS Lake Formation - Amazon QuickSight

answered a year ago

0

Lake Formation Controls Are Enforced at Query Time Lake Formation lets you define row-level permissions (via LF data filters), and Athena respects these policies when querying data. That part works out of the box.

https://medium.com/%40joudwawad/data-engineering-on-aws-aws-lake-formation-for-data-governance-and-security-9c6e4d049350

QuickSight Doesn’t Inherit Lake Formation Filters Automatically QuickSight doesn’t “see” Lake Formation filters. Even if Athena enforces them under the hood, once a QuickSight author creates a dataset (and they have full access), the dashboard might still expose more than what downstream viewers should see.

That’s why you must configure Row-Level Security (RLS) inside QuickSight too, using:

  • Group- or user-based RLS datasets
  • Tag-based rules for embedded dashboards

Docs: https://docs.aws.amazon.com/quicksight/latest/user/row-level-security.html https://community.amazonquicksight.com/t/quicksight-rls-and-lakeformation-rls/2867 http://aws.amazon.com/blogs/big-data/automate-replication-of-row-level-security-from-aws-lake-formation-to-amazon-quicksight/?

Best Practice: Sync LF RLS to QuickSight A common workaround is to automate the transfer of Lake Formation policies to QuickSight RLS by:

  • Pulling Lake Formation access rules via API or query.
  • Converting those into a QuickSight RLS dataset.
  • Attaching the RLS config to your QuickSight datasets.

AWS actually published a reference for this: https://aws.amazon.com/blogs/big-data/automate-replication-of-row-level-security-from-aws-lake-formation-to-amazon-quicksight/

answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.