27 lines
894 B
Markdown
27 lines
894 B
Markdown
# Jeannie Remote API
|
|
|
|
Phase 1 adds a private remote-execution API. The local Jeannie remote client
|
|
submits a read-only command to a Jeannie API running on Debian. The Debian
|
|
process executes the existing Jeannie entrypoint; command logic is not
|
|
duplicated in the API.
|
|
|
|
## Run locally
|
|
|
|
Start the server from the Debian checkout:
|
|
|
|
JEANNIE_SERVER_ADDR=127.0.0.1:8787
|
|
JEANNIE_SERVER_TOKEN='replace-with-a-secret'
|
|
JEANNIE_SERVER_REPO_ROOT=/path/to/my-homelab-configs
|
|
./scripts/jeannie-server
|
|
|
|
From a client with network access:
|
|
|
|
JEANNIE_REMOTE_URL=http://debian:8787
|
|
JEANNIE_REMOTE_TOKEN='replace-with-a-secret'
|
|
./jeannie remote status
|
|
|
|
The initial allowlist contains read-only commands only. Execution state is
|
|
stored in memory and command output is returned through
|
|
GET /v1/executions/{id}. It is not a public edge service and does not accept
|
|
arbitrary shell commands.
|