feat(auth): integrate Grafana and Ntfy with Authentik SSO
ansible-core-mon / deploy (push) Successful in 24s
ansible-core-net / deploy (push) Successful in 39s
ansible-core-secrets / deploy (push) Successful in 12s
ansible-opnsense / deploy (push) Successful in 3s
ansible-rus-central / deploy (push) Successful in 36s
ansible-core-mon / deploy (push) Successful in 24s
ansible-core-net / deploy (push) Successful in 39s
ansible-core-secrets / deploy (push) Successful in 12s
ansible-opnsense / deploy (push) Successful in 3s
ansible-rus-central / deploy (push) Successful in 36s
This commit is contained in:
1 parent
3670bb6033
commit
811d65526b
9 files changed
+174
-6
No files matched your search
@@ -0,0 +1,59 @@
|
||||
# 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.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]]
|
||||
- !Find [authentik_providers_oauth2.scopemapping, [scope_name, 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