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

Set USER in docker #1293

Merged
merged 1 commit into from
Jan 9, 2025
Merged

Set USER in docker #1293

merged 1 commit into from
Jan 9, 2025

Conversation

rpoet-jh
Copy link
Contributor

@rpoet-jh rpoet-jh commented Jan 9, 2025

This PR updates the Dockerfile so the pass-ui docker container runs with the non-privileged nginx user.

Note that the base image was changed to nginxinc/nginx-unprivileged:1.27.3-alpine. This is what I found was the suggested way for running the nginx docker container with a non-privileged user. (https://hub.docker.com/_/nginx Running nginx as a non-root user). Also note the upgrade in nginx version to 1.27.3.

I have tested this locally in pass-docker and acceptance tests pass. I also tested the config where custom branding is mounted. L&F changed and tests passed.

So container runs with unprivileged nginx user
@rpoet-jh rpoet-jh self-assigned this Jan 9, 2025
Copy link

sonarqubecloud bot commented Jan 9, 2025

@rpoet-jh rpoet-jh requested a review from jabrah January 9, 2025 14:55
@rpoet-jh rpoet-jh changed the title Set USER in Dockerfile Set USER in docker Jan 9, 2025
Copy link
Contributor

@markpatton markpatton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

@rpoet-jh rpoet-jh merged commit bde20b0 into main Jan 9, 2025
5 checks passed
@rpoet-jh rpoet-jh deleted the rdp-1107-docker-user branch January 16, 2025 14:54
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.

2 participants