I am currently working on setting up SSO with OIDC. However, after searching many hours, I have come to the conclusion that accessing IdPs through proxies is currently not possible. The opensearch-dashboards.yml simply does not have an appropriate configuration option (as far as I can see). This means that I am getting 502 - Bad Gateway errors from opensearch-dashboards when it tries to load the well-known endpoint.
Looking at the Elasticsearch documentation, there seem to be proxy settings in Elastic/OpenSearch for OIDC providers and setting these does not throw any errors for me (even though they are not documented for OpenSearch):
However, the endpoint is also configured in the opensearch-dashboards.yml (opensearch_security.openid.connect_url) but there is apparently no proxy setting available.
Will this feature be added or this there currently a workaround to this?
Many thanks in advance!
- All containers on Docker version 20.10.12
- Starting with a docker compose v3