Repository navigation
feat(kuvasz): replace Uptime Kuma with Kuvasz behind auth.polinetwork.org - #33
Conversation
….org Kuvasz signs in through auth.polinetwork.org. It cannot check roles, so an oauth2-proxy gate in front of its /oauth sign-in routes admits only it-member (the groups claim carries inherited roles, so it-lead too). Public status pages, assets and push heartbeats stay anonymous. Monitors and status pages live in apps/kuvasz/kuvasz.yml. status.polinetwork.org serves the public page; the default page with internal monitors is private. Uptime Kuma's PVC and namespace are kept (prune disabled) for rollback.
|
No actionable comments were generated in the recent review. WalkthroughThe change replaces the Uptime Kuma deployment with Kuvasz. It adds Kuvasz monitoring configuration, a PostgreSQL-backed deployment, an OIDC gate, Traefik routes, and network policies. It updates Flux and secret access, changes backend access selectors, and removes Uptime Kuma backup handling and manifests. ChangesMonitoring service migration
Change: Feature Merge Risk:
|
Main replaced Uptime Kuma with Kuvasz (#33), so this PR keeps only the SSO gateway framework. The Uptime Kuma Middleware, Ingress split and NetworkPolicy go away with the app; the README now carries the Middleware template, and the tests check every app Middleware that calls the gateway.
Replaces Uptime Kuma with Kuvasz 4.7.0, signed in through auth.polinetwork.org and restricted to
it-member.Access
polinetwork:identityscope) guards/oauth/*, Kuvasz's only sign-in routes, through a Traefik forwardAuth and admits onlygroups∋it-member. The IdP expands inherited roles intogroups, soit-leadis admitted too. Without the gate cookie nobody completes a Kuvasz sign-in./publicassets, push heartbeats and/api/v2/health. The API needs a Kuvasz session or API key.forwarded-httpsmiddleware forcesX-Forwarded-Proto: https, because Traefik does not trust cloudflared's headers and Kuvasz/oauth2-proxy build redirect URIs from them.AUTH_MAX_AGE), the gate session 15m.Monitors
apps/kuvasz/kuvasz.yml: 11 HTTP and 2 TCP (PostgreSQL, Redis), plus the in-cluster backend.status.polinetwork.orgredirects to the public page/status/polinetwork, which lists public services only. The default page includes internal monitors and requires sign-in.Other changes
kuvaszinstead ofuptime-kuma.kv-pn-appsnow allows thekuvasznamespace.pg_dumpall. The backup change takes effect at the next Ansible run.Checks
/oauth/loginand/oauth/callbackredirect to the gate's IdP sign-in.//,..,;) don't reach Kuvasz's login route.diagnose_applicationaccepts both authorization requests.Setup done outside the repo
kuvasz-*secrets are inkv-pn-apps.kuvaszdatabase and role are created after merge, from the synced Secret.