Context Passport (Identity Lock) had no Dockerfile and no deploy
scaffolding at all, unlike Vend/Toolgate. Added a standalone distroless
Dockerfile + Dockerfile.dockerignore: like apps/turnstile, this workspace
path-depends on apps/mint/crates/mint-protocol (and its siblings
mint-core/mint-store/mint-receipts/mint-ledger) outside its own workspace,
so the build context is the repo root, trimmed to exactly those crates.
Deployed it on railyard-box wired to the real, already-live Mint (via
well-known key discovery, confirmed in the boot log) and a real minted
Relay key, and ran the full core loop against the deployed container:
create -> lock -> resolve -> generate.
Found and fixed a real bug this way: passport-relay-client sent
X-API-Key to Relay's /v1/passport/generate, but Relay only accepts
Authorization: Bearer there -- every real call failed 401 before this
fix, invisible to every existing test because they all exercise
build_inference_request/payment_evidence directly, never the real
reqwest call ("tests fake the sink via FakeRelay"). Fixed the header and
added a real regression test with a genuine local axum server (no
fakes) asserting the actual outbound header through a real generate()
call. Full workspace suite: 59/59 (was 58/58). Clippy clean.
After the fix, generate genuinely reaches Relay and runs a real
inference (confirmed with provider:"groq", Relay's live funded default),
then correctly fails closed on a missing AITP-Receipt -- Relay's own
billing is globally off in this environment, the same funding-wall
boundary every other Railyard sub-app hit this session, not a bug here.
This app's own design intent is to never fabricate settlement evidence,
and it doesn't.
Full detail in apps/context-passport/README.md's new "Deployed" section.
20 lines
683 B
Docker
20 lines
683 B
Docker
# BuildKit picks this up automatically for `-f apps/context-passport/Dockerfile`
|
|
# (per-Dockerfile ignore file), so the repo-root build context holds only the
|
|
# two workspaces the image compiles: context-passport itself, and the five
|
|
# apps/mint crates mint-protocol path-depends on (mint-protocol, mint-core,
|
|
# mint-store, mint-receipts, mint-ledger).
|
|
*
|
|
!apps/context-passport/Cargo.toml
|
|
!apps/context-passport/Cargo.lock
|
|
!apps/context-passport/crates
|
|
!apps/mint/Cargo.toml
|
|
!apps/mint/Cargo.lock
|
|
!apps/mint/crates/mint-core
|
|
!apps/mint/crates/mint-store
|
|
!apps/mint/crates/mint-receipts
|
|
!apps/mint/crates/mint-ledger
|
|
!apps/mint/crates/mint-protocol
|
|
**/target
|
|
**/node_modules
|
|
**/.env*
|