Skip to content
Snippets Groups Projects
  1. Dec 12, 2019
  2. Dec 05, 2019
    • Roberto Rojas's avatar
      Fixes Issue #494 - add tests for CIS 1.5 (#530) · af976e6f
      Roberto Rojas authored
      
      * Initial commit.
      
      * Add master and node config.
      
      * Add section 5 of CIS 1.5.1.
      
      * Split sections into section files
      
      * Fix YAML issues.
      
      * adds target translation
      
      * adds target translation
      
      * adds cis-1.5 mapping
      
      * fixed tests
      
      * fixes are per PR
      
      * fixed intergration test
      
      * integration kind test file to appropriate ks8 version
      
      * fixed etcd text
      
      * fixed README
      
      * fixed text
      
      * etcd: fixed grep path
      
      * etcd: fixes
      
      * fixed error message bug
      
      * Update README.md
      
      Co-Authored-By: default avatarLiz Rice <liz@lizrice.com>
      
      * Update README.md
      
      Co-Authored-By: default avatarLiz Rice <liz@lizrice.com>
      
      * fixes as per PR review
  3. Dec 02, 2019
    • Liz Rice's avatar
      Add run subcommand (#529) · f2caa1f0
      Liz Rice authored
      * test: fix TestGetConfigFilePath
      
      This test wasn't correctly creating the test file due to the wrong directory permissions on the temp file. This wasn't detected due to a lack of error checking.
      
      Also, the code was only checking for file not exist rather than lack of permission to read file (or any other error).
      
      The combination of these two things means the test wasn't checking what it thought it was checking, and passed more by luck than judgment.
      
      * add getYamlFilesFromDir
      
      * add getTestYamlFiles and test
      
      * docs: Update master / node help text
      
      * return path + filename from getYamlFilesFromDir
      
      * subcommand run to run specific section files
      f2caa1f0
  4. Nov 13, 2019
  5. Nov 12, 2019
  6. Nov 06, 2019
  7. Nov 05, 2019
  8. Nov 01, 2019
  9. Oct 24, 2019
  10. Oct 14, 2019
  11. Oct 12, 2019
  12. Aug 27, 2019
    • Abubakr-Sadik Nii Nai Davis's avatar
      Read kubernetes version from environment (#390) · 92df9cb3
      Abubakr-Sadik Nii Nai Davis authored
      * Read kubernetes version from environment
      
      Set kubernetes version to the value of the environment variable `KUBE_BENCH_VERSION` if it is defined and the flag `--version` is not specified on the kube-bench command line.
      
      The command line flag `--version` takes precedence of the environment variable `KUBE_BENCH_VERSION` if both are defined.
      
      * Add info about KUBE_BENCH_VERSION to README
      92df9cb3
  13. Aug 22, 2019
  14. Jul 13, 2019
  15. Jul 10, 2019
  16. Jul 08, 2019
  17. Jul 01, 2019
  18. Jun 12, 2019
  19. May 29, 2019
  20. May 17, 2019
  21. May 15, 2019
  22. May 03, 2019
  23. May 01, 2019
  24. Apr 11, 2019
  25. Mar 12, 2019
  26. Feb 27, 2019
    • Abubakr-Sadik Nii Nai Davis's avatar
      Add kubeconfig variable substitution for kubelet and proxy. · a88b0703
      Abubakr-Sadik Nii Nai Davis authored
      There are checks for the kubeconfig for both kubelet and proxy which
      the current kube-bench implementation does not check for properly.
      kube-bench checks the wrong files.
      
      This PR adds support for variable substitution for all the config file
      types are that should be checked in the CIS benchmarks.
      
      This PR also fixes a buggy in CIS 1.3.0 check 2.2.9, which checks for
      ownership of the kubelet config file /var/lib/kubelet/config.yaml but
      recommends changing ownership of kubelet kubeconfig file
      /etc/kubernetes/kubelet.conf as remediation.
      a88b0703
  27. Feb 19, 2019
  28. Feb 15, 2019
  29. Jan 29, 2019
    • Yoav Hizkiahou's avatar
      Support new check type - skip: · 49f745af
      Yoav Hizkiahou authored
      If a check is marked with type "skip", it will be marked as Info.
      
      Support scored property:
      If a check is not scored and is not marked with type skip, it will be marked as Warn.
      49f745af
  30. Jan 24, 2019
  31. Oct 23, 2018
    • Abubakr-Sadik Nii Nai Davis's avatar
      Add getServiceFiles function. · ed218394
      Abubakr-Sadik Nii Nai Davis authored
      The CIS benchmark check for node checks 2 config files for kubelet:
        - kubelet config file (kubelet.conf)
        - kubelet systemd unitfile (10-kubeadm.conf)
      
      The getServiceFiles function gets candidates for kubelet systemd
      unitfile and returns valid untifiles.
      ed218394
Loading