Rip out compensating-controls framework (#359)
## Summary Removes the compensating-controls (CC) framework. Prowler and Kingfisher continue to run weekly and produce reports; the Prowler mutelist YAML files stay in place but no longer carry \`CC: <id>\` prefixes — each entry now just keeps a free-form \`Description\` of why it's muted. The CC review cadence proved to be more process overhead than this single-operator homelab needed. ## What changed **Deleted** - \`compensating-controls.yaml\` — the CC registry - \`mise-tasks/review-compensating-controls\` — the staleness-review task - \`docs/how-to/operations/review-compensating-controls.md\` - \`docs/how-to/operations/record-review-evidence.md\` (was aspirational) - \`docs/explanation/compliance-mute-categories.md\` (proposed-future CC/NA/RA work) - 5 orphan \`+review-cc-*\` / \`+compliance-mute-categories\` changelog fragments **Modified** - 6 mutelist YAML files: stripped \`CC: <id>.\` prefix from every \`Description\` / \`statement\` field, kept the free-form text - \`mise-tasks/review-compliance-reports\`: removed CC mentions from docstrings, panel text, and the node-verification table title. Node-verification logic itself is unchanged. - \`docs/reference/operations/security.md\`: removed the "Compensating controls" section - \`docs/how-to/operations/read-compliance-reports.md\`: rewrote step 3 of "Acting on findings" to point at the mutelist YAML directly - \`docs/changelog.d/prowler-iac-mutelist.infra.md\`: rewrote to drop the "two new compensating controls" framing ## What did not change - All Prowler manifests (cronjobs, RBAC, PVs, kustomization) — scans still run on the same schedule - The Kingfisher deployment - The trivy-shim in the Prowler container — that's about Trivy ignorefile plumbing, independent of the CC concept - The mutelist entries themselves — each \`Resources\` list is unchanged; only the prose of \`Description\` was edited - \`CHANGELOG.md\` — historical releases are left as-is ## Test plan - [ ] Wait for human review before deploying — once merged, re-point ArgoCD: \`argocd app set prowler --revision main && argocd app sync prowler\` (no manifest changes besides the ConfigMap, so impact is limited to muted-finding descriptions in next week's report) - [ ] Confirm next weekly Prowler K8s CIS run (Sunday 3am) still completes and produces a report on sifaka - [ ] Confirm next weekly Prowler IaC run still honors \`trivyignore.yaml\` (the trivy shim is untouched but the ignorefile content was rewritten) - [ ] \`mise run review-compliance-reports\` — verify node-verification block still runs and prints the renamed table title Reviewed-on: #359
This commit is contained in:
parent
2fae0f7161
commit
ee51bcafb4
21 changed files with 72 additions and 758 deletions
|
|
@ -6,48 +6,48 @@ Mutelist:
|
|||
"apiserver_always_pull_images_plugin":
|
||||
Regions: ["*"]
|
||||
Resources: ["^kube-apiserver-minikube$"]
|
||||
Description: "CC: single-user-cluster, local-registry. Only the operator has cluster access; all images pulled from private zot registry."
|
||||
Description: "Only the operator has cluster access; all images pulled from private zot registry."
|
||||
"apiserver_audit_log_maxage_set":
|
||||
Regions: ["*"]
|
||||
Resources: ["^kube-apiserver-minikube$"]
|
||||
Description: "CC: observability-stack-audit. Alloy/Loki provides pod-level audit trail."
|
||||
Description: "Alloy/Loki provides pod-level audit trail."
|
||||
"apiserver_audit_log_maxbackup_set":
|
||||
Regions: ["*"]
|
||||
Resources: ["^kube-apiserver-minikube$"]
|
||||
Description: "CC: observability-stack-audit. Alloy/Loki provides pod-level audit trail."
|
||||
Description: "Alloy/Loki provides pod-level audit trail."
|
||||
"apiserver_audit_log_maxsize_set":
|
||||
Regions: ["*"]
|
||||
Resources: ["^kube-apiserver-minikube$"]
|
||||
Description: "CC: observability-stack-audit. Alloy/Loki provides pod-level audit trail."
|
||||
Description: "Alloy/Loki provides pod-level audit trail."
|
||||
"apiserver_audit_log_path_set":
|
||||
Regions: ["*"]
|
||||
Resources: ["^kube-apiserver-minikube$"]
|
||||
Description: "CC: observability-stack-audit. Alloy/Loki provides pod-level audit trail."
|
||||
Description: "Alloy/Loki provides pod-level audit trail."
|
||||
"apiserver_deny_service_external_ips":
|
||||
Regions: ["*"]
|
||||
Resources: ["^kube-apiserver-minikube$"]
|
||||
Description: "CC: tailscale-network-isolation. No external IPs routable; cluster only reachable via tailnet."
|
||||
Description: "No external IPs routable; cluster only reachable via tailnet."
|
||||
"apiserver_disable_profiling":
|
||||
Regions: ["*"]
|
||||
Resources: ["^kube-apiserver-minikube$"]
|
||||
Description: "CC: tailscale-network-isolation. Profiling endpoint unreachable from public internet."
|
||||
Description: "Profiling endpoint unreachable from public internet."
|
||||
"apiserver_encryption_provider_config_set":
|
||||
Regions: ["*"]
|
||||
Resources: ["^kube-apiserver-minikube$"]
|
||||
Description: "CC: tailscale-network-isolation, single-user-cluster. Etcd not network-exposed; only operator has node access."
|
||||
Description: "Etcd not network-exposed; only operator has node access."
|
||||
"apiserver_kubelet_cert_auth":
|
||||
Regions: ["*"]
|
||||
Resources: ["^kube-apiserver-minikube$"]
|
||||
Description: "CC: tailscale-network-isolation. Kubelet API not exposed outside the node; minikube auto-generates certificates."
|
||||
Description: "Kubelet API not exposed outside the node; minikube auto-generates certificates."
|
||||
"apiserver_request_timeout_set":
|
||||
Regions: ["*"]
|
||||
Resources: ["^kube-apiserver-minikube$"]
|
||||
Description: "CC: tailscale-network-isolation. API server only reachable via tailnet; DoS risk limited to trusted clients."
|
||||
Description: "API server only reachable via tailnet; DoS risk limited to trusted clients."
|
||||
"apiserver_service_account_lookup_true":
|
||||
Regions: ["*"]
|
||||
Resources: ["^kube-apiserver-minikube$"]
|
||||
Description: "CC: single-user-cluster. Only operator manages service accounts; no revoked tokens in circulation."
|
||||
Description: "Only operator manages service accounts; no revoked tokens in circulation."
|
||||
"apiserver_strong_ciphers_only":
|
||||
Regions: ["*"]
|
||||
Resources: ["^kube-apiserver-minikube$"]
|
||||
Description: "CC: tailscale-network-isolation. API server traffic encrypted by WireGuard at the network layer."
|
||||
Description: "API server traffic encrypted by WireGuard at the network layer."
|
||||
|
|
|
|||
|
|
@ -6,12 +6,12 @@ Mutelist:
|
|||
"controllermanager_disable_profiling":
|
||||
Regions: ["*"]
|
||||
Resources: ["^kube-controller-manager-minikube$"]
|
||||
Description: "CC: tailscale-network-isolation. Profiling endpoint unreachable from public internet."
|
||||
Description: "Profiling endpoint unreachable from public internet."
|
||||
"scheduler_profiling":
|
||||
Regions: ["*"]
|
||||
Resources: ["^kube-scheduler-minikube$"]
|
||||
Description: "CC: tailscale-network-isolation. Profiling endpoint unreachable from public internet."
|
||||
Description: "Profiling endpoint unreachable from public internet."
|
||||
"kubelet_tls_cert_and_key":
|
||||
Regions: ["*"]
|
||||
Resources: ["^kubelet-config$"]
|
||||
Description: "CC: tailscale-network-isolation, single-user-cluster. Kubelet API not exposed outside node; minikube auto-generates certificates."
|
||||
Description: "Kubelet API not exposed outside node; minikube auto-generates certificates."
|
||||
|
|
|
|||
|
|
@ -17,9 +17,8 @@ Mutelist:
|
|||
- "^kindnet-"
|
||||
- "^storage-provisioner$"
|
||||
Description: >-
|
||||
CC: tailscale-network-isolation. Control-plane and networking
|
||||
pods require hostNetwork by design. Host network itself is
|
||||
only reachable via tailnet.
|
||||
Control-plane and networking pods require hostNetwork by design.
|
||||
Host network itself is only reachable via tailnet.
|
||||
"core_minimize_privileged_containers":
|
||||
Regions: ["*"]
|
||||
Resources:
|
||||
|
|
@ -31,7 +30,6 @@ Mutelist:
|
|||
# Forgejo runner
|
||||
- "^forgejo-runner-"
|
||||
Description: >-
|
||||
CC: single-user-cluster, operator-managed-pods, trusted-ci-only.
|
||||
kube-proxy: system pod, single-user cluster. ts-*/ingress-*:
|
||||
Tailscale operator-managed. forgejo-runner: DinD limited to
|
||||
trusted private forge repos.
|
||||
|
|
@ -49,25 +47,24 @@ Mutelist:
|
|||
- "^nameserver-"
|
||||
- "^ingress-"
|
||||
Description: >-
|
||||
CC: single-user-cluster, operator-managed-pods. System pods
|
||||
managed by minikube and Tailscale operator; seccomp profiles
|
||||
set by upstream. Single-user cluster limits exploit surface.
|
||||
System pods managed by minikube and Tailscale operator;
|
||||
seccomp profiles set by upstream. Single-user cluster limits
|
||||
exploit surface.
|
||||
"core_minimize_hostPID_containers":
|
||||
Regions: ["*"]
|
||||
Resources:
|
||||
- "^prowler-"
|
||||
Description: >-
|
||||
CC: ephemeral-privileged-jobs. Prowler CIS scanner requires
|
||||
hostPID for file permission checks. Runs as CronJob with
|
||||
7-day TTL, not a persistent workload.
|
||||
Prowler CIS scanner requires hostPID for file permission
|
||||
checks. Runs as CronJob with 7-day TTL, not a persistent
|
||||
workload.
|
||||
"core_minimize_root_containers_admission":
|
||||
Regions: ["*"]
|
||||
Resources:
|
||||
- "^grafana-"
|
||||
Description: >-
|
||||
CC: init-container-isolation. Root limited to init-chown-data
|
||||
container; all runtime containers run as UID 472 with caps
|
||||
dropped.
|
||||
Root limited to init-chown-data container; all runtime
|
||||
containers run as UID 472 with caps dropped.
|
||||
"core_minimize_containers_added_capabilities":
|
||||
Regions: ["*"]
|
||||
Resources:
|
||||
|
|
@ -77,10 +74,9 @@ Mutelist:
|
|||
# Grafana init-chown-data
|
||||
- "^grafana-"
|
||||
Description: >-
|
||||
CC: single-user-cluster, init-container-isolation. System
|
||||
pods: capabilities required by function (minikube-managed).
|
||||
Grafana: CHOWN limited to init phase; runtime containers
|
||||
drop ALL.
|
||||
System pods: capabilities required by function
|
||||
(minikube-managed). Grafana: CHOWN limited to init phase;
|
||||
runtime containers drop ALL.
|
||||
"core_minimize_containers_capabilities_assigned":
|
||||
Regions: ["*"]
|
||||
Resources:
|
||||
|
|
@ -88,5 +84,4 @@ Mutelist:
|
|||
- "^kindnet-"
|
||||
- "^grafana-"
|
||||
Description: >-
|
||||
CC: single-user-cluster, init-container-isolation. See
|
||||
core_minimize_containers_added_capabilities.
|
||||
See core_minimize_containers_added_capabilities.
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
# Node-level and RBAC checks that Prowler reports as MANUAL because it
|
||||
# cannot evaluate them from inside a pod. Compensated by automated
|
||||
# verification in `mise run review-compliance-reports`, which SSHes into
|
||||
# the minikube node and checks each condition directly every week.
|
||||
# cannot evaluate them from inside a pod. Verified out-of-band by the
|
||||
# node-verification block in `mise run review-compliance-reports`, which
|
||||
# SSHes into the minikube node and checks each condition directly.
|
||||
Mutelist:
|
||||
Accounts:
|
||||
"*":
|
||||
|
|
@ -9,51 +9,51 @@ Mutelist:
|
|||
"etcd_unique_ca":
|
||||
Regions: ["*"]
|
||||
Resources: ["^etcd-minikube$"]
|
||||
Description: "CC: node-config-automated-verification. Etcd CA fingerprint verified different from cluster CA by review-compliance-reports."
|
||||
Description: "Etcd CA fingerprint verified different from cluster CA by review-compliance-reports."
|
||||
"kubelet_conf_file_ownership":
|
||||
Regions: ["*"]
|
||||
Resources: ["^kubelet-config$"]
|
||||
Description: "CC: node-config-automated-verification. File ownership verified root:root by review-compliance-reports."
|
||||
Description: "File ownership verified root:root by review-compliance-reports."
|
||||
"kubelet_conf_file_permissions":
|
||||
Regions: ["*"]
|
||||
Resources: ["^kubelet-config$"]
|
||||
Description: "CC: node-config-automated-verification. File permissions verified 600 by review-compliance-reports."
|
||||
Description: "File permissions verified 600 by review-compliance-reports."
|
||||
"kubelet_config_yaml_ownership":
|
||||
Regions: ["*"]
|
||||
Resources: ["^kubelet-config$"]
|
||||
Description: "CC: node-config-automated-verification. File ownership verified root:root by review-compliance-reports."
|
||||
Description: "File ownership verified root:root by review-compliance-reports."
|
||||
"kubelet_config_yaml_permissions":
|
||||
Regions: ["*"]
|
||||
Resources: ["^kubelet-config$"]
|
||||
Description: "CC: node-config-automated-verification. File permissions verified 644 by review-compliance-reports."
|
||||
Description: "File permissions verified 644 by review-compliance-reports."
|
||||
"kubelet_service_file_ownership_root":
|
||||
Regions: ["*"]
|
||||
Resources: ["^kubelet-config$"]
|
||||
Description: "CC: node-config-automated-verification. File ownership verified root:root by review-compliance-reports."
|
||||
Description: "File ownership verified root:root by review-compliance-reports."
|
||||
"kubelet_service_file_permissions":
|
||||
Regions: ["*"]
|
||||
Resources: ["^kubelet-config$"]
|
||||
Description: "CC: node-config-automated-verification. File permissions verified 644 by review-compliance-reports."
|
||||
Description: "File permissions verified 644 by review-compliance-reports."
|
||||
"kubelet_disable_read_only_port":
|
||||
Regions: ["*"]
|
||||
Resources: ["^kubelet-config$"]
|
||||
Description: "CC: node-config-automated-verification. readOnlyPort absence (defaults to 0) verified by review-compliance-reports."
|
||||
Description: "readOnlyPort absence (defaults to 0) verified by review-compliance-reports."
|
||||
"kubelet_event_record_qps":
|
||||
Regions: ["*"]
|
||||
Resources: ["^kubelet-config$"]
|
||||
Description: "CC: node-config-automated-verification. eventRecordQPS absence (defaults to 5) verified by review-compliance-reports."
|
||||
Description: "eventRecordQPS absence (defaults to 5) verified by review-compliance-reports."
|
||||
"kubelet_manage_iptables":
|
||||
Regions: ["*"]
|
||||
Resources: ["^kubelet-config$"]
|
||||
Description: "CC: node-config-automated-verification. makeIPTablesUtilChains absence (defaults to true) verified by review-compliance-reports."
|
||||
Description: "makeIPTablesUtilChains absence (defaults to true) verified by review-compliance-reports."
|
||||
"kubelet_strong_ciphers_only":
|
||||
Regions: ["*"]
|
||||
Resources: ["^kubelet-config$"]
|
||||
Description: "CC: node-config-automated-verification, tailscale-network-isolation. Go default ciphers used; all traffic WireGuard-encrypted via tailnet."
|
||||
Description: "Go default ciphers used; all traffic WireGuard-encrypted via tailnet."
|
||||
"rbac_cluster_admin_usage":
|
||||
Regions: ["*"]
|
||||
Resources:
|
||||
- "^cluster-admin$"
|
||||
- "^kubeadm:cluster-admins$"
|
||||
- "^minikube-rbac$"
|
||||
Description: "CC: node-config-automated-verification, single-user-cluster. Only built-in/minikube cluster-admin bindings present; verified by review-compliance-reports."
|
||||
Description: "Only built-in/minikube cluster-admin bindings present; verified by review-compliance-reports."
|
||||
|
|
|
|||
|
|
@ -13,9 +13,8 @@ Mutelist:
|
|||
# ArgoCD
|
||||
- "^argocd-"
|
||||
Description: >-
|
||||
CC: single-user-cluster, sso-gated-admin-tools. Built-in
|
||||
K8s roles: only operator can bind them. ArgoCD: requires
|
||||
broad access but is SSO-gated via Authentik OIDC.
|
||||
Built-in K8s roles: only operator can bind them. ArgoCD:
|
||||
requires broad access but is SSO-gated via Authentik OIDC.
|
||||
"rbac_minimize_pod_creation_access":
|
||||
Regions: ["*"]
|
||||
Resources:
|
||||
|
|
@ -26,14 +25,12 @@ Mutelist:
|
|||
# CloudNativePG operator
|
||||
- "^cnpg-manager$"
|
||||
Description: >-
|
||||
CC: single-user-cluster. Built-in K8s roles and CNPG
|
||||
operator. Only the operator can assign these roles; no
|
||||
untrusted users have cluster access.
|
||||
Built-in K8s roles and CNPG operator. Only the operator can
|
||||
assign these roles; no untrusted users have cluster access.
|
||||
"rbac_minimize_service_account_token_creation":
|
||||
Regions: ["*"]
|
||||
Resources:
|
||||
- "^system:"
|
||||
Description: >-
|
||||
CC: single-user-cluster. kube-controller-manager requires
|
||||
token creation for SA management. Only operator manages
|
||||
service accounts.
|
||||
kube-controller-manager requires token creation for SA
|
||||
management. Only operator manages service accounts.
|
||||
|
|
|
|||
|
|
@ -14,26 +14,24 @@ misconfigurations:
|
|||
paths:
|
||||
- "argocd/manifests/external-secrets/rbac.yaml"
|
||||
statement: >-
|
||||
CC: operator-purpose-bound-rbac. external-secrets-operator's entire
|
||||
function is to read and synthesize Secret objects; ClusterRole over
|
||||
secrets is its purpose. Both the controller and cert-controller are
|
||||
external-secrets-operator's entire function is to read and
|
||||
synthesize Secret objects; ClusterRole over secrets is its
|
||||
purpose. Both the controller and cert-controller are
|
||||
upstream-defined.
|
||||
- id: KSV-0041
|
||||
paths:
|
||||
- "argocd/manifests/kube-state-metrics/rbac.yaml"
|
||||
- "argocd/manifests/kube-state-metrics-ringtail/rbac.yaml"
|
||||
statement: >-
|
||||
CC: kube-state-metrics-metadata-only. KSM exposes only Secret
|
||||
metadata (name, namespace, type, labels), never the data field.
|
||||
list/watch on secrets is required for kube_secret_info /
|
||||
kube_secret_labels metrics.
|
||||
KSM exposes only Secret metadata (name, namespace, type, labels),
|
||||
never the data field. list/watch on secrets is required for
|
||||
kube_secret_info / kube_secret_labels metrics.
|
||||
- id: KSV-0114
|
||||
paths:
|
||||
- "argocd/manifests/external-secrets/rbac.yaml"
|
||||
statement: >-
|
||||
CC: operator-purpose-bound-rbac. cert-controller manages the
|
||||
external-secrets validating webhook configurations to inject its
|
||||
own rotating CA bundle. RBAC is scoped to two named webhooks
|
||||
(secretstore-validate, externalsecret-validate) via resourceNames;
|
||||
KSV-0114 doesn't see the resourceNames restriction so reports the
|
||||
full ClusterRole.
|
||||
cert-controller manages the external-secrets validating webhook
|
||||
configurations to inject its own rotating CA bundle. RBAC is
|
||||
scoped to two named webhooks (secretstore-validate,
|
||||
externalsecret-validate) via resourceNames; KSV-0114 doesn't see
|
||||
the resourceNames restriction so reports the full ClusterRole.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue