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

use cap_drop/cap_add in docker instead of privileged=true #6237

Open
wants to merge 1 commit into
base: staging
Choose a base branch
from

Conversation

ra1nb0w
Copy link

@ra1nb0w ra1nb0w commented Jan 6, 2025

Contribution Guidelines

What does this PR include?

Short Description

privileged=true should be always avoided as stated by Owasp [1] and
CIS [2]. Instead, use cap_drop/cap_add as fine-grained capability
mechanism.

[1] https://cheatsheetseries.owasp.org/cheatsheets/Docker_Security_Cheat_Sheet.html
[2] https://www.cisecurity.org/benchmark/docker

Affected Containers

  • netfilter-mailcow
  • ipv6nat-mailcow

Did you run tests?

What did you tested?

tested with a new installation and a dummy domain

What were the final results? (Awaited, got)

avoiding the usage of privileged=true

privileged=true should be always avoided as stated by Owasp [1] and
CIS [2]. Instead, use cap_drop/cap_add as fine-grained capability
mechanism.

[1] https://cheatsheetseries.owasp.org/cheatsheets/Docker_Security_Cheat_Sheet.html
[2] https://www.cisecurity.org/benchmark/docker
@ra1nb0w ra1nb0w force-pushed the feat/docker-compose_cap_drop branch from cd02605 to 2cbc4af Compare January 6, 2025 15:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant