mirror of
https://github.com/stablyai/orca.git
synced 2026-11-16 19:07:41 +00:00
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.
40 lines
1.0 KiB
JSON
40 lines
1.0 KiB
JSON
{
|
|
"name": "@orca-cloud/relay-edge",
|
|
"private": true,
|
|
"version": "0.0.0",
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "wrangler dev --port 8787 --ip 127.0.0.1",
|
|
"typecheck": "tsc --noEmit",
|
|
"spike": "tsx spike/run-all.ts",
|
|
"test": "vitest run",
|
|
"test:schema": "tsx test/apply-schema.ts",
|
|
"test:mvp": "tsx test/mvp.ts",
|
|
"ingress-cidrs": "tsx scripts/ingress-source-cidrs.ts",
|
|
"test:g1": "tsx test/g1-front-door.ts",
|
|
"test:g1-local": "tsx test/g1-local.ts",
|
|
"test:ingress-e2e": "tsx test/ingress-e2e.ts"
|
|
},
|
|
"dependencies": {
|
|
"@types/pg": "^8.23.1",
|
|
"jose": "^6.2.16",
|
|
"pg": "^8.23.1",
|
|
"tweetnacl": "^1.0.3",
|
|
"zod": "^4.6.7"
|
|
},
|
|
"devDependencies": {
|
|
"@cloudflare/workers-types": "^5.20261103.1",
|
|
"@types/node": "^24.19.2",
|
|
"@types/ws": "^8.18.2",
|
|
"tsx": "^4.23.15",
|
|
"typescript": "^5.9.3",
|
|
"vitest": "^5.0.5",
|
|
"wrangler": "^4.157.0",
|
|
"ws": "^8.22.2"
|
|
},
|
|
"allowScripts": {
|
|
"workerd@1.20261103.1": true,
|
|
"esbuild@0.28.2": true
|
|
}
|
|
}
|