Added 12
- Support user-authored ValidatingAdmissionPolicy YAML in --custom-rules
- Add --verify to check each fixed control with a rescan
- Export remediation changes as a unified diff with --output patch
- Add a JSON schema for the fleet report
- Attribute each rendered Kustomize resource to the file it was read from
- Add a verify_remediation tool for local IaC to the MCP server
- Select the cases policy test runs with --run
- Write policy test results as a JUnit XML report
- Print a kubectl command for each evidence path on cluster scans
- Show current values for delete paths in --show-evidence
- Add a file watcher and a debounced, sequential scan scheduler
- Mark delete and review paths that do not resolve as unresolved under -E
Changed 4
- Reuse the released policy store across scans
- Compare local manifest scans by stable resource identity in watch mode
- Fail the scan with the cause when the scanned Helm chart cannot be loaded
- Clarify the digest-pinned image error and validate whitespace flags in cmd/patch
Fixed 8
- Match "<resource>/*" admission rules against the object itself in CEL
- Skip a validation whose variable does not compile, like any other compile error
- Remove backticks that replaced the value placeholder in flag help
- Keep large integers exact in the YAML 1.1 fallback
- Re-read an invalid file-scan manifest the way kubectl does (YAML 1.1)
- Stop scanning raw templates of Helm charts that fail to render
- Preserve empty evidence path resource IDs during anonymization
- Keep each resource's identity through transactional anonymization
Security 11
- Anonymize RBAC relatedObjects to prevent ID leaks
- Hide RBAC binding subject and role references
- Hide and encrypt the exception audit
- Hide skipped manifest paths
- Bound and validate Helm template file reads to prevent CWE-400 resource exhaustion
- Bound and validate Kustomization file reads to prevent CWE-400 resource exhaustion
- Bound and validate Terraform file reads to prevent DoS (CWE-400)
- Bound and validate artifact file reads in setUseArtifactsFrom to prevent CWE-400 resource exhaustion
- Bound and validate ignore file reads in LoadIgnoreFilePatterns to prevent CWE-400 resource exhaustion
- Bound file reads and reject non-regular inputs in scancontract and fleetconfig loaders
- Bound manifest and controls input reads in scan validation and incremental cache to prevent CWE-400
From Kubescape
Changelog
- ea6c91991b2439a05939db37fbb9e86092e3be4f Test/evidence rule shapes (#4710)
- 5f8ae6a3f7adb972ef64446bed050b9a49d74327 chore(examples): remove unused Prometheus v1 output mock (#4845)
- 17ff08d7d490ccc061789e8314b86f9c7170f911 ci: bump cloud.google.com/go/containeranalysis from 0.19.0 to 0.21.1 (#4682)
- 24664c110546e77294e1751e5e17ac96164a6cfa ci: bump docker/login-action from 4.7.0 to 4.8.0 (#4689)
- 160e750b2e4edf15ff2f917a0fa361bf347e42ba ci: bump github.com/Azure/azure-sdk-for-go/sdk/azcore (#4686)
- 60e95c7b0f2b329b27cc4f0ac379cbf145da4d7f ci: bump github.com/armosec/armoapi-go from 0.0.760 to 0.0.774 (#4684)
- 32c71a3ab4a0798b80ae12b9937ea25570432451 ci: bump github.com/prometheus/common from 0.70.1 to 0.73.1 (#4685)
- 52f6fc5fac01a5f7e7ffcdfe9bf9e29ec6699f03 ci: bump github.com/quay/claircore from 1.6.1 to 1.6.2 (#4683)
- c416c9450a4601d212c404adb934b9a1f83e6a0d ci: bump github/codeql-action/upload-sarif from 4.39.1 to 4.39.3 (#4687)
- c4ee61e8da1421c18e2674a13146fa575eb3bc40 ci: bump helm/kind-action from 1.15.1 to 1.15.2 (#4691)
- f6413d503263aef1dc6ccc87c38c22a3ffaa63bb ci: bump mikepenz/action-junit-report from 6.6.2 to 6.7.1 (#4688)
- 8ee7e204cf0b3f45755e9b2c672bfb80e60cf34f docs(ci): correct JUnit support for image scans (#4847)
- 771b8ab2afb2d84a77b55c2ba0cccc35fee275fe docs(fleet): add --format json to the examples (#4760)
- 0881245b81d0d93e0d2ccb3b3582c1d2bcc3852a docs(fleet): soften the report format stability note (#4700)
- efa52bbbb155caf51fde9c36b6de78248d105853 docs(opaprocessor): update evaluation flow (#4671)
- 2b04fbf1534aed6032299413045ef3c94b0cb5ce feat(core): reuse released policy store across scans (#4805)
- c8ae6a9ce0be655aaef8cbb86c99cfe740b9d6af feat(fix): add --verify to check each fixed control with a rescan (#4765)
- 7abce96b62c907a00c7c1d20e365e0c48139a2b1 feat(fix): export remediation changes as a unified diff with --output patch (#4753)
- fb757b93b4be68049ca1ced29d78e6fcad52056f feat(fleet): add json schema for the fleet report (#4624)
- 599024ebad5b5d108adc92faf78ab0faeda64bab feat(kustomize): attribute each rendered resource to the file Kustomize read it from (#4797)
- 682fd3daed85f0486c72c86d3a2bb6388b880f0d feat(mcpserver): add verify_remediation tool for local IaC (#4707)
- 1d4f71bc3259e8109314b3dde1b86a810a0f5549 feat(policy): select the cases policy test runs with --run (#4778)
- 3f3b7deea03b790d6d397468aef3d4e9158201a3 feat(policy): write policy test results as a JUnit XML report (#4814)
- 471cae950dbb139e8ac7166bd38481f1890bf493 feat(printer): mark delete and review paths that do not resolve as unresolved under -E (#4794)
- 803f6fa57c5a338cf2c4d747a61438e69bb979e6 feat(printer): print a kubectl command for each evidence path on clus… (#4754)
- 3421c7e30bb12bb0b4bf64b2cef0993956a4a1a5 feat(printer): show current values for delete paths in --show-evidence (#4623)
- ffbbaa117c3263285f40c49438b896bec1ad1fd7 feat(scan): support user-authored ValidatingAdmissionPolicy YAML in --custom-rules (#4838)
- 51cbf0eacd49d5fc6330395e28377dec93638eaf feat(watch): add a file watcher and a debounced, sequential scan scheduler (#4865)
- 96fc884296dd92844b7f8c50fab6c00649af5dfe feat(watch): compare local manifest scans by stable resource identity (#4709)
- c6061d6611e3817dbb08a1d83152404f1a54f02a fix(anonymizer): anonymize RBAC relatedObjects to prevent ID leaks (#4793)
- d23ff8dd76a3a229b2a7c8477658972e135e4773 fix(anonymizer): hide RBAC binding subject and role references (#4841)
- 5ea0b36555d4c725600f4fe14333fdce335bc0f3 fix(anonymizer): hide and encrypt the exception audit (#4733)
- bf12f2a45605522ced0a37967649e86999b1a3a7 fix(anonymizer): hide skipped manifest paths (#4734)
- 32c20b8937cac618ee0c924bfa7ad7716c5e3e51 fix(anonymizer): keep each resource's identity through transactional anonymization (#4771)
- 4d2702270e1953a9edde3e807c16d76b424ed95a fix(anonymizer): preserve empty evidence path resource IDs (#4788)
- 236059fc1ca314760aa78c68a318c47d505f4e54 fix(cautils): bound and validate Helm template file reads (CWE-400) (#4746)
- f0a8433dc748ad15d4615b4a929d70732783edaa fix(cautils): bound and validate Kustomization file reads (CWE-400) (#4742)
- 8e37dd8c627583a0d3edbb611d79e292039e380a fix(cautils): bound and validate Terraform file reads to prevent DoS (CWE-400) (#4705)
- 068c557e783fbc0539d23ab94af9b7437779ced7 fix(cautils): bound and validate artifact file reads in setUseArtifactsFrom (CWE-400) (#4740)
- 668ef4b8699581b287f9269c43b4acfa6e1c81e1 fix(cautils): bound and validate ignore file reads in LoadIgnoreFilePatterns (CWE-400) (#4768)
- bad361c20e8b3537a02bedd2370585d8d13d2331 fix(cautils): fail the scan with the cause when the scanned Helm chart cannot be loaded (#4792)
- 7d38c3cf5915c5502112626b65bdeff34f9664de fix(cautils): keep large integers exact in the YAML 1.1 fallback (#4807)
- 7180566322ccbc0c41f0cc888d9037822310d758 fix(cautils): re-read an invalid file-scan manifest the way kubectl does (YAML 1.1) (#4758)
- cac8639d6a670ad8a52dc734bffec35494157a4b fix(cautils): stop scanning raw templates of Helm charts that fail to render (#4770)
- a0c17d217cf6c98b92d881c6993365f04e575e99 fix(cel): match "/*" admission rules against the object itself (#4830)
- af2b3ef3c2a27e36ef8c8590898756d512e0f869 fix(cel): skip a validation whose variable does not compile, like any other compile error (#4643)
- b21a7e59e822381c5f4797e61aaf1a14a38acb07 fix(cli): remove backticks that replace the value placeholder in flag help (#4631)
- 0bffab627656fce1c5891f17af5b455e9870c390 fix(cmd/patch): clarify digest-pinned image error and validate whitespace flags (#4852)
- 8e4a38b2661f14ec40669b7eb5f5ffba6969ebbe fix(config): bound file reads and reject non-regular inputs in scancontract and fleetconfig loaders (#4628) (#4630)
- 28551669c8ec1843a5f1339b00c0a5af92d83aae fix(core): bound manifest and controls input reads in scan validation and incremental cache (CWE-400) (#4827)
- 5a963bb5e51899542cd994b1a73a1c95c43ca5e0 fix(core): prevent nil pointer dereference in Diff, Download, Patch, and List (#4853)
- f052c0bad6c855d272b0bbfbde1a9966eca35af5 fix(decrypt): bound and validate report file reads to prevent DoS (CWE-400) (#4620)
- b0bde3f2fe00d813ead357e3e737754f94fbc684 fix(diff): accept a scan report that has no results (#4730)
- 4f2119a54e35caa13090a26240e9fc44793e374e fix(diff): preserve bare Windows drive output paths (#4787)
- 97661e72a42ba1fa200db3067951991d7c311cae fix(diff): preserve true base and head statuses for incomparable findings (#4867)
- b8b833a702bd12638bc3c175044ea2f0cf828e21 fix(diff): validate output flag and prevent silent fallback to stdout (#4781)
- 6156367e74b20910f38baddc8e6bf4f86d2dbdd5 fix(exceptions): match merged exception scopes like the processor does (#4728)
- 87b3655897b9187dd6dc7524b1ceefa3b46a6276 fix(exposure): don't report externalIPs on headless or ExternalName Services (#4633)
- c763655c84efe210b9e0f3268ac34edc11088fd7 fix(exposure): exclude redirect-only HTTP backends (#4677)
- db3ddfcb14662a20d361b57c6daf1a572b7d01d6 fix(exposure): guard nil index with undetermined exposure in ServiceExposure and safe receiver methods (#4780)
- efb8d208fa8538e3b2ef67dc566aa285a18a4522 fix(fix): accept 'yes' in Kustomize overwrite confirmation prompt (#4650) (#4651)
- f92debc0e98f05a227c556cffbc993275ab651ef fix(fix): load the --verify controls config before any write and print every verdict (#4791)
- 361cefdd3149c0786dce8d8f9cb3222347ed4897 fix(fix): validate empty and whitespace output flags (#4795) (#4796)
- 698ae21cf77cb0f887fc339587a155f5c2b477b4 fix(fixhandler): bound and validate manifest file reads in GetFileString (CWE-400) (#4748)
- 038c81c65d0b29c16e3bc3fb0a844a05a6f4c1d9 fix(fixhandler): bound manifest reads and reject non-regular files in applyFileChanges and readManifest (CWE-400) (#4819)
- d1560c4ee0de33bfe99206192d406a55f97a3d8c fix(fixhandler): guard autofix against stale manifests (#4625)
- 8c361655b8c489a3b204cb0eb4f2ce674afe9595 fix(fixhandler): normalize a padded base path before storing it (#4822)
- 61e8e4c46cadcdec4ec5837ce8d356e2c21dad17 fix(getter): bound and validate policy file reads to prevent DoS (CWE-400) (#4669)
- 2d4ed8f51cc441520f383f3c49a86bed385b503a fix(gitlab): type image-scan identifiers by their advisory, not always as CVE (#4843)
- 1292904dbcbdbe130c145928d5a351133027179c fix(helm): resolve chart dependencies against values before rendering (#4703)
- ba790281450d5272e3196382e9328a1ab5bb188c fix(helmprovenance): resolve values paths in with blocks (#4582)
- 7d7cf669f76220e06e6d0ea149c97da11dc224ee fix(httphandler): don't let an unparsable KS_ENABLE_HOST_SCANNER disable host sensor auto-detection (#4848)
- 32d467c505db5e533e89cf3b16cdd34d2819a540 fix(image): bound and validate exception file reads to prevent DoS (CWE-400) (#4681)
- 14d01893bf5f36115018de34798f185aedcd5256 fix(image): validate output safety upfront before pulling or scanning images (#4706)
- 9a9e659c0d17439369f3d75308dbb2f2ff51cd30 fix(k8scveindex): bound local CVE feed file reads and reject non-regular files (CWE-400) (#4824)
- a558d4b56f11c5b356a456efa7756d980a132131 fix(kustomize): restrict scanned file loads to their root (#4804)
- 79d41221e7765020cc597dadefa4d79690d7b230 fix(locationresolver): bound YAML manifest decoding and validate regular files in NewPathLocationResolver (CWE-400) (#4820)
- 60706b4e3cc161301c3e1d449bcd290788b81bb9 fix(mapreconcile): never match an objectSelector on a CONNECT request (#4635)
- c802361455d19db6d339f93cb159cfcb7361faea fix(mapreconcile): skip resources the apiserver exempts from all policies (#4637)
- aaf3adb336213637ae6f648f8c9084874db6dc04 fix(mcpserver): anchor workspace reads to root (#4863)
- caaa43fb7eb276dfa9e4ad260d145623e805dd25 fix(mcpserver): confine report_path, base_path and diff reports to --workspace (#4826)
- 870c18de02893c2c4caf9e36834c0a0b6513fd85 fix(mcpserver): include Deployment revision exposure (#4763)
- 3752275ca5567bf2388f4874284c499ea61f5e45 fix(mcpserver): keep a JSON manifest JSON in apply_remediation (#4732)
- d385ab5017561813622f36cbc68884095661bc2a fix(mcpserver): keep envFrom ConfigMap exposure when an optional env ref may not resolve (#4660)
- 84ead130c9904a31e58fdcac7688a167114ca985 fix(mcpserver): match Services that select one StatefulSet Pod by its identity labels (#4662)
- 4e177f3ce160e9c8d2a00b0f574291f470fc5169 fix(mcpserver): reject a subresource passed inside resource (#4656)
- 88cd1c46025429d48d8a9d476c67cfd98b116cae fix(mcpserver): report finite bind and escalate grants in analyze_rbac_escalation_paths (#4718)
- 8525dc9168d673b1df3d580b33479bd661ba87f9 fix(networkpolicy): ignore fully excluded ipBlocks in ingress exposure (#4640)
- 57b8375d15ee5e79888671e37dba5e2969b42dd5 fix(networkpolicy): rate open-ended namespace selectors as any-namespace (#4829)
- 4accdec90688126fc3043b5ecedde42d258d04e9 fix(networkpolicy,exposure): read resources in ID order, not map order (#4658)
- 6aa6ad5a015493a4cc5a19c30c0114c47dbc4b9f fix(networkpolicy,vulnexposure): guard nil index with default-allow reachability and ingress exposure (#4663)
- 779c93b0a9d10eb0710596f6bf639883b6c9c584 fix(opa): restrict control Rego capabilities (#4803)
- f30072c676b13c0df4caf16898c2258a2b28d57b fix(opaprocessor): evaluate C-0302 against the whole cluster when streaming (#4812)
- 59583c3dd63e769051f6da50e4789885df7992a3 fix(opaprocessor): redact secrets in container args, probe headers and annotations (#4783)
- ee7cf887029d46ea9b35968ce54a9d3b9285d93d fix(opaprocessor): redact the related objects a rule attaches to its result (#4857)
- e9d55589825f4b254405e80ad51a7c705a9beff8 fix(opaprocessor): skip a control whose rule errors instead of failing the whole scan (#4832)
- 5d72ece23bfec1a49246020efe0856ee1234be81 fix(patch): use secure temporary file for intermediate scan report (#4645) (#4647)
- a46f7f08971730f151f61ec8ffb2684cb7451ccf fix(policy): propagate policy test output errors (#4646)
- ea2780f146fc2c2d9d494f72c69deda156b13f21 fix(policytest): bound and validate test case file reads (CWE-400) (#4769)
- cc03e4df247250e5b0d2717a0f86858fd872462c fix(predict): enforce Cobra argument bounds on kubescape predict root command (#4667)
- a61fd7b2403c943b4b75e9b3995cae9155085ece fix(printer): don't label file scans with the ambient kube context (#4821)
- 9a1e4cadeba544cbfc55324ce20d6e6347940e2d fix(printer): include exception audit and namespace summaries in YAML output (#4719)
- 8ab01ea5eb2d90595f95e3a5e21e0bdfffedce48 fix(printer): return an error when CSV or JSON has no posture report (#4862)
- a29f14d7e005e506f42da0d23fc8d2249a2dfc25 fix(printer): show redacted instead of the scan's XXXXXX placeholder in evidence (#4670)
- 9655e1cc369bcb133356cfd48fe3c927eea4a98b fix(prometheus): emit one resource series per RBAC subject in cluster scans (#4721)
- 34b3fafb277619d9c41d5aa5382da13a32afa6ae fix(prometheus): label resource metrics with their source file so copies stay distinct (#4678)
- dd8a4cfab2bbd272ec682063a15bb23be3d9a1c7 fix(pss): bound and validate workload manifest reads to prevent DoS (CWE-400) (#4618)
- 1d5246fb89d8c8eed85cf84274a47efa2f6d5d70 fix(rbacgraph): model bind combined with an update of an existing binding (#4716)
- 2d953cc4f783a3cab9c742b39b1f55f8bc0bf77d fix(rbacgraph): require binding paths for role rewrite grants (#4653)
- a6e3a408383dd9e3047c78b954d94356da467783 fix(reportcrypto): restore typed resource envelopes in DecryptReport (#4810)
- 684c11c38e84de6a9bc6c374259e05f2d5c53b9f fix(resultshandling): guard against nil dereference in score, result, and output writers (#4858)
- dc89cba7ea5142a3576e82e7c8d38330b725a1b2 fix(rules): bound and validate custom rule file reads to prevent DoS (CWE-400) (#4714)
- 190510cae8849d5175d9f9fa8d742916dccec7be fix(rules): count a create through resourceNames [""] in two RBAC rules (#4831)
- 126e3e33967e2c5a10152824a4b33d40512910fe fix(rules): don't count a create narrowed by resourceNames as a create (#4762)
- 0700a9bef6e9607360cf0484d61a96a63d1ab645 fix(rules): match RBAC subjects that carry neither namespace nor apiGroup (#4800)
- e94bd260df4fb63003c9901cbdcde081ed0405de fix(rules): match create and patch on a common resourceName and across roles (#4806)
- 10ee92cd5ab9b93f44bca810c724611d66a5cc54 fix(rules): report get on pods/exec in weak-namespace-pod-rce-v1 (#4638)
- f437ebab7f6fda78967a7fd5daf391558ac13451 fix(rules): scope impersonation grants made through RoleBindings (#4675)
- 0cca211a52106efdff8022b622c00aac1ccdfaf8 fix(rules): treat list and watch on secrets as reading them (#4666)
- 1400b119bcc5cd4ab2f797bae722fe23a3361982 fix(sarif): give each image run its own category when there are several (#4723)
- 2a6c86210f3faba8a74b5757f0b0e0093cc857a3 fix(scan): check selector-resolved image paths alongside literal paths (#4743)
- b2da4c3d033c6e18d5a4f09a6e66be4720624453 fix(scan): prevent nil pointer panic on --dry-run and reject fleet dry runs (#4648) (#4649)
- d9844fad6d9595af657b061aa755a24ac2c5001d fix(scan): prevent scan output from overwriting input manifests, baselines, and configuration files (#4606)
- 02d5091249569c32c6cb17883294a888f76dfb21 fix(scan): reject image-only SBOM formats upfront on posture scans (#4856)
- c98b48b50514b877544ef7a5549e3f40a80c0645 fix(scan): retain literal manifest paths and reattach ScanImageContext docstring (#4736)
- 6c8caba51a705cb29f57796d524cb7707225b66c fix(scan): stop a passing --dry-run from writing and gating an empty report (#4234)
- 31d276d73e6e486786e2544eecce14cf5a7fbf46 fix(score): bump opa-utils to v0.0.318 to keep scoring past an unscorable framework (#4750)
- 9e8bcda405798c8d15e460e708c97b97c02de5bf fix(vap): validate output flag and prevent silent fallback to stdout (#4664)
- 8408c81d718a1f1941e04907815482d7cce5e9ca fix(vapreconcile): do not over-credit binding coverage for namespaced resources lacking metadata.namespace (#4642)
- 2c9b46c41d1e51ad5c9952072bbf0277ea827326 fix(vapreconcile): honor binding resource rules in coverage (#4724)
- ebe2dfb3b7ebe9639cbdb50b6655c20b6bf61651 fix(vapreconcile): remove Cluster prefix fallback and catalog ecosystem cluster-scoped kinds (#4726)
- b56873bc396a565f564727e4ad8553b9f079d28f fix: align ControlInput example with snake_case keys (#4844)
- 6fd203804f8b8bf67b1fd2ea9ed1501b4a3d160b fix: collect ownerless pods with hash labels (#4752)
- 42df4e161a97a8a0f4e656d45bba3d60cffb08f7 fix: update vulnerable image dependencies and Go toolchain (#4840)
- 7a3910957cc2b4a0084b11b8be3b1c6cee0495a9 perf(opaprocessor): early cleanup of raw resource payloads during streaming evaluation (#4665)
- 5abe4e94274cb657edcf5fa1da62572c1754381a perf(scan): shallow clone remote git repositories by default (#4577)
- c58c51c4f25a91f42e94d3de78fd239350de1c00 refactor(cautils): expose GetMaxFileSize and share size limit parsing with fixhandler (#4849)
- e048b3f2abd04283a6622559a9e1dcd7fbf8f29d refactor: share max file size parsing with locationresolver (#4864)
- 7ab25bd2efaf727ddbfa5673af751897f6e87cf2 test(cautils): add unit tests for typed Terraform resource conversion (#4757)
- fbc416d6161f7fd3acbe29455ffd81ac271cd433 test(cautils): fill typed Terraform coverage gaps (#4786)
- e63b1f1e79a425e40827013dcd8384ebdb74a646 test(cautils): pin KUBESCAPE_MAX_FILE_SIZE in oversized file tests (#4779)
- be4e8b932eb68b538d26cce7da5478c79682a04c test(cautils): use valid JSON framework in SkipsOversized scaninfo test (#4809)
- f26bbde1aea23b172e7c0821242691fbe45a402d test(docs): cover OpenAPI documentation handlers (#4674)
- dd1915f01f144bd8cca9e1ca9d471a6c9695ab82 test(k8scveindex): guard embedded feed freshness (#4621)
- 0393682fa866d43cf1477afebbc3b1c8cffcf6c6 test(locationresolver): cover FIFO with a live writer (#4850)
- adf1388660896401d385df6f0a1c0dc73299e2cf test(networkpolicy): cover combined selector mismatch (#4699)
- ca2f274cdf692f185f0c2aa0bd613af817bba593 test(networkpolicy): cover safePort int32 bounds (#4697)
- a78adc7bef1e17d3aefa8d33449b4741d17da0c2 test(predict): refactor predict command argument validation into table-driven subtests (#4701)
- 49b850e10b6cba38768cf3748d63a9877798adcd test(prometheus): cover the fixable CVE gauge for image scans (#4679)
- a2b8a24f7070a8c3a5472b2b056e1e562852bbb0 test(reportcrypto): add unit tests for report key lifecycle, nil receiver safety, and environment decryption (#4626) (#4627)
- 2116645102d8d389b329b320da04a43b4841640f test(scancontract): cover minimum version equality (#4695)
- 529277cd7af6001efd9a56608d63c115d67cf4a1 test(scancontract): cover timeout boundary validation (#4692)
- ff2a50fca72911f8f8c8140a9192922a5f683716 test(telemetry): cover collector lifecycle and concurrency (#4622)
Released by GoReleaser.