Repository navigation
docs(aws): the EKS 401-despite-healthy-IAM failure mode (#846) - #923
Merged
Merged
Conversation
athvin
marked this pull request as ready for review
November 8, 2026 21:38
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #846
What
Adds the third trap to
aws-account-operations' "Two traps that cost real time" (retitled by its content, not its heading): a read-only SSO role (er-readonly/ PlatformReadOnly) can authenticate against every AWS API and still get 401 Unauthorized from EKS, because cluster authorization is a separate plane from IAM — the fix is theeksmodule'sviewer_principal_arnsaccess entry (AmazonEKSViewPolicy, cluster scope, no Secret contents; added by #839 / PR #844), and the discriminator for a debugging session isaws sts get-caller-identity(fails → expired SSO token, re-login; answers but kubectl 401s → the access entry). Verification line included:kubectl --context er-dev-ro -n ci get pods.Why
#839 lost a session to exactly this misdiagnosis, and the fleet hit the neighbouring case (expired SSO token, #660) the same week — the module comment in
eks.tfrecords the grant, but a session debugging cluster access searches this skill first.Proof
make skills-checkgreen (drift, lint, overrides, generators). Every name verified against the tree:viewer_principal_arnsatinfra/terraform/envs/dev/eks.tf:25with the #839 comment,AmazonEKSViewPolicycluster-scope in the same block, theer-readonlyprofile as the documented introspection identity. The 401 itself is not reproducible from here right now — the local SSO token is expired, which is the discriminator's other arm, recorded honestly rather than exercised.make check-e2e/make frontend: not owed — one markdown file.Risk & rollback
Prose only;
git revertis the rollback.Post-merge ledger
Closed by: the post-merge watch on
903d034amainis green with this change on it —903d034aitself:rustsuccess (full push suite),
frontendsuccess,infrasuccess,devcontainersuccess:imagescorrectly never ran — one skill markdown file; no imageinput changed, and no
imagesrun exists on the merge SHA:deployconverged by correctly never running — no new image, nodeploy triggered on
903d034a; the running process is the previousrelease:
on the recent code SHAs;
driftlatest success;kindnightly latestsuccess:
Donethrough the automation and skill: document the EKS 401-despite-healthy-IAM failure mode in aws-account-operations #846 isclosed (the issue's Done-when, verbatim):
owed:
mode, its discriminator, the grant's location and the verification line
are in
aws-account-operationswhere a debugging session lands:Specific to this change
Context — plan, discoveries, measurements, files
Plan
Discoveries
Measurements
Files