Skip to content

Commit

Permalink
Update perms on secrets file and checkin timing
Browse files Browse the repository at this point in the history
  • Loading branch information
jomann09 committed Jan 22, 2024
1 parent dafe822 commit cefb7f3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/manager/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func Run(restart chan<- struct{}) {
return
}

t := time.NewTicker(1 * time.Minute)
t := time.NewTicker(20 * time.Second)
defer t.Stop()
for range t.C {
checkin()
Expand Down
2 changes: 1 addition & 1 deletion internal/manager/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func updateSecrets() bool {
// Make sure the directory exists
os.MkdirAll(config.GetConfigDirFilePath("manager"), 0755)

if err := os.WriteFile(f, json, 0666); err != nil {
if err := os.WriteFile(f, json, 0600); err != nil {
config.Log.Error(err)
return false
}
Expand Down

0 comments on commit cefb7f3

Please sign in to comment.