-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Consul KV basicauth configuration for frontend not working #2718
Comments
Thanks for your interest in Traefik 😃 The support of the basic auth in the KV come in 1.6 (see the milestone section of #2652) |
A workaround can be the use of a custom template: # Override default configuration template.
# For advanced users :)
#
# Optional
#
# filename = "consul.tmpl" |
I've tried that, but I've got the impression that the configuration file wasn't loaded. Any changes to the line with basicAuth has no effect. |
Warning: I don't recommend to that because it's not compatible with In v1.5, you can add some coma separated values (not compatible with
example
|
Hmmm... Looks great, thanks. Is the kv.tmpl in the templates dir of the
repo the default one? I mean it's save to use that for the mentioned
changes?
|
My example is a copy of https://github.com/containous/traefik/blob/v1.5/templates/kv.tmpl, I just added a basic Auth template section. As you can see I heavily rewritten the template on master https://github.com/containous/traefik/blob/master/templates/kv.tmpl and this template (on master) is not compatible with the 1.5. |
Just ran into a similar issue with |
Do you want to request a feature or report a bug?
BUG
What did you do?
I wanted to add basic-authentication to a frontend which is configured in consul KV
(configured as shown below)
What did you expect to see?
I would expect that the basic authentication for the frontend will be shown on access.
What did you see instead?
There is no basic auth.
Within the logs I see that basicAuth is null, as such I think that the configuration isn't loaded correctly.
Output of
traefik version
: (What version of Traefik are you using?)v1.4.6 / roquefort
docker image:
traefik:v1.4.6
What is your environment & configuration (arguments, toml, provider, platform, ...)?
The configuration is run in a docker swarm mode cluster. The related configuration isn't loaded using docker swarm mode. It's an external service (backend) hosted outside of docker.
If applicable, please paste the log output in debug mode (
--debug
switch)The text was updated successfully, but these errors were encountered: