Commit 4998b68
authored
Add Trino authorization row filter functionality (#292)
* Add Trino authorization row filter functionality
- Introduced a new configuration file for Trino authorization, allowing row-level security filters to be defined for various tables.
- Implemented the loading of Trino authorization configurations from a YAML file.
- Added a new API endpoint for handling row filter requests, enabling dynamic filtering based on user permissions.
- Updated the application state to include Trino authorization configuration and integrated it into the existing request handling logic.
- Enhanced test coverage for the new row filter functionality, ensuring proper handling of various user permissions and configurations.
This commit significantly improves the PDP server's capability to enforce row-level security in Trino, enhancing data access control based on user roles and attributes.
* Add column masking functionality for Trino authorization
- Introduced a new configuration for column masking in Trino, allowing sensitive data to be masked based on user permissions.
- Implemented a new API endpoint at `/trino/batch-column-masking` to handle column mask requests.
- Enhanced the Trino authorization configuration to include column masks, with support for multiple columns and custom actions.
- Updated the application state and routing to integrate the new column masking functionality.
- Improved test coverage for column masking, ensuring proper handling of various user permissions and configurations.
This commit significantly enhances the PDP server's ability to enforce data privacy by masking sensitive information based on user roles and attributes.
* Update row filter expression formatting in Trino authorization
- Modified the row filter expression construction to wrap each expression in parentheses for improved clarity and consistency.
- This change enhances the readability of the generated query strings used in authorization checks.
This commit refines the handling of row filter expressions, contributing to better structured queries in the PDP server's Trino integration.
* Log warning when unauthenticated Trino routes are enabled1 parent 38a3016 commit 4998b68
File tree
15 files changed
+2271
-2
lines changed- pdp-server
- src
- api
- health
- trino
- schemas
- config
15 files changed
+2271
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| 37 | + | |
36 | 38 | | |
37 | 39 | | |
38 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
| 186 | + | |
186 | 187 | | |
187 | 188 | | |
188 | 189 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
527 | 527 | | |
528 | 528 | | |
529 | 529 | | |
| 530 | + | |
530 | 531 | | |
531 | 532 | | |
532 | 533 | | |
| |||
594 | 595 | | |
595 | 596 | | |
596 | 597 | | |
| 598 | + | |
597 | 599 | | |
598 | 600 | | |
599 | 601 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
0 commit comments