logging: deploy logviewer v0.1.0 behind oauth2-proxy #404
Reference in New Issue
Block a user
Delete Branch "benvin/logviewer-deploy"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
The logviewer UI gives browser access to the ClickHouse log store (
logreaderuser). It must only be reachable by authorized users, so it sits behind an Authentik-gated oauth2-proxy front at https://logviewer.unkin.net, mirroring the arrstack front-door and mediamover/pdbmux gateway patterns.Changes
docker-internal/logviewer:v0.1.0) reading ClickHouse atclickhouse-logsvia the existingclickhouse-logreaderSecret,/healthzprobes, nonroot securityContexthttps://identity.unkin.net/application/o/logviewer/,ak_groupsclaim, allowed groupakP-logviewer-admin, internal-CA trust via the combine-certs initContainerkubernetes/namespace/logging/default/oauth-credentialsinto thelogviewer-oauth-credentialsSecret via the existingdefaultVaultAuth (kv path already seeded; no terraform-vault change needed)logviewer.unkin.net(vault-issuer cert, external-dns -> 198.18.200.4, http->https redirect)logviewer/in the logging base kustomizationDependency
Login requires the Authentik
logviewerprovider/application from terraform-authentik PR #21. This PR is safe to merge first: the VSO secret sync and the deployment come up regardless; OIDC login only works once #21 is applied.Validated with
kustomize build(base + au-syd1 overlay) and kubeconform (49/49 valid).