Skip to content

Extract OPA executable from opa docker image - #316

Merged
orishavit merged 6 commits into
permitio:masterfrom
tibotix:opa-extract-from-docker
Nov 8, 2022
Merged

orishavit merged 6 commits into
permitio:masterfrom
tibotix:opa-extract-from-docker

Conversation

@tibotix

@tibotix tibotix commented Nov 5, 2022

Copy link
Copy Markdown
Contributor

It is now possible to include various opa executable versions in the opal-client image (e.g. latest-istio, latest-istio-static, etc.). The tag of the openpolicyagent/opa docker image can be specified through the opa_tag docker build argument.

In the past only the main opa_linux_amd64_static executable was downloaded, which does for example not work with the envoy_ext_authz_grpc plugin. The opa:latest-istio tag on the other hand does work with the envoy_ext_authz_grpc plugin.

As the opa executable is different in respectively different docker tags, it would be cool to support these different versions as the inline opa process as well.

The current tags that are downloaded from openpolicyagent/opa are:

  • latest
  • latest-static
  • latest-istio
  • latest-istio-static

These can also be configured in the docker_build_and_publish workflow.
For each tag a separate opal-client image with the respective tag will be published as well.

this allows for various opa versions to be included in the
opal-client image (e.g. latest-istio, latest-istio-static, etc.).
The tag of the openpolicyagent/opa docker image can be specified through
the `opa_tag` docker build argument.
@netlify

netlify Bot commented Nov 5, 2022 •

Copy link
Copy Markdown

✅ Deploy Preview for opal-docs canceled.

Name Link
🔨 Latest commit 458de42
🔍 Latest deploy log https://app.netlify.com/sites/opal-docs/deploys/636a5ae2ba6e0d000934bfe0

@orweis

orweis commented Nov 5, 2022 •

Copy link
Copy Markdown
Contributor

This looks like very cool.
Thank you for contributing.
The team will review this soon.

Cc: @asafc , @orishavit

@tibotix

tibotix commented Nov 6, 2022

Copy link
Copy Markdown
Contributor Author

Thanks.

Btw the python3.7 ImportError is caused by importlib-metadata. See python/importlib_metadata#411 . Would be better to open a new PR to pin importlib-metadata<5.0 until this is fixed for python3.7

@orweis
orweis requested review from asafc and orishavit November 6, 2022 03:22
@orishavit

Copy link
Copy Markdown
Contributor

Hi @tibotix, thanks for the PR!

I don't think we would like to create multiple variants of the opal-client docker image, but having the OPA binary type as a parameter to the Dockerfile, so that users could build their own, would be very helpful.

Thanks!

This reverts commit cf961ad
and 6b63bd0.
@tibotix

tibotix commented Nov 8, 2022

Copy link
Copy Markdown
Contributor Author

All right, fair enough. I reverted the corresponding commits.

@orishavit
orishavit merged commit f416dcf into permitio:master Nov 8, 2022
@orishavit

Copy link
Copy Markdown
Contributor

Thanks!

filipermit pushed a commit to filipermit/opal that referenced this pull request Nov 29, 2022
This allows for various OPA versions to be included in the
opal-client image (e.g. latest-istio, latest-istio-static, etc.).
The tag of the openpolicyagent/opa docker image can be specified through
the `opa_tag` docker build argument.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants