-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Turn off server_tokens for nginx http->https redirect vhost #18314
Conversation
Signed-off-by: Janek Richter <[email protected]>
01d94e9
to
6a23c0f
Compare
@sizowie can you indicate, in your PR the benefits for Harbor and their users? |
Codecov Report
@@ Coverage Diff @@
## main #18314 +/- ##
==========================================
+ Coverage 67.38% 67.54% +0.16%
==========================================
Files 981 999 +18
Lines 107194 111450 +4256
Branches 2698 2973 +275
==========================================
+ Hits 72228 75282 +3054
- Misses 31085 31941 +856
- Partials 3881 4227 +346
Flags with carried forward coverage won't be shown. Click here to find out more. |
sure, description updated. |
Makes sense, it is common practice and security advice to not print tokens |
hi @sizowie would you mind to provide some references for this change? And the similar comments with this change,
|
http://nginx.org/en/docs/http/ngx_http_core_module.html#server_tokens This change only applies to users that are using the nginx container from the harbor online/offline-installer to ensure a minimum default hardened reverse proxy. |
This PR is being marked stale due to a period of inactivty. If this PR is still relevant, please comment or remove the stale label. Otherwise, this PR will close in 30 days. |
This PR was closed because it has been stalled for 30 days with no activity. If this PR is still relevant, please re-open a new PR against main. |
Hey @goharbor/maintainers can we get this merged? this is a sensible basic configuration setting for Harbor. |
This PR is being marked stale due to a period of inactivty. If this PR is still relevant, please comment or remove the stale label. Otherwise, this PR will close in 30 days. |
This PR was closed because it has been stalled for 30 days with no activity. If this PR is still relevant, please re-open a new PR against main. |
Pull request was closed
This change turns off server_tokens (NGINX version in the HTTP response header) for the http->https redirect vhost in the NGINX configuration template.
Why?
NGINX "security" options like server_tokens should be the same in the http redirect vhost as for the https vhost, otherwise hiding the NGINX release in https vhost wouldn't make sense.
http
https
Please indicate you've done the following: