Repository navigation
docs: correct the stale CORS / browser-credentials claim and the wire-compatible overstatement - #58
Merged
Merged
Conversation
…-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
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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'sFinderseam (a Node/backend implementation), not in the default browser path."Preflighted live from
Origin: https://spore.host:ec2.us-east-1.amazonaws.com*content-type,x-amz-target,authorizationapi.pricing.us-east-1.amazonaws.com*servicequotas.us-east-1.amazonaws.com*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 OIDCid_tokenforAssumeRoleWithWebIdentitycredentials that live in the tab and expire on their own. That's the path the portal signs in with today.BundledFinderstays 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 withoutspawn: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 paritymilestone.