Project 74 of 84
STS
Shared, suite-agnostic core library for an RFC 8693 (OAuth 2.0 Token Exchange) delegation security token service, published to npm as @catesworks/sts so each product suite can run its own on-behalf-of (OBO) STS instance for APIs and MCP servers.
- Status
- Shipped
- Last activity
- 2026
- Live
No public deployment.
- Stack
- TypeScript
- Node
- pnpm workspaces
- jose
- Hono
- Vitest
- Changesets
- npm trusted publishing
Highlights
- Designed and published @catesworks/sts 0.1.0, a suite-agnostic RFC 8693 token-exchange core (TypeScript, jose) that mints delegation-only, single-audience ES256 tokens with act chains, depth caps, strict scope narrowing and kid-rotated JWKS for on-behalf-of access by APIs and MCP servers.
- Built a deny-by-default operation policy engine and single-use confirmation JWS that binds each destructive request to its HTTP method, path, sorted query, body SHA-256, token jti and tenant claims, with replay detection, so no request runs without an explicit, request-exact confirmation.
- Chose a library-not-service architecture (one STS instance per suite, own issuer/key/audiences) to avoid a cross-suite single key and outage; six product suites (bookweave, dont-panic, formweave, hullstock, linkweave, localweave) now exact-pin the 0.1.0 core.
- Hardened the supply chain: npm trusted publishing via GitHub Actions OIDC with no npm token, Changesets release PRs, exact-pin plus Renovate upgrade policy, a private-advisory SECURITY.md fix path, and a CI scan that forbids any consuming suite's name in the core.
- Shipped the core through two stacked, security-critical PRs gated by head-SHA-bound Architect and Critic approvals, each with a requirement-to-test map and mutation checks (10 guards in part 1, 10 in part 2) covering alg confusion, kid mismatch, prototype-key lookups and replay.
- Cut self-hosted CI setup time by skipping setup-node when runners already have Node 24.20+, removing download and cache steps that took 15-35 minutes and wedged runners.