Тип сервиса
Сервис authentik
Самостоятельно размещаемый провайдер учётных записей authentik для единого входа через OpenID Connect, OAuth2 и SAML с обязательным воркером, связанным PostgreSQL, общим файловым хранилищем и необязательной исходящей почтой.
Вы добавляете этот сервис в стек и выбираете там его версию и ресурсы. Каждое окружение может их переопределить.
В StackMaster
Как authentik работает в StackMaster
ghcr.io/goauthentik/server image. The main service runs the server (server), which serves the web interface, the API and the sign-in flows on port 9000. The required authentik-worker derivative runs the same image as the worker (worker), which runs background tasks: blueprints, email, outposts, directory synchronization and cleanup. Configuration is passed as AUTHENTIK_* environment variables, and the worker receives the same variables as the server.Linked services
| Link | Variables |
|---|---|
PostgreSQL (postgres, required) | AUTHENTIK_POSTGRESQL__HOST, AUTHENTIK_POSTGRESQL__PORT, AUTHENTIK_POSTGRESQL__NAME, AUTHENTIK_POSTGRESQL__USER, AUTHENTIK_POSTGRESQL__PASSWORD |
Shared file storage (storage, required) | Mounts the shared data volume at /data on the server and the worker |
SMTP server (sendmail, optional) | AUTHENTIK_EMAIL__HOST, AUTHENTIK_EMAIL__PORT, AUTHENTIK_EMAIL__FROM; TLS and SSL are off |
authentik keeps users, applications, providers, flows, sessions, its cache and its task queue in PostgreSQL. It does not use Redis. AUTHENTIK_POSTGRESQL__SSLMODE is prefer, so the connection is encrypted when the database server supports TLS.
Uploaded files, such as application icons, brand logos and flow backgrounds, and reports the worker writes are stored under /data. The server and the worker share that volume through the storage link.
What the manifest sets
AUTHENTIK_SECRET_KEYcomes from the generatedsecret_keytoken. It signs cookies and sessions; changing it signs everyone out.AUTHENTIK_WEB__BASE_URLis the service's URL in the environment. authentik copies it into its system settings only when no base URL is stored yet, so after the domain changes, update the base URL in System > Settings.- TLS ends at Wodby's router, which sets
X-Forwarded-Proto. authentik trusts forwarded headers from private network addresses (its default). - The update check, anonymous startup analytics and error reporting are off. New releases arrive as new versions of this service.
AUTHENTIK_OUTPOSTS__DISCOVERisfalse, so authentik does not add the cluster it runs in as an outpost integration. The pod's service account has no permission to deploy outposts. The embedded outpost, served by the server, still works.
First administrator
The Admin email and Admin password settings set AUTHENTIK_BOOTSTRAP_EMAIL and AUTHENTIK_BOOTSTRAP_PASSWORD. The first deployment creates the akadmin user in the authentik Admins group with them. Because that account has a password, authentik's public initial setup flow (/if/flow/initial-setup/) is closed. The administrator can sign in with akadmin or the email address. Changing the settings later does not change an existing account; change the password in authentik.
Changing configuration
Add or change AUTHENTIK_* environment variables on the service and deploy it; the worker uses the same variables. Applications, providers, flows, policies and users are managed in the admin interface (/if/admin/) or the API (/api/v3/) and stored in the database.
Upgrades
authentik migrates its database when a new version starts, and it refuses to skip a release. Move to the next version only, and back up the PostgreSQL database first; moving back to an older version is not supported.
Check the result
From inside the environment, /-/health/ready/ on port 9000 of the server is the readiness endpoint the service is probed with. The worker is checked with ak healthcheck.
Обзор
Технический профиль authentik
Версии
Репозиторий исходного кода
Публичный Helm-чарт
Постоянные тома
Стеки
Стеки, в которые входит authentik
Конфигурация
Конфигурация сервиса authentik
Технические домены
Тома
Настройки
Связи сервиса
Каждая связь — это подключение authentik к другому сервису. На какой сервис указывает связь, задаёт стек. На карточках перечислены публичные сервисы, которые подходят для каждой связи.
postgres
Сервисы, которые подходят для этой связи
storage
Сервисы, которые подходят для этой связи
sendmail
Сервисы, которые подходят для этой связи