Skip to content

Commit

Permalink
[hotfix-v0.1] Set umask to 0077 for etcd process (gardener#21)
Browse files Browse the repository at this point in the history
Co-authored-by: Aleksandar Savchev <[email protected]>
  • Loading branch information
aaronfern and AleksandarSavchev authored Jan 2, 2024
1 parent 9dcc236 commit 7aeeeed
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ package app

import (
"context"
"syscall"
"time"

"github.com/gardener/etcd-wrapper/internal/types"
Expand Down Expand Up @@ -66,6 +67,8 @@ func (a *Application) Setup() error {
return err
}
a.cfg = cfg

syscall.Umask(0077)
return nil
}

Expand Down

0 comments on commit 7aeeeed

Please sign in to comment.