Skip to content

Commit c146817

Browse files
committed
Changed OPA version to 0.70.0
1 parent 6abc1d3 commit c146817

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

Makefile

+5
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,11 @@ docker-build-next:
6565
@docker build -t permitio/opal-client:next --target client -f docker/Dockerfile .
6666
@docker build -t permitio/opal-server:next --target server -f docker/Dockerfile .
6767

68+
docker-build-latest:
69+
@docker build -t permitio/opal-client-standalone:latest --target client-standalone -f docker/Dockerfile .
70+
@docker build -t permitio/opal-client:latest --target client -f docker/Dockerfile .
71+
@docker build -t permitio/opal-server:latest --target server -f docker/Dockerfile .
72+
6873
docker-run-server:
6974
@if [[ -z "$(OPAL_POLICY_REPO_SSH_KEY)" ]]; then \
7075
docker run -it \

docker/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ WORKDIR /opal
9696

9797
# copy opa from official docker image
9898
ARG opa_image=openpolicyagent/opa
99-
ARG opa_tag=latest-static
99+
ARG opa_tag=0.70.0-static
100100
RUN skopeo copy "docker://${opa_image}:${opa_tag}" docker-archive:./image.tar && \
101101
mkdir image && tar xf image.tar -C ./image && cat image/*.tar | tar xf - -C ./image -i && \
102102
find image/ -name "opa*" -type f -executable -print0 | xargs -0 -I "{}" cp {} ./opa && chmod 755 ./opa && \

packages/opal-client/opal_client/engine/options.py

+4
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,10 @@ class OpaServerOptions(BaseModel):
7171
None,
7272
description="list of built-in rego policies and data.json files that must be loaded into OPA on startup. e.g: system.authz policy when using --authorization=basic, see: https://www.openpolicyagent.org/docs/latest/security/#authentication-and-authorization",
7373
)
74+
v0_compatible: bool = Field(
75+
False,
76+
description="set to true to enable the OPA v0 compatibility mode (default false)",
77+
)
7478

7579
class Config:
7680
use_enum_values = True

0 commit comments

Comments
 (0)