Skip to content
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

basic auth support #394

Merged
merged 7 commits into from
Sep 3, 2024
Merged

basic auth support #394

merged 7 commits into from
Sep 3, 2024

Conversation

PietroPasotti
Copy link
Contributor

This PR adds basic auth support for traefik.
This is an all-or-nothing, single-user basic implementation. In the future we might choose to extend it supporting per-route auth, as well as multi-user support.

Testing Instructions

Deploy traefik from this branch and relate it over any ingress, ingress-per-unit or traefik-route relation to another charm.
Go to https://www.transip.nl/htpasswd/ and enter some testing username/password pair. Copy the output string.

juju config traefik basic_auth_user='<that string>'

(make sure to escape any weird characters)

Now verify that you need to enter that user/password pair when trying to CURL or GET any urls proxied by traefik

@PietroPasotti PietroPasotti merged commit 51337de into main Sep 3, 2024
13 checks passed
@PietroPasotti PietroPasotti deleted the basic-auth-support branch September 3, 2024 08:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants