Skip to content

Commit

Permalink
Fix the permission of Kubeconfig (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ranjandas authored Aug 14, 2024
1 parent 3bda077 commit 1859721
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/env.go
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ func (c ClientConfigOpts) copyK3SKubeConfig() error {
// Set 0600 permission as a best practice
filepath := filepath.Join(vm.Dir, "k3s.yaml")

err = os.Chmod(filepath, 0400)
err = os.Chmod(filepath, 0600)

return err
}
Expand Down

0 comments on commit 1859721

Please sign in to comment.