Repository navigation
Authenticate portable clients with existing workload permissions - #479
Merged
Merged
Conversation
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.
Portable enrollment binds a process's ephemeral key to one tenant, workload UUID, attachment, and distinct portable grant. Signatures bind each request's method, URL, body digest and sequence. The client authenticates the calling workload. The existing workload permission snapshot and proxy evaluator govern its integration access, including writes permitted by the grant and provider policy. The Fly OIDC machine binding is unchanged.
The HTTPS fixture uses two Node client processes, isolated PostgreSQL tenants and mocked upstream responses. It covers allowed and denied reads, a permitted Cloudflare fixture write, a denied X write, request tampering, replay, concurrent redemption, cross-workload and cross-tenant denial, revocation, expiry, and restart from a copied directory. See
docs/portable-workloads.mdfor the operator/client walkthrough and recovery bounds.Fly validation —
0e1f5ebb4580122a59e38a3f2062db46130fa183passed the full suite on the isolated Fly runner: 319 API tests, 59 browser tests, and the Worker/OAuth/MCP lane. Independently verified the machine stopped. Mixed-case attachment and Fly VM proofs were redacted on ingestion and in the relay delivery body. An equally privileged peer grant could neither read nor query retained fixture bytes; revocation blocked the originator on both endpoints.