Skip to content

c0mpute edge: a name pointed at a c0mpute app serves the app - #37

Merged
ralyodio merged 1 commit into
mainfrom
fix/edge-app-ids
Nov 10, 2026
Merged

ralyodio merged 1 commit into
mainfrom
fix/edge-app-ids

Conversation

@ralyodio

Copy link
Copy Markdown
Contributor

demo.killer.pit.world 404'd "no such site on the network (yet)": the name's c0mpute id a4188f880e3f3b5383b5 is an app (hits-demo, served at /a//), and the edge only knew static sites (/s//).

Now the edge asks its trusted gateways /apps/v1/apps/<id> (only an answer naming that app_id counts; cached 5 min for an app, 1 min for a site) and serves an app by proxying every method, body included (32 MiB cap), to /a/<id>/<path> with x-forwarded-host/proto. Apps go through our own gateways only: their answers are live and cannot be verified like signed site files. Static sites are unchanged (GET/HEAD, verified reads).

Test added; 135/135 pass.

🤖 Generated with Claude Code

demo.killer points at a4188f880e3f3b5383b5, which is a c0mpute app
(hits-demo, /a/<id>/), not a static site, so the edge asked /s/<id>/ and
every gateway said 'no such site on the network (yet)'. The edge now
asks our own gateways /apps/v1/apps/<id> (cached 5 min app / 1 min site)
and, for an app, proxies every method with its body to /a/<id>/<path>
on trusted gateways only, with x-forwarded-host/proto.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ralyodio
ralyodio merged commit 1ee533f into main Nov 10, 2026
2 checks passed
@github-actions

Copy link
Copy Markdown

vu1nz Security Review

0 finding(s) in PR #?

No security issues found.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant