AgentsConfigHelper / rules
Cursor rule2 starsChanged 3 months agoMITView on GitHub
Kubernetes hardening (RBAC, admission policies, network policies, secrets, supply chain)
Files
--- description: Kubernetes hardening (RBAC, admission policies, network policies, secrets, supply chain) globs: **/*.js,**/*.jsx,**/*.mjs,**/*.yaml,**/*.yml version: 1.0.1 --- rule_id: codeguard-0-cloud-orchestration-kubernetes ## Cloud & Orchestration (Kubernetes) Kubernetes cluster and workload hardening: identity, policy, networking, secrets, and supply chain controls. ### Controls - Identity & RBAC: least privilege for users and service accounts; separate namespaces; bind only needed roles. - Policy: admission controls (OPA/Gatekeeper/Kyverno) for image sources, capabilities, root, network policies, and required labels/annotations. - Networking: default‑deny with network policies; explicit egress allow‑lists; service identity/mTLS within mesh where applicable. - Secrets: use KMS providers; avoid plaintext in manifests; rotate regularly; restrict secret mount paths. - Nodes: hardened OS, auto‑updates, minimal attack surface; isolate sensitive workloads with taints/tolerations and dedicated nodes. - Supply chain: verify image signatures; enforce provenance (SLSA/Sigstore) in admission. ### Checklist - Namespaces per team/app; RBAC roles scoped; audit logging enabled. - Admission policies enforce image provenance, non‑root, dropped capabilities, read‑only root FS, and network policy presence. - Network policies in place for ingress/egress; service accounts scoped per deployment. ### Verification - Cluster conformance and CIS benchmark scans. - Policy tests in CI for manifests (OPA unit tests); periodic admission dry‑run. ### Incident Readiness - Enable audit logs and centralize; restrict access to etcd; backup/restore tested. - Define break‑glass roles with MFA and time‑bound approvals.
In this repository24 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- .cursor/rules/codeguard-0-additional-cryptography.mdcCursor rule
- .cursor/rules/codeguard-0-api-web-services.mdcCursor rule
- .cursor/rules/codeguard-0-authentication-mfa.mdcCursor rule
- .cursor/rules/codeguard-0-authorization-access-control.mdcCursor rule
- .cursor/rules/codeguard-0-client-side-web-security.mdcCursor rule
- .cursor/rules/codeguard-0-data-storage.mdcCursor rule
- .cursor/rules/codeguard-0-devops-ci-cd-containers.mdcCursor rule
- .cursor/rules/codeguard-0-file-handling-and-uploads.mdcCursor rule
- .cursor/rules/codeguard-0-framework-and-languages.mdcCursor rule
- .cursor/rules/codeguard-0-iac-security.mdcCursor rule
- .cursor/rules/codeguard-0-input-validation-injection.mdcCursor rule
- .cursor/rules/codeguard-0-logging.mdcCursor rule
- .cursor/rules/codeguard-0-mobile-apps.mdcCursor rule
- .cursor/rules/codeguard-0-privacy-data-protection.mdcCursor rule
- .cursor/rules/codeguard-0-safe-c-functions.mdcCursor rule
- .cursor/rules/codeguard-0-session-management-and-cookies.mdcCursor rule
- .cursor/rules/codeguard-0-supply-chain-security.mdcCursor rule
- .cursor/rules/codeguard-0-xml-and-serialization.mdcCursor rule
- .cursor/rules/codeguard-1-crypto-algorithms.mdcCursor rule
- .cursor/rules/codeguard-1-digital-certificates.mdcCursor rule
- .cursor/rules/codeguard-1-hardcoded-credentials.mdcCursor rule
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

