From 425bd03d3a93510d03a8ac511ea2ee736c21df59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9my=20L=C3=A9one?= Date: Fri, 25 Mar 2022 11:09:30 +0100 Subject: [PATCH] fix(k8s): change default permission for the kubeconfig file --- internal/namespaces/k8s/v1/custom_kubeconfig_install.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/namespaces/k8s/v1/custom_kubeconfig_install.go b/internal/namespaces/k8s/v1/custom_kubeconfig_install.go index a1e490efa0..51c1eebda7 100644 --- a/internal/namespaces/k8s/v1/custom_kubeconfig_install.go +++ b/internal/namespaces/k8s/v1/custom_kubeconfig_install.go @@ -101,7 +101,7 @@ func k8sKubeconfigInstallRun(ctx context.Context, argsI interface{}) (i interfac } // create the file - f, err := os.OpenFile(kubeconfigPath, os.O_CREATE, 0644) + f, err := os.OpenFile(kubeconfigPath, os.O_CREATE, 0600) if err != nil { return nil, err }