Skip to content

Commit de005da

Browse files
authored
chore(opa): Bump to 1.0.0 (#143)
* Updating opa to 1.0.0 * Addressing feedback * Removing import rego.V1
1 parent ea798e9 commit de005da

File tree

11 files changed

+6
-34
lines changed

11 files changed

+6
-34
lines changed

docs/modules/demos/pages/end-to-end-security.adoc

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -227,8 +227,6 @@ The ACLs configuring this behavior (written with the {rego}[Rego language]) on t
227227
----
228228
package trino_policies
229229
230-
import rego.v1
231-
232230
policies := {
233231
"tables": [
234232
{
@@ -270,8 +268,6 @@ The Rego rule for this behavior looks like this (again a snippet from the {trino
270268
----
271269
package trino_policies
272270
273-
import rego.v1
274-
275271
policies := {
276272
"tables": [
277273
{

stacks/data-lakehouse-iceberg-trino-spark/trino.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ metadata:
114114
name: opa
115115
spec:
116116
image:
117-
productVersion: 0.67.1
117+
productVersion: 1.0.0
118118
servers:
119119
roleGroups:
120120
default: {}
@@ -129,8 +129,6 @@ data:
129129
trino.rego: |
130130
package trino
131131
132-
import rego.v1
133-
134132
default allow = false
135133
136134
# Allow non-batched access

stacks/dual-hive-hdfs-s3/trino.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ metadata:
8686
name: opa
8787
spec:
8888
image:
89-
productVersion: 0.67.1
89+
productVersion: 1.0.0
9090
servers:
9191
roleGroups:
9292
default:
@@ -102,8 +102,6 @@ data:
102102
trino.rego: |
103103
package trino
104104
105-
import rego.v1
106-
107105
default allow = false
108106
109107
# Allow non-batched access

stacks/end-to-end-security/hdfs-regorules.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ data:
99
hdfs.rego: |
1010
package hdfs
1111
12-
import rego.v1
13-
1412
default allow := false
1513
default matches_identity(identity) := false
1614

stacks/end-to-end-security/opa.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ metadata:
55
name: opa
66
spec:
77
image:
8-
productVersion: 0.67.1
8+
productVersion: 1.0.0
99
clusterConfig:
1010
userInfo:
1111
backend:

stacks/end-to-end-security/trino-policies.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ data:
99
trino_policies.rego: |
1010
package trino_policies
1111
12-
import rego.v1
13-
1412
policies := {
1513
"catalogs": [
1614
# Needed to bootstrap schemas and tables

stacks/end-to-end-security/trino-regorules.yaml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ data:
1111
package trino
1212
1313
import data.util
14-
import rego.v1
1514
1615
# This file contains functions to determine the actual permissions
1716
# defined in the Trino policies for the given user and requested
@@ -36,7 +35,6 @@ data:
3635
#
3736
# Example:
3837
# package trino_policies
39-
# import rego.v1
4038
# extra_groups := groups if {
4139
# request := {
4240
# "method": "POST",
@@ -579,7 +577,6 @@ data:
579577
package trino
580578
581579
import data.util
582-
import rego.v1
583580
584581
# The final policies are a combination of policies offered by Stackable,
585582
# policies provided externally, and default policies.
@@ -596,7 +593,6 @@ data:
596593
#
597594
# Example:
598595
# package trino_policies
599-
# import rego.v1
600596
# policies := {
601597
# "catalogs": [
602598
# {
@@ -757,8 +753,6 @@ data:
757753
requested_permissions.rego: |
758754
package trino
759755
760-
import rego.v1
761-
762756
# This file contains the requested_permissions rule which returns a set
763757
# of required permissions for the given operation including the
764758
# requested resource. Operations with the same set of required
@@ -1439,8 +1433,6 @@ data:
14391433
# - data.trino_policies.policies: schema.policies
14401434
package trino
14411435
1442-
import rego.v1
1443-
14441436
# METADATA
14451437
# description: |
14461438
# Entry point for OPA policies, configured in the Trino property
@@ -1780,8 +1772,6 @@ data:
17801772
# description: Utility package which extends the built-in functions
17811773
package util
17821774
1783-
import rego.v1
1784-
17851775
# METADATA
17861776
# description: |
17871777
# Matches the entire string against a regular expression.

stacks/keycloak-opa-poc/opa.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ metadata:
55
name: opa
66
spec:
77
image:
8-
productVersion: 0.67.1
8+
productVersion: 1.0.0
99
servers:
1010
roleGroups:
1111
default: {}

stacks/keycloak-opa-poc/policies.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ metadata:
88
data:
99
trino.rego: |
1010
package trino
11-
import rego.v1
1211
1312
default allow = false
1413
@@ -31,7 +30,6 @@ data:
3130
druid.rego: |
3231
package druid
3332
import data.bundles.opagroups.admins
34-
import rego.v1
3533
3634
default allow = false
3735

stacks/trino-iceberg/trino.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ metadata:
9999
name: opa
100100
spec:
101101
image:
102-
productVersion: 0.67.1
102+
productVersion: 1.0.0
103103
servers:
104104
roleGroups:
105105
default:
@@ -115,8 +115,6 @@ data:
115115
trino.rego: |
116116
package trino
117117
118-
import rego.v1
119-
120118
default allow = false
121119
122120
# Allow non-batched access

stacks/trino-superset-s3/trino.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ metadata:
7171
name: opa
7272
spec:
7373
image:
74-
productVersion: 0.67.1
74+
productVersion: 1.0.0
7575
servers:
7676
roleGroups:
7777
default: {}
@@ -86,8 +86,6 @@ data:
8686
trino.rego: |
8787
package trino
8888
89-
import rego.v1
90-
9189
default allow = false
9290
9391
# Allow non-batched access

0 commit comments

Comments
 (0)