-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Terminate ssl on haproxy for cinder (bsc#1149535)
If ssl is passed-thru on haproxy, the source ip gets replaced with the one of the node where haproxy lives, and there is no way to get the original ip on the services side. Add ssl termination on haproxy. Two new hidden options are added: loadbalancer_terminate_ssl (boolean) and pemfile (path to the certificate to use in haproxy-recognized format). This patch adds support for cinder. (cherry picked from commit 44e0f6a)
- Loading branch information
Boris Bobrov
committed
Mar 27, 2020
1 parent
75df3da
commit fd1427a
Showing
5 changed files
with
27 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
chef/data_bags/crowbar/migrate/cinder/210_add_haproxy_mode_http.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
def upgrade(template_attrs, template_deployment, attrs, deployment) | ||
key = "loadbalancer_terminate_ssl" | ||
template_value = template_attrs["cinder"]["ssl"][key] | ||
attrs["cinder"]["ssl"][key] = template_value unless attrs["cinder"]["ssl"].key? key | ||
return attrs, deployment | ||
end | ||
|
||
def downgrade(template_attrs, template_deployment, attrs, deployment) | ||
key = "loadbalancer_terminate_ssl" | ||
attrs["cinder"]["ssl"].delete(key) unless template_attrs["cinder"]["ssl"].key? key | ||
return attrs, deployment | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters