Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add warden.user rack data to default filters list #436

Merged
merged 3 commits into from
Mar 13, 2018

Conversation

Cawllec
Copy link
Contributor

@Cawllec Cawllec commented Mar 2, 2018

Ensures rack data containing warden user id's and partial encrypted password hashes will be correctly filtered by default.

Warden data will still be available as metadata added via the Warden user middleware.

@Cawllec Cawllec requested a review from tobyhs March 2, 2018 11:03
Copy link
Contributor

@snmaynard snmaynard left a comment

Choose a reason for hiding this comment

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

I would like to see integration tests for this to catch the case that warden changes the format in a version

Copy link
Contributor

@tobyhs tobyhs left a comment

Choose a reason for hiding this comment

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

lgtm

I'm not sure how one would construct an integration test to catch the case where warden changes the format for this, unless the test would check what's reported and make sure there isn't anything resembling a password hash.

@snmaynard
Copy link
Contributor

We would whitelist the fields in the session tab and then if warden changes we would be alerted.

}
})
report.meta_data.merge!({
:wardenUser => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we put this in a representative place in the payload?

@kattrali kattrali merged commit 7b7f249 into master Mar 13, 2018
@kattrali kattrali deleted the cawllec/filter-warden-user-hashes branch March 13, 2018 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants