feat: add wiki oicd blueprint

This commit is contained in:
Thore Cimbal
2026-08-12 19:26:21 +00:00
parent 1744de074f
commit ea01c0bc6d
+26 -32
View File
@@ -422,53 +422,47 @@ data:
meta_publisher: aXionGaming meta_publisher: aXionGaming
policy_engine_mode: any policy_engine_mode: any
open_in_new_tab: false open_in_new_tab: false
wiki-forward-auth.yaml: | wiki-oidc-provider.yaml: |
# yaml-language-server: $schema=https://goauthentik.io/blueprints/schema.json # yaml-language-server: $schema=https://goauthentik.io/blueprints/schema.json
version: 1 version: 1
metadata: metadata:
name: wiki-forward-auth name: wiki-oidc-provider
labels: labels:
blueprints.goauthentik.io/instantiate: "true" blueprints.goauthentik.io/instantiate: "true"
entries: entries:
# Proxy-Provider im Forward-Auth-Modus. Kein internal_host (das wäre der - model: authentik_providers_oauth2.oauth2provider
# Proxy-Modus) — forward_single reicht Traefik nur das Ja/Nein zurück.
- model: authentik_providers_proxy.proxyprovider
state: present state: present
identifiers: identifiers:
name: ThreadNet Wiki name: ThreadNet Wiki (Wiki.js)
id: wiki_proxy_provider id: wiki_oidc_provider
attrs: attrs:
mode: forward_single client_type: confidential
external_host: https://axionwiki.lab client_id: !Env AUTHENTIK_WIKI_OIDC_CLIENT_ID
client_secret: !Env AUTHENTIK_WIKI_OIDC_CLIENT_SECRET
# Aus Wiki.js übernehmen (Teil 3 zeigt die Callback-URL nach Anlegen
# der Strategy). Erst danach hier eintragen:
redirect_uris:
- matching_mode: strict
url: https://wiki.axion1337.chat/login/PROVIDERKEY/callback
sub_mode: hashed_user_id
include_claims_in_id_token: true
authorization_flow: !Find [authentik_flows.flow, [slug, default-provider-authorization-implicit-consent]] authorization_flow: !Find [authentik_flows.flow, [slug, default-provider-authorization-implicit-consent]]
invalidation_flow: !Find [authentik_flows.flow, [slug, default-provider-invalidation-flow]] invalidation_flow: !Find [authentik_flows.flow, [slug, default-provider-invalidation-flow]]
access_token_validity: hours=24 property_mappings:
- !Find [authentik_core.propertymapping, [managed, "goauthentik.io/providers/oauth2/scope-openid"]]
- !Find [authentik_core.propertymapping, [managed, "goauthentik.io/providers/oauth2/scope-email"]]
- !Find [authentik_core.propertymapping, [managed, "goauthentik.io/providers/oauth2/scope-profile"]]
# + Gruppen-Claim: entweder das mitgelieferte Groups-Scope-Mapping
# (falls vorhanden) oder ein eigenes Scope-Mapping, das "groups"
# zurückgibt — nötig für Rollen/Abschottung (#0049).
- model: authentik_core.application - model: authentik_core.application
state: present state: present
identifiers: identifiers:
slug: wiki slug: wiki-js
id: wiki_app
attrs: attrs:
name: ThreadNet Wiki name: ThreadNet Wiki
provider: !KeyOf wiki_proxy_provider provider: !KeyOf wiki_oidc_provider
meta_description: Internes Docusaurus-Wiki, nur Gruppe wiki-zugang meta_description: Internes Wiki (Betrieb/Anwender), Zugriff nach Gruppe
policy_engine_mode: any policy_engine_mode: any
open_in_new_tab: true open_in_new_tab: false
# Zugangsbeschränkung: nur Mitglieder dieser Gruppe passieren das Tor.
- model: authentik_core.group
state: present
identifiers:
name: wiki-zugang
id: wiki_group
- model: authentik_policies.policybinding
state: present
identifiers:
target: !KeyOf wiki_app
group: !KeyOf wiki_group
order: 0
attrs:
enabled: true
negate: false