2FAuth icon indicating copy to clipboard operation
2FAuth copied to clipboard

Container can't run on OpenShift container platform

Open DataOps7 opened this issue 1 year ago • 2 comments

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

DataOps7 avatar Sep 11 '24 09:09 DataOps7

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

Eroyi avatar Sep 13 '24 10:09 Eroyi

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.

DataOps7 avatar Sep 16 '24 11:09 DataOps7