-
-
Notifications
You must be signed in to change notification settings - Fork 579
Using ParameterExclusionList instead of ParameterFilterBlackList #1208
Conversation
Codecov Report
@@ Coverage Diff @@
## development #1208 +/- ##
============================================
Coverage 53.82% 53.82%
============================================
Files 75 75
Lines 3859 3859
============================================
Hits 2077 2077
Misses 1657 1657
Partials 125 125
Continue to review full report at Codecov.
|
middleware/param_logger.go
Outdated
@@ -30,7 +30,7 @@ type parameterLogger struct { | |||
// ParameterLogger logs form and parameter values to the loggers | |||
func ParameterLogger(next buffalo.Handler) buffalo.Handler { | |||
pl := parameterLogger{ | |||
blacklist: ParameterFilterBlackList, | |||
blacklist: ParameterExclusionList, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And this blacklist
. :)
middleware/param_logger.go
Outdated
//request, and returns a copy of the request parameters replacing blacklisted params | ||
//with [FILTERED]. | ||
func (pl parameterLogger) maskSecrets(form url.Values) url.Values { | ||
if len(pl.blacklist) == 0 { | ||
pl.blacklist = ParameterFilterBlackList | ||
pl.blacklist = ParameterExclusionList |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and this one too. :)
@paganotoni there are still a few references to |
@markbates i think is covered now, please take a look and let me know if i missed something. |
cc: @markbates