dew/packages/vault
2026-05-04 22:01:05 -04:00
..
lib Raise SDK floor and resolve vault paths from config 2026-05-04 22:01:05 -04:00
test Raise SDK floor and resolve vault paths from config 2026-05-04 22:01:05 -04:00
CHANGELOG.md chore(vault): release 0.3.0 2026-05-03 13:41:59 -04:00
LICENSE feat(vault): scaffold vault package and command registration 2026-05-03 13:13:38 -04:00
pubspec.yaml Raise SDK floor and resolve vault paths from config 2026-05-04 22:01:05 -04:00
README.md feat(vault): complete command implementations and testing 2026-05-03 13:42:04 -04:00

dew_vault

Vault feature package for the Dew project management tool.

This package provides the dew vault command surface and registers Vault commands as MCP tools through DewToolCommand.

Status

This package implements encrypted secret storage, rotation-aware metadata, and command handlers exposed as MCP tools.

Features

  • Encrypted secret storage under .project/vault using AES-GCM + PBKDF2.
  • Vault password stored at .project/secrets/dew.vault.password by default.
  • Configurable generators for secret rotation in dew.vault.generators.
  • Built-in generator-backed generate command.
  • Metadata-aware rotation and metadata persistence for rotation policy configuration.
  • Rotation support:
    • vault rotate rotates the vault password and rewraps every secret.
    • vault rotate --name <name> regenerates a single secret value (via metadata-defined generator when available).

Commands

  • dew vault init
  • dew vault get
  • dew vault set
  • dew vault update
  • dew vault rename
  • dew vault rotate
  • dew vault generate
  • dew vault list
  • dew vault delete

Run dew vault <command> --format json for machine-friendly output.

License

MIT — see LICENSE.

Example metadata

rotation:
  generator: postgres_password
  length: 48
  include_symbols: false

Store it with --metadata or --metadata-file on dew vault set/dew vault update.