Skip to content

Add frontend auth support #168

@yamalight

Description

@yamalight

Traefik 1.7 introduced auth support for front-ends.
It can be achieved by using the following label:

# Sets basic authentication for that frontend in CSV format: User:Hash,User:Hash [2]
traefik.frontend.auth.basic=EXPR

[2] traefik.frontend.auth.basic=EXPR: To create user:password pair, it's possible to use this command echo $(htpasswd -nb user password) | sed -e s/\\$/\\$\\$/g. The result will be user:$$apr1$$9Cv/OMGj$$ZomWQzuQbL.3TRCS81A1g/, note additional symbol $ makes escaping.

We should add support for this in config file.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions