- Newest
- Most votes
- Most comments
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:
-
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.
-
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.
-
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.
-
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.
-
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
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.
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
Relevant content
asked 6 years ago
- AWS OFFICIALUpdated a year ago
