Skip to content

Commit

Permalink
fix: kubeconfig permission
Browse files Browse the repository at this point in the history
Set kubeconfig permission to `-rw-------`

Signed-off-by: Serge Logvinov <[email protected]>
Signed-off-by: Andrey Smirnov <[email protected]>
  • Loading branch information
sergelogvinov authored and smira committed Sep 23, 2022
1 parent fc48849 commit c90e202
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/talosctl/cmd/talos/kubeconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ Otherwise kubeconfig will be written to PWD or [local-path] if specified.`,
return extractAndMerge(data, localPath)
}

return os.WriteFile(localPath, data, 0o640)
return os.WriteFile(localPath, data, 0o600)
})
},
}
Expand Down

0 comments on commit c90e202

Please sign in to comment.