CA Key File Permissions

- locking down the ca.key somewhat by forcing the file permissions to 0600
This commit is contained in:
Rohith 2018-05-23 21:03:48 +01:00
parent d4a5609f34
commit c6c842112e
1 changed files with 1 additions and 0 deletions

View File

@ -67,6 +67,7 @@ func (b *KubeControllerManagerBuilder) Build(c *fi.ModelBuilderContext) error {
c.AddTask(&nodetasks.File{
Path: filepath.Join(b.PathSrvKubernetes(), "ca.key"),
Contents: fi.NewStringResource(serialized),
Mode: fi.String("600"),
Type: nodetasks.FileType_File,
})
}