Closed mloiseleur closed 4 months ago
On the contrary, if enabled, there should be an option to configure the authentication(at least basic).
@x0ddf There is a complete example on basic auth. Is this what you have in mind ?
@mloiseleur almost, but the whole logic can be simplified for the basic auth case(middleware + secret could be created automatically):
ingressRoute:
dashboard:
basicAuth:
# according to the documentation https://doc.traefik.io/traefik/middlewares/http/basicauth/#usersfile
usersFile: ""
# from this array we could generate usersFile entry https://helm.sh/docs/chart_template_guide/function_list/#htpasswd
users:
- name: someuser
pass: somepass
Many people deploy Traefik using GitOps principles. It is not desirable to have secrets stored in a repository. An additional requirement would be to reference an existing secret here. It might even be feasible to include an OAuth2 proxy example instead of basic auth.
@oscrx, I agree with existingSecret
but strongly disagree with OAuth2, it's an enterprise feature. Putting ForwardAuthentication is useless because it could be added via ingressRoute.dashboard.middlewares
.
@oscrx @x0ddf Feel free to open a PR in order to improve authentication options / settings on dashboard, if you need it.
With PR #1111, dashboard is now disabled by default. => I close this issue.
Current Situation
By default in this Chart, Traefik Proxy local dashboard is deployed with those settings:
It means that the API and the dashboard are enabled by default, on traefik entrypoint. By default, Traefik Proxy does not enable them. It's explained in upstream documentation why:
It says also:
It also means an Helm Chart user can miss that it's the default in the Chart, missed the fact that it's enabled and read what is required for production environment.
Proposal
Keeping the same setting and disable dashboard (and so API) by default.
So, the values would become:
It comes with the following benefits:
It has also some impact: