Skip to content

Commit 28382ab

Browse files
authored
fix(k8s): change default permission for the kubeconfig file (#2212)
1 parent c7a3d57 commit 28382ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/namespaces/k8s/v1/custom_kubeconfig_install.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ func k8sKubeconfigInstallRun(ctx context.Context, argsI interface{}) (i interfac
101101
}
102102

103103
// create the file
104-
f, err := os.OpenFile(kubeconfigPath, os.O_CREATE, 0644)
104+
f, err := os.OpenFile(kubeconfigPath, os.O_CREATE, 0600)
105105
if err != nil {
106106
return nil, err
107107
}

0 commit comments

Comments
 (0)