-
Notifications
You must be signed in to change notification settings - Fork 114
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
Enable Strict-Transport-Security header in Automate API #4765
Comments
At our customer they use AppScan and found the following: These are the ports and applications that did not have the HSTS Header turned on. Our security defines this as a security violation and needs to be fixed. |
Automate Loadbalancer exposes 443 for connection from Outside and it is under HSTS header. An example of nginx config: The ports mentioned as per AppScan are not the ones which can be hit from outside the environment. These are for internal connections and should not be exposed from the outside. |
Can I get an update for the customer please on this one. Thank you |
@kalroy |
Added Strict-Transport-Security in Response header #5286 |
Is it possible that this update has caused problems with the Automate API, which does not appear to work per https://docs.chef.io/automate/api/.
|
Existing issue:
Usage of HTTP should be kept at a minimum in web applications where security matters. Users which enter the web application via HTTP, e.g. by entering only the domain name in the URL bar of their browser should be redirected directly to a secure HTTPS URL. All HTTPS resources should provide a Strict-Transport-Security header which ensures that the browser uses only HTTPS for a given amount of time. The syntax for this header is as follows: Strict-Transport-Security: max-age=[; includeSubDomains] The parameter max-age gives the time frame for requirement of HTTPS in seconds and should be chosen quite high, e.g. several months. Except the initial redirection the application should be used completely with HTTPS.
The HTTP Strict Transport Security policy defines a timeframe where a browser must connect to the web server via HTTPS. Without a Strict Transport Security policy the web application may be vulnerable against several attacks: If the web application mixes usage of HTTP and HTTPS, an attacker can manipulate pages in the unsecured area of the application or change redirection targets in a manner that the switch to the secured page is not performed or done in a manner, that the attacker remains between client and server.
Expected Behaviour:
Enable Strict-Transport-Security header including all necessary parameters. e.g. Applying the HSTS header to the automate.conf.js file
Aha! Link: https://chef.aha.io/epics/SH-E-473
The text was updated successfully, but these errors were encountered: