Commit 368ddee
authored
Add Trino API integration with authorization checks (#291)
* Add Trino API integration with authorization checks
- Introduced a new Trino API endpoint for authorization checks at `/trino/allowed`.
- Implemented request and response schemas for Trino authorization queries.
- Added logic to handle various Trino resource types including tables, schemas, and functions.
- Configured the PDP to allow unauthenticated access to Trino endpoints via a new configuration flag.
- Updated the Makefile to include a new build target for the latest version.
- Created an example environment configuration file for easier setup.
This commit enhances the PDP server's capabilities to manage Trino authorization, improving integration with Trino services.
* Fix query string in Trino authorization checks by updating the resource identifier from "trino.sys" to "trino_sys" for consistency.1 parent aab7aeb commit 368ddee
File tree
15 files changed
+2480
-10
lines changed- pdp-server/src
- api
- trino
- schemas
- config
- opa_client
15 files changed
+2480
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
31 | 34 | | |
32 | 35 | | |
33 | 36 | | |
34 | 37 | | |
35 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
525 | 525 | | |
526 | 526 | | |
527 | 527 | | |
| 528 | + | |
528 | 529 | | |
529 | 530 | | |
530 | 531 | | |
| |||
591 | 592 | | |
592 | 593 | | |
593 | 594 | | |
| 595 | + | |
594 | 596 | | |
595 | 597 | | |
596 | 598 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
14 | | - | |
15 | | - | |
16 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
17 | 22 | | |
18 | 23 | | |
19 | 24 | | |
20 | 25 | | |
21 | | - | |
22 | | - | |
| 26 | + | |
23 | 27 | | |
24 | | - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
25 | 36 | | |
26 | 37 | | |
27 | 38 | | |
| |||
0 commit comments