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

Enhance Security: Run Container with Non-Root User Fixed #4091 #4092

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

Conversation

Sarvesh2783
Copy link

This pull request improves the security of the Docker container by introducing a non-root user. It uses the default root user and hence the container is based on the principle of least privilege. Therefore, it reduces the probability of privilege escalation and ensures that the container is safer to operate.

Differences:
1.Added a non-root user (appuser) and group (appgroup).
2.Updated file permissions to give ownership to the non-root user.
3.Configured to run as non-root user inside the container.
Benefits:
1.It minimizes the plausible impact of security flaws. Best Practices for Container Security.

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