I'd like to know if there is a way to specify permissions for files defined in a Secret. For instance, we defined a keyfile for mongodb and we want it to have permissions as specified in a manual - 600, is there a way to achieve that?
That is not currently possible. https://github.com/kubernetes/kubernetes/issues/4789 is open to improve control over how Secret data is mounted into a container.