[EAI-7305]: Remove cluster-auth from the stack - #825
Conversation
cluster-auth no longer authenticates anything. The AIM serving routes are covered by the route-scoped workloads-extauth policy and ai-gateway by its gateway-scoped default-deny, and neither the airm nor the aiwb chart has a live reference to it. On app-dev its own counters show 230k checks over 15 days, all fast_path with authenticator=none and zero denies. - drop the cluster-auth and cluster-auth-config apps from root/values.yaml and from enabledApps in all three sizings, plus the medium resources override - delete the cluster-auth (0.5.0, 0.5.9) and cluster-auth-config chart sources - delete the cluster-auth ext_authz SecurityPolicy and its ReferenceGrant - stop writing the OpenBao root token to secrets/cluster-auth-openbao-token, and drop the now-inert INIT_MODE export that only drove that write - drop the security-policy-extauth patch block from the OpenShift installer, which would have aborted the install under set -e once the template is gone - refresh the SBOM and the stale comments that referenced the ext_authz hop
|
Deployed this branch to app-dev and ran the auth matrix against both endpoints. Heads up for anyone deploying this: you have to remove two lines from your cluster-values enabledApps:
- cluster-auth # remove
- cluster-auth-config # removeHelm replaces lists rather than merging them, so an overlay that pins its own Cluster state after the sync Root app Synced and Healthy, 52 Applications. Both the Positive, using a key bound to its own model
Negative, everything refused
The body-only rows matter because that is the path a standard OpenAI client takes, and it is still enforced by the ext_authz handler. The workloads rows come back with "not authorized for this workload", which confirms One test looked alarming at first and turned out to be my mistake. Sending |
cluster-authandcluster-auth-configapps fromroot/values.yamland fromenabledAppsin all three sizings, plus the medium resources overridecluster-auth(0.5.0, 0.5.9) andcluster-auth-configchart sourcesSecurityPolicyand itsReferenceGrantsecrets/cluster-auth-openbao-token, and drop the now-inertINIT_MODEexport that was its only triggersecurity-policy-extauthpatch block from the OpenShift installer, which would abort the install underset -euo pipefailonce the template is goneNothing depends on cluster-auth any more. The AIM serving routes are covered by the route-scoped
workloads-extauthpolicy and ai-gateway by its gateway-scoped default-deny, and neither the airm nor the aiwb chart has a live reference. On app-dev its own counters show 230k checks over 15 days, allfast_pathwithauthenticator=noneand zero denies.The generated Applications carry no
resources-finalizer.argocd.argoproj.io, so pruning them leaves the running Deployment, Service and namespace in place rather than deleting them. Rollback is a revert; the workloads are never torn down. Cleanup of the orphanedcluster-authnamespace and the stalesecrets/cluster-auth-openbao-tokenKV entry is manual.Out of scope:
secrets/cluster-auth-admin-tokenstays until core's aiwb chart drops the ExternalSecret that points at it, and the standalone cluster-auth shim stays in the install scripts.https://jira.amd.com/browse/EAI-7305
How to test
Confirm no route on the target cluster relies on cluster-auth before merging:
Empty output means removal is a no-op there. Locally:
helm lintandhelm templatepass on all four values files,envoy-gateway-configrenders withaiGatewayon and off, and the foursbom/validate-*.shscripts pass.