Expand description
Horto OS UI status API: box-local HTTP /health and /v1/status.
Day-2 /etc backup mutate routes require a confirm header. Bind and token
come from CLI flags / env; logging uses shared init_tracing.
Structsยง
Enumsยง
- Auth
Decision ๐
Constantsยง
- CONFIRM_
BACKUP_ ๐ETC - Exact confirm value required on mutating backup routes.
- CONFIRM_
HEADER ๐
Functionsยง
- auth_
gate ๐ - Auth decision for a path given configured token and Authorization header.
- auth_
middleware ๐ - backup_
etc ๐ - bearer_
authorized ๐ - Constant-time bearer compare. Length mismatches fail without comparing bytes.
- confirm_
backup_ ๐etc - health ๐
- is_
local_ ๐desktop_ origin - True for Tauri webview and localhost pages talking to this API.
- is_
local_ ๐ipv4 - is_
local_ ๐ipv6 - is_
local_ ๐network_ ip - True for loopback, RFC1918, IPv6 ULA, and link-local peers.
- is_
mutate_ ๐path - listen_
url ๐ - local_
desktop_ ๐cors - CORS limited to local desktop / loopback UI origins (not
*/ Any). - local_
net_ ๐middleware - main ๐
- resolve_
bind ๐ - Resolve a clap bind string to one or more listen addresses.
- status ๐