Configuration - Changed default mode to 0644

This commit is contained in:
Emmanuel BENOîT 2021-12-05 18:21:30 +01:00
parent 54a808386e
commit 069b64672c
2 changed files with 3 additions and 2 deletions

View file

@ -261,7 +261,7 @@ func (c *tCertFileUpdateConfig) Validate(handlers *tHandlers) error {
// Return the mode of a certificate file // Return the mode of a certificate file
func (c *tCertificateFileConfig) FileMode() os.FileMode { func (c *tCertificateFileConfig) FileMode() os.FileMode {
if c.Mode == nil { if c.Mode == nil {
return 0640 return 0644
} else { } else {
return *c.Mode return *c.Mode
} }

View file

@ -76,7 +76,8 @@ certificates:
# Path to the file to generate # Path to the file to generate
- path: /etc/ssl/private/cert1.pem - path: /etc/ssl/private/cert1.pem
# Access mode, owner and group for the file. May be omitted. # Access mode, owner and group for the file. May be omitted. The mode
# will default to 0644 if unspecified.
mode: 0640 mode: 0640
owner: root owner: root
group: somegroup group: somegroup