A Native API for Linux Systems With Systemd + Varlink
summary
Systemd exposes a native Varlink IPC with a generic HTTP Varlink proxy that translates AF_UNIX to HTTP/2 or HTTP/3, uses WebSockets and protocol upgrades (eg. invoking SFTP over the upgrade) and already implements methods like start transient unit for running services and mounts. A new system_report endpoint collects metrics, optionally signed with TPM or confidential‑compute quotes. Vsock + sd_notify gives race‑free VM ready and exit status handling. PolicyKit is planned to authorize OIDC/TLS identities; remaining D‑Bus APIs are being ported (target ~2027).
AI-written summary · about
chapters (19)
- 0:00Introduction to API for Linux
- 1:03Premise of native Linux APIs
- 7:01Varlink and vhost-user IPC
- 11:52Why replace D-Bus with Varlink
- 19:18Varlink advantages over D-Bus
- 20:42Replacing agents with Varlink
- 23:07File system access via SFTP
- 23:29Metrics and telemetry with system report
- 27:17Current Varlink API coverage
- 28:03Q&A on D-Bus and embedded use
- 30:10Varlink metrics for Prometheus users
- 33:21Security and file descriptor passing
- 37:12Security model for HTTP access
- 39:38PolicyKit and HTTP authentication
- 41:25Accessing local VMs with Varlink
- 44:37VM boot notifications and exit status
- 47:05Future plans for Varlink
- 49:23Q&A on strategic future
- 50:52Service discovery and OpenAPI
