Skip to main content

Crate horto_os_ui_status_api

Crate horto_os_ui_status_api 

Source
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ยง

AppState ๐Ÿ”’
Cli ๐Ÿ”’
Health ๐Ÿ”’

Enumsยง

AuthDecision ๐Ÿ”’

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 ๐Ÿ”’