微算力 · API 导航与自营网关
API 接入 EN
未登录登录
✨

Passwordstore Broker

Passwordstore Broker · v1.0.0
入口已确认,内容待校验 文件树里有 SKILL.md,但正文还没采回,frontmatter 未核对。
安全 unknown 级 作者 bieggerm 公开目录收录
1.1k 下载 0 安装 3.6k 收藏 1 浏览

简介

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 environm...

通过你的 Agent 添加

安装目录:passwordstore-broker/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/passwordstore-broker/
Codex CLI~/.codex/skills/passwordstore-broker/
DeepSeek Harness~/.agents/skills/passwordstore-broker/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

技能正文


name: passwordstore-broker description: Enforce safe secret handling for agent workflows by never asking users to paste raw passwords/API keys into chat, brokering new secrets through scripts/get_password_from_user.py, storing them in pass via scripts/vault.sh, and executing tools with secret values injected through environment variables (via scripts/run_with_secret.sh) so secrets do not enter model context or logs.

Passwordstore Broker Agent Protocol

Run this exact sequence whenever a task needs credentials.

Prerequisites

  • Before first use, ensure local dependencies and pass initialization are complete by following references/SETUP.md.

Phase 1: Get Secrets

Goal: ensure required secrets exist in local vault without exposing values in chat.

  1. Identify required env vars and corresponding secret keys before executing tools.
  2. Check whether each secret already exists:
    • scripts/vault.sh exists <secret-name>
    • scripts/vault.sh ls for discovery if key names are unknown
  3. If missing, collect it through one-time HTTPS intake:
    • scripts/get_password_from_user.py --secretname <secret-name> --port <port>
  4. Send the generated URL to the user and wait for submission to complete.
    • The default localhost URL only works on the same machine.
    • If the user is remote, use a host/IP or secure tunnel they can access.
  5. If intake fails or times out, retry with a new port and same secret name.

Exit criteria:

  • All required secret names exist in vault.

Phase 2: Use Secrets

Goal: execute commands with env injection only, never by printing or pasting secrets.

  1. Run the target command through injector:
    • 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...]
  2. For multiple secrets, prefer one injected command invocation per secret-bearing step.
  3. Keep secrets process-local and short-lived:
    • avoid writing them to files
    • avoid env, printenv, set, or verbose logs that may reveal values
  4. If credential is rejected, treat as rotation event and return to Phase 1.

Exit criteria:

  • The required authenticated command completes without exposing secret values.

Phase 3: Interact With Vault

Goal: manage vault lifecycle safely and predictably.

Standard operations:

  • Store/update secret from stdin:
    • scripts/vault.sh put <secret-name>
  • Read secret (only when absolutely necessary):
    • scripts/vault.sh get <secret-name>
  • Verify existence:
    • scripts/vault.sh exists <secret-name>
  • List keys for discovery:
    • scripts/vault.sh ls
  • Remove obsolete secret:
    • scripts/vault.sh rm <secret-name>

Naming policy:

  • Use stable, scoped paths like:
    • github/token
    • openai/prod/api_key
    • aws/staging/access_key_id

Rotation policy:

  • Default: replace value under same key.
  • Use versioned keys only when the user explicitly requests audit/version history.

Non-Negotiable Guardrails

  • Never ask users to paste raw secrets into chat.
  • Never echo secrets back to user.
  • Never store secrets in repository files, commit messages, issue comments, or transcripts.
  • Prefer write-only handling; read plaintext values only when strictly required to complete a command.

Quick Runbook

  1. Map task auth requirements to secret-name -> ENV_VAR.
  2. For each secret: vault exists; if missing, run intake and wait.
  3. Execute target tooling via run_with_secret.sh.
  4. Rotate or remove secrets via vault.sh only when required.

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

没有标签

同类 Skill