Skip to content
Snippets Groups Projects
  1. Jun 19, 2022
  2. Nov 08, 2021
  3. Oct 03, 2021
  4. Aug 03, 2021
    • Yoav Rotem's avatar
      New integration testing (#947) · 25ba9e2f
      Yoav Rotem authored
      * Fix Junit missing testsuites 
      
      Fix issue https://github.com/aquasecurity/kube-bench/issues/883 but also bug with overriding output when --outputfile is effective and only write the last controls
      
      * test new integration
      
      * Update build.yml
      
      * add wait for job to be ready
      
      * Update build.yml
      
      * Update build.yml
      
      * Update build.yml
      
      * test
      
      * Update job.yaml
      
      * Add wait
      
      * test for logs
      
      * Update job.yaml
      
      * Create Expected_output.data
      
      * Update build.yml
      
      * Update build.yml
      
      * remove empty line
      
      * Add new line at the end
      
      * add ---
      
      * Delete docker.go
      
      * Delete integration.go
      
      * Delete integration_test.go
      
      * Delete integration/testdata/cis-1.20 directory
      
      * Delete integration/testdata/cis-1.6 directory
      
      * Update integration testing
      
      * Remove integration tests
      
      Removed integration testing to github action
      
      * Update build.yml
      25ba9e2f
  5. Jun 16, 2021
    • Yoav Rotem's avatar
      New cis v1.20 (#912) · 2d033edc
      Yoav Rotem authored
      * Add files via upload
      
      * Add new cis support v1.20!
      
      * Fix issue with 1.1.9 and 1.1.10 tests
      
      Tests in some cases stat empty path which will return error.
      
      * Add tests for kubernetes 1.20 and retire 1.15 tests
      
      kubernetes 1.15 is not supported anymore and we shouldn't keep testing it.
      
      * Kubernetes 1.15 is not supported anymore
      
      * Tests for kubernetes 1.20
      
      * Fix yamllint errors
      
      Removed trailing spaces (trailing-spaces)
      
      * Add tests for v1.20
      
      * Remove extra spaces
      
      * Change cis test functions names
      2d033edc
  6. May 18, 2021
    • Yoav Rotem's avatar
      Fix test request timeout (#874) · 1f4b941c
      Yoav Rotem authored
      * Test 1.2.24 should be manual
      
      * Test 1.2.26 should be manual
      
      * Test 1.2.26 should be manual
      
      * Change test 1.2.26
      
      * Change test 1.2.26
      
      * Change test 1.2.26
      
      * Change test 1.2.26
      
      * Change test 1.2.26
      1f4b941c
  7. Mar 22, 2021
    • Yoav Rotem's avatar
      Add logging (#822) · 0cb30276
      Yoav Rotem authored
      
      * Add more logging
      
      The old logging could was lacking and in some cases misleading
      
      * Add Logging
      
      Add more logs and change some old messages, the important part is make each test log more readable by adding ------ test id ------ section in logs
      
      * Fix typos
      
      * more info
      
      add more info in comment about the function and it use cases
      
      Co-authored-by: default avatarLiz Rice <liz@lizrice.com>
      
      * Use switch case
      
      Change the logic from if to switch and tidy up the code
      0cb30276
  8. Dec 21, 2020
    • Liz Rice's avatar
      Refactor group skip (#783) · e4d6ed2e
      Liz Rice authored
      
      * Add example IAM policy
      
      * Pass RotateKubeletServerCertificate related checks if it's not found (#767)
      
      * Allow for environment variables to be checked in tests (#755)
      
      * Initial commit for checking environment variables for etcd
      
      * Revert config changes
      
      * Remove redundant struct data
      
      * Fix issues with failing tests
      
      * Initial changes based on code review
      
      * Add option to disable envTesting + Update docs
      
      * Initial tests
      
      * Finished testing
      
      * Fix broken tests
      
      * Add a total summary and always show all tests. (#759)
      
      Whether the total summary is shown can be specified with an option.
      
      Fixes #528
      
      Signed-off-by: default avatarChristian Zunker <christian.zunker@codecentric.cloud>
      
      * Update Readme.md file with link to Contribution guide (#754)
      
      * Update License with the year and the owner name
      
      Please add this to make your license agreement strong
      
      * Updated Readme.md file with license and proper documentation links
      
      I have added a proper license agreement to the documentation. Also shortened the links to the issues so that it does not break in any on the forks.
      
      * Update LICENSE
      
      * Update README.md
      
      * Update README.md
      
      * Remove erroneous license info
      
      Co-authored-by: default avatarLiz Rice <liz@lizrice.com>
      
      * Support auto-detect platform when running on EKS or GKE (#683)
      
      * Support auto-detect platform when running on EKS or GKE
      
      * Change to get platform name from `kubectl version`
      
      * fix regexp and add test
      
      * Update Server Version match for EKS
      
      * try to get version info from api sever at first
      
      * Refactor group skip
      
      changed group 'skip' from being a bool to be 'type' string as done in check
      
      * Change skip: true -> type: skip
      
      Co-authored-by: default avatarHuang Huang <mozillazg101@gmail.com>
      Co-authored-by: default avatarWicked <jason_attwood@hotmail.co.uk>
      Co-authored-by: default avatarChristian Zunker <827818+czunker@users.noreply.github.com>
      Co-authored-by: default avatarKaiwalya Koparkar <kaiwalyakoparkar@gmail.com>
      Co-authored-by: default avatarYoav Rotem <yoavrotems97@gmail.com>
      e4d6ed2e
  9. Nov 02, 2020
  10. Oct 09, 2020
    • Oleksandr Slynko's avatar
      Fix go vet issues (#720) · 58bea9c8
      Oleksandr Slynko authored
      * Fix go vet issues
      
      * to omit the property from JSON parsing one should use "-". "omit" in
      that case would use omit tag
      * The error was not reachable in the tests, so I moved it to the place
      where it make sense for me (but maybe it was just unnecessary)
      
      * Run all go vet linters in CI
      
      * This return breaks the test
      58bea9c8
    • Huang Huang's avatar
      Fix typo of 1.1.19 in cis-1.6 (#728) · ff0ce661
      Huang Huang authored
      ff0ce661
  11. Oct 07, 2020
    • Tom Kelley's avatar
    • Tom Kelley's avatar
      Improve Proxykubeconfig tests (#708) · a7aa21f3
      Tom Kelley authored
      
      * Changes for 1.5
      
      * Update cis-1.3 through 1.6 to also work with configmaps.
      
      * Switch on if proxykubeconfig is set, instead of setting a variable in the script.
      
      * permissons -> proxykubeconfig for 2.2.5/4.1.3 to keep these tests locked with 2.2.6/4.1.4
      
      * Updating test output? Maybe?
      
      * Copy integration test output files into docker image?
      
      * Make entrypoint move integration folder to host, print 1.5 node info.
      
      * Change the order of tests in travis to load files before testing.
      
      * Return tests to place
      
      Those tests comes first since there is more likely to fail with them and then the test will fail "faster" which will save time
      
      * Remove copy integration 
      
      When running in a container we don't need to test, only when build and running in Travis to make sure everything is working fine.
      
      * Add $ mark before proxykubeconfig
      
      If not having $ before the parameter then it won't get substituted
      
      * Add $ mark before proxykubeconfig
      
      If not having $ before the parameter then it won't get substituted
      
      * Remove test relate lines
      
      We don't test while running, only integration testing when building and unit testing
      
      * Add spaces
      
      * Change 4.1.3 4.1.4
      
      Those tests now should pass.
      
      * Change tests 4.1.3 and 4.1.4
      
      Those tests now should PASS
      
      * Update job.data with more accurate counts. Thanks to @yoavrotems for getting the project this far!
      
      * Thanks for linting, yamllint!
      
      Co-authored-by: default avatarYoav Rotem <yoavrotems97@gmail.com>
      a7aa21f3
  12. Oct 03, 2020
  13. Sep 17, 2020
    • yoavrotems's avatar
      Add cis 1.6 (#678) · 7280438e
      yoavrotems authored
      * Add new cis version yamls
      
      Add new cis version yamls
      
      * Add new cis version yamls
      
      * Add cis-1.6 to versions table
      
      * support version mapping cis-1.6
      
      * support version mapping cis-1.6
      
      * Update controlplane.yaml
      
      * Update etcd.yaml
      
      * Update node.yaml
      
      * Update policies.yaml
      
      * Create job.data
      
      * Create job-node.data
      
      * Create job-master.data
      
      * Create add-tls-kind.yaml
      
      * Change node version to 1.15.0
      
      * Add tests for cis-1.6
      
      * Delete node_only.yaml
      
      * Change tests 1.1.19-1.1.21
      
      Change 1.1.19-1.1.21 because failing tests
      
      * Update job.data
      
      * Update job-master.data
      
      * Update job-master.data
      
      * Update job.data
      
      * fix 1.2.35 remediation 
      
      tabs instead of spaces
      
      * Update job-master.data
      
      * Remove extra space
      
      * Update job.data
      
      * Create node_only.yaml
      
      * Add tests for cis-1.6
      
      Add tests for cis-1.6 and change some from 1,5 to 1.6
      
      * Fix typo
      
      * Add mapping for cis-1.6
      
      * Remove extra space in 1.2.35 remediation
      
      * Update job.data
      
      * Update job-master.data
      
      * Fix type 1.2.35
      
      * Remove trailing spaces
      
      * Remove trailing spaces
      
      * Remove trailing spaces
      
      * Remove trailing spaces
      
      * Add version 1.19 kubernetes support
      
      * Add version 1.19 kubernetes support
      
      * Add version 1.19 kubernetes support
      7280438e
  14. Sep 01, 2020
  15. Aug 30, 2020
  16. Aug 12, 2020
  17. Aug 09, 2020
  18. Aug 04, 2020
  19. Jul 21, 2020
  20. Jun 24, 2020
  21. May 20, 2020
  22. Mar 05, 2020
    • Liz Rice's avatar
      Add warn reason (#547) · 06303f6a
      Liz Rice authored
      
      * Update check.go
      
      Added new warn_reason value which gives a brief explanation about why the not scored tests failed
      
      * Update common.go
      
      Changed when a not scored test fails because it has a wrong syntax audit command or just running something that can't be run the print the failure. but if the test just fails because it doesn't line up with the cis hardening recommendations then print the remediation text.
      
      * Update check/check.go
      
      fix typo
      
      Co-Authored-By: default avatarLiz Rice <liz@lizrice.com>
      
      * Update check.go
      
      * Update common.go
      
      * Update check.go
      
      added back os.Exit(1) to  exitWithError
      
      * Update job-master.data
      
      Change some tests output to fit warn reason. (No change to the summary)
      
      * Update job-node.data
      
      Changed some tests output to fit warn reason. (No change to the summary)
      
      * Update job.data
      
      Change some tests output to fit warn reason. (No change to the summary)
      
      * Update common.go
      
      Keep to old way to print manual test output
      
      Co-authored-by: default avatarLiz Rice <liz@lizrice.com>
      Co-authored-by: default avatarRoberto Rojas <robertojrojas@gmail.com>
      06303f6a
  23. Feb 18, 2020
  24. Feb 12, 2020
  25. Jan 21, 2020
  26. Jan 09, 2020
  27. Jan 07, 2020
  28. Jan 06, 2020
    • James Ward's avatar
      Support Linting YAML as part of Travis CI build (#554) · 5f34058d
      James Ward authored
      * add yamllint command to travis CI
      
      installs and runs a linter across the YAML in the
      project to ensure consistency in the written YAML.
      
      this uses yamllint and the default yamllint config with
      "truthy" and "line-length" disabled.
      
      * run dos2unix on CRLF files
      
      * YAMLLINT: remove trailing spaces
      
      * YAMLLint: add YAML document start
      
      * YAMLLint: too many spaces around bracket
      
      * YAMLLint: fix indentation
      
      * YAMLLint: remove duplicate key
      
      * YAMLLint: newline at end of file
      
      * YAMLLint: Too few spaces after comma
      
      * YAMLLint: too many spaces after colon
      5f34058d
  29. 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
  30. Nov 27, 2019
    • Roberto Rojas's avatar
      Issue #421: Merges PR #422 with master (#523) · 9c6d4de8
      Roberto Rojas authored
      * Add kubeconfig location of kube-proxy for AKS
      
      * Add job for AKS node
      
      * Automate ca file permission check
      
      * removed job-aks.yaml as other PRs added needed features
      
      * fixed integration test due to merge changes
      9c6d4de8
  31. Nov 16, 2019
Loading