aws / containers-roadmap

This is the public roadmap for AWS container services (ECS, ECR, Fargate, and EKS).
https://aws.amazon.com/about-aws/whats-new/containers/
Other
5.19k stars 315 forks source link

[service] [request]: Custom seccomp profile for ECS containers #1782

Open nick-kang opened 2 years ago

nick-kang commented 2 years ago

Community Note

Tell us about your request Ability to add custom seccomp profile to ECS containers

Which service(s) is this request for? ECS

Tell us about the problem you're trying to solve. What are you trying to do, and why is it hard? We'd like to securely run headless chromium on ECS. We'd like to run the container giving the least privileges possible and that involves passing in a custom seccomp.json file (https://github.com/docker/for-linux/issues/496#issuecomment-441149510).

ECS dockerSecurityOptions doesn't not support custom seccomp files.

Are you currently working around this issue? We are using EKS as a workaround and this is blocking our migration to ECS.

Additional context Anything else we should know?

Attachments If you think you might have additional information that you'd like to include via an attachment, please do - we'll take a look. (Remember to remove any personally-identifiable information.)

forty commented 1 year ago

I have just opened a support case to AWS support on this topic.

Our use case is to be able to communicate with AWS Nitro Enclave through VSOCK, which is by default not possible with recent docker releases, as the default seccomp filter does not allow AF_VSOCK.

Allowing custom profile would avoid having to ressort to using privileged=true (the only workaround currently) which is not great obviously.

douddle commented 1 year ago

I have a similar issue. I need to use VSOCK. I have found this previous issue pretty similar but pending since 5 years! https://github.com/aws/containers-roadmap/issues/356