Commit a5f09259 authored by Nick Thomas's avatar Nick Thomas

Merge branch 'filter-jira-secret-param' into 'master'

Filter `sharedSecret` param from Jira

See merge request gitlab-org/gitlab-workhorse!369
parents 019f125e 5d81a988
......@@ -253,6 +253,7 @@ var sensitiveExactMatch = []string{
"trace",
"variables",
"content",
"sharedSecret",
}
func isParamSensitive(name []byte) bool {
......
......@@ -135,6 +135,7 @@ func TestScrubURLParams(t *testing.T) {
"?Signature=foo": "?Signature=[FILTERED]",
"?confirmation_password=foo": "?confirmation_password=[FILTERED]",
"?pos_secret_number=foo": "?pos_secret_number=[FILTERED]",
"?sharedSecret=foo": "?sharedSecret=[FILTERED]",
"?book_key=foo": "?book_key=[FILTERED]",
"?certificate=foo": "?certificate=[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