Row-Level Access Control is currently in beta. Contact your customer success manager for a private preview.
Row-Level Access Control builds upon StarTree’s Role-Based Access Control (RBAC) system. Ensure you have RBAC enabled before implementing row-level policies.
How Row-Level Access Control Works
Unlike table-level RBAC which provides all-or-nothing access to a table, Row-Level Access Control allows you to define conditions that determine which rows a user can access within a table. When a user with row-level policies queries a table, StarTree automatically:- Identifies the user’s assigned roles and associated row-level policies
- Extracts the row filter conditions from the policies
- Applies these conditions as additional WHERE clauses to the query
- Returns only the rows that match both the original query and the row filter conditions
Policy Configuration
Row-level policies use the same structure as standard RBAC policies but include aconditions
section with rowFilters
:
Row Filter Syntax
Single Condition Filters
Row filters are valid SQL expressions that can be used in WHERE clauses:Multi-Condition Filters
Combine multiple conditions using SQL operators:Implementation Steps
Row-Level Access Control follows the same implementation process as any other RBAC policy:- Create a policy with row filter conditions in the Security Manager
- Create a role and attach the policy to it
- Assign the role to users or groups
conditions
section with rowFilters
to your policy configuration.
You can use the StarTree Security Manager UI to apply these policies.
Use Cases
Vendor Data Isolation
Allow vendors to see only their own orders in a shared table:Sales Territory Management
Restrict sales reps to view only their assigned accounts:Regional Data Compliance
Enforce data residency by region within a global table:Limitations
- Row-level policies may take up to one hour to propagate and become effective after creation or modification.
- Row filter conditions currently require static values to be specified in the policy configuration. Dynamic row filtering capabilities are planned for future releases.
Next Steps
- Learn about Custom Policy Configuration
- Explore RBAC API usage
- Review Security Actions available for policies