authentik: add vpgen group, change default enrollment group to vpgen

This commit is contained in:
Yuri Tatishchev 2024-12-31 18:09:23 -08:00
parent 2b265620d4
commit 278839fdba
Signed by: CaZzzer
GPG Key ID: E0EBF441EA424369
5 changed files with 10 additions and 4 deletions

View File

@ -10,7 +10,6 @@ traefik_subnet: 172.16.122.0
# Authentik
authentik_db_password: "{{ vault_authentik_db_password }}"
authentik_secret_key: "{{ vault_authentik_secret_key }}"
authentik_sendgrid_api_key: "{{ vault_authentik_sendgrid_api_key }}"
auth_grafana_client_secret: "{{ vault_auth_grafana_client_secret }}"
@ -20,6 +19,8 @@ auth_nextcloud_client_secret: "{{ vault_auth_nextcloud_client_secret }}"
arrstack_password: "{{ vault_arrstack_password }}"
auth_vpgen_client_secret: "{{ vault_auth_vpgen_client_secret }}"
auth_default_enrollment_group: vpgen
# Minio
minio_password: "{{ vault_minio_password }}"

View File

@ -93,7 +93,7 @@ entries:
id: enrollment-user-write
attrs:
user_type: internal
create_users_group: !Find [authentik_core.group, [name, users]]
create_users_group: !Find [authentik_core.group, [name, {{ auth_default_enrollment_group }}]]
- identifiers:
name: alpina-enrollment-email-verify
model: authentik_stages_email.emailstage

View File

@ -38,3 +38,8 @@ entries:
return {
"policy": policy,
}
- identifiers:
name: "vpgen"
model: authentik_core.group
id: "vpgen"

View File

@ -76,4 +76,4 @@ entries:
model: authentik_stages_user_write.userwritestage
attrs:
user_type: internal
create_users_group: !Find [authentik_core.group, [name, users]]
create_users_group: !Find [authentik_core.group, [name, {{ auth_default_enrollment_group }}]]

View File

@ -38,7 +38,7 @@ entries:
"icon": "https://vpgen."~ domain ~"/favicon.png",
"client_secret": auth_vpgen_client_secret,
"ui_group": "Apps",
"allowed_for_groups": ["admins", "users"],
"allowed_for_groups": ["admins", "users", "vpgen"],
},
} -%}
{% for app in apps.keys() -%}