Skip to content

docs: correct the stale CORS / browser-credentials claim and the wire-compatible overstatement - #58

Merged
scttfrdmn merged 1 commit into
mainfrom
docs/parity-corrections
Aug 1, 2026
Merged

scttfrdmn merged 1 commit into
mainfrom
docs/parity-corrections

Conversation

@scttfrdmn

Copy link
Copy Markdown
Contributor

Closes the documentation half of the Phase 1 parity audit (#57).

Two corrections

1. The CORS / browser-credentials paragraph was false on both counts.

It read: "Live AWS data (real-time DescribeInstanceTypes, spot prices, quotas) needs credentials a browser can't safely hold and hits CORS, so it lives behind truffle-ts's Finder seam (a Node/backend implementation), not in the default browser path."

Preflighted live from Origin: https://spore.host:

endpoint ACAO methods headers
ec2.us-east-1.amazonaws.com * POST content-type,x-amz-target,authorization
api.pricing.us-east-1.amazonaws.com * POST same
servicequotas.us-east-1.amazonaws.com * POST same

And a browser can hold usable credentials — not a long-lived key, but a short-lived STS session. credsFromIdToken (src/auth/aws-federation.ts) already exchanges a Globus OIDC id_token for AssumeRoleWithWebIdentity credentials that live in the tab and expire on their own. That's the path the portal signs in with today.

BundledFinder stays the default for cost, latency, and IAM-permission reasons, which the section now states instead.

This mattered beyond accuracy: the false claim was load-bearing for tiering. Several capabilities were classified "not portable" on a premise that doesn't hold, and re-checking it during the audit promoted the Resource Groups Tagging API and SSM from tier D to tier B.

2. "Wire-compatible" read as complete.

Go's buildLaunchTags (spawn/pkg/aws/tags.go:32) stamps 55 tags at launch; spawn-ts stamps 33. The section now names what is absent in the same tier language it uses everywhere else, so the base-identity block reads as tier B with real consumers (the portal returns 403 on terminate without spawn:iam-user) rather than as an unstated hole. Links to #51 and #57.

Verification

Docs-only change; no code touched. The cross-repo anchor it links to (catalog.md#live-data-the-live-finder) is updated in the companion truffle-ts PR, which should merge first or together.

Refs #57. Part of the v1.0.0 — Feature parity milestone.

…-compatible overstatement

Two things in integration.md were wrong in ways that changed which features
read as portable:

- The "live AWS data ... needs credentials a browser can't safely hold and hits
  CORS" paragraph was false on both counts. Preflighted from
  Origin: https://spore.host, ec2 / api.pricing / servicequotas in us-east-1
  each return access-control-allow-origin: *, POST, and
  content-type,x-amz-target,authorization. And credsFromIdToken already puts
  short-lived STS credentials in the tab. BundledFinder stays the default for
  cost and latency, which is the real reason.

- "wire-compatible" read as complete. Go's buildLaunchTags stamps 55 tags;
  spawn-ts stamps 33. Now names what is absent in the same tier language as the
  rest of the section, so the base-identity block reads as tier B (#51) rather
  than as an unstated hole.

Refs #57.
@scttfrdmn
scttfrdmn merged commit 661dcc8 into main Aug 1, 2026
1 check passed
@scttfrdmn
scttfrdmn deleted the docs/parity-corrections branch August 1, 2026 01:04
scttfrdmn added a commit that referenced this pull request Aug 1, 2026
Cutting 0.7.0 surfaced that the process had already drifted, so this does both:
the release, and the mechanism that stops the drift recurring.

The drift found while reconstructing the notes:

- 0.6.0 and 0.6.1 were both published to npm with NO CHANGELOG section, and
  0.6.0 was never tagged at all. Both sections are now written retroactively
  from the commit range.
- `[Unreleased]` therefore still compared from v0.5.0 and had accumulated
  entries that had already shipped in 0.6.0 (#28, #38). Moved.
- The six audit fixes (#50, #51, #54, #55, #56, #58) had landed on main with no
  CHANGELOG entry at all. Written from the commit bodies.
- publish.yml's subpath guard was a hardcoded list that never gained
  `./transfer` when #59 added that subpath — so the guard had silently stopped
  covering a real entry point. That is the failure mode of a duplicated list, so
  scripts/check-exports.mjs now derives the check from `exports` itself and
  checks every target, not only the .d.ts. Verified it fails on exactly the
  subpath the old list was missing.

New `npm run release:check` is the preflight. Every assertion in it maps to a
drift above rather than to a hypothetical, and each was verified to fail when
violated (undated section, missing compare link, stale [Unreleased] link,
version with no section, already-published version). It reports ALL problems at
once, and a check it cannot run (no git, no network) is reported as unknown
rather than as passing.

It immediately earned itself: it caught LIB_VERSION still reading 0.6.1.
That constant is stamped into the `spawn:version` launch tag and read by Go's
pkg/aws/ami_mgmt.go, so shipping it stale would have mislabelled every instance
launched by 0.7.0. Bumped, and the coupling is now documented at the bump step
in docs/releasing.md rather than left for someone to remember.

docs/releasing.md writes the process down: tag last, tag from main, tag only a
pushed green commit, and never move a published tag — fix forward, as truffle-ts
v0.4.1 did.

0.7.0 is MINOR, not PATCH: `launch` now refuses a spec it previously accepted
(#51) and the unbounded-launch guard changed which options satisfy it (#55). A
type-compatible change that rejects previously-valid input is still a break.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant