Skip to content

Commit aa7587e

Browse files
authored
Merge branch 'main' into chore/bitnami-migration
2 parents 0668ed0 + 5ab37c6 commit aa7587e

File tree

13 files changed

+460
-513
lines changed

13 files changed

+460
-513
lines changed

tests/templates/kuttl/opa-authorization/11-opa-rego.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ commands:
66
# Trino Rego rules provided by the Stackable Data Platform
77
kubectl create configmap trino-opa-rules \
88
--namespace=$NAMESPACE \
9-
--from-file=trino_rules/actual_permissions.rego \
10-
--from-file=trino_rules/policies.rego \
11-
--from-file=trino_rules/requested_permissions.rego \
12-
--from-file=trino_rules/util.rego \
13-
--from-file=trino_rules/verification.rego
9+
--from-file=trino_rules/trino/actual_permissions.rego \
10+
--from-file=trino_rules/trino/policies.rego \
11+
--from-file=trino_rules/trino/requested_permissions.rego \
12+
--from-file=trino_rules/trino/util.rego \
13+
--from-file=trino_rules/trino/verification.rego
1414
kubectl label configmaps trino-opa-rules \
1515
opa.stackable.tech/bundle=true \
1616
--namespace=$NAMESPACE

tests/templates/kuttl/opa-authorization/trino_rules/.regal/config.yaml

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,13 @@
11
---
22
rules:
3+
imports:
4+
unresolved-reference:
5+
# `data.trino_policies` is provided by the user and not included
6+
# in the general trino rules.
7+
except-paths:
8+
- data.trino_policies.policies
9+
- data.trino_policies.extra_groups
310
style:
4-
external-reference:
5-
ignore:
6-
files:
7-
# The policy rules are used in the first_matching_rule
8-
# functions. To avoid these external references to the policy
9-
# rules, it would be necessary to add them as a parameter to
10-
# all functions, and call these functions even from
11-
# verification.rego with this parameter. Therefore, this
12-
# linter warning is ignored because the policy rules are
13-
# seen as the context for the actual_permissions.rego.
14-
- actual_permissions.rego
1511
file-length:
1612
ignore:
1713
files:

0 commit comments

Comments
 (0)