Skip to content

spored: SigV4-sign /notify and send it to spore-bot's AWS_IAM notify URL (before spore-bot is re-enabled) #1626

Open

Description

@scttfrdmn

spore-host/spore-host#739 (for spore-host/spore-host#702) makes spore-bot refuse any POST /notify that Lambda didn't verify as SigV4-signed by the named instance's own role session (arn:aws:sts::<acct>:assumed-role/<role>/<instance_id>). An unsigned request gets a 401.

Today spored sends it unsigned. In pkg/agent/notifier.go, send builds http.NewRequestWithContext(ctx, "POST", n.notifyURL+"/notify", ...) with only Content-Type (checked on main 2026-11-14). It still fetches the PKCS#7 document, which spore-bot no longer reads (#374).

Nothing breaks now: chat is walled off for 1.0 (SPAWN_EXPERIMENTAL_CHAT) and the hosted bot has no public endpoint (public_endpoint_enabled = false). Before spore-bot is re-enabled:

  1. Sign the notify request with the instance-role credentials, SigV4 service lambda. pkg/dns/client.go signRequest already does this for the DNS updater.
  2. Grant the instance role lambda:InvokeFunctionUrl on the spore-bot function, as ensureDNSInvokeGrant does for DNS. A cross-account AWS_IAM URL call needs both sides.
  3. Point spawn:notify-url at spore-bot's new notify_url output (an AWS_IAM URL on the notify alias). spored appends /notify.
  4. Drop the unused PKCS#7 fetch.

Activity

  1. added this to the Post-1.0 milestone on Nov 14, 2026
  2. added
    area:spored
    type:security
    on Nov 14, 2026
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

    area:sporedcomponent:spawntype:security

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions