carlos / platform Public

review: Astra brief for aws-followups-1143, round 1

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 78f8d936d7dc3d2f72c83d60291768ed3bbbcbf4 parent 228d6be
1 file changed, +52 −0
  • docs/superpowers/reviews/REVIEW-BRIEF-aws-followups-1143.md +52 −0

CI failed — run details

diff --git a/docs/superpowers/reviews/REVIEW-BRIEF-aws-followups-1143.md b/docs/superpowers/reviews/REVIEW-BRIEF-aws-followups-1143.md
new file mode 100644
index 000000000..176e9c087
--- /dev/null
+++ b/docs/superpowers/reviews/REVIEW-BRIEF-aws-followups-1143.md
@@ -0,0 +1,52 @@
+# Review brief: branch aws-followups-1143, round 1 of 3
+
+Repo carlos/platform, branch `aws-followups-1143`, commit 228d6beeb6435254ccc18c416466eb7967e0f808.
+Under review: the diff `origin/main...228d6beeb6435254ccc18c416466eb7967e0f808` (base a23423b7).
+Authorities: amadan #1143 (the three follow-ups from the scoped check of
+0374ac2), AGENTS.md ("The census", "Writing Go here", "Stopping rules").
+
+You are the independent reviewer and census reviewer (card:
+`docs/superpowers/notes/census-proposal-aws-followups-1143.md`, envelope
+internal/rootaws only). Production storage and root-side credential
+loading: every AWS client the platform builds goes through this code.
+
+## What to check
+
+1. Credential clients (STS web identity and assume-role, SSO, SSO OIDC)
+ now get the body bound through wrapped credential-option hooks; IMDS
+ untouched. Any loss of an existing credential behaviour (refresh,
+ caching, CA bundle, defaults mode, region, endpoint resolution)? Does a
+ caller's own credential options hook still win? Does the root path's
+ refusal of shared profiles / credential files still hold?
+2. Ours-vs-caller decided by identity before the SDK resolves: an explicit
+ BuildableClient (and the SDK's CA-bundle clone of it) stays the
+ caller's; our default is still replaced by the bounded client. Any way
+ our default escapes the bound, or a caller's client gets replaced?
+3. The guard rewritten with type information: catches HTTPClient set on
+ any SDK struct, zero aws.Config / Options built three ways; allowlist
+ now per construction (grouprollaws newAdapter, objstore
+ NewAWSProvisionerWith console-only, and the existing ones). Any bypass
+ left that matters? Is each allowlist entry justified?
+4. Tests: would each fail on the old code; anything reaching real AWS
+ (must not)?
+5. The implementer's open questions: (a) root `carlos system host-env
+ write` without --group loads with the SDK's LoadDefaultConfig, so root
+ reads shared profiles including credential_process: is that a real
+ gap to file? (b) paths still without the body bound (IMDS, login-
+ session and container-endpoint credentials): acceptable? (c) go.mod
+ marks service/sso and ssooidc indirect though now imported directly:
+ P3? (d) a zero config held as a struct field is not caught.
+
+## Severity
+
+- **P1**: unsafe, would not compile, a test fails, or it would not work.
+- **P2**: wrong or missing. Fixed without reopening this review (storage
+ and census changes in the fix still get a scoped check).
+- **P3**: clarity or polish. Follow-up list only.
+
+## Output
+
+Findings ranked P1, P2, P3 with file:line, failure scenario and fix, and
+the invariant each breaks. Then the census verdict. End with exactly one
+verdict: READY, READY AFTER FIXES, or NOT READY. Do not edit files, spawn
+reviewers or run full suites.