Bug 1810017

Summary: pcsd does not send Strict-Transport-Security in HTTP 301 response
Product: Red Hat Enterprise Linux 8 Reporter: Nina Hostakova <nhostako>
Component: pcsAssignee: Ivan Devat <idevat>
Status: CLOSED ERRATA QA Contact: cluster-qe <cluster-qe>
Severity: unspecified Docs Contact:
Priority: high    
Version: 8.2CC: cfeist, cluster-maint, idevat, mlisik, mpospisi, omular, tojeline
Target Milestone: rcFlags: pm-rhel: mirror+
Target Release: 8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: pcs-0.10.6-1.el8 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-11-04 02:28:16 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
proposed fix none

Comment 1 Ivan Devat 2020-03-16 13:46:22 UTC
Created attachment 1670548 [details]
proposed fix

Test:
[pig81 ~] $ curl --insecure --location --silent --dump-header - --output /dev/null https://localhost:2224                               
HTTP/1.1 301 Moved Permanently
Server: TornadoServer/6.0.3
Content-Type: text/html; charset=UTF-8
Date: Mon, 16 Mar 2020 13:44:54 GMT
Strict-Transport-Security: max-age=604800
Location: /manage
Content-Length: 0

HTTP/1.1 302 Found
Server: TornadoServer/6.0.3
Content-Type: text/html; charset=UTF-8
Date: Mon, 16 Mar 2020 13:44:54 GMT
Strict-Transport-Security: max-age=604800
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-Xss-Protection: 1; mode=block
Location: /login
Content-Length: 0
Set-Cookie: pcsd.sid=j1xzr2xhy68i2wgd5d0ij1lh0shbu1btfax3xug5lb33woa70otv5djgz4nxxhl2; HttpOnly; Path=/; Secure

HTTP/1.1 200 OK
Server: TornadoServer/6.0.3
Content-Type: text/html;charset=utf-8
Date: Mon, 16 Mar 2020 13:44:54 GMT
Strict-Transport-Security: max-age=604800
Content-Length: 53769
Etag: "8d54c39c9eb0971fe73fc7c8624b2810aae9a78f"

Comment 3 Miroslav Lisik 2020-06-11 14:18:23 UTC
Test:

[root@r8-node-01 pcs]# rpm -q pcs
pcs-0.10.6-1.el8.x86_64

[root@r8-node-01 pcs]# curl --insecure --location --silent --dump-header - --output /dev/null https://r8-node-01:2224
HTTP/1.1 301 Moved Permanently
Server: TornadoServer/6.0.4
Content-Type: text/html; charset=UTF-8
Date: Wed, 10 Jun 2020 20:22:37 GMT
Strict-Transport-Security: max-age=604800
Location: /manage
Content-Length: 0

HTTP/1.1 302 Found
Server: TornadoServer/6.0.4
Content-Type: text/html; charset=UTF-8
Date: Wed, 10 Jun 2020 20:22:37 GMT
Strict-Transport-Security: max-age=604800
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
Content-Security-Policy: frame-ancestors 'self'
X-Xss-Protection: 1; mode=block
Location: /login
Content-Length: 0
Set-Cookie: pcsd.sid=9o2a4labkqbvm5eu0m5lp9wknygn3x0esvkxd0ok2806rn8xdxi426clwvkgtm5y; HttpOnly; Path=/; Secure

HTTP/1.1 200 OK
Server: TornadoServer/6.0.4
Content-Type: text/html;charset=utf-8
Date: Wed, 10 Jun 2020 20:22:37 GMT
Strict-Transport-Security: max-age=604800
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
Content-Security-Policy: frame-ancestors 'self'
X-Xss-Protection: 1; mode=block
Content-Length: 53769
Etag: "8d54c39c9eb0971fe73fc7c8624b2810aae9a78f"

Comment 9 errata-xmlrpc 2020-11-04 02:28:16 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (pcs bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2020:4617