-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Description
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 on localhost: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:
docker run -p 8181:8181 openpolicyagent/opa run --server --log-level debugOPA server would not return the response in the host machine by running:
curl -i localhost:8181/Example response:
curl: (52) Empty reply from server
(Tested with OPA v1.1.0 on Mac and Windows)
Expected behavior
It would be nice to update these 2 docs:
- Adding a short note about exposed network interfaces and
--addr:0.0.0.0:8181in the example command in Running with Docker document - Adding a section in Upgrading to v1.0 document to explain this change, its reason, and how to expose OPA server to all network interfaces
Additional context
Related issue: #7264
Metadata
Metadata
Assignees
Type
Projects
Status
Done