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

Adapt hardening for container environments #125

Open
mcgege opened this issue Mar 17, 2018 · 3 comments
Open

Adapt hardening for container environments #125

mcgege opened this issue Mar 17, 2018 · 3 comments

Comments

@mcgege
Copy link
Member

mcgege commented Mar 17, 2018

Some rules cannot be implemented in container setups (docker, lxc), e.g. kernel settings.

@timstoop
Copy link
Contributor

So I don't want to be thát guy, however, I think that hardening has a lot to do about managing the running processes. And a container should ideally only have a single process running. If you have an entire OS within a container, I say you're doing it wrong... There are of course a lot of things to do to make a container more secure if you happen to require a less than minimal OS in there, but should that really be something to focus on?

@artem-sidorenko
Copy link
Member

@timstoop the idea of single process short living container is completely behind docker, but if you take a look to the usage way of „old“ lxc containers: they are more like a usual traditional system, but with kernel shared virtualization style. For docker based environments, you still have a lot of use cases where generic distro images are used. Sometimes people might want to apply hardening in such cases.

Besides that, this idea is a very good way from the CI testing perspective: you can test parts of this module on different docker images (see kitchen-dokken usage in chef-os-hardening)

@mcgege
Copy link
Member Author

mcgege commented Oct 6, 2019

@artem-sidorenko Do you think we should continue on this? Right now the sysctl changes are omitted when applied in a container environment, but there are no specific hardening rules for containers ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants