Compare languages | Модуль openvpn: настройки

Аутентификация

Authentication

По умолчанию используется модуль user-authn. Также можно настроить аутентификацию с помощью параметра externalAuthentication. Если эти варианты отключены, модуль включит basic auth со сгенерированным паролем.

user-authn module provides authentication by default. You can also configure authentication using the externalAuthentication parameter. If these options are disabled, the module will use basic auth with the auto-generated password.

Посмотреть сгенерированный пароль можно командой:

Use kubectl to see password:

shell kubectl -n d8-system exec deploy/deckhouse – deckhouse-controller module values openvpn -o json | jq ‘.openvpn.internal.auth.password’

shell kubectl -n d8-system exec deploy/deckhouse – deckhouse-controller module values openvpn -o json | jq ‘.openvpn.internal.auth.password’

Чтобы сгенерировать новый пароль, нужно удалить Secret:

Delete the Secret to re-generate password:

shell kubectl -n d8-openvpn delete secret/basic-auth

shell kubectl -n d8-openvpn delete secret/basic-auth

Внимание! Параметр auth.password больше не поддерживается.

Note! The auth.password parameter is deprecated.