43d325146c
The ClickHouse log UI (logviewer) is being exposed at https://logviewer.unkin.net behind oauth2-proxy in the logging namespace; this adds the Authentik side as the prerequisite. - Adds config/providers_oauth2/logviewer.yaml mirroring traefik: confidential client, client_id logviewer, secret from Vault kv kubernetes/namespace/logging/default/oauth-credentials, openid/email/profile scopes (ak_groups is attached to every oauth2 provider by the module), strict redirect URI for the logviewer oauth2 callback. - Adds config/permissions/akP-logviewer-admin.yaml bound to the logviewer application and nests it under akR-global-admin.
22 lines
941 B
YAML
22 lines
941 B
YAML
# OAuth2/OIDC provider + application for logviewer (the ClickHouse log UI,
|
|
# served at https://logviewer.unkin.net in the logging namespace). An
|
|
# oauth2-proxy in front of the UI performs the OIDC login; access is gated on
|
|
# the user's hierarchical ak_groups claim (akP-logviewer-admin).
|
|
# client_secret is read from Vault (seeded out of band), never committed.
|
|
name: logviewer
|
|
authorization_flow: default-provider-authorization-implicit-consent
|
|
invalidation_flow: default-provider-invalidation-flow
|
|
client_type: confidential
|
|
client_id: logviewer
|
|
launch_url: https://logviewer.unkin.net/
|
|
client_secret_vault:
|
|
mount: kv
|
|
path: kubernetes/namespace/logging/default/oauth-credentials
|
|
scope_mappings:
|
|
- goauthentik.io/providers/oauth2/scope-openid
|
|
- goauthentik.io/providers/oauth2/scope-email
|
|
- goauthentik.io/providers/oauth2/scope-profile
|
|
redirect_uris:
|
|
- matching_mode: strict
|
|
url: https://logviewer.unkin.net/oauth2/callback
|