File tree Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change 1
- FROM openpolicyagent/opa:0.70.0-istio- static@sha256:808342677946849bd359e519666a0b5097885961d2a8f6482e0c99b598e2a996
1
+ FROM openpolicyagent/opa:1.4.2-envoy-1- static@sha256:073bbd180c52f8a148914a577f5030fda007630268a54087796f55cdab2f6732
2
2
3
3
COPY --chmod=644 ./config/opa-service/policy.rego /etc/policy.rego
Original file line number Diff line number Diff line change 1
1
package envoy.authz
2
2
3
3
import input.attributes.request.http as http_request
4
+ import rego.v1
4
5
5
- default allow = false
6
+ default allow : = false
6
7
7
- allow = response {
8
- http_request.method == " GET"
9
- response := {
10
- " allowed" : true ,
11
- " headers" : {" x-current-user" : " OPA" }
12
- }
8
+ allow : = response if {
9
+ http_request.method == " GET"
10
+ response := {
11
+ " allowed" : true ,
12
+ " headers" : {" x-current-user" : " OPA" },
13
+ }
13
14
}
You can’t perform that action at this time.
0 commit comments