Flag messaging message as sensitive data (not to be loged)

This commit is contained in:
Denis Arh
2019-05-20 19:22:41 +02:00
parent 8b79c26a87
commit d9c6d68319
3 changed files with 10 additions and 4 deletions
+4 -1
View File
@@ -429,6 +429,7 @@
"type": "string",
"name": "message",
"required": true,
"sensitive": true,
"title": "Message contents (markdown)"
}
]
@@ -506,6 +507,7 @@
"type": "string",
"name": "message",
"required": true,
"sensitive": true,
"title": "Message contents (markdown)"
}
]
@@ -546,6 +548,7 @@
"type": "string",
"name": "message",
"required": true,
"sensitive": true,
"title": "Message contents (markdown)"
}
]
@@ -1224,4 +1227,4 @@
}
]
}
]
]
+3
View File
@@ -29,6 +29,7 @@
{
"name": "message",
"required": true,
"sensitive": true,
"title": "Message contents (markdown)",
"type": "string"
}
@@ -106,6 +107,7 @@
{
"name": "message",
"required": true,
"sensitive": true,
"title": "Message contents (markdown)",
"type": "string"
}
@@ -146,6 +148,7 @@
{
"name": "message",
"required": true,
"sensitive": true,
"title": "Message contents (markdown)",
"type": "string"
}
+3 -3
View File
@@ -43,7 +43,7 @@ func NewMessageCreate() *MessageCreate {
func (r MessageCreate) Auditable() map[string]interface{} {
var out = map[string]interface{}{}
out["message"] = r.Message
out["message"] = "*masked*sensitive*data*"
out["channelID"] = r.ChannelID
@@ -236,7 +236,7 @@ func (r MessageEdit) Auditable() map[string]interface{} {
out["channelID"] = r.ChannelID
out["message"] = r.Message
out["message"] = "*masked*sensitive*data*"
return out
}
@@ -353,7 +353,7 @@ func (r MessageReplyCreate) Auditable() map[string]interface{} {
out["channelID"] = r.ChannelID
out["message"] = r.Message
out["message"] = "*masked*sensitive*data*"
return out
}