feat(authentik): integrate Traefik dashboard with Authentik for admin access control and streamline secret management
ansible-core-net / deploy (push) Successful in 33s
ansible-core-net / deploy (push) Successful in 33s
This commit is contained in:
1 parent
3a8ef2579b
commit
340964523e
8 files changed
+62
-34
No files matched your search
@@ -0,0 +1,42 @@
|
||||
# yaml-language-server: $schema=https://goauthentik.io/blueprints/schema.json
|
||||
# Панель Traefik. Список providers у встроенного outpost полный:
|
||||
# следующий proxy-провайдер добавляется сюда же.
|
||||
version: 1
|
||||
metadata:
|
||||
name: traefik-dashboard
|
||||
labels:
|
||||
blueprints.goauthentik.io/description: "Панель Traefik только для группы admins"
|
||||
entries:
|
||||
- model: authentik_providers_proxy.proxyprovider
|
||||
id: provider-traefik-dashboard
|
||||
identifiers:
|
||||
name: traefik-dashboard
|
||||
attrs:
|
||||
mode: forward_single
|
||||
external_host: https://proxy.gunihome.ru
|
||||
authorization_flow: !Find [authentik_flows.flow, [slug, default-provider-authorization-implicit-consent]]
|
||||
invalidation_flow: !Find [authentik_flows.flow, [slug, default-provider-invalidation-flow]]
|
||||
|
||||
- model: authentik_core.application
|
||||
id: app-traefik-dashboard
|
||||
identifiers:
|
||||
slug: traefik-dashboard
|
||||
attrs:
|
||||
name: Traefik
|
||||
meta_launch_url: https://proxy.gunihome.ru
|
||||
policy_engine_mode: any
|
||||
provider: !KeyOf provider-traefik-dashboard
|
||||
|
||||
- model: authentik_policies.policybinding
|
||||
identifiers:
|
||||
order: 0
|
||||
target: !KeyOf app-traefik-dashboard
|
||||
attrs:
|
||||
group: !Find [authentik_core.group, [name, admins]]
|
||||
|
||||
- model: authentik_outposts.outpost
|
||||
identifiers:
|
||||
name: authentik Embedded Outpost
|
||||
attrs:
|
||||
providers:
|
||||
- !KeyOf provider-traefik-dashboard
|
||||
@@ -53,7 +53,9 @@
|
||||
- name: Применить blueprint каталога пользователей Authentik
|
||||
ansible.builtin.command: >-
|
||||
docker compose -f {{ authentik_dir }}/compose.yaml exec -T authentik-worker
|
||||
ak apply_blueprint /blueprints/custom/homelab-directory.yaml
|
||||
ak apply_blueprint
|
||||
/blueprints/custom/homelab-directory.yaml
|
||||
/blueprints/custom/traefik-dashboard.yaml
|
||||
register: authentik_blueprint_apply
|
||||
changed_when: authentik_blueprint.changed
|
||||
retries: 18
|
||||
|
||||
Reference in new issue
Block a user