Skip to content

Commit

Permalink
Merge branch 'master' into token_ttl
Browse files Browse the repository at this point in the history
  • Loading branch information
cognifloyd authored Jul 20, 2022
2 parents 967744f + 5a4260a commit 0cabcf3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ Fixed

Contributed by @S-T-A-R-L-O-R-D


* Fixed ``st2client/st2client/base.py`` file to use ``https_proxy``(not ``http_proxy``) to check HTTPS_PROXY environment variables.

Contributed by @wfgydbu

Added
~~~~~

Expand Down Expand Up @@ -70,6 +75,10 @@ Changed

Contributed by @cognifloyd

* Changed the `X-XSS-Protection` HTTP header from `1; mode=block` to `0` in the `conf/nginx/st2.conf` to align with the OWASP security standards. #5298

Contributed by @LiamRiddell

3.7.0 - May 05, 2022
--------------------

Expand Down
2 changes: 1 addition & 1 deletion conf/nginx/st2.conf
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ server {
add_header X-Content-Type-Options nosniff;
add_header X-Frame-Options DENY always;
add_header Strict-Transport-Security "max-age=3153600;includeSubDomains";
add_header X-XSS-Protection "1; mode=block";
add_header X-XSS-Protection "0";

location @apiError {
add_header Content-Type application/json always;
Expand Down
2 changes: 1 addition & 1 deletion st2client/st2client/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,6 @@ def _print_client_settings(self, args):
)
print(
"HTTPS_PROXY: %s"
% (os.environ.get("http_proxy", os.environ.get("HTTPS_PROXY", "")))
% (os.environ.get("https_proxy", os.environ.get("HTTPS_PROXY", "")))
)
print("")

0 comments on commit 0cabcf3

Please sign in to comment.