passwordstore-broker
Enforce safe secret handling by collecting secrets through one-time HTTPS forms, storing them in pass via scripts/vault.sh, and executing tools with environment injection via scripts/run_with_secret.sh so raw secrets do not enter chat context or logs.
- License 许可
- MIT
- 最近更新
- 2026-06-07
- Stars
- ★ 0
- Forks
- 1
01 前言 Front Matter
- name
- passwordstore-broker
- metadata
- { "compatibility": "Requires pass, gpg, openssl, python3, and qrencode; local HTTPS network access is required, private LAN access is optional for phone flow." }
- description
- Enforce safe secret handling by collecting secrets through one-time HTTPS forms, storing them in pass via scripts/vault.sh, and executing tools with environment injection via scripts/run_with_secret.sh so raw secrets do not enter chat context or logs.
03 SKILL.md 正文
Passwordstore Broker Agent Protocol
Run this workflow whenever credentials are needed.
Prerequisites
- Follow
references/SETUP.mdbefore first use.
Setup Preflight
Before first LAN-mode intake, verify both files exist:
-
~/.passwordstore-broker/totp.secret -
~/.passwordstore-broker/setup_completed_at.txt -
If missing, run
scripts/setup_totp_enrollment.pyand send:- QR image at
qr_png_path(preferred) - fallback
otpauth_url
- QR image at
-
Record and trust
setup_completed_atas the initial enrollment timestamp. -
Never reveal or retransmit the
totp.secretvalue after initial enrollment under any circumstances. -
Do not rotate
totp.secret. User has to do it manually if compromised. Rotation is not to be done by the agent.
Phase 1: Get Secrets
Goal: ensure required secrets exist in local vault without exposing values in chat.
- Map auth requirements to
secret-name -> ENV_VAR. - Check whether each secret exists:
scripts/vault.sh exists <secret-name>
- If missing, collect via one-time HTTPS intake:
- Local mode (default):
scripts/get_password_from_user.py --secretname <secret-name> --port <port>
- LAN mode (when user asks for phone/private-network flow):
scripts/get_password_from_user.py --secretname <secret-name> --port <port> --access lan
- Local mode (default):
- Send generated intake URL to user.
- In LAN mode, instruct user to submit both fields in the form:
- secret value
- current authenticator code
- If intake fails or times out, retry with a new port.
Exit criteria:
- Required secret paths exist in vault.
Phase 2: Use Secrets
Goal: execute authenticated commands without exposing secret values.
- Prefer injector wrapper:
scripts/run_with_secret.sh --secret <secret-name> --env <ENV_VAR> -- <command> [args...]
- Fallback one-liner:
<ENV_VAR>="$(scripts/vault.sh get <secret-name>)" <command> [args...]
- Never print env dumps (
env,printenv,set) in secret-bearing runs.
Exit criteria:
- Authenticated command succeeds without secret leakage.
Phase 3: Interact With Vault
Goal: manage lifecycle safely.
- Put/update:
scripts/vault.sh put <secret-name> - Get (only when necessary):
scripts/vault.sh get <secret-name> - Exists:
scripts/vault.sh exists <secret-name> - List:
scripts/vault.sh ls - Remove:
scripts/vault.sh rm <secret-name>
Naming policy:
- Use stable scoped keys like
github/token,openai/prod/api_key,aws/staging/access_key_id.
Rotation policy:
- Default to replacing value under the same key.
- Use versioned keys only when user explicitly asks.
Non-Negotiable Guardrails
- Never ask users to paste raw secrets into chat.
- Never echo secret values back to user.
- Never store secrets in repo files, commit messages, issue comments, or transcripts.
- Never expose intake over public interfaces or tunnels.
- LAN mode must rely on runtime private-network autodetection and webform TOTP validation.
Quick Runbook
- Ensure TOTP enrollment exists (via setup preflight) before first LAN use.
- For each missing secret, run intake in local or LAN mode based on user intent.
- Execute tools via
run_with_secret.sh. - Rotate/remove secrets via
vault.shas requested.
04 同仓库更多 Skills
crowd-prompting
A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.
ceaser
Interact with the Ceaser privacy protocol on Base L2 using the ceaser-mcp MCP tools. This skill uses the ceaser-mcp npm package for ALL operations -- shield, unshield, note management, and protocol queries. All ceaser tool calls use CLI subcommands (npx -y ceaser-mcp <subcommand>). Ceaser is a privacy-preserving ETH wrapper using Noir/UltraHonk zero-knowledge proofs on Base L2 (chain ID 8453).
ceaser-send
Fully automated private ETH transfer via Ceaser Protocol on Base L2 using the ceaser-mcp MCP tools. This skill uses the ceaser-mcp npm package for ALL operations -- all ceaser tool calls use CLI subcommands (npx -y ceaser-mcp <subcommand>). WARNING -- creates observable on-chain links between user wallet and hot wallet (see Privacy Warning). Generates an ephemeral hot wallet with BIP-39 mnemonic recovery, user funds it, agent signs and broadcasts the Shield TX automatically. Exactly one manual step required (funding the hot wallet with ETH). Uses Noir/UltraHonk zero-knowledge proofs.
dilemm-ai
Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).
moldium
Post and manage content on the Moldium blog platform. Triggered by "post to Moldium", "write a blog post", "publish an article", etc.
arxiv-paper-reviews
Interact with arXiv Crawler API to fetch papers, read reviews, submit comments, search papers, and import papers. Use when working with arXiv papers, fetching paper lists by date/category/interest, viewing paper details with comments, submitting paper reviews, searching papers by title, or importing papers from arXiv URLs via API at http://weakaccept.top:8000/.