feat(cli): add protected environment editing
Self-hosted secrets manager that keeps .env secrets from AI agents
Brought to you by:
dopbase
Originally created by: thomijasir
Changing several secrets currently takes individual commands or a manually managed export/edit/import workflow. Add dopbase env edit <ENVIRONMENT_REF> to edit an environment as .env text, validate it, preview changed key names, and save after confirmation. Supports --editor and --dry-run.
project/environment in a single environment-list column, including the list after cloning.Closes [#109].
revision and envLayout. The editor requires a server that supports these fields and fails safely against older servers. No database migration is needed.ENVIRONMENT column. JSON output keeps its existing shape.cargo test --manifest-path app/Cargo.toml --locked --all-features --test cli commands::environment -- --test-threads=4 — 18 passed.cargo test --manifest-path app/Cargo.toml --locked --all-targets --all-features --quiet -- --test-threads=4 — 290 passed, one Docker-dependent test ignored. Docker was unavailable; integration tests used temporary local SQLite and HTTP fixtures.bun run test:ui — 213 passed.bun run typecheck:ui, bun run lint:ui, and Rust Clippy with -D warnings — passed.bun run test:docs, and git diff --check — passed.codegraph sync — up to date.CHANGELOG.md when public behavior changed, or explained why they are not needed./docs.
Ticket changed by: dopbase