41 lines
1.8 KiB
YAML
41 lines
1.8 KiB
YAML
# ──────────────────────────────────────────────────────────────────────────────
|
|
# Blueprint: step-ca — OIDC Provider + Application
|
|
# ──────────────────────────────────────────────────────────────────────────────
|
|
version: 1
|
|
metadata:
|
|
name: mk-labs-step-ca
|
|
labels:
|
|
blueprints.goauthentik.io/instantiate: "true"
|
|
entries:
|
|
- model: authentik_providers_oauth2.oauth2provider
|
|
id: step-ca-provider
|
|
state: present
|
|
identifiers:
|
|
name: "Provider for step-ca"
|
|
attrs:
|
|
authorization_flow: !Find [authentik_flows.flow, [slug, default-provider-authorization-implicit-consent]]
|
|
invalidation_flow: !Find [authentik_flows.flow, [slug, default-provider-invalidation-flow]]
|
|
client_type: confidential
|
|
client_id: !Env STEPCA_OIDC_CLIENT_ID
|
|
client_secret: !Env STEPCA_OIDC_CLIENT_SECRET
|
|
redirect_uris:
|
|
- url: "http://127.0.0.1:10000"
|
|
matching_mode: strict
|
|
sub_mode: hashed_user_id
|
|
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]]
|
|
signing_key: !Find [authentik_crypto.certificatekeypair, [name, authentik Self-signed Certificate]]
|
|
|
|
- model: authentik_core.application
|
|
id: step-ca-application
|
|
state: present
|
|
identifiers:
|
|
slug: step-ca
|
|
attrs:
|
|
name: "step-ca"
|
|
provider: !KeyOf step-ca-provider
|
|
group: "Infrastructure"
|
|
policy_engine_mode: any
|