How to configure basic auth for protecting the traefik dashboard from public access #560
Closed
opened 2024-01-30 20:03:22 +00:00 by einarpersson
·
4 comments
Labels
Clear labels
abra
awaiting-feedback
backups
bug
build
ci/cd
community organising
contributing
coopcloud.tech
design
documentation
duplicate
enhancement
fedi
fedi-infra
finance
funding
good first issue
help wanted
installer
legal
performance
proposal
question
security
test
wontfix
Everything to do with abra
Ping/pong on comms
Something is not working
Go build related issues
Getting the robots into the mix
Opening this thing up
Contributors stuff
Our main website
Design thinking required
Let's write things together
This issue or pull request already exists
New feature
Democratic decision making
Money things
Anything related to grant funding
Easy start with development
Need some help
Installation related issues
Performance related
Large change which requires feedback & decisin making
More information is needed
Securing our shit
Unit or integration test suite
This won't be fixed
No labels
documentation
Milestone
No items
No Milestone
Projects
Clear projects
No projects
Assignees
3wordchant
aadil (Aadil Ayub)
abra-bot (Abra Bot)
ammaratef45
amras (Sarma)
Apfelwurm
BornDeleuze
Brooke
carla
cas (Cassowary)
coopcloud
cyrnel
decentral1se (d1)
dede
devydave
fauno (fauno)
iexos
jade (Jade Ambrose)
jjsfunhouse
jmakdah2 (Jackie Makdah)
joe-irving (Joe Irving)
kawaiipunk (KawaiiPunk)
knoflook
kolaente
lambdabundesverband
linnealovespie (April)
moosemower
moritz
notplants
oxaliq (sorrel)
p4u1
pharaohgraphy (Andrew 🐦🔥❤️🔥✴️)
renovate-bot (Comrade Renovate Bot)
ripclap
simon
sixsmith (Sixsmith)
stevensting
trav (Trav Fryer)
val (val (he/him))
yksflip
Clear assignees
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: toolshed/organising#560
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
I am following the guide, and the dashboard is now open to public. I reviewed the config and uncommented the lines:
In the compose file I see
I used
htpasswdto generate the secret as instructed, but I don't know what to do with it =) Should I place the generated file somewhere (according to userfile above) or inject the secret with the CLI or what? This should be covered in the tutorial so that you do not make something public by accident. This is especially easy since it's easy to think thatufwwould deny anything not opened, whereas Docker bypassesufw...Yes, great point! I am using
DASHBOARD_ENABLED=falseto stop making it public atm. I am not sure if that simple "off switch" is documented clearly either? Definitely nice to have basic auth option clearly laid out too.Yes, this,
abra app secret insert traefik.foo.com usersfile v1 ...HOWEVER! 🚨
compose.basicauth.ymlcurrently just makes thebasicAuthmiddleware available. That middleware is only so far used for metrics reporting (e.g. seetraefik.yml.tmpl, and coop-cloud/monitoring-ng), and for one app (Voila) where it was needed in a specific situation.I think for the Traefik dashboard we'd probably want a(nother) separate
compose.basicauth-dashboard.ymlto apply the relevantmiddlewarelabel to the Traefik dashboard router, to support cases where the dashboard is behind SSO but we still want thebasicAuthmiddleware defined.Either way, yes, existing
compose.basicauth.ymlcould do with a lot more explanation in README.It was definitely not documented in the Operators Tutorial, nor was it clear to a newcomer how to add HTTP Auth version. I will be clarifying both in the Docs
Docs: How to configure basic auth for protecting the traefik dashboard from public accessto How to configure basic auth for protecting the traefik dashboard from public accessMigration to recipe repo: coop-cloud/traefik#87