ERROR PROXY SYSTEM CANT BE USED #729
Replies: 2 comments 2 replies
-
Hey @SoufianLabed :) |
Beta Was this translation helpful? Give feedback.
-
Hey @SoufianLabed , thank you for sharing that 🌟 As you've mentioned, we are using This feature could be enabled by a configuration for OPAL to set up a proxy for outbound requests. Though, that should be done individually for each component of OPAL - the OPA Engine (like the one you've requested), Policy Store, Data Sources, etc. Considering OPAL is usually run inside a Docker container, configuring the proxy at the container level might be trickier, so I would opt to add an explicit with a configuration like Would you like to contribute that as a PR adding this capability? |
Beta Was this translation helpful? Give feedback.
-
Hello,
I'm following this tutorial in docker env : https://docs.opal.ac/getting-started/quickstart/opal-playground/publishing-data-update
Once i run the command below, opal try a get request on https://api.country.is/23.54.6.78
"curl -w '\n' --request POST 'http://localhost:8181/v1/data/app/rbac/allow'
--header 'Content-Type: application/json'
--data-raw '{"input": {"user": "bob", "action": "read", "object": "id123", "type": "finance"}}'"
An error occurs : Cannot connect to host api.country.is:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1007)')]
After investigating, i found that the error is from aiohttp who doesn't use the proxy system cause in some files the aiohttp client session is not instancied with trust_env=true parameter who allows to use system proxy. (exemple : /opal_client/policy_store/opa_client.py)
Is there any way to use opa-client behind a proxy or am I wrong on something I did ?
Thanks for your help.
OPAL version
Beta Was this translation helpful? Give feedback.
All reactions