Skip to content

Cloudio

All projects
VPS operations · Zig / SQLite

One control panel for one VPS. Cloudio brings DNS, Caddy routes, services and containers into a server-rendered workspace for a single operator.

Inspect a route change

Start with the host as it is

  1. DNSCloudflare records
  2. RoutingCaddy fragment
  3. HostSockets and services

Cloudio reconciles observations from these sources. If a refresh fails, the last successful observation stays visible, and writes to that target are blocked.

Dashboard with five current observation sources and a DNS-only host missing a local route
Local Cloudio instance using the project’s provider fixtures. Full size

Compare the intended change

  1. ObservedLast successful observation
  2. DesiredEdited route
  3. PreviewProposed Caddy fragment

Only one Caddy fragment belongs to Cloudio. A preview shows the proposed routes. Before applying, Cloudio checks that the fragment on disk still matches the observation.

Routes view comparing upstreams and showing the proposed Caddy fragment
Local Cloudio instance using the project’s provider fixtures. View the mobile Routes screen. Full size
caddy_desired.zig · lines 254–258
const before = try readFragment(ctx);
defer before.deinit(ctx.gpa);
const observed_text = (try latestObservedText(ctx)) orelse return error.CaddyWriteUnavailable;
defer ctx.gpa.free(observed_text);
if (!std.mem.eql(u8, before.text, observed_text)) return error.CaddyObservationChanged;

Keep a way back

  1. ApplyValidate the configuration
  2. ReloadCheck the running configuration
  3. RecoverRestore the previous state on failure

A successful apply verifies the reload. A failed verification takes the restore path. Route mutations are recorded in the audit history.

Audit history showing a route edit and a failed runtime verification
Local Cloudio instance using the project’s provider fixtures. Full size
caddy_desired.zig · lines 291–298
reloadConfig(ctx, opts.caddy_executable) catch |err| {
    try restoreAndReload(ctx, opts, before, previous_runtime);
    return err;
};
verifyRuntime(ctx, opts.curl_executable, expected_runtime) catch |err| {
    try restoreAndReload(ctx, opts, before, previous_runtime);
    return err;
};

The operating boundary

One operator

The web UI sends native form posts. Passkeys protect access, and mutations are recorded in SQLite. Cloudio manages local Docker containers and its own Caddy fragment.

One host

The operator still owns Caddy, systemd and the provider accounts. Cloudio keeps a narrow view of the resources it can observe and safely change.

Verified apply and restore implementation · Browser acceptance checks