-
Notifications
You must be signed in to change notification settings - Fork 37
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
Refs #28761 - Always set an empty REMOTE_USER for pulpcore API #230
Conversation
thanks for the contribution! @jlsherrill or @ekohl can you confirm this is the right approach to resolve the issue? |
Code itself looks correct. Some more comments about the commit message and the organization. https://chris.beams.io/posts/git-commit/ has a lot of good suggestions about in general. We also have an issue that |
Fixed issue # - and thanks for the resource on commit messages! |
Very helpful, thanks! Will also get this attached to the Redmine |
Normally what we do with these is use |
My suggestion for a commit message (without hard line breaks as you'd normally add):
This links it back to our Redmine issue and in git log it explains what it's changing. It also explains why the change is made. |
8be7963 started to pass the REMOTE_USER header to the pulpcore API when SSL authentication is present. Otherwise the REMOTE_USER header stays untouched. This allows attackers to impersonate any user. By always setting it to an empty string before optionally overriding, this security concern is addressed.
e568697
to
ab48bc8
Compare
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.
Looks great, Thanks!
In this particular case I didn't look too closely but I had intended it to use |
fixes a security flaw identified with GH-229