This fix tries to address the issue raised in 36042 where secret and config are not configured with the specified file mode. This fix update the file mode so that it is not impacted with umask. Additional tests have been added. This fix fixes 36042. Signed-off-by: Yong Tang <yong.tang.github@outlook.com> Upstream-commit: 3305221eefd18ba7712a308c1fb05d4eeeac2cc6 Component: engine