mirror of
https://github.com/axllent/mailpit.git
synced 2026-04-26 00:35:51 +03:00
[GH-ISSUE #84] Request: Run as unprivileged user by default (docker image) #55
Labels
No labels
awaiting feedback
bug
docker
documentation
enhancement
github_actions
invalid
pull-request
question
stale
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/mailpit#55
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @LeoniePhiline on GitHub (Apr 3, 2023).
Original GitHub issue: https://github.com/axllent/mailpit/issues/84
Hi!
First of all, thank you for creating and sharing mailpit! ❤️
To increase runtime security, it would be great if the default dockerfile could run as an unprivileged user, instead of
root.See also good old MailHog's
Dockerfile: https://github.com/mailhog/MailHog/blob/master/DockerfileWhat do you think?
@axllent commented on GitHub (Apr 3, 2023):
Thanks for using Mailpit! I must admit that I considered this initially when I created the Docker image, but intentionally decided not to actually implement it. I found the disadvantages heavily outweighed the benefits of using a non-root alternative:
So my point is, I believe that switching to any non-root user by default is not a good option at all, and would not address any security concern I could imagine. As I mentioned in the first point, there is nothing stopping you from running it as any user ID or group you like, just by adding Docker arguments.
I hope my logic/reasoning makes sense to you?