Skip to content

Commit de5de54

Browse files
committed
When creating ~/.kube/config, harden permissions.
Make it owner-readable only Signed-off-by: Eric Promislow <epromislow@suse.com>
1 parent 6e9ff7b commit de5de54

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/config/kubeconfig.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ function path() {
3636
kind: 'Config',
3737
preferences: {},
3838
users: [],
39-
}, undefined, 2));
39+
}, undefined, 2), { mode: 0o600 });
4040
}
4141

4242
return cfg;

0 commit comments

Comments
 (0)