Skip to content

Commit d3d06b1

Browse files
committed
Set pulled certificate files to 0600 permissions
1 parent fbf0a04 commit d3d06b1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pull.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ func pull(cfg *config.PullConfig) error {
137137
}
138138

139139
// Write to local file (without .enc extension)
140-
if err := os.WriteFile(filePath, decrypted, 0644); err != nil {
140+
if err := os.WriteFile(filePath, decrypted, 0600); err != nil {
141141
return fmt.Errorf("write %s: %w", filePath, err)
142142
}
143143

0 commit comments

Comments
 (0)