Check catalogue

Check catalogue

Every check CloudOps Guard's Kubernetes and GitLab CI/CD audits implement today —40 in total. Each entry describes the condition a check looks for, why it matters, and how to address it, sourced directly from the audit's own implementation.

Showing 40 of 40 checks.

  • HighGL-BR-001GitLabBranch protection
    Default branch is not protected

    No exact, wildcard, or inherited protected-branch rule matches the project's default branch.

  • HighGL-BR-002GitLabBranch protection
    Force-push is allowed on the default branch

    At least one protected-branch rule matching the default branch allows force-push (the most permissive matching rule wins).

  • MediumGL-BR-003GitLabBranch protection
    Developers can push directly to the default branch

    The Developer role-based direct-push permission is granted on at least one protected-branch rule matching the default branch (the most permissive matching rule wins).

  • MediumGL-BR-004GitLabBranch protection
    Release tags are not protected

    A repository tag has both a confirmed GitLab Release association and a confirmed, literal protected: false from GitLab's tags API. A release association is confirmed only when release.tag_name exactly matches the tag's own name. An explicit release: null is treated as no association; a missing release field, an empty release object, or a malformed or mismatched tag_name is treated as unknown, not as confirmed absence -- a tag in any of those states is outside this check's scope, even if it looks like a version tag.

  • HighGL-CI-001GitLabImage security
    CI job or service container image uses a mutable tag or no tag

    A CI job's or service's container image reference either (a) statically resolves to the 'latest' tag or no tag, and is not pinned by digest, or (b) is a dynamic, runtime-resolved (CI/CD variable) expression that cannot be statically verified.

  • MediumGL-CI-002GitLabImage security
    External GitLab CI includes are not pinned

    The default-branch CI configuration confirms at least one cross-project include:project entry whose ref is not a full 40-character commit SHA (omitted/HEAD, a branch or tag name, or an abbreviated SHA), excluding any same-project include, or at least one include:remote entry (including bare-URL shorthand) that is not confirmed pinned via a full commit SHA in the unambiguous ref position of a recognized GitLab raw-file URL on the audited instance, and not confirmed to declare a well-formed integrity digest at the exact root-level declaration GitLab's own CI Lint result confirms is in effect.

  • LowGL-COST-001GitLabCost efficiency
    Redundant pipelines are not automatically cancelled

    The project's automatic cancellation of redundant pending pipelines (auto_cancel_pending_pipelines) is set to 'disabled'.

  • LowGL-COST-002GitLabCost efficiency
    Git clone depth is unlimited

    The project's default Git clone depth (ci_default_git_depth) is 0 or unset (null) -- both of which GitLab treats as unlimited/full history.

  • MediumGL-MR-001GitLabMerge safeguards
    Successful pipelines are not required before merge

    The project's 'Pipelines must succeed' setting (only_allow_merge_if_pipeline_succeeds) is disabled. This is always evaluated, regardless of whether CI is currently configured for the project.

  • LowGL-MR-002GitLabMerge safeguards
    Merge requests can merge with unresolved threads

    The project's 'All threads must be resolved' setting (only_allow_merge_if_all_discussions_are_resolved) is confirmed disabled (a literal false). A missing, null, or malformed value is unknown and never flagged.

  • HighGL-MR-003GitLabMerge safeguards
    Missing required merge request approvals or author self-approval allowed

    Either confirmed condition for the default branch: no regular or any-approver project approval rule requires at least one approval, or the project's (or an inherited group's) allow_author_approval setting is confirmed true.

  • MediumGL-REL-001GitLabReliability
    Project job timeout exceeds a configurable threshold

    The project's configured job timeout (build_timeout) strictly exceeds an operator-supplied threshold.

  • HighGL-SEC-001GitLabSecurity
    CI/CD pipeline details have broad visibility

    The project's visibility is 'private' or 'internal', and 'Public pipelines' (public_jobs) is enabled.

  • HighGL-SEC-002GitLabSecurity
    CI job tokens are permitted to push to the repository

    The project setting for CI job token repository push (ci_push_repository_for_job_token_allowed) is enabled.

  • HighGL-SEC-003GitLabSecurity
    Pipeline-variable override permissions are more permissive than Maintainer

    The project's pipeline-variable minimum override role (ci_pipeline_variables_minimum_override_role) is set to 'developer'.

  • HighGL-SEC-004GitLabSecurity
    Project has deploy keys configured with write access

    At least one of the project's deploy keys has can_push set to true.

  • MediumGL-SEC-005GitLabSecurity
    Active project or group access token has no expiration or a broad scope

    A project or group access token is confirmed active, confirmed non-revoked, not already expired, and has an explicit expires_at of null or an exact api or write_repository scope. Covers the project's own access tokens and its immediate containing group's access tokens (never a more distant ancestor group's, and never a personal namespace's group tokens, since none exist).

  • MediumGL-SEC-006GitLabSecurity
    Inbound CI job token allowlist is disabled

    GitLab's GET /projects/:id/job_token_scope response has a confirmed, literal inbound_enabled: false. A confirmed true -- including when GitLab's own instance-wide 'Enforce job token allowlist' setting is what makes it true, regardless of this project's own configured value -- is treated as effectively enabled and never flagged. outbound_enabled is never read.

  • MediumGL-SEC-007GitLabSecurity
    Project CI/CD variable is unprotected or unmasked

    GitLab's GraphQL ciVariables query for this project returns at least one variable whose protected or masked field is a confirmed, literal false. A variable is counted once in the total even when both flags are false; a missing, null, or non-boolean flag is unknown and never counted either way. outbound/inherited/CI-YAML-defined variables are out of scope -- only variables configured directly on this project are evaluated.

  • MediumGL-SEC-008GitLabSecurity
    No Secret Detection or SAST job declared in the default-branch CI configuration

    In the default branch's merged CI/CD configuration (from GitLab's CI Lint API), no visible job declares an artifacts.reports.secret_detection or artifacts.reports.sast report. Either report type alone is sufficient to suppress this check. Hidden/template job definitions (name starts with '.') and a job whose first rules: entry is an unconditional when: never -- carrying none of GitLab's if:, changes:, or exists: predicate keys, never evaluated, only checked for presence -- are never counted, even if they declare a supported report; a job name, stage name, image name, or template reference alone is never sufficient on its own. A first rule gating when: never on changes: or exists: is just as conditional as one gating it on if:, so that job is still counted, as is a job with a later, final when: never fallback rule.

  • LowK8S-COST-001KubernetesCost efficiency
    Namespace has no ResourceQuota or LimitRange

    A successful list of both ResourceQuota and LimitRange confirms zero objects of either kind exist in an audited namespace. Either object satisfies this presence check -- a namespace with only a ResourceQuota, only a LimitRange, or both is never flagged. Objects in other namespaces do not count. Applies identically to empty and system namespaces within the audit scope. Each list's availability is tracked independently: if the available list already shows an object in a namespace, presence is satisfied there regardless of the other list's own availability; if the available list shows none and the other list is unavailable (e.g. a 403), that namespace's absence is indeterminate and no finding is produced for it.

  • HighK8S-IMG-001KubernetesImage security
    Container image uses a mutable tag

    A container's image reference uses the 'latest' tag, or has no tag at all, and is not pinned by digest.

  • MediumK8S-NET-001KubernetesSecurity
    Namespace has no NetworkPolicy

    A successful networking.k8s.io/v1 NetworkPolicy list confirms zero NetworkPolicy objects exist in an audited namespace. Every policy object counts toward presence, including a maximally permissive one (e.g. podSelector: {}, policyTypes: [Ingress], ingress: [{}] -- a single empty rule matching every source and port, the canonical 'allow all ingress' policy; an empty podSelector selects every Pod in the namespace, while an empty rules list for a direction the policy applies to instead allows no traffic at all for that direction); a policy in one namespace never credits another. Applies identically to empty and system namespaces within the audit scope. If listing NetworkPolicies returns 403, this check is skipped entirely for that audit run rather than flagging every audited namespace as unprotected -- a successfully collected empty list is treated as a genuine 'no NetworkPolicy exists' and evaluated normally.

  • HighK8S-REL-001KubernetesReliability
    Container has an excessive restart count

    A single container's restart count meets or exceeds a configurable threshold.

  • MediumK8S-REL-002KubernetesReliability
    Container is missing a readiness or liveness probe

    A regular container or native sidecar (an initContainers entry with restartPolicy: Always) does not configure a readinessProbe, a livenessProbe, or both. A configured startupProbe never satisfies either requirement. Only whether each probe is configured is checked -- handler validation, thresholds, and runtime results are all outside this check's scope. Ordinary init containers and ephemeral containers are excluded entirely, since Kubernetes does not permit either probe on them. Applies identically to Linux and Windows workloads. For an already-admitted Pod, this first version is further scoped to spec.restartPolicy Always or omitted (Kubernetes' own default) -- a Job/CronJob-style Pod (OnFailure/Never) is out of scope for this version, without adding Job, CronJob, or Service collection.

  • LowK8S-REL-003KubernetesReliability
    Deployment has only one desired replica

    A Deployment's desired replica count (spec.replicas) is exactly 1. An unset spec.replicas is resolved to Kubernetes' own default of 1; an explicit 0 is preserved and never flagged, and a count of 2 or more is out of scope. Evaluated at the Deployment, from spec.replicas alone -- never per Pod or container, and using the desired count at audit time, never actual ready-replica status.

  • MediumK8S-REL-004KubernetesReliability
    Multi-replica Deployment has no matching PodDisruptionBudget

    A Deployment with a desired replica count (spec.replicas) of 2 or more has no policy/v1 PodDisruptionBudget, in the same namespace, whose selector matches its current Pod template labels (spec.template.metadata.labels). Evaluated from the current template alone, even when the Deployment has no live Pods at all. A null or omitted PDB selector matches no Pods; an explicit {} selector matches every Pod in that namespace. Older ReplicaSets, labels added only at admission time, and actual Eviction API/runtime behavior are all outside this check's scope.

  • LowK8S-REL-005KubernetesReliability
    Multi-replica Deployment has no explicit replica spread rule

    A Deployment with a desired replica count of 2 or more has no applicable topologySpreadConstraints entry and no applicable Pod anti-affinity term (required or preferred) in its current Pod template. A rule is applicable only when it has a topology key, a selector that matches the Deployment's own current Pod template labels, and -- when matchLabelKeys or (for anti-affinity) mismatchLabelKeys is set -- those keys resolve favorably against the template; for anti-affinity, its namespace scope (namespaces and/or namespaceSelector) must also cover the Deployment's own namespace. A mismatchLabelKeys entry naming a key present on the template (e.g. tenant) excludes the Deployment's own same-tenant replicas by design, so that term never satisfies this check even though its static selector alone would otherwise match them. Both DoNotSchedule and ScheduleAnyway topology-spread rules count, and both required and preferred anti-affinity terms count. Evaluated from the current template alone, even when the Deployment has no live Pods at all. When a rule's applicability depends on a namespaceSelector, matchLabelKeys, or mismatchLabelKeys this project cannot resolve from the collected template (it does not collect namespace labels, and a key absent from the template may be a controller- or admission-added label it cannot see) and that rule would otherwise apply, the result is treated as indeterminate and no finding is produced, rather than guessing.

  • MediumK8S-RES-001KubernetesResource management
    Container has no CPU request

    A container definition does not set resources.requests.cpu.

  • MediumK8S-RES-002KubernetesResource management
    Container has no memory request

    A container definition does not set resources.requests.memory.

  • MediumK8S-RES-003KubernetesResource management
    Container has no CPU limit

    A container definition does not set resources.limits.cpu.

  • HighK8S-RES-004KubernetesResource management
    Container has no memory limit

    A container definition does not set resources.limits.memory.

  • HighK8S-SEC-001KubernetesSecurity
    Container runs in privileged mode

    A regular, init, or ephemeral container's securityContext.privileged is set to true.

  • HighK8S-SEC-002KubernetesSecurity
    Pod uses host namespaces

    A Pod spec's hostNetwork, hostPID, and/or hostIPC field is set to true.

  • HighK8S-SEC-003KubernetesSecurity
    Pod declares a hostPath volume

    A Pod spec's volumes list contains at least one entry whose source is hostPath.

  • MediumK8S-SEC-004KubernetesSecurity
    Container requests or may default to root

    A regular, init, or live ephemeral container's effective runAsUser is 0, or is unspecified without an effective runAsNonRoot of true. runAsUser and runAsNonRoot are resolved independently, with an explicit container-level value always taking precedence over the Pod's own value; an explicit positive UID, or an unspecified UID with runAsNonRoot enforced, is not flagged. A Pod or Deployment template explicitly declaring spec.os.name as windows is skipped; an unspecified OS is evaluated using the Linux UID rules.

  • MediumK8S-SEC-005KubernetesSecurity
    Container allows privilege escalation

    A regular, init, or live ephemeral container's securityContext.allowPrivilegeEscalation is explicitly set to true, or is omitted (which Kubernetes itself defaults to true). An explicit false is not flagged. This is purely a container-level field -- there is no Pod-level default -- and it is evaluated independently of K8S-SEC-004's runAsUser/runAsNonRoot logic, so a non-root startup UID does not suppress this finding. A Pod or Deployment template explicitly declaring spec.os.name as windows is skipped; an unspecified OS is evaluated using the same Linux rules as K8S-SEC-004.

  • MediumK8S-SEC-006KubernetesSecurity
    Service account token auto-mounted

    For a Deployment template: the effective automountServiceAccountToken resolves to true -- an explicit Pod-template value, then an explicit value on the referenced ServiceAccount (the default ServiceAccount in the workload's namespace when serviceAccountName is omitted), then Kubernetes' own default of true once the account was actually found -- and at least one regular or init container would actually receive the token (a container that already mounts something at the standard token path is skipped by admission). If the Pod-template value is unset and the account cannot be resolved at all, the effective policy is unknown and never flagged. For an already-admitted Pod: evidence-based, not policy-based -- a regular, init, or live ephemeral container's own volumeMount genuinely references one of that Pod's real volumes that is itself a default-audience, kube-api-access-* service-account-token projection (an explicitly configured custom-audience projection is out of scope even under a matching volume name, since the admitted spec alone cannot establish who injected it), and the matching volumeMount's own selected portion of that volume actually includes the token file: no subPath at all, or subPath: token, both qualify, while a subPath naming a different file (e.g. ca.crt) does not, and a dynamic subPathExpr is treated as unresolved since its actual target cannot be established from the spec alone. A volume name alone, an unused or custom-audience token projection, a subPath that excludes the token, or the current ServiceAccount setting alone are each insufficient; an older Pod can still carry the mount after its ServiceAccount or template was later changed to disable it. A Deployment-owned Pod's own finding is suppressed only when its owning Deployment's own template resolution is itself enabled, resolved the same ServiceAccount name, and its own receiving containers are a superset of this Pod's own affected containers.

  • MediumK8S-SEC-007KubernetesSecurity
    Container has excessive Linux capabilities

    A regular, init, or live ephemeral container's securityContext.capabilities flags one of two independent conditions. First: drop does not contain ALL -- an omitted security context, an omitted capabilities block, and an explicit but empty drop list are all treated identically. Second: add contains any capability other than NET_BIND_SERVICE. Both conditions are checked independently, and both are reported together when both apply. Duplicate or reordered entries in add never affect detection or deduplication -- comparison is set-based, not order- or occurrence-sensitive. Evaluated independently of privileged mode, startup UID, and allowPrivilegeEscalation, each its own separate check. A Pod or Deployment template explicitly declaring spec.os.name as windows is skipped, since Linux capabilities are a Linux-kernel-specific mechanism a Windows container does not have at all; an unspecified OS is evaluated using the Linux rule.

  • LowK8S-SEC-008KubernetesSecurity
    Container root filesystem is writable

    A regular, init, or live ephemeral container's securityContext.readOnlyRootFilesystem is explicitly set to false, or is omitted (which Kubernetes itself defaults to false). An explicit true is not flagged; an omitted securityContext is treated the same as an omitted field. A Pod or Deployment template explicitly declaring spec.os.name as windows is skipped; an unspecified OS is evaluated using the Linux rule.