Skip to content

spored v0.150.0+ ignores the hook tags spawn-ts writes (webhooks, notify, active ports/processes) #108

Closed

Description

@scttfrdmn

spore-host/spawn#1359 (PR to follow, targeting spawn v0.150.0) moves the spored settings that are fixed at launch out of instance tags. They go into a per-launch config object, launch-config/config-<sha256>.json in spawn-staging-<account>-<region>, and the instance carries one tag, spawn:config=<sha256>. spored from that release reads these settings only from the object. A tag with one of their names is ignored, and spored logs a WARNING listing the ignored tags. The owner decided there is no tag fallback (spawn#1359, 2026-10-29 comment): it is a same-version contract, which holds because spored is pinned to the launching CLI's version (spawn#1412).

spawn-ts falls outside that contract in two places:

  • src/core/tags.ts buildHookTags writes spawn:spot-webhook-url, spawn:webhook-correlation, spawn:webhook-timeout, spawn:notify-url, spawn:notify-platform, spawn:notify-command, spawn:active-processes and spawn:active-ports as tags. All eight are among the 21 settings that moved.
  • src/aws/userdata.ts downloads the unversioned spawn/spored-linux-<arch> (latest release), so once v0.150.0 is published a spawn-ts launch gets a spored that does not read those tags.

What breaks: on a spawn-ts instance, a Spot-interruption webhook never fires, notifications are not sent, and activePorts/activeProcesses no longer keep the instance alive. The last one can stop or terminate an instance that is in use when its idle timeout expires. TTL, idle timeout, on-complete, pre-stop and cost limit stay tags and are unaffected.

Options:

  1. Pin spored to a release that reads tags: spawn/versions/0.149.0/spored-linux-<arch> (that path exists since spawn#1412).
  2. Write the object the way spawn does: the canonical JSON {"schema":1,"settings":{...}}, with keys sorted (encoding/json map order), no HTML escaping and no trailing newline. Store it at launch-config/config-<sha256>.json in the staging bucket and tag spawn:config=<sha256>. The instance role also needs s3:GetObject on that key; spawn's roles grant it, a role spawn-ts uses may not. The schema is pkg/launchconfig in spawn.

Refs spore-host/spawn#1359

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions