Skip to content

feat(keys): session-bound PymtHouse API keys off Auth0 - #15

Merged
eliteprox merged 1 commit into
mainfrom
feat/pymthouse-core
Aug 28, 2026
Merged

feat(keys): session-bound PymtHouse API keys off Auth0#15
eliteprox merged 1 commit into
mainfrom
feat/pymthouse-core

Conversation

@eliteprox

@eliteprox eliteprox commented Aug 24, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Bottom of the rebuilt pymthouse stack. Based on feat/auth0-login (Implement Auth0 authentication and update environment configuration #14).
  • ConsoleUser.id is eu_<sha256(Auth0 sub)>. BFF routes read the same id from the session and ignore client-supplied externalUserId.
  • Shared helpers: pymthouse-http.ts, route-helpers.ts, read-response-json.ts, session-user.ts.
  • Live API keys list/create/revoke + public POST /api/pymthouse/keys/exchange.
  • Pins @pymthouse/builder-sdk to 0.6.5.

Supersedes the keys slice of #3 / #8. Those PRs stay as archives (#8 is draft).

Test plan

  • Sign in via Auth0, open /keys, confirm keys load for the session user
  • Create a key and copy the reveal banner; revoke a key
  • POST /api/pymthouse/keys without a session returns 401
  • pnpm typecheck / pnpm lint / pnpm build

Stacked on: #14

@eliteprox
eliteprox requested a review from adamsoffer as a code owner August 24, 2026 21:12
@vercel

vercel Bot commented Aug 24, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
console Ready Ready Preview Aug 28, 2026 10:45pm

Request Review

Base automatically changed from feat/auth0-login to main August 28, 2026 22:44
Derive ConsoleUser.id from hashed Auth0 sub, resolve the same id on the
BFF from the session, and stop accepting client-supplied externalUserId.
Shared pymthouse HTTP/route helpers land here so later billing PRs do not
reintroduce the four copied env/M2M readers.

Pins @pymthouse/builder-sdk to 0.6.5.
@eliteprox
eliteprox force-pushed the feat/pymthouse-core branch from 675a205 to 49bac73 Compare August 28, 2026 22:44
@eliteprox
eliteprox merged commit 39fee70 into main Aug 28, 2026
1 check passed
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