-
Hi, docker: Error response from daemon: aufhorization denied by plugin opa-docker-authz: request rejected by administrative policy.
See 'docker run --help' . My knowlege of the Open Policy Agent and the Regards, |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments
-
Hmm, I don't believe we've tested Actions Importer when using Open Policy Agent. However, based on that error message and the documentation here, it would seem you can't run any docker commands on your system (you could try In the documentation linked above, the same error message exists toward the end of the 5th step (Test that the policy definition is working). Is it possible for you to modify the policy document to add the allow rule as shown in step 1 of the above documentation? |
Beta Was this translation helpful? Give feedback.
-
Hey
What is the reason why the docker container for actions-importer requires |
Beta Was this translation helpful? Give feedback.
-
I'd be very grateful if someone at GitHub could share some insights on this issue based on the questions of @Ravio1i and myself. For the use of the |
Beta Was this translation helpful? Give feedback.
-
Hi @AdrianDsg thanks for the question. I have created a internal issue to add a option to not use the host network and hopefully this will address the issues you are having. The main reason we set |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
@j-dunham thanks for your reply and sharing the insights on the networking requirements. To enhance the UX for users of the actions-importer it might be good to add those requirements to the documentation. When using the actions-importer on a ubuntu image on WSL on a Windows 10 machine I did experience some network issues. However these were related to the authentication with the Azure DevOps Server used to test the migration. I was able to resolve these issues by moving to a machine with a regular ubuntu installation. Leaving the networking requirements aside are there further requirements required for the docker image? Is there anything related to the storage access? Please consider locking this conversation to contributors (and GitHub Staff) to reduce the noise. |
Beta Was this translation helpful? Give feedback.
-
Hi @AdrianDsg! We just released version
|
Beta Was this translation helpful? Give feedback.
Hi @AdrianDsg! We just released version
1.3.3
which adds the CLI flag--no-host-network
which will prevent the use of the host network, and use the default bridge network instead. After this version the only known requirement of docker is the ability to create a bind mount in the currently working directory the command is run from. This is so the files generated inside of the docker container can be accessed outside of the container. We also recommend the command not be run in the root directory of the machine running it to avoid possible file permission errors.