Skip to content

Add atomic per-run credential enrollments - #361

Merged
exe-dev-github-integration[bot] merged 3 commits into
mainfrom
gen-2836-single-use-enrollments
Nov 11, 2026
Merged

exe-dev-github-integration[bot] merged 3 commits into
mainfrom
gen-2836-single-use-enrollments

Conversation

@asselstine

@asselstine asselstine commented Nov 11, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Add durable proxy, per-run grant, and single-use enrollment records bound to tenant, VM, proxy boot epoch, expiry, and grant revision.
  • Persist only a SHA-256 digest of random enrollment tokens; atomically consume once and reject expired, replayed, cross-tenant, stale-epoch, ended-run, disabled, or revoked enrollments.
  • Add focused barrier-synchronized PostgreSQL coverage.
  • Reconcile the branch with current main; make the ambiguous-create local HTTP fixture deterministic with a commit barrier.

Validation

  • Passed under Node 24.12.0: npm run test --workspace=factorize -- run-enrollment.postgres.test.ts (2 tests).
  • Passed under Node 24.12.0: npm run test --workspace=factorize -- fly-machines-client.test.ts (8 tests).
  • Passed: app build, functional browser checks (7 tests), app unit checks (89 passed, 1 existing skipped), and proxy checks.
  • Required timed root command completed in 492.59s but failed: backend checks exceeded the 240s lane deadline; the compiled app/API/PostgreSQL integration check was not run. Browser and proxy lanes passed. The independent API Vitest profile took 262s before the fixture fix; four workers were slower than the configured two-worker run.

Draft while the required backend lane timing blocker is investigated.

@linear

linear Bot commented Nov 11, 2026

Copy link
Copy Markdown

GEN-2836

@asselstine
asselstine force-pushed the gen-2836-single-use-enrollments branch from 0316f79 to 57ac781 Compare November 11, 2026 06:08
@exe-dev-github-integration
exe-dev-github-integration Bot marked this pull request as ready for review November 11, 2026 06:09
@exe-dev-github-integration
exe-dev-github-integration Bot merged commit 8f4f161 into main Nov 11, 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