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

Make package opa-docker-authz public #82

Closed
anderseknert opened this issue Nov 20, 2023 · 3 comments
Closed

Make package opa-docker-authz public #82

anderseknert opened this issue Nov 20, 2023 · 3 comments

Comments

@anderseknert
Copy link
Member

anderseknert commented Nov 20, 2023

Hey, @ashutosh-narkar, @tsandall! I'm going to need your help with this one.

@larhauga has done some good work to get this plugin published automatically to ghcr.io, as part of CI. This will be a good improvement compared to the manual process that we've used for this repo, where the last release is 2 years old. I've verified that the push works as expected, but the package is currently private, and apparently only an org owner can make that change, which I am not.

Could you please help me with the following?

  1. In the rightmost column on the project main page, click "Packages".
  2. Click "opa-docker-authz"
  3. In the bottom of the column to the right, click "Package settings"
  4. At the bottom under "Danger Zone" 😎 click "Change package visibilty" and make it public

Thanks 👍

@anderseknert
Copy link
Member Author

The package is public now. @larhauga if you try it and fint everything works as expected, let me know! Next step would be a tag, and then to have the docs updated and use the new location consistently.

Thanks @ashutosh-narkar for fixing this 👍

@larhauga
Copy link
Contributor

Awesome 🙌 Works great in dind in kubernetes 👍 Thanks for all your help!

# startup
until [ -S /var/run/docker.sock ]; do sleep 1; done &&
docker plugin install --grant-all-permissions --alias opa-docker-authz ghcr.io/open-policy-agent/opa-docker-authz:edge opa-args='-policy-file /opa/opa-conf.rego'  >/proc/1/fd/1 2>&1 &&
echo '{"authorization-plugins": ["opa-docker-authz"]}' > /etc/docker/daemon.json &&
kill -HUP $(pidof dockerd)

# inspect
docker plugin inspect opa-docker-authz:latest
        "PluginReference": "ghcr.io/open-policy-agent/opa-docker-authz:edge",

docker run --rm -it --privileged fedora:latest sh
docker: Error response from daemon: authorization denied by plugin opa-docker-authz:latest: request rejected by administrative policy.

@anderseknert
Copy link
Member Author

That's awesome! Thanks for letting me know 👍

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

No branches or pull requests

2 participants