Skip to content

Commit bd819c7

Browse files
committed
Revert deploy/helm/trino-lb/templates/trinos.yaml
1 parent 7da8935 commit bd819c7

1 file changed

Lines changed: 0 additions & 65 deletions

File tree

deploy/helm/trino-lb/templates/trinos.yaml

Lines changed: 0 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@ spec:
1616
listenerClass: external-stable
1717
authentication:
1818
- authenticationClass: trino-users
19-
authorization:
20-
opa:
21-
configMapName: opa
22-
package: trino
2319
coordinators:
2420
configOverrides: &configOverrides
2521
config.properties:
@@ -52,10 +48,6 @@ spec:
5248
listenerClass: external-stable
5349
authentication:
5450
- authenticationClass: trino-users
55-
authorization:
56-
opa:
57-
configMapName: opa
58-
package: trino
5951
coordinators:
6052
configOverrides: &configOverrides
6153
config.properties:
@@ -100,60 +92,3 @@ metadata:
10092
spec:
10193
connector:
10294
tpch: {}
103-
---
104-
apiVersion: opa.stackable.tech/v1alpha1
105-
kind: OpaCluster
106-
metadata:
107-
name: opa
108-
namespace: default
109-
spec:
110-
image:
111-
productVersion: 0.67.1
112-
servers:
113-
roleGroups:
114-
default:
115-
replicas: 1
116-
---
117-
apiVersion: v1
118-
kind: ConfigMap
119-
metadata:
120-
name: trino-opa-bundle
121-
namespace: default
122-
labels:
123-
opa.stackable.tech/bundle: "trino"
124-
data:
125-
trino.rego: |
126-
package trino
127-
128-
import rego.v1
129-
130-
default allow = false
131-
132-
# Allow non-batched access
133-
allow if {
134-
is_admin
135-
}
136-
# Allow batched access
137-
batch contains i if {
138-
some i
139-
input.action.filterResources[i]
140-
is_admin
141-
}
142-
# Corner case: filtering columns is done with a single table item, and many columns inside
143-
batch contains i if {
144-
some i
145-
input.action.operation == "FilterColumns"
146-
count(input.action.filterResources) == 1
147-
input.action.filterResources[0].table.columns[i]
148-
is_admin
149-
}
150-
151-
is_admin() if {
152-
input.context.identity.user == "admin"
153-
}
154-
155-
# Allow graceful shutdown, see https://docs.stackable.tech/home/stable/trino/usage-guide/operations/graceful-shutdown/#_authorization_requirements
156-
allow if {
157-
input.action.operation == "WriteSystemInformation"
158-
input.context.identity.user == "graceful-shutdown-user"
159-
}

0 commit comments

Comments
 (0)