Skip to content

Commit 7c09b45

Browse files
committed
Update OPA and Regal to their latest versions
1 parent 0ab0f13 commit 7c09b45

File tree

3 files changed

+6
-11
lines changed

3 files changed

+6
-11
lines changed

.github/actions/build-policies/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ runs:
77
- name: Install Open Policy Agent
88
uses: open-policy-agent/[email protected]
99
with:
10-
version: 0.70.0
10+
version: 1.1.0
1111

1212
- name: Build the policies
1313
run: make

policies/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Set to 1 to run OPA through Docker
22
DOCKER := 0
33
PODMAN := 0
4-
OPA_DOCKER_IMAGE := docker.io/openpolicyagent/opa:0.70.0-debug
5-
REGAL_DOCKER_IMAGE := ghcr.io/styrainc/regal:0.29.2
4+
OPA_DOCKER_IMAGE := docker.io/openpolicyagent/opa:1.1.0-debug
5+
REGAL_DOCKER_IMAGE := ghcr.io/styrainc/regal:0.31.0
66

77
INPUTS := \
88
common/common.rego \

policies/client_registration/client_registration.rego

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ parse_uri(url) := obj if {
1818
obj := {"scheme": matches[1], "authority": matches[2], "host": matches[3], "port": matches[4], "path": matches[5]}
1919
}
2020

21-
secure_url(x) if {
22-
x
21+
secure_url(_) if {
2322
data.client_registration.allow_insecure_uris
2423
}
2524

@@ -37,16 +36,12 @@ secure_url(x) if {
3736
url.port == ""
3837
}
3938

40-
host_matches_client_uri(x) if {
41-
x
42-
39+
host_matches_client_uri(_) if {
4340
# Do not check we allow host mismatch
4441
data.client_registration.allow_host_mismatch
4542
}
4643

47-
host_matches_client_uri(x) if {
48-
x
49-
44+
host_matches_client_uri(_) if {
5045
# Do not check if the client_uri is missing and we allow that
5146
data.client_registration.allow_missing_client_uri
5247
not data.client_metadata.client_uri

0 commit comments

Comments
 (0)