[PR #5745] auth v2 vault cli #11562

Closed
opened 2026-02-16 18:16:25 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/5745

State: closed
Merged: No


Context: #5748.

Builds on auth v2 core branch jroth1111:auth-v2-core.

Summary

Adds CLI commands to manage the local vault key used to encrypt credentials at rest (backup/migration and key rotation workflows).

What changed

  • opencode auth vault init (optionally --force) to create/overwrite the key file.
  • opencode auth vault export to print the base64 key or write it to a file (--output).
  • opencode auth vault import to load a base64 key (from --file, --key, or interactive prompt) with overwrite confirmation.
  • Extends VaultKey with helpers to support init/import/export.

Notes

Overwriting the key without exporting & reimporting/re-encrypting credentials will make existing records undecryptable; the commands prompt before overwriting.

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/5745 **State:** closed **Merged:** No --- Context: #5748. Builds on auth v2 core branch `jroth1111:auth-v2-core`. ## Summary Adds CLI commands to manage the local vault key used to encrypt credentials at rest (backup/migration and key rotation workflows). ## What changed - `opencode auth vault init` (optionally `--force`) to create/overwrite the key file. - `opencode auth vault export` to print the base64 key or write it to a file (`--output`). - `opencode auth vault import` to load a base64 key (from `--file`, `--key`, or interactive prompt) with overwrite confirmation. - Extends `VaultKey` with helpers to support init/import/export. ## Notes Overwriting the key without exporting & reimporting/re-encrypting credentials will make existing records undecryptable; the commands prompt before overwriting.
yindo added the pull-request label 2026-02-16 18:16:25 -05:00
yindo closed this issue 2026-02-16 18:16:25 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#11562