Powerpipe
$ powerpipe 官方出品 低风险Powerpipe(powerpipe)基于 Steampipe、PostgreSQL、DuckDB 或 SQLite 数据源执行 HCL 定义的合规基准测试与仪表盘。其 benchmark run 与 query run 支持 --output json、--progress=false、--input=false 与 --dry-run,非常适合 Agent 执行确定性的合规审计。
brew install turbot/tap/powerpipe 通过 powerpipe benchmark run --output json --progress=false 一次即可评估数十条 CIS/SOC 2 SQL 控制项并返回结构化结果,无需多次 MCP 查询。
Agent 友好度体检单
当前为静态评估(本机尚未安装或尚未运行探针)。可在本地运行 npm run data:probe 并提交 data/probes/ 升级为实测证据。
FCRS-1.0 六维评分拆解
原生具备 --output json、--progress=false、--input=false、--dry-run 与 --export,专为无头 CI/Agent 流水线设计。
--output json+--progress=false --input=falseprevents spinners and prompts- Supports
--dry-runand multi-format--export
只读 SQL/HCL 基准评估工具;mod install 会写入本地模块文件并从 GitHub/仓库拉取内容。
- Read-only benchmark queries;
--dry-runpreviews controls safely
可通过 brew install turbot/tap/powerpipe 安装单一 Go 二进制文件,但云端基准测试依赖外部 Steampipe 或 Postgres 数据源。
- Single binary install, external Steampipe/DB dependency for cloud queries
拥有丰富的 CIS、NIST、PCI、HIPAA 与 SOC 2 合规即代码模块,覆盖 AWS、GCP、Azure 与 Kubernetes。
- Pre-built compliance-as-code mods and snapshot exports
Turbot 官方项目(turbot/powerpipe),基于 AGPL-3.0 协议活跃维护。
- Active releases from Turbot
powerpipe.io/docs 提供清晰的官方文档与完整 CLI 参数参考。
- Official docs at powerpipe.io/docs
安全边界、鉴权与放权指南
从 ~/.powerpipe/ 或环境变量 POWERPIPE_DATABASE、PIPES_TOKEN 读取数据库连接串与 Turbot Pipes 凭据。
CLI 与官方合规模块免费(AGPL-3.0);可选的 Turbot Pipes 云工作区提供免费及付费层级。
# 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 高频安全命令配方
只读查询(安全推荐)
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 许可证在嵌入式商业分发场景下需注意合规评审。