Merge fix/oidc-grafana-probe-busybox (R-IDP-01 probe)

This commit is contained in:
jakman85 committed 2026-08-24 23:10:14 -05:00
commit 0fd022c7f0
1 file changed
+5 -1
@@ -65,7 +65,11 @@ spec:
- |
set -u
svc="http://kube-prometheus-stack-grafana.monitoring.svc.cluster.local"
out="$(wget -S --max-redirect=0 -O /dev/null "$svc/login/generic_oauth" 2>&1 || true)"
# busybox wget has no --max-redirect; -S dumps every response header
# (incl. the initial 302 Location to the IdP) before following, so the
# grep below still matches the Keycloak authorize URL. (Grafana verified
# live: 302 -> keycloak.home.keithjackson.dev/realms/homelab/.../auth.)
out="$(wget -S -O /dev/null "$svc/login/generic_oauth" 2>&1 || true)"
echo "$out"
if echo "$out" | grep -qi 'keycloak.home.keithjackson.dev/realms/homelab'; then
echo GRAFANA_OIDC_REDIRECT_OK