Docker on OpenShift question

Hi everyone, Quick question for you docker and OCP pros. So, I’m trying to run a node application on OCP in a docker container, but one of the files contains a secret value. My goal is to chmod 0600 and chown node:node the file and when I hit the CMD [ “node app.js” ] it’ll run as USER node, but after that no one will be able to become user node.

Right now in my current setup a person can use the OCP terminal on the UI and it auto logs them into the container as the node user, which is not ideal.

Thoughts??? Thanks!!

submitted by /u/JimmerForDinner
[link] [comments]
Source: Reddit