reddwarf/crates/reddwarf-apiserver/src
Till Wegmueller cb6ca8cd3c
Add optional TLS support and SMF service integration
Enable the API server to optionally serve HTTPS (disabled by default).
When --tls is passed without explicit cert/key paths, a self-signed CA
and server certificate are auto-generated via rcgen and persisted to
disk for reuse across restarts. The internal ApiClient learns to trust
the self-signed CA so controller/agent components work seamlessly over
TLS.

Also adds SIGTERM signal handling (alongside SIGINT) and graceful
shutdown via CancellationToken for both `serve` and `agent` modes,
plus an SMF manifest and method script so reddwarf can run as
svc:/system/reddwarf:default on illumos.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-14 18:45:20 +01:00
..
handlers Add pod controller, status subresource, node agent, and main binary 2026-02-08 22:53:18 +01:00
error.rs Implement phase 4 2026-01-28 23:06:06 +01:00
event_bus.rs Close the control loop: versioned bind, event-driven controller, graceful shutdown 2026-02-08 23:21:53 +01:00
lib.rs Add optional TLS support and SMF service integration 2026-02-14 18:45:20 +01:00
response.rs Implement phase 4 2026-01-28 23:06:06 +01:00
server.rs Add optional TLS support and SMF service integration 2026-02-14 18:45:20 +01:00
state.rs Add event bus and reddwarf-runtime crate 2026-02-08 21:29:17 +01:00
tls.rs Add optional TLS support and SMF service integration 2026-02-14 18:45:20 +01:00
validation.rs Implement phase 4 2026-01-28 23:06:06 +01:00
watch.rs Close the control loop: versioned bind, event-driven controller, graceful shutdown 2026-02-08 23:21:53 +01:00