CLI 目录 横向对比 FCRS-1.0 标准 /llms.txt
← 返回 CLI 目录

Powerpipe

$ powerpipe 官方出品 低风险
Turbot · 安全扫描与密钥管理 · AGPL-3.0 · macos / linux / windows

Powerpipe(powerpipe)基于 Steampipe、PostgreSQL、DuckDB 或 SQLite 数据源执行 HCL 定义的合规基准测试与仪表盘。其 benchmark run 与 query run 支持 --output json、--progress=false、--input=false 与 --dry-run,非常适合 Agent 执行确定性的合规审计。

FCRS-1.0 综合评分
87 /100
良好 (Good)
中置信度 (源码/文档)
零摩擦安装命令
brew install turbot/tap/powerpipe
CLI vs MCP 选型建议 优先选 CLI

通过 powerpipe benchmark run --output json --progress=false 一次即可评估数十条 CIS/SOC 2 SQL 控制项并返回结构化结果,无需多次 MCP 查询。

Agent 友好度体检单

✓ 原生 JSON 输出
— 字段裁剪
✓ 无头非交互
✓ 支持 Dry-Run
— 只读模式开关
✓ 支持 NO_COLOR
✓ 自省/Schema 发现
— 官方 SKILL.md

当前为静态评估(本机尚未安装或尚未运行探针)。可在本地运行 npm run data:probe 并提交 data/probes/ 升级为实测证据。

FCRS-1.0 六维评分拆解

Agent 友好度 23 / 25

原生具备 --output json、--progress=false、--input=false、--dry-run 与 --export,专为无头 CI/Agent 流水线设计。

  • --output json + --progress=false --input=false prevents spinners and prompts
  • Supports --dry-run and multi-format --export
安全与权限边界 22 / 25

只读 SQL/HCL 基准评估工具;mod install 会写入本地模块文件并从 GitHub/仓库拉取内容。

  • Read-only benchmark queries; --dry-run previews controls safely
安装与运行摩擦 12 / 15

可通过 brew install turbot/tap/powerpipe 安装单一 Go 二进制文件,但云端基准测试依赖外部 Steampipe 或 Postgres 数据源。

  • Single binary install, external Steampipe/DB dependency for cloud queries
能力覆盖与边际价值 13 / 15

拥有丰富的 CIS、NIST、PCI、HIPAA 与 SOC 2 合规即代码模块,覆盖 AWS、GCP、Azure 与 Kubernetes。

  • Pre-built compliance-as-code mods and snapshot exports
维护与来源背书 9 / 10

Turbot 官方项目(turbot/powerpipe),基于 AGPL-3.0 协议活跃维护。

  • Active releases from Turbot
文档与可验证性 8 / 10

powerpipe.io/docs 提供清晰的官方文档与完整 CLI 参数参考。

  • Official docs at powerpipe.io/docs

安全边界、鉴权与放权指南

鉴权方式
无需鉴权 本地配置文件 环境变量密钥
凭证存储位置

从 ~/.powerpipe/ 或环境变量 POWERPIPE_DATABASE、PIPES_TOKEN 读取数据库连接串与 Turbot Pipes 凭据。

潜在副作用
只读查询 本地写入
费用与配额提示

CLI 与官方合规模块免费(AGPL-3.0);可选的 Turbot Pipes 云工作区提供免费及付费层级。

可复制到 CLAUDE.md / AGENTS.md 的安全护栏
# Powerpipe Agent Rules
- Always pass `--output json --progress=false --input=false` on `powerpipe benchmark run` and `powerpipe query run`.
- Use `--dry-run` before running large compliance suites to confirm target controls.
- Verify Steampipe or the target `--database` connection is running before executing benchmarks.

Agent 高频安全命令配方

只读查询(安全推荐)

无头运行合规基准测试并输出 JSON
powerpipe benchmark run aws_compliance.benchmark.cis_v300 --output json --progress=false --input=false

以非交互模式(--input=false、--progress=false)运行 CIS v3.0.0 基准测试并将 JSON 输出至 stdout。

使用演练模式预览基准控制项
powerpipe benchmark run aws_compliance.benchmark.cis_v300 --dry-run

在不查询底层数据库的情况下列出将要执行的控制项列表。

受控写入与预演

在工作区中安装合规模块
powerpipe mod install github.com/turbot/steampipe-mod-aws-compliance

将合规模块定义下载至当前目录的 powerpipe.mod 与 .powerpipe/ 中。

核心优势

  • + 专门面向无头自动化提供 --output json、--progress=false、--input=false 与 --dry-run。
  • + 覆盖面极广的 CIS、NIST、PCI 与 SOC 2 合规即代码基准库。

注意事项与踩坑点

  • ! 需要预先配置运行中的 Steampipe、PostgreSQL、DuckDB 或 SQLite 数据源并执行 powerpipe mod install。
  • ! AGPL-3.0 许可证在嵌入式商业分发场景下需注意合规评审。

已验证兼容的 Agent 宿主

Claude Code Codex CLI Gemini CLI