Skip to content
Snippets Groups Projects
  1. Jun 19, 2022
  2. May 21, 2022
  3. Apr 05, 2022
  4. Mar 27, 2022
  5. Oct 27, 2021
  6. Aug 09, 2021
    • Matthieu MOREL's avatar
      Update Gorm (#950) · c91a9434
      Matthieu MOREL authored
      * Migrate from github.com/jinzhu/gorm to gorm.io/gorm
      
      * apply gofmt
      
      * github.com/aws/aws-sdk-go
      
      * fix
      c91a9434
  7. Jun 20, 2021
  8. May 09, 2021
    • Yoav Rotem's avatar
      Add detected kubernetes version (#869) · 887965d3
      Yoav Rotem authored
      * Add detected kubernetes version to controls
      
      * Refactore NewControls function
      
      Now new Control function is expecting detected version argument.
      
      * Refactore NewControls function
      
      Now new Control function is expecting detected version argument.
      
      * Refactore NewControls function
      
      New Control function is expecting detected version argument.
      
      * Add detected kube version
      
      * add detecetedKubeVersion
      
      * Add detecetedKubeVersion
      
      * Add detectedKubeVersion
      
      * Add detecetedKubeVersion
      
      * Fix missing version
      
      * Change version
      
      Change version from 3.10 to rh-0.7
      
      * fix version: "cis-1.5"
      
      * fix version: "cis-1.5"
      
      * fix version: "cis-1.5"
      
      * Fix version: "cis-1.5"
      
      * Fix version: "cis-1.5"
      
      * Fix version: "cis-1.6"
      
      * Fix version: "cis-1.6"
      
      * Fix version: "cis-1.6"
      
      * Fix version: "cis-1.6"
      
      * Fix version: "cis-1.6"
      887965d3
  9. 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
  10. Dec 24, 2020
    • Liz Rice's avatar
      Expected result pattern not always shows (#784) · 6452df7c
      Liz Rice authored
      
      * Add expectedResultPattern to invalid test
      
      when testing and try convert to numeric we didn't set expectedResultPattern value.
      
      * check for auditconfig before using it
      
      The current state is that when ever audit output is not what we search for we check for auditConfig output which is sometime empty and therefore create empty expected result as described in #694
      
      * Fix issue about expectedResultPattern
      
      expectedResultPattern not always shown and wasn't accurate enough 
      Issue #705
      
      * Add tests for ExpectedResult and fixes
      
      Add tests for ExpectedResult with the new output and the verify that the fix is working
      
      * Add missing flags
      
      In some cases not having audit or audit_config flag would fail the test.
      So added just a simple commands like echo something to solve this issue 
      Also add bitmask checks
      
      * 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
      
      * Change expected expectedResultPattern
      
      Now expectedResultPattern is more verbose
      
      * Update ops tests
      
      * Fix unit tests
      
      * Fix bitmask output syntax
      
      * Changes to be committed:
      	modified:   check/check.go
      	modified:   check/test.go
      	modified:   check/test_test.go
      fix unit testing and test.go to resolve conflicts.
      
      * Change found to flagFound
      
      * add missing }
      
      * change found to flag found
      
      Co-authored-by: default avataryoavrotems <yoavrotems97@gmail.com>
      6452df7c
  11. 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
  12. Nov 23, 2020
    • Brian Terry's avatar
      Aws asff (#770) · c3f94dd8
      Brian Terry authored
      
      * add aasf
      
      * add AASF format
      
      * credentials provider
      
      * add finding publisher
      
      * add finding publisher
      
      * add write AASF path
      
      * add testing
      
      * read config from file
      
      * update docker file
      
      * refactor
      
      * remove sample
      
      * add comments
      
      * Add comment in EKS config.yaml
      
      * Fix comment typo
      
      * Fix spelling of ASFF
      
      * Fix typo and other small code review suggestions
      
      * Limit length of Actual result field
      
      Avoids this message seen in testing:
        Message:Finding does not adhere to Amazon Finding Format. data.ProductFields['Actual result'] should NOT be longer than 1024 characters.
      
      * Add comment for ASFF schema
      
      * Add Security Hub documentation
      
      * go mod tidy
      
      * remove dupe lines in docs
      
      * support integration in any region
      
      * fix README link
      
      * fix README links
      
      Co-authored-by: default avatarLiz Rice <liz@lizrice.com>
      c3f94dd8
  13. Oct 29, 2020
  14. Oct 19, 2020
  15. 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
  16. Sep 17, 2020
    • yoavrotems's avatar
      Set actualResult (#703) · 041c4373
      yoavrotems authored
      actual Result is used later on to get actual value and the --include-test-output values but it never got set so its always empty.
      041c4373
  17. Sep 01, 2020
  18. Aug 13, 2020
    • Liz Rice's avatar
      chore: improve test clarity (#675) · 01c77b23
      Liz Rice authored
      * read-only-port defaults are correct
      
      * Tests that should catch good read-only-port
      
      * Rework checks & tests
      
      * Linting on issue template YAML
      
      * More explicit test for 4.2.4
      
      * Remove verbosity for ease of reading results
      
      * Use subtests
      
      * Tidy more test cases
      01c77b23
  19. Aug 12, 2020
  20. Aug 10, 2020
  21. Aug 03, 2020
  22. Jun 28, 2020
  23. Jun 22, 2020
  24. Mar 16, 2020
    • yoavrotems's avatar
      Add option to do bitmask (#565) · 60f2fb59
      yoavrotems authored
      * Add option to do bitwise and between two value in order to compare permissions
      
      * Update test.go
      
      Removed self debug note
      
      * Update test_test.go
      
      FIx typo
      
      * Update test.go
      
      * Update test.go
      
      Switched between max and requested value, because accidentally assigned them oppositely  and remove old function relate to octal base
      
      * Update test_test.go
      
      * Update test_test.go
      60f2fb59
  25. 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
  26. Mar 03, 2020
  27. Jan 03, 2020
  28. Dec 13, 2019
  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 13, 2019
  31. Nov 06, 2019
  32. Oct 14, 2019
    • Roberto Rojas's avatar
      Fixes issue #289: removed versions prior to 1.11 (#429) · a6ee61fd
      Roberto Rojas authored
      * removed version prior to 1.11
      
      * removed references to kubernetes versions prior to 1.11
      a6ee61fd
    • Roberto Rojas's avatar
      Issue #353: Merges JSON and Exec Params files (#426) · 3aa41db1
      Roberto Rojas authored
      
      * starts fixes #353
      
      * new approach to minize duplications
      
      * applied merged yaml files for v1.11 and v1.13
      
      * yaml files json/params merged
      
      * fixes to remove double quotes from numbers and booleans
      
      * fixed bug
      
      * fixed certificate check
      
      * removed -json files
      
      * changes based on PR review
      
      * Update check/check_test.go
      
      Yay more tests!
      
      Co-Authored-By: default avatarLiz Rice <liz@lizrice.com>
      
      * changes as PR review
      
      * fixed bug when scored check is missing tests
      
      * attempt to improve the code
      
      * fixed list breaks
      
      * removes handleError function
      
      * Update check/check.go
      
      Accepting suggested log level.
      
      Co-Authored-By: default avatarLiz Rice <liz@lizrice.com>
      3aa41db1
  33. Oct 12, 2019
  34. Jul 26, 2019
  35. Jul 17, 2019
    • Roberto Rojas's avatar
      Issue #363: Adds Unit Tests for Test Comparisons (#366) · dab5e92b
      Roberto Rojas authored
      * issue #363: starts unit tests for Test Comparison.
      
      * issue #363: Adds tests for "eq" operation
      
      * changes test result message
      
      * issue #363: Adds tests for "noteq" operation
      
      * issue #363: Adds tests for "gt" operation
      
      * issue #363: Adds tests for "lt" operation
      
      * issue #363: Adds tests for "gte" operation
      
      * issue #363: Adds tests for "lte" operation
      
      * issue #363: Adds tests for "has" operation
      
      * issue #363: Adds tests for "nothave" operation
      
      * issue #363: Adds tests for "regex" operation
      dab5e92b
  36. Jul 13, 2019
Loading