-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
docs: Add --addr
cmd argument in documentations
#7360
Comments
Sounds good to me 👍 Some info from here could be lifted to the v1 upgrade guide, or linked https://www.openpolicyagent.org/docs/latest/security/#interface-binding And the docs on Docker updated. |
This is also covered in the v0 compatibility guide. I agree that it certainly won't hurt to include a note on that in the v1 documentation though, as this may impact even users not interested in v0 compatibility. |
I haven't looked into the details, and very much just thinking out loud here. But if the default setting results in containerized OPA not being reachable, I wonder if we instead could try and detect when we run in a container and adjust the defaults in that case? 🤔 |
That would be nice! Currently OPA's behavior differs when running as a local process vs inside a container. Binding the containerized OPA to the |
Fixes open-policy-agent#7360 Also https://github.com/orgs/open-policy-agent/discussions/662#discussioncomment-12338962 Signed-off-by: Charlie Egan <[email protected]>
Fixes open-policy-agent#7360 Also https://github.com/orgs/open-policy-agent/discussions/662#discussioncomment-12338962 Signed-off-by: Charlie Egan <[email protected]>
Fixes open-policy-agent#7360 Also https://github.com/orgs/open-policy-agent/discussions/662#discussioncomment-12338962t Signed-off-by: Charlie Egan <[email protected]>
Short description
In OPA v1.0+, the server is exposed only on
localhost
network interface, while in OPA v0.x the server was exposed on all network interfaces (#6286). This change would cause OPA instances in Docker environment to only be exposed onlocalhost:8181
and not be accessible from host machine (unless--addr=0.0.0.0:8181
argument would be passed).Steps To Reproduce
According to Running with Docker documentation, by executing the following command:
OPA server would not return the response in the host machine by running:
Example response:
(Tested with OPA v1.1.0 on Mac and Windows)
Expected behavior
It would be nice to update these 2 docs:
--addr:0.0.0.0:8181
in the example command in Running with Docker documentAdditional context
Related issue: #7264
The text was updated successfully, but these errors were encountered: