fix: resolve issues #4 #6 #7 #8 for install and pass_mgr

This commit is contained in:
2026-03-08 23:09:16 +00:00
parent 2e38cb8fe2
commit 99787e6ded
5 changed files with 248 additions and 340 deletions

View File

@@ -36,7 +36,6 @@ pass_mgr get <key> # Legacy (maps to get-secret)
**Admin commands** (human-only — rejected if any `AGENT_*` env var is set):
```bash
pass_mgr admin init # Set admin password (interactive or PC_ADMIN_PASS)
pass_mgr admin handoff [file] # Export build secret to file (default: pc-pass-store.secret)
pass_mgr admin init-from [file] # Re-encrypt all data from old build secret to current
```
@@ -131,14 +130,16 @@ openclaw gateway restart
## Usage
```bash
# Initialize admin password
~/.openclaw/bin/pass_mgr admin init
# Agent sets and gets passwords (via pcexec)
# Agent sets and gets private passwords (via pcexec)
pass_mgr set --key myservice --secret s3cret --username admin
pass_mgr get-secret --key myservice
pass_mgr get-username --key myservice
# Shared scope (.public)
pass_mgr set --public --key shared-api --secret s3cret
pass_mgr list --public
pass_mgr get-secret --public --key shared-api
# Use in shell commands (pcexec resolves and sanitizes)
curl -u "$(pass_mgr get-username --key myservice):$(pass_mgr get-secret --key myservice)" https://api.example.com
```