Skip to content

Commit

Permalink
fix: make master cert file world-readable in containers (#1127)
Browse files Browse the repository at this point in the history
The master certificate file must be readable even for a non-root task,
of course.

(cherry picked from commit 665c7ba)
  • Loading branch information
dzhu authored and determined-dsw committed Aug 19, 2020
1 parent c4335d6 commit 34804f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion master/pkg/tasks/copy.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func masterCertArchive(cert *tls.Certificate) container.RunArchive {

var arch archive.Archive
if len(certBytes) != 0 {
arch = append(arch, archive.RootItem(certPath, certBytes, 0600, tar.TypeReg))
arch = append(arch, archive.RootItem(certPath, certBytes, 0644, tar.TypeReg))
}
return wrapArchive(arch, "/")
}
Expand Down

0 comments on commit 34804f8

Please sign in to comment.