EKS instructions to use a ConfigMap rather than bake in config #791
mkandelaars
started this conversation in
Development
Replies: 2 comments 1 reply
-
Hi @mkandelaars Did you test your configmap solution in EKS? Is it working fine? |
Beta Was this translation helpful? Give feedback.
1 reply
-
Merged in #794 - we now have a job for running on EKS and submitting the report to Security Hub. Thank you for this @mkandelaars! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The new integration for kube-bench with AWS Security Hub and EKS is great, and I have some suggestions for improvement on the documentation. Specifically around the recommendations here to edit the
cfg/eks-1.0/config.yaml
and bake in AWS account information directly to the container image.This is fine on a single cluster environment, but doesn't scale well for multiple clusters using a shared container repository.
An alternative would be to store this cluster specific content in a ConfigMap (example below), and mount this as a Volume in the Job spec to insert the configuration. This allows the same container image to be used across multiple clusters. I've validated this and it works well.
No core code changes, but perhaps it would be good to create a separate
job-eks-asff.yaml
file as well which creates the ConfigMap and has the volumeMounts added in for ease of use.I'm happy to do some rewording of the documentation and make a PR, but wanted to raise it as an issue first to see if others agree. :)
Suggested new
job-eks-asff.yaml
file...Beta Was this translation helpful? Give feedback.
All reactions