Merge "Horizon: Support Strict-Transport-Security header" into stable/wallaby
This commit is contained in:
commit
f2b651ab6c
@ -141,6 +141,10 @@ parameters:
|
||||
default:
|
||||
tag: openstack.horizon
|
||||
file: /var/log/containers/horizon/horizon.log
|
||||
HorizonHstsHeaderValue:
|
||||
default: []
|
||||
description: Enables HTTP Strict-Transport-Security header in response.
|
||||
type: comma_delimited_list
|
||||
|
||||
parameter_groups:
|
||||
- label: deprecated
|
||||
@ -162,6 +166,8 @@ conditions:
|
||||
or:
|
||||
- {get_param: Debug}
|
||||
- {get_param: HorizonDebug}
|
||||
horizon_hsts_header_value_set:
|
||||
not: {equals : [{get_param: HorizonHstsHeaderValue}, []]}
|
||||
|
||||
resources:
|
||||
|
||||
@ -271,6 +277,10 @@ outputs:
|
||||
data:
|
||||
sources:
|
||||
- {get_param: HorizonLoggingSource}
|
||||
haproxy:
|
||||
if:
|
||||
- horizon_hsts_header_value_set
|
||||
- tripleo::profile::base::horizon::hsts_header_value: {get_param: HorizonHstsHeaderValue}
|
||||
# BEGIN DOCKER SETTINGS
|
||||
puppet_config:
|
||||
config_volume: horizon
|
||||
|
6
releasenotes/notes/horizon-hsts-43ac1c7b602a4381.yaml
Normal file
6
releasenotes/notes/horizon-hsts-43ac1c7b602a4381.yaml
Normal file
@ -0,0 +1,6 @@
|
||||
---
|
||||
features:
|
||||
- |
|
||||
The new ``HorizonHstsHeaderValue`` parameter has been added. When this
|
||||
parameter is set, haproxy adds HTTP Strict-Transport-Security header to
|
||||
HTTP response to enforce SSL.
|
Loading…
x
Reference in New Issue
Block a user