Bug 1594019 - HorizonSecureCookies is missing from the new environments/ssl/enable-tls.yaml
Summary: HorizonSecureCookies is missing from the new environments/ssl/enable-tls.yaml
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-heat-templates
Version: 13.0 (Queens)
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: z5
: 13.0 (Queens)
Assignee: Emilien Macchi
QA Contact: Gurenko Alex
URL:
Whiteboard:
Depends On:
Blocks: 1667977
TreeView+ depends on / blocked
 
Reported: 2018-06-21 21:18 UTC by Darin Sorrentino
Modified: 2022-08-09 09:37 UTC (History)
12 users (show)

Fixed In Version: openstack-tripleo-heat-templates-8.0.7-30.el7ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1667977 (view as bug list)
Environment:
Last Closed: 2019-03-14 13:54:50 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1812211 0 None None None 2019-01-17 12:43:59 UTC
OpenStack gerrit 576856 0 'None' MERGED nova-less-deploy: deploy_instances and undeploy_instances workflows 2020-07-20 06:24:32 UTC
Red Hat Issue Tracker OSP-9199 0 None None None 2022-08-09 09:37:04 UTC
Red Hat Product Errata RHBA-2019:0448 0 None None None 2019-03-14 13:54:58 UTC

Description Darin Sorrentino 2018-06-21 21:18:35 UTC
Description of problem:

The old enable-tls.yaml in THT/environments has the setting, however, it states that the file is deprecated and points users to use THT/environments/ssl/enable-tls.yaml instead.  The new file is missing HorizonSecureCookies settings in it.

Version-Release number of selected component (if applicable):
13.0

How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:
HorizonSecureCookies missing from THT/environments/ssl/enable-tls.yaml

Expected results:
HorizonSecureCookies should be in THT/environments/ssl/enable-tls.yaml

Additional info:

Comment 1 Darin Sorrentino 2018-06-21 21:31:56 UTC
Upon further analysis, there's another parameter in the deprecated file that is not in the new one.

GnocchiIncomingStorageDriver is in the deprecated one but not in the new file.  Do we still need to do this?

Comment 2 Harry Rybacki 2018-06-22 19:04:35 UTC
Darin, can you give us reproduction steps for this? I'm not sure if you encountered this while reviewing the templates themselves or during deployment. Either way, any info would be great for our QE. 

WRT the GnocchiIncomingStorageDriver parameter -- I can't speak to this.

Comment 3 Chen 2018-06-26 08:15:48 UTC
Hi Harry,

Another customer was asking me almost the same question.

# grep -v ^$ /usr/share/openstack-tripleo-heat-templates/environments/ssl/enable-tls.yaml | grep -v \# > /tmp/new_tls
# grep -v ^$ /usr/share/openstack-tripleo-heat-templates/environments/enable-tls.yaml | grep -v \# > /tmp/old_tls

# diff /tmp/old_tls /tmp/new_tls -u
--- /tmp/old_tls	2018-06-26 03:52:47.018834222 -0400
+++ /tmp/new_tls	2018-06-26 03:52:34.613798136 -0400
@@ -1,9 +1,9 @@
 parameter_defaults:
-  HorizonSecureCookies: True
   SSLCertificate: |
     The contents of your certificate go here
   SSLIntermediateCertificate: ''
   SSLKey: |
     The contents of the private key go here
+  DeployedSSLCertificatePath: /etc/pki/tls/private/overcloud_endpoint.pem
 resource_registry:
-  OS::TripleO::NodeTLSData: ../puppet/extraconfig/tls/tls-cert-inject.yaml
+  OS::TripleO::NodeTLSData: ../../puppet/extraconfig/tls/tls-cert-inject.yaml

Our new enable-tls.yaml doesn't contain HorizonSecureCookies and this will lead Horizon lack of CSRF_COOKIE_SECURE + SESSION_COOKIE_SECURE option in a SSL/TLS enabled environment.

Best Regards,
Chen

Comment 4 Harry Rybacki 2018-06-26 12:12:28 UTC
Re-assigning needinfo against Darin.

May you (and Chen) please provide me with the specifics about how your Cu. deployed and hit this issue?

Comment 5 Darin Sorrentino 2018-06-26 16:46:40 UTC
I found this while reviewing the THT when I was enabling TLS in the overcloud.  I originally went to use ./environments/enable-tls.yaml, however in that file it says it is deprecated and instructs me to use ./environments/ssl/enable-tls.yaml instead. When I noticed that the setting was absent, I looked for it's utilization in the deplyment and examined (./puppet/services/horizon.yaml) that actually does the configuration and noted that the default is "false" which is not what we want for TLS.

Comment 11 Harry Rybacki 2019-01-21 19:09:17 UTC
Downstream build complete. Updating FIV and moving bug to MODIFIED.

Comment 30 errata-xmlrpc 2019-03-14 13:54:50 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, 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/RHBA-2019:0448


Note You need to log in before you can comment on or make changes to this bug.