Dev claim trial undo log: step 8 PASS (fence-writer key deleted, credential shredded)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+22
−0
docs/superpowers/notes/dev-claim-trial-undo-log.md+22 −0
CI cancelled — superseded by a newer push — run details
diff --git a/docs/superpowers/notes/dev-claim-trial-undo-log.md b/docs/superpowers/notes/dev-claim-trial-undo-log.md| index 03df4c661..f30074a46 100644 |
| --- a/docs/superpowers/notes/dev-claim-trial-undo-log.md |
| +++ b/docs/superpowers/notes/dev-claim-trial-undo-log.md |
| @@ -439,3 +439,25 @@ Cleanup, exactly as the note says ("delete the instance, then trash the app"): |
| **Item 8: IE → UK PASSED; UK → IE blocked by the filed bug (box-side target reports include leo, outside the shared pool), aborted back to the UK with no data lost.** |
| **Step 7: PASS as ruled.** Items 1 to 5 and 7 passed; item 6 passed for its purpose (lease finding filed); item 8 as above. The note says step 7 ends the freeze; per the controller, the freeze stays until this session reports. |
| + |
| +## Step 8 [IAM, SSM leo]: the fence-writer credential |
| + |
| +Start: 2026-10-26T10:17:37Z |
| + |
| +**Pre-check** (10:17Z): |
| +- `list-access-keys --user-name carlos-dev-ie-b-fence-writer-root`: `AKIA…VINM` `Active` (2026-10-19T20:20:45Z). |
| +- Leo's credential fingerprint (runbook 7a.2's formula: sha256 of the sorted-key JSON of `credentials.json`, first 8 hex) = `3fe9f5d9`. |
| +- `/etc/carlos/fence-writer` (root 700) holds exactly `.claims-activation.lock`, `credentials.installation.json`, `credentials.json`, as step 0 listed. |
| +- `flock -n /etc/carlos/fence-writer/.claims-activation.lock true` succeeds (no holder). |
| + |
| +**Action:** |
| +1. 10:17:46Z `aws --profile kass iam update-access-key --user-name carlos-dev-ie-b-fence-writer-root --access-key-id AKIA…VINM --status Inactive` (rc 0; listed `Inactive`), then `delete-access-key` (rc 0, 10:17:49Z). |
| +2. Leo, one SSM root shell (`set -euo pipefail`), 10:17:55Z: `shred -u -- /etc/carlos/fence-writer/credentials.json`; `shred -u -- /etc/carlos/fence-writer/credentials.installation.json`; `flock -n /etc/carlos/fence-writer/.claims-activation.lock true`; `rm -- /etc/carlos/fence-writer/.claims-activation.lock`; `rmdir -- /etc/carlos/fence-writer` → `dir gone`. |
| + |
| +**Post-check:** |
| +- `list-access-keys` is empty. |
| +- `/etc/carlos/fence-writer` is absent. `/etc/carlos` still holds `.claims-activation.lock` (B9) and `host-evidence.key` (B10), for step 10. |
| +- CloudTrail `lookup-events` since 2026-10-19T00:00Z, in eu-west-1 and us-east-1: 0 events (so 0 `AssumeRole`) with resource `arn:aws:iam::640012953448:role/carlos-dev-ie-b-fence-writer` or name `carlos-dev-ie-b-fence-writer`; 0 events by user `carlos-dev-ie-b-fence-writer-root`. The key's only event is `CreateAccessKey` at 2026-10-19T20:20:45Z by `remote-agent`; today's update and delete were not yet visible to lookup (delivery lag). |
| +- The role and user still exist (`get-role` answers); they go in step 9 (INFRA), which is out of scope here. |
| + |
| +End: 2026-10-26T10:19Z. **Step 8: PASS.** |