·enforce-policy-as-code
!

enforce-policy-as-code

使用 OPA Gatekeeper 或 Kyverno 实施策略即代码实施,以根据组织策略验证和改变 Kubernetes 资源。涵盖约束模板、准入控制、审计模式、报告违规以及与 CI/CD 管道集成以进行左移策略验证。在执行资源配置标准、防止安全错误配置(例如特权容器)、确保部署前合规性、标准化命名约定或根据策略审核现有集群资源时使用。

9安装·1热度·@pjt222

安装

$npx skills add https://github.com/pjt222/development-guides --skill enforce-policy-as-code

如何安装 enforce-policy-as-code

通过命令行快速安装 enforce-policy-as-code AI 技能到你的开发环境

  1. 打开终端: 打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等)
  2. 运行安装命令: 复制并运行以下命令:npx skills add https://github.com/pjt222/development-guides --skill enforce-policy-as-code
  3. 验证安装: 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

来源:pjt222/development-guides。

SKILL.md

查看原文

Implement declarative policy enforcement using OPA Gatekeeper or Kyverno for Kubernetes resource validation and mutation.

Expected: Policy engine pods running with multiple replicas. CRDs installed (ConstraintTemplate, Constraint for Gatekeeper; ClusterPolicy, Policy for Kyverno). Validating/mutating webhooks active. Audit controller running.

Expected: ConstraintTemplates/ClusterPolicies created successfully. Constraints show status "True" for enforcement. No errors in policy definitions. Webhook begins evaluating new resources against policies.

使用 OPA Gatekeeper 或 Kyverno 实施策略即代码实施,以根据组织策略验证和改变 Kubernetes 资源。涵盖约束模板、准入控制、审计模式、报告违规以及与 CI/CD 管道集成以进行左移策略验证。在执行资源配置标准、防止安全错误配置(例如特权容器)、确保部署前合规性、标准化命名约定或根据策略审核现有集群资源时使用。 来源:pjt222/development-guides。

可引用信息

为搜索与 AI 引用准备的稳定字段与命令。

安装命令
npx skills add https://github.com/pjt222/development-guides --skill enforce-policy-as-code
分类
!安全工具
认证
收录时间
2026-03-10
更新时间
2026-03-10

Browse more skills from pjt222/development-guides

快速解答

什么是 enforce-policy-as-code?

使用 OPA Gatekeeper 或 Kyverno 实施策略即代码实施,以根据组织策略验证和改变 Kubernetes 资源。涵盖约束模板、准入控制、审计模式、报告违规以及与 CI/CD 管道集成以进行左移策略验证。在执行资源配置标准、防止安全错误配置(例如特权容器)、确保部署前合规性、标准化命名约定或根据策略审核现有集群资源时使用。 来源:pjt222/development-guides。

如何安装 enforce-policy-as-code?

打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/pjt222/development-guides --skill enforce-policy-as-code 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

这个 Skill 的源码在哪?

https://github.com/pjt222/development-guides