Skip to content

Commit 1276553

Browse files
authored
chore(opa) bump to 1.0.0 in integration tests and docs (#701)
* chore(opa) bump to 1.0.0 in integration tests and docs * removing rego.v1
1 parent 8519945 commit 1276553

15 files changed

+2
-25
lines changed

docs/modules/trino/examples/usage-guide/opa-bundle-trino-cm.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ data:
99
trino.rego: |
1010
package trino
1111
12-
import rego.v1
13-
1412
default allow = false
1513
1614
# Allow non-batched access

examples/simple-trino-cluster-authentication-opa-authorization-s3.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ metadata:
5151
name: simple-opa
5252
spec:
5353
image:
54-
productVersion: 0.66.0
54+
productVersion: 1.0.0
5555
servers:
5656
roleGroups:
5757
default: {}
@@ -66,8 +66,6 @@ data:
6666
trino.rego: |
6767
package trino
6868
69-
import rego.v1
70-
7169
default allow = false
7270
7371
# Allow non-batched access

tests/templates/kuttl/opa-authorization/trino_policies.rego

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package trino_policies
22

3-
import rego.v1
4-
53
policies := {
64
"catalogs": [
75
{

tests/templates/kuttl/opa-authorization/trino_rules/actual_permissions.rego

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package trino
22

33
import data.util
4-
import rego.v1
54

65
# This file contains functions to determine the actual permissions
76
# defined in the Trino policies for the given user and requested
@@ -26,7 +25,6 @@ identity := input.context.identity
2625
#
2726
# Example:
2827
# package trino_policies
29-
# import rego.v1
3028
# extra_groups := data.stackable.opa.userinfo.v1.userInfoByUsername(input.context.identity.user).groups
3129
default extra_groups := []
3230

tests/templates/kuttl/opa-authorization/trino_rules/actual_permissions_test.rego

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package actual_permissions_test
22

33
import data.trino
4-
import rego.v1
54

65
# These tests check that all rules and functions return the expected
76
# result for the given test identity and action.

tests/templates/kuttl/opa-authorization/trino_rules/policies.rego

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package trino
22

33
import data.util
4-
import rego.v1
54

65
# The final policies are a combination of policies offered by Stackable,
76
# policies provided externally, and default policies.
@@ -18,7 +17,6 @@ import rego.v1
1817
#
1918
# Example:
2019
# package trino_policies
21-
# import rego.v1
2220
# policies := {
2321
# "catalogs": [
2422
# {

tests/templates/kuttl/opa-authorization/trino_rules/policies_test.rego

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package policies_test
22

33
import data.trino
4-
import rego.v1
54

65
# These tests check that all rule lists are concatenated as expected and
76
# that defaults are applied if necessary.

tests/templates/kuttl/opa-authorization/trino_rules/requested_permissions.rego

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package trino
22

3-
import rego.v1
4-
53
# This file contains the requested_permissions rule which returns a set
64
# of required permissions for the given operation including the
75
# requested resource. Operations with the same set of required

tests/templates/kuttl/opa-authorization/trino_rules/requested_permissions_test.rego

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package requested_permissions_test
22

33
import data.trino
4-
import rego.v1
54

65
# These tests check that the returned rules are well-formed. Typos and
76
# copy-and-paste errors should be detected. It is intentionally not

tests/templates/kuttl/opa-authorization/trino_rules/util.rego

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
# description: Utility package which extends the built-in functions
33
package util
44

5-
import rego.v1
6-
75
# METADATA
86
# description: |
97
# Matches the entire string against a regular expression.

tests/templates/kuttl/opa-authorization/trino_rules/util_test.rego

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package util_test
22

33
import data.util
4-
import rego.v1
54

65
test_match_entire if {
76
util.match_entire(`a`, "a")

tests/templates/kuttl/opa-authorization/trino_rules/verification.rego

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@
2222
# - data.trino_policies.policies: schema.policies
2323
package trino
2424

25-
import rego.v1
26-
2725
# METADATA
2826
# description: |
2927
# Entry point for OPA policies, configured in the Trino property

tests/templates/kuttl/opa-authorization/trino_rules/verification_test.rego

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package verification_test
22

33
import data.trino
4-
import rego.v1
54

65
# These unit tests cover all incremental definitions of the rules in
76
# verification.rego. For testing the allow rule, operations were

tests/templates/kuttl/smoke/09-install-opa.yaml.j2

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ data:
2525
trino.rego: |
2626
package trino
2727

28-
import rego.v1
29-
3028
default allow = false
3129

3230
allow if {

tests/test-definition.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ dimensions:
3131
- 4.0.0
3232
- name: opa
3333
values:
34-
- 0.66.0
34+
- 1.0.0
3535
- name: hdfs
3636
values:
3737
- 3.4.0

0 commit comments

Comments
 (0)