test(aws): live Fargate workspace lifecycle

aws::live_tests::environment::a_fargate_workspace_round_trips (ignored):
a public environment deployed by the environment admin, a role holding
only the workspace-user files onboarded to it and driving ProjectHost::Aws
through a profile connection: start (Hybrid, 1 vCPU / 2 GB, one public
repo), exec, background clone, ~/.claude persistence across stop/start,
attach without a second RunTask, the stop guard's dry run, the SIGTERM
WIP path, idle stop at 5 minutes, bubblewrap, denials on another owner's
revision and secret, and project removal. TRIPLEC_E2E_IMAGE names the
image; a private ECR image gets a test-only pull policy on the exec role.
A guard stops tasks, retires revisions, deletes access points and the
secret before the fixture destroys the modules.

aws/README.md gains the phase 5 results; the spec's To verify items are
answered. Open: DeregisterTaskDefinition is authorized against * only,
so the workspace tier cannot retire revisions (the test's last assertion
fails until that is decided).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
shadowdaoandClaude Opus 5.5 committed 2026-11-15 11:30:33 -08:00
1 parent 1eed994da7
commit e901a08ab6
3 files changed
+647 -18

No files matched your search

@@ -658,11 +658,19 @@ TLS only, tagged `triple-c:component=state`), one object per deployment (D9).
## To verify before or during implementation
- Whether Fargate allows bubblewrap's unprivileged user namespaces, and what Claude Code's sandbox
does there.
- ~~Whether Fargate allows bubblewrap's unprivileged user namespaces, and what Claude Code's
sandbox does there.~~ **Measured 2026-11-15:** it doesn't. `bwrap --unshare-user` fails with "No
permissions to create new namespace" (no `CAP_SYS_ADMIN`), so the AWS host keeps Claude Code's
sandbox off.
- ABAC condition keys for each action: ECS `RunTask` tag-on-create, `ExecuteCommand`, and
`ssm:StartSession` against ECS targets; EFS `CreateAccessPoint` with request tags; Secrets
Manager name-prefix plus tag conditions with `${aws:userid}` for SSO sessions.
**Phase 5 (2026-11-15, `aws/README.md` "Phase 5"):** `RunTask` with the owner's revision and
roles, `RegisterTaskDefinition` on `task-definition/triple-c-*`, `CreateAccessPoint` with request
tags and `GetSecretValue` on one's own secret work for a role session; another owner's revision
or secret is denied. `CreateAccessPoint`'s `TagResource` is authorized against the file system
(policy fixed). `DeregisterTaskDefinition` supports only `*` with no tag condition, which the
workspace tier does not grant: open. SSO sessions themselves were not used.
- ~~That `session-manager-plugin` port forwarding to an ECS target is stable for hours-long
sessions, and how quickly it reconnects.~~ **Measured 2026-11-14** (phase 2b, us-west-2,
plugin 1.2.896, Fargate 1 vCPU / 2 GB, `host::ssm::live_tests`):
@@ -749,8 +757,8 @@ detached runner, detection, self-onboarding, an update ("No changes"), destroy;
file-system policy accepted the just-created task role; conditional `DeleteObject` (`If-Match`)
on the versioned bucket returns 412 on a stale ETag.
Still to verify: the `existing` network mode against a user's own VPC, and Fargate tasks in the
deployed environment (phase 5).
Still to verify: the `existing` network mode against a user's own VPC. Fargate tasks in the
deployed environment were run in phase 5 (`aws/README.md`).
## Connection model