Incus connector: container exec and snapshots #1981
Notifications
Due Date
No due date set.
Blocks
Depends on
Reference: sam/archie#1981
Reference in new issue
Block a user
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.
Incus connector: lifecycle events, metrics and container actionsto Incus connector: container exec and snapshotsConnector 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.