-
Notifications
You must be signed in to change notification settings - Fork 2k
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
HTTP basic auth doesn't work with some commands #2773
Comments
This sounds like a bug, but you may want to use Nomad 0.6's Using mTLS for preventing unauthorized access is a much more secure method than HTTP basic auth. Nomad 0.7 will address access. |
Yes, TLS verification looks promising. |
This also affects 3rd party projects which use nomad/api like hashi-ui or nomad-exporter. |
It is now working with version: Nomad v0.7.1 |
Thanks for the update @kassybas! Sorry we left this one open, I believe it has been working since 0.6.2. |
I'm going to lock this issue because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active issues. |
Nomad version
Nomad v0.6.0-dev (c7d670f)
Operating system and Environment details
CentOS Linux release 7.3.1611 (Core)
Linux 4.4.60-11.el7.x86_64
Issue
We're trying to setup nginx proxy with basic auth in the front of nomad in order to deny access to nomad cluster like it was done by @mlafeldt in #1431 (Mathias, thank you for this)
But some commands, like
nomad logs
ornomad fs
don't support basic auth and fail with error:Reproduction steps
export NOMAD_ADDR=http://user:password@nomad-proxy
nomad logs ...
Didn't you plan to add support for basic auth for these commands?
I guess it's not possible to do it with
NOMAD_ADDR
variable, because nomad connects to another host.Maybe it would be more universal to add variables like
NOMAD_BASIC_AUTH_USER
andNOMAD_BASIC_AUTH_PASSWORD
and use them for authorization?The text was updated successfully, but these errors were encountered: