Skip to content

feat(sawala): akuna storage status + isolate (org-level data residency)#95

Merged
sutisnamulyana merged 1 commit into
mainfrom
feat/akuna-storage-cli
Jul 25, 2026
Merged

feat(sawala): akuna storage status + isolate (org-level data residency)#95
sutisnamulyana merged 1 commit into
mainfrom
feat/akuna-storage-cli

Conversation

@sutisnamulyana

Copy link
Copy Markdown
Member

Org-level CLI parity for data residency, matching the /storage endpoints (core #429).

Commands

  • sawala akuna storage statusGET /cli/akuna/storage — shows shared vs dedicated-database, and n of m BYO connections on it.
  • sawala akuna storage isolatePOST /cli/akuna/storage/isolate — enables a dedicated database for the whole org: moves all BYO connections onto it, new BYO connections inherit it, managed stays shared. Confirmation-gated (--yes/TTY), --dry-run, idempotent.

The existing sawala akuna connection isolate <id> stays as the per-connection primitive; storage isolate is the org-level counterpart (isolation is an org setting).

Verified

Typecheck + esbuild build clean; --help registers both. Live-tested against the deployed backend:

$ sawala akuna storage status
Dedicated database active (sawala-akuna-org_3E0D…). 1 of 1 BYO connection(s) on it; new BYO connections inherit it.

Changeset included (@sawala/cli minor).

sawala akuna storage status   — show whether the org uses a dedicated DB
sawala akuna storage isolate  — enable a dedicated DB for the WHOLE org:
                                move all BYO connections onto it, new BYO
                                connections inherit it; managed stays shared

Org-level counterpart to the per-connection 'akuna connection isolate'
primitive, backed by /cli/akuna/storage{,/isolate}. Live-verified
against the deployed backend. Changeset included.
@sutisnamulyana
sutisnamulyana merged commit 6249785 into main Jul 25, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant