mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
'get-certs' permissions too open (#745)
Fixes https://github.com/StackExchange/dnscontrol/issues/728
This commit is contained in:
@ -34,8 +34,7 @@ func (d directoryStorage) accountKeyFile(acmeHost string) string {
|
||||
return filepath.Join(d.accountDirectory(acmeHost), "account.key")
|
||||
}
|
||||
|
||||
// TODO: probably lock these down more
|
||||
const perms os.FileMode = 0644
|
||||
const perms os.FileMode = 0600
|
||||
const dirPerms os.FileMode = 0700
|
||||
|
||||
func (d directoryStorage) GetCertificate(name string) (*certificate.Resource, error) {
|
||||
|
Reference in New Issue
Block a user