Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extract OPA executable from opa docker image #316

Merged
merged 6 commits into from
Nov 8, 2022

Conversation

tibotix
Copy link
Contributor

@tibotix tibotix commented Nov 5, 2022

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
Copy link

netlify bot commented Nov 5, 2022

Deploy Preview for opal-docs canceled.

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

@orweis
Copy link
Contributor

orweis commented Nov 5, 2022

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

Cc: @asafc , @orishavit

@tibotix
Copy link
Contributor Author

tibotix commented Nov 6, 2022

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

@orishavit
Copy link
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
Copy link
Contributor Author

tibotix commented Nov 8, 2022

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

@orishavit orishavit merged commit f416dcf into permitio:master Nov 8, 2022
@orishavit
Copy link
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