Skip to content

Release: spored S3 upload broken — OIDC role won't allow spore-host/spawn (AssumeRoleWithWebIdentity denied) #13

Closed

Description

@scttfrdmn

Severity: important

The spawn Release workflow's "Configure AWS credentials" step has failed on every release since v0.36.0, so the spored Linux binaries are not being uploaded to the 8 regional spawn-binaries-* S3 buckets. Instances pull spored from S3 at boot, so they are running a stale spored (last successful upload predates the repo split). New spored fixes/features never reach launched instances.

The release artifacts (GitHub release, deb/rpm, Homebrew/Scoop) publish fine — GoReleaser runs before this step. Only the S3 upload is broken.

Error

##[error]Could not assume role with OIDC: Not authorized to perform sts:AssumeRoleWithWebIdentity

Step: Configure AWS credentials (aws-actions/configure-aws-credentials@v6), assuming
arn:aws:iam::966362334030:role/GitHubActions-spore-host-release (role-session spored-s3-upload, us-east-1).

Root cause

When spawn was split into its own repo, the OIDC trust policy of GitHubActions-spore-host-release was not updated to include the new repo's subject. The GitHub OIDC sub is now repo:spore-host/spawn:ref:refs/tags/v* (tag-triggered), but the role's Condition almost certainly still only trusts the old monorepo subject (repo:spore-host/spore-host:*).

Fix

In account 966362334030, update the trust policy of GitHubActions-spore-host-release to allow the spawn repo. Trust statement should permit:

  • token.actions.githubusercontent.com:aud = sts.amazonaws.com
  • token.actions.githubusercontent.com:sub matching repo:spore-host/spawn:* (or scope tighter to repo:spore-host/spawn:ref:refs/tags/* since uploads only happen on tags)

Verify the GitHub OIDC provider exists in that account and the role's permission policy still grants s3:PutObject to the 8 spawn-binaries-* buckets.

Verify after fixing

  • Re-run the failed v0.36.3 Release job (or push a no-op patch tag) and confirm the "Upload spored binaries to S3" step succeeds.
  • Spot-check: aws s3 ls s3://spawn-binaries-us-east-1/spawn/spored-linux-amd64 shows a fresh timestamp.
  • Confirm the per-region buckets all received the binary + .sha256 + the versions/<v>/ copy.

Context

Found while releasing v0.36.3 (the --volume-size flag, #11). That release published correctly; this is a pre-existing, separate infra-trust break. The --volume-size feature is resolved CLI-side at launch and does not depend on the spored upload, so it works regardless — but any spored-side change is currently undeliverable until this is fixed.

Activity

  1. added
    bug
    on May 30, 2026
  2. scttfrdmn commented on May 31, 2026

    @scttfrdmn
    ContributorAuthor

    Fixed and verified ✅

    Root cause was exactly as diagnosed: the OIDC role's trust policy only allowed the old monorepo subject (repo:spore-host/spore-host:ref:refs/tags/v*), not the split-out spawn repo.

    What was fixed (account 966362334030)

    1. Trust policy of GitHubActions-spore-host-release updated to allow tag-pushed releases from the tool repos:
      • repo:spore-host/spawn:ref:refs/tags/v* (+ truffle, lagotto, spore-host-mcp, and the original monorepo), aud=sts.amazonaws.com, scoped to refs/tags/v*.
    2. 3 missing regional buckets created — surfaced once OIDC was fixed: spawn-binaries-eu-west-2, spawn-binaries-ap-southeast-1, spawn-binaries-ap-northeast-1. The workflow + truffle referenced 11 regions but only 8 buckets existed. New buckets configured to match the existing 8 (public-read on spored-* + cross-account mpi-keys/* for 435415984226:role/spored-instance-role).

    Verification (release v0.36.4)

    • Release workflow: completed/success — first fully-green spawn release since v0.36.0.
    • "Configure AWS credentials" (OIDC) ✅ and "Upload spored binaries to S3" ✅.
    • spored present in all 11 spawn-binaries-* buckets with fresh timestamps (amd64 + arm64).

    Follow-ups filed (not blocking)

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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions