Files
orca/cloud/packages/relay-contract/package.json
Neil d3e6f3270f relay-edge: ingress mode and read-only credential verify (dark), on main's edge (#42566)
Ports the edge halves of two release-branch changes onto main, which production
edge deploys come from (prod edge = ba3f991):

- Ingress mode (#41986): signed ingress header (INGRESS_SECRETS) and token mode
  for a cloud load balancer (INGRESS_TOKENS secret, INGRESS_ORIGINS,
  INGRESS_SOURCE_CIDRS). All or nothing: a partial or malformed setup turns the
  mode off and logs relay_edge_ingress_config_invalid; it never throws. Requests
  from the configured egress ranges that fail the trust rule get 403. Admin calls
  are matched first. Adds cloud/apps/relay-ingress (stateless proxy) and the
  relay-contract ingress-header module.
- POST /__admin/verify (#42538, edge half): the director's check for a phone
  resume token or invite that exists only on the edge. Hash only, read-only: an
  object that never held the host (or no longer holds it here) answers not_here
  before anything is written; otherwise the token's jti is its only write.
  Replay and jti_full are 409. Adds hash-input variants to RelayCredentialStore
  (shared with the edge; existing methods delegate, behaviour unchanged).

Kept from main: drain, single-use admin tokens (jti), signing-key rotation,
JWKS-outage tolerance, keepalive auto-response, health probe. The place label
keeps main's '<continent>/<colo>' and, only behind a verified ingress, appends
'/<country>/<ingress name>'.

No user effect until the ingress vars/secret are set or the director calls verify.
2026-11-14 18:14:55 -08:00

91 lines
2.7 KiB
JSON

{
"name": "@orca-cloud/relay-contract",
"private": true,
"version": "0.0.0",
"type": "module",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"build": "pnpm clean && tsc -p tsconfig.build.json",
"clean": "node -e \"require('fs').rmSync('dist', { recursive: true, force: true })\"",
"lint": "tsc -p tsconfig.json --noEmit",
"test": "vitest run",
"typecheck": "tsc -p tsconfig.json --noEmit"
},
"dependencies": {
"zod": "^4.6.7"
},
"devDependencies": {
"@types/node": "^24.19.2",
"typescript": "^7.0.2",
"vitest": "^5.0.5"
},
"exports": {
".": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"./assignment-invariants": {
"types": "./dist/assignment-invariants.d.ts",
"default": "./dist/assignment-invariants.js"
},
"./package.json": "./package.json",
"./admission-budgets": {
"types": "./dist/admission-budgets.d.ts",
"default": "./dist/admission-budgets.js"
},
"./idle-regional-rehome": {
"types": "./dist/idle-regional-rehome.d.ts",
"default": "./dist/idle-regional-rehome.js"
},
"./protocol-limits": {
"types": "./dist/protocol-limits.d.ts",
"default": "./dist/protocol-limits.js"
},
"./region-correction": {
"types": "./dist/region-correction.d.ts",
"default": "./dist/region-correction.js"
},
"./relay-regions": {
"types": "./dist/relay-regions.d.ts",
"default": "./dist/relay-regions.js"
},
"./director-messages": {
"types": "./dist/director-messages.d.ts",
"default": "./dist/director-messages.js"
},
"./close-codes": {
"types": "./dist/close-codes.d.ts",
"default": "./dist/close-codes.js"
},
"./host-proof-transcript": {
"types": "./dist/host-proof-transcript.d.ts",
"default": "./dist/host-proof-transcript.js"
},
"./persistence-invariants": {
"types": "./dist/persistence-invariants.d.ts",
"default": "./dist/persistence-invariants.js"
},
"./credential-messages": {
"types": "./dist/credential-messages.d.ts",
"default": "./dist/credential-messages.js"
},
"./host-close-reason": {
"types": "./dist/host-close-reason.d.ts",
"default": "./dist/host-close-reason.js"
},
"./control-continuity": {
"types": "./dist/control-continuity.d.ts",
"default": "./dist/control-continuity.js"
},
"./control-messages": {
"types": "./dist/control-messages.d.ts",
"default": "./dist/control-messages.js"
},
"./ingress-header": {
"types": "./dist/ingress-header.d.ts",
"default": "./dist/ingress-header.js"
}
}
}