Skip to content

Basic Auth Middleware

Appears in

  • .Values.middlewares.$name.data

users

Define the users

Keymiddlewares.$name.data.users
Typelist of map
Required
Helm tpl
Default-

Example

middlewares:
middleware-name:
data:
users:
- username: some-username
password: some-password

users[].username

Define the username

Keymiddlewares.$name.data.users.username
Typestring
Required
Helm tpl
Default-

Example

middlewares:
middleware-name:
data:
users:
- username: some-username
password: some-password

users[].password

Define the password

Keymiddlewares.$name.data.users.password
Typestring
Required
Helm tpl
Default-

Example

middlewares:
middleware-name:
data:
users:
- username: some-username
password: some-password

secret

Define the secret

Keymiddlewares.$name.data.secret
Typestring
Required
Helm tpl
Default-

Example

middlewares:
middleware-name:
data:
secret: some-secret

Full Examples

middlewares:
middleware-name1:
enabled: true
type: basic-auth
data:
users:
- username: some-username
password: some-password
middleware-name2:
enabled: true
type: basic-auth
data:
secret: some-secret