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

Container security optimizations: arbitrary UID #514

Closed
2 tasks
jennydaman opened this issue May 30, 2023 · 0 comments · Fixed by #525
Closed
2 tasks

Container security optimizations: arbitrary UID #514

jennydaman opened this issue May 30, 2023 · 0 comments · Fixed by #525

Comments

@jennydaman
Copy link
Contributor

Container security best practice is to allow container to run as an arbitrary (underprvileged) user. On some OpenShift deployments, it is obligatory to run containers this way.

We need to figure out how to run CUBE as an underprivileged user, which will require us to change its Dockerfile. We can also consider using Red Hat UBI, see #492

ARG UID=1001

This will affect how manage.py collectstatic works, which should probably be part of the build step.

python manage.py collectstatic --noinput

  • support arbitrary container UID
  • do manage.py collectstatic during container build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant