Hub rules-argocd

rules-argocd

v5 public Verified

ArgoCD

Argo CD is a declarative, GitOps continuous delivery tool for Kubernetes. These rules govern application manifests, sync policies, and security best practices for AI-assisted Argo CD management.

@sigmashakeinc 2 pulls 8 rules published Apr 8, 2026 synced Oct 25, 2026 sigmashakeinc/rules/rulesets/rules-argocd →
Severity
3 error 5 warn 0 info
demo.cast
Argo CD is a declarative, GitOps continuous delivery tool for Kubernetes. These rules govern application manifests, sync policies, and security best practices for AI-assisted Argo CD management.

Rules index

8 governance rules

Indexed from the repository's .rules files, grouped by technology. Expand any rule to read the raw source.

argocd

argocd-auto-prune-and-self-heal warning ask

RISK: enabling both automated.prune: true and automated.selfHeal: true means Argo CD will automatically delete live resources that are absent from the git manifest AND continuously revert any manual change. A mistaken manifest commit that removes a resource (e.g., a ConfigMap or PVC) will be immediately pruned from the cluster with no manual intervention required. FIX: enable these flags deliberately and only after verifying your RBAC AppProject destinationNamespaces are tightly scoped. Consider setting selfHeal: true alone without prune for safer auto-recovery.

Rule source requires an active Pro or Enterprise subscription.
argocd-default-project-usage warning log

Usage of the 'default' Argo CD project detected. The 'default' project often has broader permissions and is not recommended for production workloads. Create and use dedicated Argo CD projects with fine-grained RBAC for better security and isolation. Example fix: Change 'project: default' to 'project: my-secure-project'.

Rule source requires an active Pro or Enterprise subscription.
argocd-deprecated-k8s-api warning log

Deprecated Kubernetes API version detected. Using 'extensions/v1beta1' or 'apps/v1beta1' for Deployments, DaemonSets, or ReplicaSets is deprecated and may lead to instability or breakage in future Kubernetes versions. Update to 'apiVersion: apps/v1'. This aligns with Google's general Kubernetes best practices for API versioning. Example fix: Change 'apiVersion: extensions/v1beta1' to 'apiVersion: apps/v1'.

Rule source requires an active Pro or Enterprise subscription.
argocd-image-tag-latest warning log

RISK: image tag ':latest' is mutable — a new push to the registry will change what Argo CD deploys on the next sync without any manifest change, making rollbacks impossible and supply-chain substitution trivial. FIX: pin images to an immutable digest (image: myrepo/app@sha256:<digest>) or a specific semver tag. Use an image-update automation tool (e.g., Argo CD Image Updater) to manage upgrades through git PRs.

Rule source requires an active Pro or Enterprise subscription.
argocd-insecure-repo-url error block

Insecure Git repository URL detected. Using 'http://' for 'repoURL' is vulnerable to Man-in-the-Middle attacks and credential exposure. Always use 'https://' or 'ssh://' for secure communication. Example fix: Change 'repoURL: http://git.example.com/repo.git' to 'repoURL: https://git.example.com/repo.git'.

Rule source requires an active Pro or Enterprise subscription.
argocd-insecure-sync-options error block

Insecure Argo CD sync option detected. 'AllowEmpty=true' can lead to accidental deletion of all resources if the manifest becomes empty. 'Replace=true' can bypass immutable fields and security controls. Avoid these options unless absolutely necessary and with extreme caution. Example fix: Remove 'AllowEmpty=true' or 'Replace=true' from syncOptions.

Rule source requires an active Pro or Enterprise subscription.
argocd-path-traversal-source error block

Potential path traversal detected in application source path or Helm value files. Using '..' can lead to unauthorized file access outside the intended repository directory. Ensure all paths are relative to the application's root and do not escape it. Example fix: Use 'path: my-app' instead of 'path: ../my-app'.

Rule source requires an active Pro or Enterprise subscription.
argocd-unpinned-target-revision warning log

Unpinned Git target revision detected. Using 'HEAD' for 'targetRevision' can lead to non-reproducible deployments and unexpected changes, potentially deploying unreviewed code. Pin to a specific commit SHA or a stable tag for security and reproducibility. Example fix: Change 'targetRevision: HEAD' to 'targetRevision: v1.2.3' or 'targetRevision: <commit-sha>'.

Rule source requires an active Pro or Enterprise subscription.

Version metadata

Published metadata

The hash-locked record of this published ruleset. When source contents change, the maintainer resyncs and the version bumps.

Version
v5
Published
Apr 8, 2026
Source commits
0
Synced
Oct 25, 2026
Hash
f622743faee39fb89feab85b408be31060f68e4c9a88c428593d7c0a1cb896d4
Signature
Verified (publisher key)
Tested with
claude-code@current
Plan
Starter (free)
Visibility
Public

Source history

Recent commits

Latest commits touching rulesets/rules-argocd/.sigmashake/rules in sigmashakeinc/rules/rulesets/rules-argocd. The published version only bumps when a maintainer resyncs.

No commit history available.