-
Notifications
You must be signed in to change notification settings - Fork 706
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
EKS: Provide assessments and rules for CIS section 3 #7977
Conversation
047bae6
to
2a33680
Compare
/retest |
1 similar comment
/retest |
do | ||
mkdir -p $(dirname $path) | ||
echo $kubeconfig > $path | ||
cat $path |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
was cat $path
for testing haha
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lol oops! let me remove it!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/retest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. I only have one question about DRYing things up, but that can certainly be addressed in a follow separate review.
{{%- set kubeletconf_path = "/etc/kubernetes/kubelet/kubelet-config.json" %}} | ||
{{%- else %}} | ||
{{%- set kubeletconf_path = "/etc/kubernetes/kubelet.conf" %}} | ||
{{%- endif %}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if there is a way to reduce this duplication across rules.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We might need an enhancement in ComplianceAsCode to be able to set product-wide variables. that would be useful.
Most of these already had automation in OpenShift, so we're just re-using it. Some required a new rule (e.g. `kubelet_read_only_port_secured`). While for other controls, we re-introduced a rule that had been previously deleted (e.g. `kubelet_disable_hostname_override`). Signed-off-by: Juan Antonio Osorio Robles <jaosorior@redhat.com>
Signed-off-by: Juan Antonio Osorio Robles <jaosorior@redhat.com>
/retest |
2 similar comments
/retest |
/retest |
@JAORMX: The following test failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
Most of these already had automation in OpenShift, so we're just
re-using it.
Some required a new rule (e.g.
kubelet_read_only_port_secured
).While for other controls, we re-introduced a rule that had been
previously deleted (e.g.
kubelet_disable_hostname_override
).Signed-off-by: Juan Antonio Osorio Robles jaosorior@redhat.com