Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-workhorse
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-workhorse
Commits
5d81a988
Commit
5d81a988
authored
Feb 22, 2019
by
Heinrich Lee Yu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Filter `sharedSecret` param from Jira
parent
acecbbdf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
+2
-0
internal/helper/helpers.go
internal/helper/helpers.go
+1
-0
internal/helper/helpers_test.go
internal/helper/helpers_test.go
+1
-0
No files found.
internal/helper/helpers.go
View file @
5d81a988
...
...
@@ -253,6 +253,7 @@ var sensitiveExactMatch = []string{
"trace"
,
"variables"
,
"content"
,
"sharedSecret"
,
}
func
isParamSensitive
(
name
[]
byte
)
bool
{
...
...
internal/helper/helpers_test.go
View file @
5d81a988
...
...
@@ -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]"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment