Avoid logging message payloads that contain sensitive data (#4537)
Don't log payloads - they may contain sensitive data.
This commit is contained in:
parent
03ccf3e3d3
commit
fb0512f78f
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
type: change
|
||||
issue: 4537
|
||||
title: "ResourceDeliveryMessage no longer includes the payload in toString().
|
||||
This avoids leaking sensitive data to logs and other channels."
|
|
@ -128,7 +128,8 @@ public class ResourceDeliveryMessage extends BaseResourceMessage implements IRes
|
|||
public String toString() {
|
||||
return new ToStringBuilder(this)
|
||||
.append("mySubscription", mySubscription)
|
||||
.append("myPayloadString", myPayloadString)
|
||||
// it isn't safe to log payloads
|
||||
.append("myPayloadString", "[Not Logged]")
|
||||
.append("myPayload", myPayloadDecoded)
|
||||
.append("myPayloadId", myPayloadId)
|
||||
.append("myPartitionId", myPartitionId)
|
||||
|
|
Loading…
Reference in New Issue