Skip to content

Commit 591d7e2

Browse files
committed
remove exec sync debug contents from logs
This was dumping untrusted output to the debug logs from user containers. We should not dump this type of information to reduce log sizes and any information leaks from user containers. Signed-off-by: Michael Crosby <[email protected]>
1 parent c28e424 commit 591d7e2

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

pkg/cri/server/instrumented_service.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,8 +253,6 @@ func (in *instrumentedService) ExecSync(ctx context.Context, r *runtime.ExecSync
253253
log.G(ctx).WithError(err).Errorf("ExecSync for %q failed", r.GetContainerId())
254254
} else {
255255
log.G(ctx).Debugf("ExecSync for %q returns with exit code %d", r.GetContainerId(), res.GetExitCode())
256-
log.G(ctx).Debugf("ExecSync for %q outputs - stdout: %q, stderr: %q", r.GetContainerId(),
257-
res.GetStdout(), res.GetStderr())
258256
}
259257
}()
260258
res, err = in.c.ExecSync(ctrdutil.WithNamespace(ctx), r)

0 commit comments

Comments
 (0)