Commit 5d81a988 authored by Heinrich Lee Yu's avatar Heinrich Lee Yu

Filter `sharedSecret` param from Jira

parent acecbbdf
...@@ -253,6 +253,7 @@ var sensitiveExactMatch = []string{ ...@@ -253,6 +253,7 @@ var sensitiveExactMatch = []string{
"trace", "trace",
"variables", "variables",
"content", "content",
"sharedSecret",
} }
func isParamSensitive(name []byte) bool { func isParamSensitive(name []byte) bool {
......
...@@ -135,6 +135,7 @@ func TestScrubURLParams(t *testing.T) { ...@@ -135,6 +135,7 @@ func TestScrubURLParams(t *testing.T) {
"?Signature=foo": "?Signature=[FILTERED]", "?Signature=foo": "?Signature=[FILTERED]",
"?confirmation_password=foo": "?confirmation_password=[FILTERED]", "?confirmation_password=foo": "?confirmation_password=[FILTERED]",
"?pos_secret_number=foo": "?pos_secret_number=[FILTERED]", "?pos_secret_number=foo": "?pos_secret_number=[FILTERED]",
"?sharedSecret=foo": "?sharedSecret=[FILTERED]",
"?book_key=foo": "?book_key=[FILTERED]", "?book_key=foo": "?book_key=[FILTERED]",
"?certificate=foo": "?certificate=[FILTERED]", "?certificate=foo": "?certificate=[FILTERED]",
"?hook=foo": "?hook=[FILTERED]", "?hook=foo": "?hook=[FILTERED]",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment