Skip to content

Commit d6667ca

Browse files
committed
Removing import rego.V1
1 parent 93315f9 commit d6667ca

File tree

9 files changed

+0
-28
lines changed

9 files changed

+0
-28
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: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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/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/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: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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)