Tweak permissions on created files
Signed-off-by: Hidde Beydals <hidde@hhh.computer>
This commit is contained in:
@@ -83,7 +83,7 @@ func installFlux(ctx context.Context, tmpDir string, kubeconfigPath string) erro
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
err = os.WriteFile(f.Name(), []byte(cfg.gitPrivateKey), 0o644)
|
||||
err = os.WriteFile(f.Name(), []byte(cfg.gitPrivateKey), 0o600)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user