Skip to content

docs(aws): the EKS 401-despite-healthy-IAM failure mode (#846) - #923

Merged
athvin merged 3 commits into
mainfrom
issue/846-eks-401-note
Nov 8, 2026
Merged

athvin merged 3 commits into
mainfrom
issue/846-eks-401-note

Conversation

@athvin

@athvin athvin commented Nov 8, 2026 •

Copy link
Copy Markdown
Owner

Closes #846

🚧 Claimed by an agent session — 2026-11-08T21:36:43Z, session 01a1b892-4cde-7a53-bb3e-9ed2e764acdc on Mac.
The claim is this open draft PR: closing it releases the ticket.

Post-merge is part of this pull request. The ledger below records whether
the follow-up work actually happened. /land-pr closes it.

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 the eks module's viewer_principal_arns access entry (AmazonEKSViewPolicy, cluster scope, no Secret contents; added by #839 / PR #844), and the discriminator for a debugging session is aws 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.tf records the grant, but a session debugging cluster access searches this skill first.

Proof

make skills-check green (drift, lint, overrides, generators). Every name verified against the tree: viewer_principal_arns at infra/terraform/envs/dev/eks.tf:25 with the #839 comment, AmazonEKSViewPolicy cluster-scope in the same block, the er-readonly profile 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 revert is the rollback.

Post-merge ledger

Closed by: the post-merge watch on 903d034a

  • main is green with this change on it — 903d034a itself: rust
    success (full push suite), frontend success, infra success,
    devcontainer success:
  • images correctly never ran — one skill markdown file; no image
    input changed, and no images run exists on the merge SHA:
  • deploy converged by correctly never running — no new image, no
    deploy triggered on 903d034a; the running process is the previous
    release:
  • the push-only surface no pull request can pre-test — deploys green
    on the recent code SHAs; drift latest success; kind nightly latest
    success:
  • the board card reached Done through the automation and skill: document the EKS 401-despite-healthy-IAM failure mode in aws-account-operations #846 is
    closed (the issue's Done-when, verbatim):
  • follow-ups are open for everything deferred here — numbers: none
    owed:
  • what was learned is written down — that is the change: the failure
    mode, its discriminator, the grant's location and the verification line
    are in aws-account-operations where a debugging session lands:

Specific to this change

Context — plan, discoveries, measurements, files

Plan

Discoveries

Measurements

Files

@athvin
athvin marked this pull request as ready for review November 8, 2026 21:38
@athvin
athvin merged commit 903d034 into main Nov 8, 2026
37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

skill: document the EKS 401-despite-healthy-IAM failure mode in aws-account-operations

2 participants