Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GKE custom organizational policies based on CIS Benchmarks #1012

Closed
wants to merge 2 commits into from

Conversation

athankso60
Copy link

@athankso60 athankso60 commented Apr 14, 2023

This repository is an attempt to provide sample organizational policies that could be enforced in order to comply with the GKE portion of CIS benchmarks.

@pull-request-size pull-request-size bot added the size/XL Denotes a PR that changes 500-999 lines. label Apr 14, 2023
@agold-rh
Copy link
Contributor

@athankso60 Please take a look at the trigger failure. If you peek into helpers/check_format.sh, you will see the formatting tests that are run on the bash file type. The formatting errors I see are all in tools/gke-custom-org-policies/run.sh.

@@ -0,0 +1,123 @@
#!/bin/sh
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the script contains arrays and [[ which are available in bash. The shebang line should be #!/bin/bash

echo ${files[0]}
#run constraint
constraint=`cat ${files[0]}`
echo "${constraint/"[ORGANIZATIONID]"/$1}" > constraint.yaml
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is another bash line that may not work in a bourne shell

Copy link
Contributor

@shakeebshams shakeebshams left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

some suggestions

@agold-rh
Copy link
Contributor

Closed as stale. Please re-open if I'm wrong.

@agold-rh agold-rh closed this May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/XL Denotes a PR that changes 500-999 lines.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants