Release cycle
Spanway ships as container images, Helm charts and Terraform modules. The gateway image is named registry.spanway.ai/spanway/spanway-ai, its code is compiled inside the image, and no gateway package is published to a package index. The release version (for example 2.0.0) is the version reported by the gateway in the x-spanway-version response header and by spanway --version.
A real-world scenario
A platform team pins the gateway image to 2.0.0 in its Helm values. When the release notes announce 2.1.0 with a database column added for a feature they want, the on-call engineer reads the notes for every version in between, takes a Postgres backup, verifies the new image's signature against the pinned public key, bumps image.tag on one instance and watches it finish its migrations and answer /health/readiness, then rolls the rest. Nothing in production ever follows latest, so a redeploy during an incident never upgrades the gateway by surprise.
Private preview
Spanway is in private preview. Builds are delivered to preview customers directly, and the registry address comes in your onboarding pack. Ask sales@spanway.ai for access to the current build. The release notes describe what each build contains.
docker pull registry.spanway.ai/spanway/spanway-ai:2.0.0
Spanway is in private preview. The container images and Helm charts will be published soon. To request access, write to sales@spanway.ai, and preview customers receive download instructions in their onboarding pack.
What a release tag publishes
Every release is signed and built from the same code that runs Spanway Cloud. During the private preview a release contains the container images and the Helm charts in the private container registry, an SPDX SBOM for each of them, an OpenVEX statement for known vulnerabilities, and, on the release page, the spanway-client Python client file, the @spanway/client TypeScript client as spanway-client-<version>.tgz, the Postman collection and environment files and the spanway-vscode.vsix extension file. The gateway is never distributed as a package on a package index. An npm package for @spanway/client, a Terraform Registry listing for the provider and VS Code store listings are planned. The registry address and pull credentials are in your onboarding pack.
Release signing
Every release signs its images, charts, SBOM attestations and release files with cosign, using a key held in a cloud key management service. The key never leaves that service, the workflow assumes a short-lived role through OpenID Connect to use it, and no signature is uploaded to the public Sigstore transparency log, so a release leaves no public record. Every release attaches the public key as spanway-release-signing.pub, and the workflow verifies each asset against that attached key before it publishes the release. If the key or the role is not configured, a private release fails before signing anything, because it never falls back to keyless signing. During the private preview a release creates no SLSA build provenance attestations. The image build records BuildKit provenance in the image manifest, and the SBOM attestations and signatures all come from that one key. Verify a release with cosign verify --key spanway-release-signing.pub --insecure-ignore-tlog=true, cosign verify-attestation with the same two flags, and cosign verify-blob --key spanway-release-signing.pub --insecure-ignore-tlog=true --bundle <file>.cosign.bundle <file>.
While Spanway is in preview, every release is private and signed this way. The private 2.x releases keep verifying with the spanway-release-signing.pub copy you pinned, because that public key stays published after launch.
From launch, releases are signed keylessly through the release workflow instead, and each signature is recorded in the public Sigstore transparency log. From launch the client packages (the Python client wheel and source archive and the npm tarball) also get SLSA build provenance attestations. Those releases verify against the release workflow's identity rather than a key. The release notes of the launch version give the exact identity to pass:
IDENTITY='<release workflow identity from the launch release notes>'
ISSUER=https://token.actions.githubusercontent.com
cosign verify --certificate-identity-regexp "$IDENTITY" --certificate-oidc-issuer "$ISSUER" registry.spanway.ai/spanway/spanway-ai:<version>
The container images page has the full commands for both kinds of release.
Versions and tags
Versions follow semantic versioning as major.minor.patch, and every Spanway component carries the same version: the gateway and its packages, the clients, the Helm charts, the Terraform modules and provider, the Rust crates, Lens, the Admin UI, the VS Code extension and the docs all move together on each release. A patch release contains fixes only. A minor release can add features, new providers and new database columns. A major release is used for every major or breaking release, can remove deprecated behaviour, and its release notes list every breaking change. Every release, including patches, gets an entry in the release notes. Container images are tagged with the exact version and with latest, which always points at the newest stable build.
Pin an exact version in production instead of latest, so that a redeploy never upgrades the gateway by accident.
docker pull registry.spanway.ai/spanway/spanway-ai:2.0.0
Database migrations
Schema migrations run automatically when the gateway starts, before it accepts traffic. Migrations only change the schema and never rewrite existing rows, so even large spend log tables upgrade quickly. During a rolling upgrade, run one new instance first and let it finish its migrations before replacing the rest. The gateway uses the v2 migration resolver by default, which avoids schema thrashing when two versions share a database during a rolling deploy. --use_legacy_migration_resolver (or USE_V2_MIGRATION_RESOLVER=false) switches back to the older resolver. If database setup fails at startup, the gateway exits instead of serving traffic.
Container image
The image is built on a minimal Wolfi base with pinned, checksummed build dependencies, exposes port 4000, and includes the Admin UI and the spanwayctl CLI. Spanway's own code is compiled into native modules at build time and the sources are removed, the runtime root filesystem has no shell and no package manager, and the release refuses to tag or sign an image in which any first-party Python file remains. Its entrypoint passes any arguments to the spanway command, so the same flags work with every container runtime. See container images for what each image runs.
Upgrade step by step
The bundled model price map is refreshed with each release. New model prices therefore arrive with upgrades, and you can override any price in your config at any time with custom pricing.
-
Read the release notes for every version between yours and the target, and back up the Postgres database.
-
Verify the new image before you pull it into production, with the public key you pinned from an earlier release:
cosign verify --key spanway-release-signing.pub --insecure-ignore-tlog=true registry.spanway.ai/spanway/spanway-ai:2.1.0Expected result: cosign prints the verified signature and exits 0.
-
Roll one instance to the new tag and watch its log until the migrations finish, see logs, then confirm it is ready and reports the new version:
curl http://localhost:4000/health/readinesscurl -s http://localhost:4000/health/readiness/details -H "Authorization: Bearer $SPANWAY_API_KEY"Expected result: the first call returns
{"status": "healthy", "db": "connected", "airgapped": false, "coordination_redis": "connected"}and needs no key. The second call needs a key and returns the same fields plus"spanway_version": "2.1.0". Every model call answer, for example from/v1/chat/completions, also carries thex-spanway-versionheader. The liveness probe/health/livelinessonly returnsI'm alive!and does not report the version. -
Roll the remaining instances. In the Admin UI the account menu at the bottom of the sidebar shows the running version badge. When
SPANWAY_RELEASE_CHECK_URLpoints at a release feed, the dashboard's upgrade notice disappears once the running version matches the newest release. Without that variable the gateway checks for no new release and shows no notice.
Errors
| Symptom | Meaning | Fix |
|---|---|---|
The gateway exits at startup after migrations lines | Database setup failed, the gateway never serves traffic on a broken schema. | Read the migration error in the log, restore the backup if needed, and retry. |
cosign verify fails | The image was not signed by the Spanway release key, or the key file differs. | Pull the image again from the registry named in your release access, and compare the key with spanway-release-signing.pub attached to the release. |
| Two versions thrash the schema during a rolling deploy | The legacy migration resolver is in use. | Keep the default v2 resolver, remove --use_legacy_migration_resolver or USE_V2_MIGRATION_RESOLVER=false. |
/health/readiness answers 503 with "status": "unhealthy" and "db": "disconnected" or "db": "stalled" after the upgrade | The new instance cannot reach Postgres, or its queries hang, so it stays out of the load balancer. With general_settings.allow_requests_on_db_unavailable: true the probe answers 200 instead and the instance takes traffic without a database. | Check DATABASE_URL and the network path to the database before you roll further. |
The release workflow refuses a tag with release notes check failed for v2.0.0: no '## 2.0.0, <day> <Month> <year>' heading | The release notes still say ## 2.0.0, unreleased, or have no section for the version. The tag gate only accepts a heading with the release date. | Replace unreleased with the release date, for example ## 2.0.0, 3 December 2026, on the release branch before you push the tag. |
| The release workflow refuses a tag as not signed | The tag is not signed by a key listed in the release signers file. | Sign the tag with a listed key. |
Logs
These are the lines to watch while one instance upgrades, in step 3.
| Level | Line | Meaning | Action needed |
|---|---|---|---|
| INFO | Starting prisma migration job (use_migrate=..., use_v2_resolver=...) and Migration job completed successfully. | The migrations ran and finished. | None, wait for readiness. |
| ERROR | Migration job failed after retries. | The migrations could not be applied. | Read the error before it, restore the backup if needed, and retry. |
| ERROR | Spanway Proxy: Database setup failed after multiple retries. The proxy cannot start safely. ... | The gateway exits instead of serving on a broken schema. | Check the database connection and the migration error, see image errors. |
The log reference lists every operator log line.
Related
- Container images for every image, the verification commands and the SBOMs.
- Sign-in security settings for the vulnerability fix SLA.
- Production checklist for pinning versions.
- User banner and upgrade notice for the dashboard's upgrade notice.