Files
2026-03-09 20:21:35 -05:00

59 lines
2.4 KiB
YAML

---
# DEPRECATED: Ceph Dashboard OIDC Provider Blueprint
# This blueprint was used with oauth2-proxy which has been removed.
# Ceph Dashboard auth is now handled by Istio ext_authz + Authentik forward-auth.
# This file is NOT mounted in Authentik (not in configMaps list).
apiVersion: v1
kind: ConfigMap
metadata:
name: authentik-blueprints-ceph-oidc
namespace: authentik
labels:
goauthentik.io/blueprint: "true"
data:
ceph-oidc.yaml: |-
version: 1
metadata:
name: ceph-dashboard-oidc
entries:
# OAuth2/OIDC Provider for Ceph Dashboard (via oauth2-proxy)
- model: authentik_providers_oauth2.oauth2provider
id: ceph-dashboard-oidc-provider
state: present
identifiers:
name: ceph-dashboard
attrs:
name: ceph-dashboard
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: ceph-dashboard
client_secret: ceph-dashboard-oidc-secret-homelab-2026
redirect_uris: |
https://ceph.kube.huskypup.net/oauth2/callback
signing_key: !Find [authentik_crypto.certificatekeypair, [name, authentik Self-signed Certificate]]
access_code_validity: minutes=1
access_token_validity: minutes=5
refresh_token_validity: days=30
include_claims_in_id_token: true
sub_mode: user_username
issuer_mode: per_provider
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]]
# Application entry - update existing or create new
- model: authentik_core.application
id: ceph-dashboard-application
state: present
identifiers:
slug: ceph-dashboard
attrs:
name: Ceph Dashboard
slug: ceph-dashboard
policy_engine_mode: any
provider: !KeyOf ceph-dashboard-oidc-provider
meta_launch_url: "https://ceph.kube.huskypup.net"
meta_icon: "https://ceph.io/assets/favicons/favicon.ico"