File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ metadata:
5
5
name : trino
6
6
spec :
7
7
image :
8
- productVersion : " 428 "
8
+ productVersion : " 442 "
9
9
clusterConfig :
10
10
listenerClass : external-unstable
11
11
catalogLabelSelector :
@@ -116,29 +116,29 @@ data:
116
116
trino.rego : |
117
117
package trino
118
118
119
- import future.keywords.in
119
+ import rego.v1
120
120
121
121
default allow = false
122
122
123
123
# Allow non-batched access
124
- allow {
124
+ allow if {
125
125
is_admin
126
126
}
127
127
# Allow batched access
128
- extended[i] {
128
+ batch contains i if {
129
129
some i
130
130
input.action.filterResources[i]
131
131
is_admin
132
132
}
133
133
# Corner case: filtering columns is done with a single table item, and many columns inside
134
- extended[i] {
134
+ batch contains i if {
135
135
some i
136
136
input.action.operation == "FilterColumns"
137
137
count(input.action.filterResources) == 1
138
138
input.action.filterResources[0].table.columns[i]
139
139
is_admin
140
140
}
141
141
142
- is_admin() {
142
+ is_admin() if {
143
143
input.context.identity.user == "admin"
144
144
}
You can’t perform that action at this time.
0 commit comments