Repository navigation
feat(confidential): declare where each confidential request went - #34
Merged
Merged
Conversation
Which provider and upstream model serve a public model is catalog data from Metering, outside the enclave's measurements, and the response renames the upstream model to the public one. So a client could not tell where an encrypted request was sent. Every successful confidential response now carries a top-level `nexus_route` object, in the JSON body or the first streamed event: the client's request_id, the requested and answering public models, the router that chose, the provider, the upstream host, the exact upstream model name and whether the fallback provider served it. It is inside the EHBP-encrypted response, so only the attested code can write it. A provider's own field of that name is replaced, and a request whose route can't be declared fails instead of answering without it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…acity Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
The enclave's attestation proves which code handles a confidential request, but not where that code sends it. Which provider and upstream model serve a public model is catalog data from Metering, outside the enclave's measurements. The response also renames the upstream model to the public one. So a client can't tell where its encrypted request went.
Every successful response from
/v1/confidential/chat/completionsnow declares its route in a top-levelnexus_routeobject:upstream_host: the catalog base URL's host. For Tinfoil, it is the enclave host the Gateway verified, from its transport proof.nexus_routefield is replaced, however the key is escaped.Compatibility
/v1/chat/completionsresponses are unchanged.Tests
go test ./...andgo vet ./...pass on macOS.golang:1.26.11-trixiecontainer:go test ./..., the Nitro tests, thenitro_enclaveamd64 compile and govulncheck (with and without the tag) pass. The arm64 Nitro build and gitleaks also pass.🤖 Generated with Claude Code