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

Tomcat errors leak internal host/container names and ports #254

Open
skremdwd opened this issue Dec 11, 2024 · 0 comments
Open

Tomcat errors leak internal host/container names and ports #254

skremdwd opened this issue Dec 11, 2024 · 0 comments

Comments

@skremdwd
Copy link

If the esg-search backend is requested for an invalid URI like:

https://some-esgf.server/esg-search/search?project=x<s\>ev"q

A tomcat error message will be returned that contains sensitive information about the deployment like hostname (or container name) and port number:

HTTP Status 500 – Internal Server Error

Type Exception Report

Message Server returned HTTP response code: 400 for URL: http://solr-slave:8983/solr/datasets/select/

My workaround is to surpress those messages on my reverse proxy with proxy_intercept_errors and a custom generic error message:

  [...]
  server {
    [...]
    proxy_intercept_errors on; # Replace all proxy_pass messages with our own
    [...]
  }
  [...]
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

No branches or pull requests

1 participant