Add one-off zshrc to OpenBao migration helper
Parses literal exports from ~/.zshrc (never sourced), writes them to env/shell/<group> via the bao CLI with stdin transport, verifies by SHA-256 digest, then creates a read-only policy/token and generates the EnvBao config. Values are never printed, logged or placed in argv. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
d5636c46c7
commit
83cfa74416
5 files changed
+834
No files matched your search
@@ -5,6 +5,8 @@ All notable changes are documented here. This project follows [Semantic Versioni
|
||||
## [Unreleased]
|
||||
|
||||
### Added
|
||||
- `scripts/migrate_zshrc.py`: one-off migration of zshrc exports into OpenBao KV (`env/shell/<group>`),
|
||||
with digest verification and generation of the EnvBao config and a read-only token.
|
||||
- Initial implementation: config loading, strict permission policy, KV v1/v2 engine with
|
||||
auto-detection, safe shell rendering (bash/zsh/sh/fish), `--check` and `--init`, audit logging.
|
||||
- Gitea pipelines for tests and tag-driven releases (linux-amd64, linux-arm64, macos-arm64).
|
||||
Reference in new issue
Block a user