-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Document different regorules for v414 and v428 due to authorizer changes
- Loading branch information
1 parent
30ffb42
commit d922089
Showing
3 changed files
with
39 additions
and
1 deletion.
There are no files selected for viewing
File renamed without changes.
27 changes: 27 additions & 0 deletions
27
docs/modules/trino/examples/usage-guide/opa-bundle-trino-cm-428.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
--- | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: opa-bundle-trino | ||
labels: | ||
opa.stackable.tech/bundle: "true" | ||
data: | ||
trino.rego: | | ||
package trino | ||
import future.keywords.in | ||
default allow = false | ||
allow { | ||
is_admin | ||
} | ||
extended[i] { | ||
some i | ||
input.action.filterResources[i] | ||
is_admin | ||
} | ||
is_admin() { | ||
input.context.identity.user == "admin" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters