Skip to content
This repository has been archived by the owner on Feb 24, 2024. It is now read-only.

Using ParameterExclusionList instead of ParameterFilterBlackList #1208

Merged
merged 6 commits into from
Aug 6, 2018

Conversation

paganotoni
Copy link
Member

@paganotoni paganotoni self-assigned this Aug 3, 2018
@paganotoni paganotoni requested a review from markbates August 3, 2018 13:20
@codecov
Copy link

codecov bot commented Aug 3, 2018

Codecov Report

Merging #1208 into development will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@             Coverage Diff              @@
##           development    #1208   +/-   ##
============================================
  Coverage        53.82%   53.82%           
============================================
  Files               75       75           
  Lines             3859     3859           
============================================
  Hits              2077     2077           
  Misses            1657     1657           
  Partials           125      125
Impacted Files Coverage Δ
middleware/param_logger.go 44.87% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update bab0d22...7ddcba4. Read the comment docs.

@markbates markbates added this to the v0.13.0 milestone Aug 3, 2018
@@ -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,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And this blacklist. :)

//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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and this one too. :)

@markbates
Copy link
Member

@paganotoni there are still a few references to blacklist left, can you please change them so we can merge? Thanks.

@paganotoni
Copy link
Member Author

@markbates i think is covered now, please take a look and let me know if i missed something.

@markbates markbates merged commit 811fe3a into development Aug 6, 2018
@markbates markbates deleted the filtered-param-logger branch August 6, 2018 19:51
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants