Skip to content

Release v0.166.0 - #1638

Merged
scttfrdmn merged 1 commit into
mainfrom
release/v0.166.0
Nov 15, 2026
Merged

scttfrdmn merged 1 commit into
mainfrom
release/v0.166.0

Conversation

@scttfrdmn

Copy link
Copy Markdown
Contributor

Release v0.166.0: moves Unreleased to ## [0.166.0] - 2026-11-14. Minor, security hardening.

Server-side (#1584–#1600, #1611, #1621, #1623):

CI and supply chain (#1599, #1601, #1602):

Pre-deploy, done before the Lambda deploy is approved:

  1. Delete the assumed-role/ rows in spawn-user-accounts (Dashboard: no broadcast of ownerless sweeps; no cache under a shared session ARN (#1600, #1589) #1625).
  2. Apply SpawnDNSAccountRegistryRead/KMS and set DNS_ACCOUNTS_TABLE=spore-portal-accounts before the dns-updater code deploys (dns-updater: read the account registry with one keyed GetItem (#1611) #1632).
  3. Delete the dev SpawnDashboardCrossAccountReadRole (dashboard-api: retire SpawnDashboardCrossAccountReadRole; read EC2 as the caller (#1585) #1633).

Post-deploy: spawn reaper deploy plus the dev cross-account stack update (#1637), and the live checks listed on each PR.

The changelog had duplicate bullets from union rebases; they're de-duplicated here.

@codecov

codecov Bot commented Nov 15, 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 b02d9fe into main Nov 15, 2026
9 checks passed
@scttfrdmn
scttfrdmn deleted the release/v0.166.0 branch November 15, 2026 02:55
@github-actions

Copy link
Copy Markdown
Contributor

Deploy checklist: v0.165.0..v0.166.0

Operated components whose deploy inputs differ between v0.165.0 (51f1cb1) and v0.166.0 (b02d9fe), 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.166.0. How to read this: docs/infra-account.md, "Deploy checklist".

Lambdas (6 of 9 need a deploy)

  • lambda/dashboard-api (spawn-dashboard-api): changed, code-only
    • compiles lambda/dashboard-api: auth.go, cost_summary.go, cross_account.go, instances.go, main.go
    • compiles pkg/botsecret: botsecret.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/dashboard-websocket-processor (spawn-dashboard-websocket-processor): changed, code-only
    • compiles lambda/dashboard-websocket-processor: main.go
    • deploy (shell): (cd lambda/dashboard-websocket-processor && ./deploy.sh <aws-profile> <websocket-api-id>)
  • lambda/dns-updater (spawn-dns-updater): changed, manual
    • compiles lambda/dns-updater: authorize.go
    • deploy mechanism scripts/deploy-custom-dns.sh modified
    • 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: client.go, securitygroup.go, windows_sg.go (added)
    • compiles pkg/keypairsweep: keypairsweep.go (added)
    • deploy (sam): make -C lambda/pipeline-orchestrator deploy
  • lambda/sweep-orchestrator (spawn-sweep-orchestrator): changed, code-only
    • compiles lambda/sweep-orchestrator: cancel.go, main.go, target_account.go (added)
    • compiles pkg/aws: client.go, securitygroup.go, windows_sg.go (added)
    • compiles pkg/keypairsweep: keypairsweep.go (added)
    • deploy (shell): scripts/deploy-sweep-orchestrator.sh
  • lambda/ttl-reaper (spawn-ttl-reaper-production): changed, manual
    • compiles lambda/ttl-reaper: netresources.go
    • compiles pkg/keypairsweep: keypairsweep.go (added)
    • deploy mechanism lambda/ttl-reaper/template.yaml modified
    • deploy (sam): make -C lambda/ttl-reaper deploy

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

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

  • deployment/cloudformation/spore-bot.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-cross-account-role.sh [lambda/dashboard-api]: removed. runs aws iam create-role, aws iam detach-role-policy, aws iam put-role-policy, aws iam update-assume-role-policy
    • deleted: remove whatever it created if nothing else owns it

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.165.0..v0.166.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 hixGL/Vxg9+W+mSe8w5ScqRyBfMNsvjXCfRgnmtovWE= iWbsC3RyKsYyr3fg8N1/JN6IuZ1extkaGuxi7dw1veA= iWbsC3RyKsYyr3fg8N1/JN6IuZ1extkaGuxi7dw1veA= empty spawn:version=0.166.0 (verified)
spawn-dashboard-websocket-processor deployed jdSn7tty0KV9aeb5HdcK1ivBTAf5Bl0xy5O/dL3VjYo= 05uLiy0Oe1arkug6tfHp8APhlGG+RqSL5FVBKQYVZfQ= 05uLiy0Oe1arkug6tfHp8APhlGG+RqSL5FVBKQYVZfQ= empty spawn:version=0.166.0 (verified)
spawn-pipeline-orchestrator deployed Bls7i5Wkus23A/ArekjghcuY5wNfKStAAC8gZRHLtpQ= zCiQkfDsYP5iJrHQDraGRbUXMxrzO3zdBz+FoW3D2zo= zCiQkfDsYP5iJrHQDraGRbUXMxrzO3zdBz+FoW3D2zo= empty spawn:version=0.166.0 (verified)
spawn-sweep-orchestrator deployed H1YuWMO8amft12HbM9V1vDa4qaIzK15v3B2w/PlYfbs= xnlpAEjZMkd0Xu094SUv0gjw/JdpfyEpFPFS51pO2z8= xnlpAEjZMkd0Xu094SUv0gjw/JdpfyEpFPFS51pO2z8= empty spawn:version=0.166.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)
  • published bootstrap body for v0.166.0 verified (sha256 a730024dd3219e5c68c03ac35b305d42b3ec32f59aac6a37c2a9db23df446fda)

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/dns-updater (spawn-dns-updater) (changed, manual): manual, not deployed: compiles lambda/dns-updater: authorize.go; deploy mechanism scripts/deploy-custom-dns.sh modified
  • lambda/scheduler-handler (scheduler-handler) (unchanged, none): unchanged, no deploy
  • lambda/ttl-reaper (spawn-ttl-reaper-production) (changed, manual): manual, not deployed: compiles lambda/ttl-reaper: netresources.go; compiles pkg/keypairsweep: keypairsweep.go (added); deploy mechanism lambda/ttl-reaper/template.yaml modified
  • deployment/cloudformation/spore-bot.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-cross-account-role.sh (removed, manual): manual, not deployed: runs aws iam create-role, aws iam detach-role-policy, aws iam put-role-policy, aws iam update-assume-role-policy

@scttfrdmn

Copy link
Copy Markdown
Contributor Author

v0.166.0 deploy verification (2026-11-14)

Target Result
dashboard-api, websocket-processor, pipeline-orchestrator, sweep-orchestrator (CI, code-only) Code changed, zero config/env drift against the snapshots
dns-updater (manual update-function-code) Code changed, zero drift. Live: test instance registered its A record and _spore-instance marker; no registry-unreadable warning
Dev member stack spawn-ttl-reaper-ec2 Updated in place. Simulated: DeleteKeyPair allowed only for spawn:purpose=ssh-key-session, denied for workstation and untagged keys
Production reaper spawn-ttl-reaper-production (SAM) Parameter drift Version only. Still armed: DryRun=false, NetResources=reap. The DeleteKeyPair grant correctly lives on the dev cross-account role (policy 2 here is gated on ScanSelf, which is false)
spored binaries verify-spored.sh 0.166.0: fail=0
Live-test leak check Instance terminated; no leftover instances, key pairs, SGs or unattached EIPs

Regression found: the SAM deploy reset REAPER_DNS_LEASE_EXPIRE from true to false. It had been set on the function env directly on 2026-11-12, not through the DnsLeaseExpire stack parameter. The fix is staged as change set lease-expire-true, whose only property change is that env var. It is awaiting owner execution. The guard against this class of drift is tracked in #1639.

@scttfrdmn

Copy link
Copy Markdown
Contributor Author

v0.166.0 live checks (2026-11-15, us-east-1 dev, released v0.166.0 CLI)

  • spored: never log a webhook URL (#1592) #1629, webhook URL not logged: an instance with --completion-webhook-url https://lk-nohost.invalid/hooks/<token>/… fired the webhook. spored logged the failed POST, including the Go *url.Error, as https://lk-nohost.invalid only. The token appears 0 times in /var/log/spored.log, the journal and cloud-init-output.log.
  • Windows launches: delete the per-instance security group with its instance (#1623) #1636, Windows SG deleted on terminate: spawn terminate on a Windows instance waited for terminated, then deleted spawn-windows-lk-win; describe-security-groups confirms it is gone.
  • Session key pairs: a named deleter, never a workstation key (#1621) #1637, session key pairs: created a spawn:purpose=ssh-key-session key and a spawn:purpose=ssh-key decoy, both unused. The first production reaper run after they turned 1 h old logged REAPED session key pair … unused, 1h7m0s old (NetReaped:1, Errors:0) and kept the decoy. I deleted the decoy by hand afterwards.
  • Leak check: all test instances terminated; no instances, SGs, key pairs, Spot requests, EIPs or volumes left.

The nested-spawn import tagging (ssh-key-session set at import by a role session) is covered by unit tests only; this check created the tagged key directly.

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