Files
containerd/internal
Aadhar Agarwal 868869eb9e fix: sanitize error before gRPC return to prevent credential leak in pod events
PR #12491 fixed credential leaks in containerd logs but the gRPC error
returned to kubelet still contained sensitive information. This was
visible in Kubernetes pod events via `kubectl describe pod`.

The issue was that SanitizeError was called inside the defer block,
but errgrpc.ToGRPC(err) was evaluated before the defer ran, so the
gRPC message contained the original unsanitized error.

Move SanitizeError before the return statement so both the logged
error and the gRPC error are sanitized.

Ref: #5453
Signed-off-by: Aadhar Agarwal <aadagarwal@microsoft.com>
2026-04-07 17:11:18 -07:00
..
2025-03-11 09:31:53 +08:00
2024-10-03 00:12:50 +00:00