mirror of
https://github.com/rubenhensen/k8scd.git
synced 2026-09-18 18:42:56 +02:00
Add LDAP outpost, SOGo on K8s, Stalwart OIDC
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: authentik-blueprint-ldap
|
||||
data:
|
||||
ldap.yaml: |
|
||||
version: 1
|
||||
metadata:
|
||||
name: LDAP Outpost
|
||||
entries:
|
||||
- model: authentik_providers_ldap.ldapprovider
|
||||
id: ldap-provider
|
||||
state: present
|
||||
identifiers:
|
||||
name: LDAP
|
||||
attrs:
|
||||
name: LDAP
|
||||
authorization_flow: !Find [authentik_flows.flow, [slug, default-authentication-flow]]
|
||||
base_dn: "DC=ldap,DC=goauthentik,DC=io"
|
||||
bind_mode: direct
|
||||
search_mode: direct
|
||||
- model: authentik_core.application
|
||||
id: ldap-app
|
||||
state: present
|
||||
identifiers:
|
||||
slug: ldap
|
||||
attrs:
|
||||
name: LDAP
|
||||
provider: !KeyOf ldap-provider
|
||||
- model: authentik_outposts.outpost
|
||||
id: ldap-outpost
|
||||
state: present
|
||||
identifiers:
|
||||
name: LDAP Outpost
|
||||
attrs:
|
||||
name: LDAP Outpost
|
||||
type: ldap
|
||||
providers:
|
||||
- !KeyOf ldap-provider
|
||||
service_connection: !Find [authentik_outposts.kubernetesserviceconnection, [local, true]]
|
||||
@@ -0,0 +1,40 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: authentik-blueprint-mail
|
||||
data:
|
||||
mail-oidc.yaml: |
|
||||
version: 1
|
||||
metadata:
|
||||
name: Mail OIDC
|
||||
entries:
|
||||
- model: authentik_providers_oauth2.oauth2provider
|
||||
id: stalwart-provider
|
||||
state: present
|
||||
identifiers:
|
||||
name: Stalwart
|
||||
attrs:
|
||||
name: Stalwart
|
||||
authorization_flow: !Find [authentik_flows.flow, [slug, default-provider-authorization-implicit-consent]]
|
||||
authentication_flow: !Find [authentik_flows.flow, [slug, default-authentication-flow]]
|
||||
invalidation_flow: !Find [authentik_flows.flow, [slug, default-provider-invalidation-flow]]
|
||||
client_type: confidential
|
||||
client_id: stalwart
|
||||
client_secret: !Env [STALWART_OIDC_CLIENT_SECRET, ""]
|
||||
redirect_uris:
|
||||
- matching_mode: strict
|
||||
url: https://stalwart.rubenhensen.nl/login/callback
|
||||
signing_key: !Find [authentik_crypto.certificatekeypair, [name, "authentik Self-signed Certificate"]]
|
||||
property_mappings:
|
||||
- !Find [authentik_providers_oauth2.scopemapping, [managed, goauthentik.io/providers/oauth2/scope-openid]]
|
||||
- !Find [authentik_providers_oauth2.scopemapping, [managed, goauthentik.io/providers/oauth2/scope-email]]
|
||||
- !Find [authentik_providers_oauth2.scopemapping, [managed, goauthentik.io/providers/oauth2/scope-profile]]
|
||||
- model: authentik_core.application
|
||||
id: stalwart-app
|
||||
state: present
|
||||
identifiers:
|
||||
slug: stalwart
|
||||
attrs:
|
||||
name: Stalwart Mail
|
||||
provider: !KeyOf stalwart-provider
|
||||
meta_launch_url: https://stalwart.rubenhensen.nl
|
||||
@@ -63,3 +63,21 @@ spec:
|
||||
remoteRef:
|
||||
key: kv/vault-oidc
|
||||
property: client_secret
|
||||
---
|
||||
apiVersion: external-secrets.io/v1beta1
|
||||
kind: ExternalSecret
|
||||
metadata:
|
||||
name: stalwart-oidc-client-secret
|
||||
spec:
|
||||
secretStoreRef:
|
||||
name: vault-backend
|
||||
kind: ClusterSecretStore
|
||||
refreshInterval: 15m
|
||||
target:
|
||||
name: stalwart-oidc-client-secret
|
||||
creationPolicy: Owner
|
||||
data:
|
||||
- secretKey: client_secret
|
||||
remoteRef:
|
||||
key: kv/stalwart-oidc
|
||||
property: client_secret
|
||||
|
||||
Reference in New Issue
Block a user