Automic VaultAutomic Vault

brew

使用 Homebrew, apt 安装 c7n

查看 c7n 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install c7n

local Homebrew formula metadata

Linux

Debian apt已验证 · 92%
sudo apt install python-custodian-doc

Debian stable package indexes · python-custodian-doc · 来源: deb.debian.org

概览

软件包摘要

Rules engine for cloud security, cost optimization, and governance

命令和别名

  • custodian

历史

项目历史与用法

Cloud Custodian, packaged as c7n, is a policy-as-code rules engine for public-cloud governance, security, cost control, and compliance automation. It is a CNCF incubating project and one of the better-known cloud governance CLIs.

项目历史

Cloud Custodian began at Capital One as a way to replace many ad hoc cloud-management scripts with a shared policy engine. Its README describes the project as a rules engine for managing public cloud accounts and resources, using simple YAML policies composed from resource types, filters, actions, and execution modes.

The project expanded from an AWS-oriented governance tool into a multi-cloud framework supporting AWS, Azure, GCP, OCI, Tencent Cloud, Kubernetes, and related tools. Its documentation presents compliance-as-code as a central model: users validate, dry-run, and review policies before applying them to cloud resources.

The CNCF project page records Cloud Custodian's acceptance into CNCF on June 25, 2020 and its move to incubating maturity on September 14, 2022.

采用历史

Cloud Custodian's adoption story is unusually strong for a CLI governance tool because it grew out of large-scale production cloud use and then moved into CNCF stewardship. The README describes it as led by a community of hundreds of contributors and battle-tested in very large cloud environments.

The project is distributed as the c7n Python package family, a Docker image, and OS-package-manager formulas such as Homebrew. Its docs also cover companion tools such as c7n-org, c7n-mailer, c7n-left, c7n-kube, and c7n-logexporter, reflecting an ecosystem around core policy evaluation.

使用方式

Users write YAML policies, validate them, dry-run them, and run them with the custodian CLI. Policies can check resources for tag compliance, encryption, public exposure, age, cost waste, and other conditions, then take actions such as tagging, stopping, deleting, notifying, or invoking provider-native eventing.

Cloud Custodian can run as a local or CI job against existing fleets, or it can provision serverless/event-driven execution through cloud provider facilities such as AWS CloudWatch Events, AWS Config rules, Azure Event Grid, GCP Audit Log and Pub/Sub, and similar mechanisms.

为什么软件包爱好者会关心

For package nerds, c7n is significant because the tiny package name hides a broad cloud-governance platform. Installing a single CLI brings in a policy language, schema tooling, multi-cloud resource providers, serverless deployment paths, reporting, and a family of c7n-* companion packages.

It is also a canonical example of Python CLI tooling becoming infrastructure governance plumbing: a package-manager install turns YAML files into enforceable cloud controls.

时间线

  • 2015-12-21: The Sphinx documentation scaffold date appears in the docs source.
  • 2020-06-25: Cloud Custodian was accepted into CNCF.
  • 2022-09-14: Cloud Custodian moved to CNCF incubating maturity.
  • 2026: The project remains documented by CNCF as an incubating project.

Related projects

  • c7n-org helps run policies across many accounts or subscriptions.
  • c7n-mailer handles notifications for policy matches.
  • c7n-left applies Custodian-style checks to infrastructure-as-code assets.
  • c7n-kube extends the policy model into Kubernetes.

安全态势

风险级别:orange

infrastructure mutation or orchestration signal.

风险分类器

orange 风险 · 中 置信度 · infrastructure

原因

  • infrastructure mutation or orchestration signal

信号

  • text:cloud

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 安装时包含 4 个运行时依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
custodiancli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-08
管理器版本0.9.51.0
管理器更新时间2026-06-15
本地数据OK
上游not checked
检测到的最新版本未检测到

https://github.com/cloud-custodian/cloud-custodian

安装元数据

软件包元数据

软件包键brew:c7n
版本0.9.51.0
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/c7n
主页https://cloudcustodian.io
仓库https://github.com/cloud-custodian/cloud-custodian
上游文档https://cloudcustodian.io/docs
许可证Apache-2.0
源码归档https://github.com/cloud-custodian/cloud-custodian/archive/refs/tags/0.9.51.0.tar.gz
最后更新2026-06-15T10:20:11-04:00
Pulseupdated
依赖cryptography, libyaml, python@3.14, rpds-py
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namec7n
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Debian apt92%

python-custodian-doc 2024.10.16-1

flexible just-in-time job management framework in Python (doc)

https://github.com/materialsproject/custodian

sudo apt install python-custodian-doc
  • Section: doc
  • Architecture: all
  • Source Package: custodian
  • 1 依赖
  • installed executable or alias match
  • 匹配方式:Custodian
Debian stable package indexes · deb.debian.org · Debian stable package indexes: python-custodian-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt92%

python3-custodian 2024.10.16-1

flexible just-in-time job management framework in Python

https://github.com/materialsproject/custodian

sudo apt install python3-custodian
  • Section: python
  • Architecture: all
  • Source Package: custodian
  • 6 依赖
  • 1 可选依赖
  • installed executable or alias match
  • 匹配方式:Custodian
Debian stable package indexes · deb.debian.org · Debian stable package indexes: python3-custodian from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment