refactor(auth): remove Authentik SSO, restore basic auth and provision Node Exporter dashboard
ansible-core-mon / deploy (push) Successful in 25s
ansible-core-net / deploy (push) Failing after 25s
ansible-core-secrets / deploy (push) Successful in 12s
ansible-opnsense / deploy (push) Successful in 5s
ansible-rus-central / deploy (push) Successful in 37s
ansible-core-mon / deploy (push) Successful in 25s
ansible-core-net / deploy (push) Failing after 25s
ansible-core-secrets / deploy (push) Successful in 12s
ansible-opnsense / deploy (push) Successful in 5s
ansible-rus-central / deploy (push) Successful in 37s
This commit is contained in:
1 parent
94a143623b
commit
c0a9d7f0c8
16 files changed
+15726
-263
No files matched your search
@@ -1,73 +0,0 @@
|
||||
# yaml-language-server: $schema=https://goauthentik.io/blueprints/schema.json
|
||||
version: 1
|
||||
metadata:
|
||||
name: grafana-sso
|
||||
labels:
|
||||
blueprints.goauthentik.io/description: "Grafana OAuth2 Provider"
|
||||
entries:
|
||||
- model: authentik_core.group
|
||||
id: group-admins
|
||||
identifiers:
|
||||
name: admins
|
||||
|
||||
- model: authentik_core.group
|
||||
id: group-family
|
||||
identifiers:
|
||||
name: family
|
||||
|
||||
- model: authentik_providers_oauth2.scopemapping
|
||||
id: scope-grafana-email
|
||||
identifiers:
|
||||
managed: homelab/providers/oauth2/scope-grafana-email
|
||||
attrs:
|
||||
name: "Grafana OAuth Mapping: OpenID 'email' with fallback"
|
||||
scope_name: email
|
||||
description: "Email scope with fallback for users without email"
|
||||
expression: |
|
||||
return {
|
||||
"email": request.user.email or f"{request.user.username}@gunihome.ru",
|
||||
"email_verified": True
|
||||
}
|
||||
|
||||
- model: authentik_providers_oauth2.oauth2provider
|
||||
id: provider-grafana
|
||||
identifiers:
|
||||
name: grafana
|
||||
attrs:
|
||||
client_type: confidential
|
||||
client_id: grafana
|
||||
client_secret: {{ grafana_oauth_client_secret | to_json }}
|
||||
redirect_uris:
|
||||
- matching_mode: strict
|
||||
url: https://graf.gunihome.ru/login/generic_oauth
|
||||
authorization_flow: !Find [authentik_flows.flow, [slug, default-provider-authorization-implicit-consent]]
|
||||
invalidation_flow: !Find [authentik_flows.flow, [slug, default-provider-invalidation-flow]]
|
||||
signing_key: !Find [authentik_crypto.certificatekeypair, [name, "authentik Self-signed Certificate"]]
|
||||
property_mappings:
|
||||
- !Find [authentik_providers_oauth2.scopemapping, [scope_name, openid]]
|
||||
- !KeyOf scope-grafana-email
|
||||
- !Find [authentik_providers_oauth2.scopemapping, [scope_name, profile]]
|
||||
|
||||
- model: authentik_core.application
|
||||
id: app-grafana
|
||||
identifiers:
|
||||
slug: grafana
|
||||
attrs:
|
||||
name: Grafana
|
||||
meta_launch_url: https://graf.gunihome.ru
|
||||
policy_engine_mode: any
|
||||
provider: !KeyOf provider-grafana
|
||||
|
||||
- model: authentik_policies.policybinding
|
||||
identifiers:
|
||||
order: 0
|
||||
target: !KeyOf app-grafana
|
||||
attrs:
|
||||
group: !KeyOf group-admins
|
||||
|
||||
- model: authentik_policies.policybinding
|
||||
identifiers:
|
||||
order: 1
|
||||
target: !KeyOf app-grafana
|
||||
attrs:
|
||||
group: !KeyOf group-family
|
||||
Reference in new issue
Block a user