Repository navigation
Conversation
Workers no longer read a shared payload bucket or receive deployment identifiers baked into images. - The coordinator publishes an IAM-readable deployment manifest (bootstrap/<sha>.json) and a per-task payload, and hands the worker a small launch reference with a short-lived signed one-object URL for its own payload.json. MicroVM sends it as runHookPayload (always under the 4 KB cap); ECS sends it as AGENT_PAYLOAD_REF, consumed by load_ecs_payload() before the pipeline imports. - Worker credentials get GetObject on bootstrap/* only; other object reads and listing are denied, so a task cannot read another task's payload (#700). The coordinator signs reads and deletes payload.json/launch.json at finalize; lifecycle reaps leftovers. - Signed URLs are redacted from MicroVM error messages and logs. - Old unsigned envelopes (inline hook, S3 pointer, AGENT_PAYLOAD, AGENT_PAYLOAD_S3_URI) are rejected: deploy the coordinator and images together with in-flight tasks drained (docs/verification/645-payload-bootstrap.md). - The orchestrator role now overflows its inline policy; its overflow policy gets the same documented cdk-nag suppression as the runtime and Linear webhook roles. Extracted from the #904 working branch onto main's flat MicroVM layout, without start receipts or P3 lifecycle code.
…ted (#1002, #817) An ARN-shaped key (`*_arn` / `*_ARN`) in `microvm_platform_config.env_by_key` that is missing from `arn_keys` now fails both the constants-sync check and agent import, so a new ARN field cannot silently skip the partition/account consistency check. The comments now say what the check is: consistency with the payload's own anchor ARN, not proof of deployment identity.
- payload_bootstrap: mark the redirect handler's redirect_request as an @OverRide (ARG002), and allowlist its fixed-signature newurl parameter for vulture - drop microvmPayloadKey, unused since the S3 payload path went away (knip) - name the parametrized cases of the substitution test (strict parametrization ids) - type the microvm execution-role statement filter with its Action field (typecheck)
This was referenced Nov 16, 2026
This was referenced Nov 18, 2026
4 of 5 tasks
Contributor
Author
|
Superseded by #1086, which carries this change (its commits are kept as they were, followed by one commit that adapts the combined set to current main). Closing to keep one place for review. |
ClintEastman02
added a commit
to ClintEastman02/sample-autonomous-cloud-coding-agents
that referenced
this pull request
Nov 25, 2026
Responds to the review on aws-samples#1032: - Credentials (4): an opaque scm_credential_kind and scm_credential_ref at repo scope in v1, so GitHub App and Token Vault resolvers add a kind without changing the approved contract. The credential helper asks a resolver per git operation, so expiring tokens work. - Delivery channel (4, 9): no token or session credential in any channel another task's role can read. Phase 2 needs a per-task channel first (aws-samples#1015 or another). Both candidates reworded to use it. - Legacy github_token_secret_arn (4): outside the prefix and tag check, exact-ARN read path, DescribeSecret added, never silently replaced by the platform secret. - Identity (6, 9): hosts must be canonical and are rejected, not normalised. memoryActorId hashes any key outside the actorId pattern, including bare GitHub keys with a period. Checked in Phase 1a. - GitHub Enterprise Server (1, 9, 10): every prefixed key is rejected until Phase 2. - Known limits (11), multi-repo tasks and credential resolvers out of scope (10). - Header, status trigger, 1a behaviour change, cross-references and "orchestrator-to-agent" wording fixed. Renumbered to ADR-027, since aws-samples#1013 holds 025 and main has 026. Co-authored-by: Kiro <noreply@kiro.dev>
1 of 5 tasks
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.
Part of #1002 (and #817 item 3). Payload bootstrap v2 for ECS and Lambda MicroVMs.
Problem
Task payloads were delivered through shared-bucket reads (ECS) or an inline/S3-pointer envelope (MicroVM), and deployment identifiers were baked into images. A worker could read more than its own task's payload, and the platform-config contract didn't validate every ARN-shaped field.
Changes
shared/payload-bootstrap.tson the coordinator side, andagent/src/payload_bootstrap.pywithload_ecs_payload()/resolve_payload_reference()on the worker side.AGENT_PAYLOAD_REFand resolves it before the pipeline imports.runHookPayload(kept under 4 KB). Finalize deletes the payload reference, and signed URLs are redacted from errors and terminate logs.payload-bootstrap-permissions.ts: the coordinator may write, read and delete only bootstrap manifests and per-taskpayload.json/launch.jsonkeys.arn_keys, enforced both ways by the sync check. Theserver.pycomment now says region-scoped, not account-scoped.Not in this PR
Rejecting a same-account, cross-workspace
bgagent-*-oauth-*secret ARN (the rest of #817 item 3) isn't implemented here, so #1002 stays open for it.Deploy
Deploy the coordinator and worker images together, with in-flight tasks drained. Workers reject old unsigned envelopes, and old workers can't read v2 references. The procedure is in
docs/verification/645-payload-bootstrap.md.Tests
deployment.test.ts687/687.