Incus connector: container exec and snapshots #1981

Open
opened 2026-11-14 14:42:47 +00:00 by sam · 1 comment
Owner

A connector for Incus that runs typed operations and read-only commands inside containers, and snapshots containers, each with its effect and reversibility declared. Nothing inside a container is declared disposable. Lifecycle events and metrics (R2) are later.

Done when: a workflow takes a container snapshot and then deletes a judged cache directory inside it through the connector.

Spec: R16, R17; R2 later.

A connector for Incus that runs typed operations and read-only commands inside containers, and snapshots containers, each with its effect and reversibility declared. Nothing inside a container is declared disposable. Lifecycle events and metrics (R2) are later. Done when: a workflow takes a container snapshot and then deletes a judged cache directory inside it through the connector. Spec: R16, R17; R2 later.
sam added the featurehigh labels 2026-11-14 14:42:47 +00:00
sam added a new dependency 2026-11-14 14:42:59 +00:00
sam added a new dependency 2026-11-14 14:43:01 +00:00
sam changed title from Incus connector: lifecycle events, metrics and container actions to Incus connector: container exec and snapshots 2026-11-14 16:02:42 +00:00
Author
Owner

Connector built (archipelago 79047f9): lookups list_containers and run_command (allow-listed argv, no shell), actions snapshot_container (undone automatically, snapshot named from the idempotency key so a retry finds it) and delete_cache (irreversible, resolved as recoverable when a snapshot inside the configured window exists; confined to declared cache paths, re-confined after realpath inside the container). Only declared containers are reachable. Uses the official Incus Go client over HTTPS with a client certificate and a pinned server certificate. Remaining for done: accept it on staging against a real Incus (needs a client certificate trusted by the Incus server) and run the snapshot-then-delete workflow.

Connector built (archipelago 79047f9): lookups list_containers and run_command (allow-listed argv, no shell), actions snapshot_container (undone automatically, snapshot named from the idempotency key so a retry finds it) and delete_cache (irreversible, resolved as recoverable when a snapshot inside the configured window exists; confined to declared cache paths, re-confined after realpath inside the container). Only declared containers are reachable. Uses the official Incus Go client over HTTPS with a client certificate and a pinned server certificate. Remaining for done: accept it on staging against a real Incus (needs a client certificate trusted by the Incus server) and run the snapshot-then-delete workflow.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Reference: sam/archie#1981