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

[2.8.1 Backport] CBG-1235 - Add option to hide product version info from non-admin requests #4935

Merged
merged 2 commits into from Jan 19, 2021

Conversation

bbrks
Copy link
Member

@bbrks bbrks commented Jan 19, 2021

Backports #4928 to 2.8.1

  • Awaiting sanity check for build information on 3.0.0-115 for base/version.go changes

…om non-admin requests (#4928)

* CBG-759 - Add option to hide product info from non-admin requests

* Scope placeholders in version.go to prevent accidental usage

* Have default ProductName const (for use in testing)

* Omit product name from Basic auth realm when hide_product_info=true

* Hide product version only

* Fix test assertions for last change

* Address PR comments (add rootResponse struct and build wwwAuthenticateHeader ahead of time)
@bbrks bbrks marked this pull request as ready for review January 19, 2021 17:34
adamcfraser
adamcfraser previously approved these changes Jan 19, 2021
@coveralls
Copy link

Coverage Status

Coverage increased (+0.03%) to 65.225% when pulling 532023d on CBG-1235 into 55492a8 on release/2.8.1.

@adamcfraser adamcfraser merged commit 7d7110b into release/2.8.1 Jan 19, 2021
@adamcfraser adamcfraser deleted the CBG-1235 branch January 19, 2021 22:33
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.

None yet

3 participants