Skip to content

Admin CLI vs running module: single-writer lease makes reads and mint-handle a consumer outage #3

Description

@iceteaSA

Operator-flow question from today's provisioning (same box as #1's runbook notes).

Observed

With the claustrum module running under the daemon, every admin verb fails with:

error: the credentials daemon is running (holds the single-writer lease); stop it before running an admin command

Correct and fail-closed for writes — but it also covers pure reads (list, status, audit) and mint-handle, making routine operations a consumer outage:

  • Checking what's in the vault requires stopping the module that insula is actively consuming credentials through.
  • Minting a handle for a newly sealed credential (a metadata write, not a payload write) requires the same downtime.

The runbook's bootstrap flow assumes a stopped daemon, which is fine for day-0; day-N operations are where this bites.

Asks

  1. Is the intended day-N flow "stop module → admin → start module"? If so, a runbook section saying that (with the consumer-impact caveat) would settle it — we'll add it to our ops notes.
  2. Enhancement, if welcome: route admin verbs through the running module (it holds the lease and already speaks the ops on its management surface), falling back to direct-store access when the daemon is down. Even read-only routing (list/status/audit) would remove most downtime cases; mint-handle through the module would remove the rest.

No urgency — we're through provisioning; this is for the next box (a macOS work machine) where we'd rather not schedule vault downtime around insula.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions