Skip to content

Commit 09aea6f

Browse files
OGKevinonprem
authored andcommitted
fix: sidecar: reloader: fix output config file permission (thanos-io#4308)
Fixes: 4307 Signed-off-by: Kevin Hellemun <17928966+OGKevin@users.noreply.github.com>
1 parent f9f2d1c commit 09aea6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/reloader/reloader.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ func (r *Reloader) apply(ctx context.Context) error {
290290
defer func() {
291291
_ = os.Remove(tmpFile)
292292
}()
293-
if err := ioutil.WriteFile(tmpFile, b, 0600); err != nil {
293+
if err := ioutil.WriteFile(tmpFile, b, 0644); err != nil {
294294
return errors.Wrap(err, "write file")
295295
}
296296
if err := os.Rename(tmpFile, r.cfgOutputFile); err != nil {

0 commit comments

Comments
 (0)