mirror of
https://github.com/andrewyng/openworker.git
synced 2026-11-15 14:48:42 +00:00
A machine joins with its own identity and holds a reverse channel to the controller. Provider keys and connector accounts deploy sealed to the machine's pinned key.
11 lines
540 B
Python
11 lines
540 B
Python
"""Remote homes — headless workers that dial OUT and join a controller.
|
|
|
|
One codebase, two composable roles (remote-home-design.md):
|
|
- WORKER: the entire existing server (state, engines, ASGI app) with NO
|
|
listener — `joiner.py` dials out and the held WebSocket carries a small
|
|
RPC framing into the app in-process.
|
|
- ACCEPTOR: a thin module (enrollment, machines registry, socket holder,
|
|
proxy prefix) mounted into the sidecar app — and nothing else, so the
|
|
future cloud service is "import acceptor, add auth".
|
|
"""
|