-
Notifications
You must be signed in to change notification settings - Fork 164
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
[Enhancement] Add proxy authentication support to multi-auth framework #1724
Comments
Hello @samk-acw, thank you for opening. @opensearch-project/admin, can you please move this to https://github.com/opensearch-project/security-dashboards-plugin |
[Triage] Hi @samk-acw, thank you for filing this issue. Currently, multiple authentication forms are only supported for external identity provider sign on options (SAML, OIDC, etc.) and basic auth or bearer auth. That being said, support for proxy authentication alongside basic auth would be a change we would be interested in seeing should you be willing to propose a design or open a PR. I will mark this as an enhancement and change the title so that it is clear what the issue is requesting. Thank you :) (Sorry the documentation was not clear on this, we will get that addressed in the meantime) |
The currently support auth types for multiauth can be found here: https://github.com/opensearch-project/security-dashboards-plugin/blob/main/server/auth/types/multiple/multi_auth.ts#L51-L101 |
This comment was marked as off-topic.
This comment was marked as off-topic.
@samk-acw and @Manuelraa could you please provide copies of your OpenSearch dashboards and Nginx/other proxy configuration? I see where the code enforces the behavior you are mentioning but would like to reproduce your issue before making changes. Thanks Edit: Also if you are running with docker please provide a copy of your docker compose; in my testing docker can cause complications with the proxy setup. |
Sorry I must have commented on the wrong issue. |
This is resolved with #2076 |
description
I've setup proxy authentication and it works fine, however I want to also allow basicauth as well to allow non-SSO users, but it doesn't seem to be supported.
Multiple auth types is possible according to https://opensearch.org/docs/latest/security/configuration/multi-auth/ but this doesn't mention proxy auth.
Attempting to configure both proxy and basicauth results in opensearch-dashboards not being able to start, showing "Error: Unsupported authentication type: proxy"
To Reproduce
Steps to reproduce the behavior:
Expected behavior
dashboards should allow proxy auth in combination with other auth types - eg use proxy auth if the relevant headers are present and request is coming from an allowed proxy, otherwise go to the regular login page.
OpenSearch Version
2.11.1
Dashboards Version
2.11.1
Plugins
defaults
Host/Environment (please complete the following information):
Debian 12
The text was updated successfully, but these errors were encountered: