Skip to content

Commit

Permalink
Restrict config apply directory permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
Dean-Coakley committed Nov 20, 2023
1 parent 89fc334 commit fd797cf
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/core/environment.go
Original file line number Diff line number Diff line change
Expand Up @@ -286,8 +286,8 @@ func (env *EnvironmentType) WriteFile(backup ConfigApplyMarker, file *proto.File
directory := filepath.Dir(fileFullPath)
_, err := os.Stat(directory)
if os.IsNotExist(err) {
log.Debugf("Creating directory %s with permissions 755", directory)
err = os.MkdirAll(directory, 0o755)
log.Debugf("Creating directory %s with permissions 750", directory)
err = os.MkdirAll(directory, 0o750)
if err != nil {
return err
}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit fd797cf

Please sign in to comment.