Configuration - Changed default mode to 0644
This commit is contained in:
parent
54a808386e
commit
069b64672c
2 changed files with 3 additions and 2 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue