You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
spored: SigV4-sign /notify and send it to spore-bot's AWS_IAM notify URL (before spore-bot is re-enabled) #1626
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:
Sign the notify request with the instance-role credentials, SigV4 service lambda. pkg/dns/client.gosignRequest already does this for the DNS updater.
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.
Point spawn:notify-url at spore-bot's new notify_url output (an AWS_IAM URL on the notify alias). spored appends /notify.
Activity