mirror of https://github.com/kubernetes/kops.git
CA Key File Permissions
- locking down the ca.key somewhat by forcing the file permissions to 0600
This commit is contained in:
parent
d4a5609f34
commit
c6c842112e
|
@ -67,6 +67,7 @@ func (b *KubeControllerManagerBuilder) Build(c *fi.ModelBuilderContext) error {
|
||||||
c.AddTask(&nodetasks.File{
|
c.AddTask(&nodetasks.File{
|
||||||
Path: filepath.Join(b.PathSrvKubernetes(), "ca.key"),
|
Path: filepath.Join(b.PathSrvKubernetes(), "ca.key"),
|
||||||
Contents: fi.NewStringResource(serialized),
|
Contents: fi.NewStringResource(serialized),
|
||||||
|
Mode: fi.String("600"),
|
||||||
Type: nodetasks.FileType_File,
|
Type: nodetasks.FileType_File,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue