Skip to content

Commit 1a01685

Browse files
committed
capi system: don't log env vars
Only log process args, env vars may contain sensitive data.
1 parent b8d5671 commit 1a01685

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/clusterapi/system.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ func (c *system) runController(ctx context.Context, ct *controller) error {
463463
}
464464

465465
// Run the controller and store its state.
466-
logrus.Infof("Running process: %s with args %v and env %v", ct.Name, ct.Args, env)
466+
logrus.Infof("Running process: %s with args %v", ct.Name, ct.Args)
467467
if err := pr.Start(ctx, os.Stdout, os.Stderr); err != nil {
468468
return fmt.Errorf("failed to start controller %q: %w", ct.Name, err)
469469
}

0 commit comments

Comments
 (0)