2FAuth
2FAuth copied to clipboard
Container can't run on OpenShift container platform
Version
5.2.0
Details & Steps to reproduce
Currently, the provided Docker image can't run on OpenShift (Red Hat Kubernetes) as it doesn't follow some security requirements, There's a great article here outlining everything needed from the container maintainers:
https://developers.redhat.com/blog/2020/10/26/adapting-docker-and-kubernetes-containers-to-run-on-red-hat-openshift-container-platform
Thanks!
Expectation
The container running without special set up
Error & Logs
/bin/sh: can't open '/usr/local/bin/entrypoint.sh': Permission denied
Execution environment
OpenShift Container Platform
Containerization
- [X] Docker
Additional information
No response
You may mod these lines, build your own image to bypass the Openshift security enforcement https://github.com/Bubka/2FAuth/blob/a707ad3278a622fc22617ce2162a9a38214b100c/Dockerfile#L107-L109
I want to avoid building my own image as I'll need to build a new one for every release. This is a security improvement that everyone would benefit from so I would suggest adding this to your main Dockerfile.