๐
CI pipeline auth failed (registry / cloud)
401 on docker push or AWS/kubectl denied in CI job.
Reviewed: ยทTested on: Kubernetes 1.29, Terraform 1.8, Ubuntu 22.04
Symptoms
- unauthorized
- denied push
- Unable to locate credentials
- error: You must be logged in
1Fix registry login in CI
# Docker push โ login before push in CI
docker login registry -u $USER -p $TOKEN2Verify cloud / cluster access
aws sts get-caller-identity
# GHA: use OIDC not static keys
# K8s: kubectl auth can-i create deployments -n <ns>