We are building docker images in CodeBuild. This works fine but we have a "HIGH" security hub finding because we had to enable priviledged mode:
CodeBuild.5 CodeBuild project environments should not have privileged mode enabled
I'm currently looking for a way to build docker images without using priviledged mode. I saw this URL from AWS where they are also using priviledged mode.
How can I build docker images without using this mode so we are compliant with the security hub rules?
You can do it throughout aws cli.
Here is AWS Documentation
There is no way (for now) to do it throughout AWS console. But you can see your configuration here on console:
AWS Config > Resources > my-project-name > View Configuration Item (JSON)
and you can check the result afterwards.