Skip to content

Release v0.164.0 - #1610

Merged
scttfrdmn merged 1 commit into
mainfrom
release/v0.164.0
Nov 12, 2026
Merged

scttfrdmn merged 1 commit into
mainfrom
release/v0.164.0

Conversation

@scttfrdmn

Copy link
Copy Markdown
Contributor

Release v0.164.0: moves Unreleased to ## [0.164.0] - 2026-11-12. Minor, security. It ships behaviour changes that admins need to know about.

Security hardening (#1603–#1609):

  • Instance roles: spored roles are self-scoped. Nested and task roles are scoped to what they launched or own.
  • DNS: the updater checks record ownership, and enforce is the default. App launches get their own role for the TLS key.
  • Permissions boundary: every role spawn creates is capped by one. An admin runs spawn setup-account once per account, or an admin's first launch creates it. Until then, a non-admin launch that must create or update a role is refused, and the error names that command.
  • Trust boundary: onboard refuses to trust Organizations management accounts and the forbidden account.
  • Secrets: session tokens are out of EC2 tags, and plugin calls over SSM are encrypted.
  • dashboard-api: limited to onboarded or allow-listed accounts.

Live-verified in spore-host-dev before merge; evidence is on each PR. Production prep is done:

  • spawn-dns-updater is pinned to DNS_AUTHZ_MODE=audit for its first deploy;
  • the cert bucket grants spawn-instance-app;
  • the dashboard role can read the account registry and its key;
  • DASHBOARD_ALLOWED_ACCOUNTS is set.

After the deploy:

  1. Watch the DNS updater in audit mode, then flip it to enforce.
  2. Run the dashboard 200/403 check and the cross-instance DNS 403 check.
  3. Long-lived DCV and web instances need spawn upgrade-spored.

@codecov

codecov Bot commented Nov 12, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@scttfrdmn
scttfrdmn merged commit f050a7c into main Nov 12, 2026
9 checks passed
@scttfrdmn
scttfrdmn deleted the release/v0.164.0 branch November 12, 2026 22:05
@github-actions

Copy link
Copy Markdown
Contributor

Deploy checklist: v0.163.2..v0.164.0

Operated components whose deploy inputs differ between v0.163.2 (dc13132) and v0.164.0 (f050a7c), from scripts/deploychecklist (#1444). code-only: only compiled inputs changed, so a code update ships it. manual: a script, template, policy or mapping changed; review and apply it by hand. Deploy from a clean checkout of v0.164.0. How to read this: docs/infra-account.md, "Deploy checklist".

Lambdas (5 of 9 need a deploy)

  • lambda/dashboard-api (spawn-dashboard-api): changed, code-only
    • compiles lambda/dashboard-api: auth.go, entitlement.go (added), instances.go, main.go
    • deploy (shell): lambda/dashboard-api/deploy.sh [aws-profile]
    • deploy (shell): lambda/dashboard-api/scripts/deploy.sh
    • note: Slack endpoints (/api/slack/*) answer 404 unless the function's environment sets SPAWN_EXPERIMENTAL_CHAT=1; the hosted spawn-dashboard-api must NOT set it for 1.0 (spore-bot: decrypt the KMS-encrypted workspace signing_secret (spawn#868) spore-host#611). Check with aws lambda get-function-configuration --function-name spawn-dashboard-api --query Environment.Variables.SPAWN_EXPERIMENTAL_CHAT. (lambda/dashboard-api/chat_gate.go)
  • lambda/dns-updater (spawn-dns-updater): changed, code-only
    • compiles lambda/dns-updater: authorize.go, main.go, ownership.go (added)
    • deploy (shell): scripts/deploy-custom-dns.sh --hosted-zone-id Z123... --domain spore.example.edu
  • lambda/pipeline-orchestrator (spawn-pipeline-orchestrator): changed, code-only
    • compiles pkg/aws: app_role.go (added), iam.go, iam_boundary.go (added), iam_instance_scope.go (added), iam_policy_schema.go, launch_tags.go, nested_spawn.go, post_launch_tags.go, sweep_role.go
    • compiles pkg/dns: client.go (added), encoding.go (added), lease.go (added), target.go (added)
    • compiles pkg/instancerole: sporedpolicies.go
    • compiles pkg/trustboundary: trustboundary.go (added)
    • deploy (sam): make -C lambda/pipeline-orchestrator deploy
  • lambda/sweep-orchestrator (spawn-sweep-orchestrator): changed, code-only
    • compiles pkg/aws: app_role.go (added), iam.go, iam_boundary.go (added), iam_instance_scope.go (added), iam_policy_schema.go, launch_tags.go, nested_spawn.go, post_launch_tags.go, sweep_role.go
    • compiles pkg/dns: client.go (added), encoding.go (added), lease.go (added), target.go (added)
    • compiles pkg/instancerole: sporedpolicies.go
    • compiles pkg/trustboundary: trustboundary.go (added)
    • deploy (shell): scripts/deploy-sweep-orchestrator.sh
  • lambda/ttl-reaper (spawn-ttl-reaper-production): changed, code-only
    • compiles lambda/ttl-reaper: lease_expiry.go, main.go
    • compiles pkg/dns: lease.go
    • compiles pkg/instancerole: sporedpolicies.go
    • deploy (sam): make -C lambda/ttl-reaper deploy

Unchanged, no deploy: lambda/cost-history-collector, lambda/dashboard-websocket, lambda/dashboard-websocket-processor, lambda/scheduler-handler.

Other deploy inputs (3 of 26 changed, all manual)

  • deployment/cloudformation/bot-cross-account-role.yaml: changed. CloudFormation/SAM template
    • no script in the repo applies it: deploy by hand
  • deployment/cloudformation/ttl-reaper-cross-account-role.yaml: changed. CloudFormation/SAM template
    • no script in the repo applies it: deploy by hand
  • lambda/dashboard-api/scripts/setup-dashboard-lambda-role.sh [lambda/dashboard-api]: changed. runs aws iam attach-role-policy, aws iam create-role, aws iam delete-policy, aws iam delete-policy-version, aws iam delete-role-policy, aws iam detach-role-policy, aws iam put-role-policy
    • run: (cd lambda/dashboard-api && scripts/setup-dashboard-lambda-role.sh [aws-profile])

Shipped with the CLI, no deploy

  • pkg/reaperdeploy: creates a Lambda from Go inside the spawn CLI (the self-hosted reaper, in the user's own account), so it ships with the CLI release, not as a spore.host deploy

@github-actions

Copy link
Copy Markdown
Contributor

Lambda deploy record: v0.163.2..v0.164.0, LIVE

From scripts/deploylambdas (#1445): code-only Lambda changes, deployed by the approval-gated production job. How to read it: docs/infra-account.md, "Deploying code-only changes from CI".

Function Result CodeSha256 before built after Config diff Version stamp
spawn-dashboard-api deployed 9/4GnnEB/EeT0hbtWDc/hYSTXVBvnQERVDARsJOKENM= hixGL/Vxg9+W+mSe8w5ScqRyBfMNsvjXCfRgnmtovWE= hixGL/Vxg9+W+mSe8w5ScqRyBfMNsvjXCfRgnmtovWE= empty spawn:version=0.164.0 (verified)
spawn-dns-updater deployed OuAsQfCCMBIcrC7JLD8gAxH0g4Ie8NZQ7RXRE2Ltmfk= GMx3rIM17fmP+unoC/798wKtN5Jr/IBsXQtc2jsd/ns= GMx3rIM17fmP+unoC/798wKtN5Jr/IBsXQtc2jsd/ns= empty spawn:version=0.164.0 (verified)
spawn-pipeline-orchestrator deployed Ztk3NN+5d2ta3khhh47pBLR3DeaEMpsinMmKwOfuqSY= kd3jmUVuyMVV2WsssaTi4O4UdCwjMktirFkJW7CQxXE= kd3jmUVuyMVV2WsssaTi4O4UdCwjMktirFkJW7CQxXE= empty spawn:version=0.164.0 (verified)
spawn-sweep-orchestrator deployed ALZXlGREySxeOtgmHtDndX4MCyzPc7TebkP3ohCv7Pk= cWvYJ5cOiQXLzlrBOpkMV6B5TqDuU7wkclAsl4ZmbqM= cWvYJ5cOiQXLzlrBOpkMV6B5TqDuU7wkclAsl4ZmbqM= empty spawn:version=0.164.0 (verified)
spawn-ttl-reaper-production deployed HF1sELCTFrkL4dNzqNSkhOjj3LrzkryVe1gLrQlbCNA= sD+IhEa0KONEWG2IvkNZaTCzxZJjp2vD4bBzEJsixiY= sD+IhEa0KONEWG2IvkNZaTCzxZJjp2vD4bBzEJsixiY= empty spawn:version=0.164.0 (verified)
  • spawn-pipeline-orchestrator:

    • SAM-managed, stack spawn-pipeline-orchestrator: after this update the stack's Code and Version parameter still name the previous deploy; that drift is expected and the next make -C lambda/pipeline-orchestrator deploy from a release tag reconciles it (docs/infra-account.md)
  • spawn-ttl-reaper-production:

    • SAM-managed, stack spawn-ttl-reaper-production: after this update the stack's Code and Version parameter still name the previous deploy; that drift is expected and the next make -C lambda/ttl-reaper deploy from a release tag reconciles it (docs/infra-account.md)
  • published bootstrap body for v0.164.0 verified (sha256 3563692d194f446e3aca50030b0e6a24a9fb15a87594daf30b46271f0e93f739)

Not deployed by this job

  • lambda/cost-history-collector (spawn-cost-history-collector) (unchanged, none): unchanged, no deploy
  • lambda/dashboard-websocket (spawn-dashboard-websocket) (unchanged, none): unchanged, no deploy
  • lambda/dashboard-websocket-processor (spawn-dashboard-websocket-processor) (unchanged, none): unchanged, no deploy
  • lambda/scheduler-handler (scheduler-handler) (unchanged, none): unchanged, no deploy
  • deployment/cloudformation/bot-cross-account-role.yaml (changed, manual): manual, not deployed: CloudFormation/SAM template
  • deployment/cloudformation/ttl-reaper-cross-account-role.yaml (changed, manual): manual, not deployed: CloudFormation/SAM template
  • lambda/dashboard-api/scripts/setup-dashboard-lambda-role.sh (changed, manual): manual, not deployed: runs aws iam attach-role-policy, aws iam create-role, aws iam delete-policy, aws iam delete-policy-version, aws iam delete-role-policy, aws iam detach-role-policy, aws iam put-role-policy

@scttfrdmn

Copy link
Copy Markdown
Contributor Author

v0.164.0 deployed and verified (the owner approved run 43316574164).

  • Lambdas: all 5 code-only Lambdas (dashboard-api, dns-updater, pipeline- and sweep-orchestrator, ttl-reaper) got new code with zero config drift, and all are Active/Successful.
  • Distribution: proxy, Homebrew and Scoop are at 0.164.0. verify-spored: fail=0.
  • dashboard-api:
    • Allow-listed dev and infra credentials get 200 on `/api/user/profile`; a call with no credentials gets 401.
    • With infra temporarily removed from `DASHBOARD_ALLOWED_ACCOUNTS`, the same infra credentials got 403 on `GET /api/user/profile`, `POST /teams` and `POST /api/strata/resolve`.
    • The variable was then restored exactly (diffed), and the call returned 200 again.
  • dns-updater:
    • Two instances launched with v0.164.0 registered, and each got its `_spore-instance.` ownership marker naming its own instance id.
    • Enforce mode is now on (single-variable change, same code).
    • On termination, both A records and both markers were removed.
    • A cross-instance takeover attempt run through the CLI from an instance could not reach the updater at all: the instance role has no `ec2:DescribeRegions`, and `dns delete` needs confirmation. Record ownership refusal is covered by unit tests but was not exercised live.
  • Found: dns-updater cannot read the account registry: SpawnDNSLambdaExecutionRole lacks dynamodb:Scan on spawn-user-accounts #1611. The updater can't read the account registry (missing `Scan`) and falls back to `DNS_ALLOWED_ACCOUNTS`.
  • Leak check: clean.

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.

1 participant