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
func (c *tCertificateFileConfig) FileMode() os.FileMode {
if c.Mode == nil {
return 0640
return 0644
} else {
return *c.Mode
}

View file

@ -76,7 +76,8 @@ certificates:
# Path to the file to generate
- 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
owner: root
group: somegroup