internal-apps (Fix): DNS cutover audit - harbor release, open-webui/media-admin logins, metrics shipping, https-only internal routes #1769
No reviewers
Labels
No labels
epic
fleet:hub
fleet:identity
fleet:ingress
fleet:offload
fleet:sveltos
needs-triage
ready-for-agent
ready-for-human
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
lab/clusters!1769
Loading…
Reference in a new issue
No description provided.
Delete branch "dns-cutover-audit"
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?
Audit of the 2026-11-20 internal DNS cutover (#1756 to #1768). The handoff called it done, with every Kustomization Ready. The 18 internal endpoints themselves are right: every Certificate is Ready, every ListenerSet and HTTPRoute is accepted, every name resolves on 10.30.100.53 to 10.10.6.40, and TLS verifies against the lab root. A lot around them broke. This PR fixes everything that can be fixed in git and is safe to merge on its own. The rest is listed below under "Needs you".
Merge order: lab/iac#179 first (kanidm must accept the media-admin callback), then this PR. lab/clusters#1770 is the second stage for Harbor pulls and has preconditions; see its description.
Fixed here
1. Harbor HelmRelease failing since 20:53Z (generic-templates/harbor)
#1759 set
expose.type: none. That isn't a valid type for this chart: anything other thaningress/routerenders the chart's nginx, and nginx requiresexpose.tls.auto.commonName, so every upgrade fails (harbor/harborReady=False). As a result Harbor'sEXT_ENDPOINTnever moved offhttps://harbor.animeteamspeak.moe, so Harbor SSO sends the retired callback, which kanidm no longer allows. The old chart routeharbor/harbor-routewas also left pointing at the deleted ListenerSet.The stated reason for
none("the chart-built route would carry no internal DNS label") is wrong: chart 1.19.4 hasexpose.route.labels. Fix:type: routewith the internal DNS label, parentRefListenerSet harbor-internal(sectionName: https), hostharbor.apps.caosh.int.animeteamspeak.moe,tls.certSource: none. The duplicate static HTTPRoute leavesroutes-internal.yaml, which keeps the Certificate and ListenerSet. The chart route keeps its nameharbor-route, so helm updates the stale live object in place.Checked with
helm templateof 1.19.4 and these values: renders, no nginx objects,EXT_ENDPOINT: https://harbor.apps.caosh.int.animeteamspeak.moe, route labelled.2. open-webui login gone (generic-templates/open-webui)
07425177deleted the wholesso:block along with the public route, whileENABLE_PASSWORD_AUTH=false. Live/api/configshows"providers":{}, so nobody can log in. The block is restored from9f65cd7aunchanged.OPENID_REDIRECT_URIis set tohttps://ai.apps.caosh.int.animeteamspeak.moe/oauth/oidc/callback, the exact callback kanidm'sopenwebuiclient allows (strict redirect).3. media-admin answers 403 to everyone (generic-templates/media-stack)
The route, cert and DNS use
media-admin.apps.caosh.int, butoauth-client.yaml,gateway-extension.yaml(redirectURI) andtraffic-policy.yaml(CORS origin) usedadmin.media.apps.caosh.int, a name that doesn't exist. authz-bridge logsNo App resolved for the Host. All of them now usemedia-admin.apps.caosh.int; two comments follow. lab/iac#179 fixes the kanidm side.4. mini metrics and logs shipping dead since 22:04Z (clusters/mini/monitoring, victoriametrics, vault)
monitoring-vmagentandmonitoring-vlagentremote-wrote tohttps://vm.animeteamspeak.moe/..., and every send got a connection reset. They now write in-cluster tohttp://vmauth-public-auth.vm.svc.cluster.local:8427/{vmagent,vlagent}/.... It's the same vmauth with the same bearer token and path routing, so no TLS or gateway hop is involved. No NetworkPolicy exists invmormonitoring.block-external-metrics-accessand the VMAuthspec.httpRoutepointed at the deleted ListenerSetvmauth. The block route wasAccepted=False, sohttps://vm.apps.caosh.int.animeteamspeak.moe/metricsreturned 200 where it used to be blocked. The block route now attaches tovm-internal. The VMAuthhttpRouteis removed becauseroutes-internal.yamlalready routes tovmauth-public-auth:8427, and the operator drops its deadvm/vmauth-public-authroute.clusters/mini/vault/values.yamlstill rendered the chart route on the deleted ListenerSetvault. Nowhttproute.enabled: false;routes-internal.yamlowns serving.5. Internal routes served plain HTTP, vault included
Every routes-internal HTTPRoute bound both listeners (no
sectionName), sohttp://<app>.apps.caosh.int/served the app in cleartext: 200 for actual, agentvault, ai, harbor, inventory, workflows, and vault's API over HTTP. Each main route now attaches tosectionName: https. A sibling<name>-https-redirectroute onsectionName: httpanswers 301 to https. Harbor's chart route gets the same treatment. automation is excluded: it is the argo-events webhook receiver, and a 301 drops POST bodies. That covers 17 files, including c1 httpbin.6. portable: azuracast TLSRoute matched every name
#1759 deleted the TLSRoute's only hostname (
cast) and lefthostnames:empty. A TLSRoute without hostnames matches every listener onmini-passthrough, so it overlapped nats, s3.mini and exfil. The route is deleted (azuracast is decommissioned). portable's API is unreachable from here (connection reset at 70.26.10.82), so I couldn't check the live effect.Checks
kustomize buildpasses for every touched folder.kubectl --context mini apply --dry-run=serveraccepts all 18 mini/generic routes-internal files and the victoriametrics/monitoring builds. The only error is a GrafanaDashboard annotation-size limit, which comes from client-side apply; Flux applies server-side.After merge (what to watch)
kubectl --context mini -n harbor get hr harbor: Ready, thenkubectl -n harbor get httproute harbor-route -o yamlshows parentharbor-internaland the label. Harbor SSO login works at the internal name.https://ai.apps.caosh.int.animeteamspeak.moe/api/configshows the Animeteamspeak OIDC provider.https://media-admin.apps.caosh.int.animeteamspeak.moe/redirects to kanidm (needs lab/iac#179 applied).connection reset.vm.apps.caosh.int/metricsanswers 302.curl -sI http://vault.apps.caosh.int.animeteamspeak.moe/returns 301 to https.Needs you (live changes I did not make)
Your rule is to ask before live changes, so none of these were done:
ACTUAL_OPENID_SERVER_HOSTNAME=https://actual.animeteamspeak.moe. kanidm allows only the internal callback. Fix:kubectl -n actual-budget set env deploy/actual-server ACTUAL_OPENID_SERVER_HOSTNAME=https://actual.apps.caosh.int.animeteamspeak.moe(check the otherACTUAL_*URL vars withprintenvfirst). Adopting the Deployment intoclusters/mini/actual-budget/is the durable fix.actual-budget/actual,automation/automation,homebox/homebox,paperless-ngx/paperless. (harbor/harbor-route,vault/vaultandvm/vmauth-public-authare cleaned up by this PR.)karakeep/karakeep-web-ingress(keep.animeteamspeak.moe on cilium-ingress 10.10.6.0) still serves on the LAN. The router's web dst-nat goes to 10.10.6.14, so it should not be internet-reachable, but I didn't prove that.actual-budget/actual-animeteamspeak-moe-tls,automation/automation-tls,firefly/firefly-animeteamspeak-moe-tls,harbor/harbor-animeteamspeak-moe-tls,homebox/inventory-animeteamspeak-moe-tls,karakeep/keep-animeteamspeak-moe-tls,vault/vault-animeteamspeak-moe-tls.One command once you agree:
kubectl --context mini delete ingress -n karakeep karakeep-web-ingress; kubectl --context mini delete httproute -n actual-budget actual; kubectl --context mini delete httproute -n automation automation; kubectl --context mini delete httproute -n homebox homebox; kubectl --context mini delete httproute -n paperless-ngx paperlessplus the sevencertificatedeletes above.clusters/mx2/external-secrets/vault-backend.yamluseshttps://vault.animeteamspeak.moe, which is retired. Two ExternalSecrets stopped refreshing, including cert-manager's Cloudflare token. portable and remote have the same setting. Your local checkout deletesclusters/mx2/*, so I left it alone. Decide how off-mini clusters reach OpenBao now.BASE_URL: https://paper.animeteamspeak.moe. The 00:00Z run failed 7 times withConnectionResetError. Option A:BASE_URL=https://paper.apps.caosh.int.animeteamspeak.moeplus the lab CA for python requests (REQUESTS_CA_BUNDLEpointing at a mountedlab-root-caconfigmap; the coredns caosh.int forward already resolves the name in-cluster). Option B: the in-cluster paperless Service, with that host added toPAPERLESS_ALLOWED_HOSTS. Both are live edits on an orphan; adopting it into git is the durable fix.timeout waiting for Deployment InProgress. Several pods (frigate, carwash-frigate, jellyfin, ollama) sit in ContainerStatusUnknown from 3 and 9 days ago. I didn't touch any of it.Corrections to the handoff
harbor/harborReady=False, and checks on routes only, not app logins: open-webui, media-admin, actual, harbor SSO and vault UI were all broken.clusters/mini/httpbin/resources) and live on cilium-default;httpbin.miniis just no longer inendpoints.yaml. It doesn't matter while the wildcard exists.expose.type: none" and "chart route carries no DNS label" were both wrong (fix 1).Gaps I did not fix
task gaterenders only c1 and test, so nothing in mini's tree is gated. That's why every defect above got through. Worth a follow-up: a mini render plus a rule that every HTTPRoute/ListenerSet parentRef resolves.docs/agents/secrets.md:67,docs/adr/0002*,generic-templates/azuracast/namespace.yaml:7, and the unreferencedgeneric-templates/victoriametrics/monitoring-stack-values.yamlandcustom-resources/vmauth.yaml.endpoints.yamlkeepsexpense(no backend anywhere), declaresturntwice, andnatshas no accepted ListenerSet. All of that predates today.