systemd: fix services to allow TLS configurations via java.security.ciphers#3163
Conversation
…iphers This fixes the management server and systemd services to allow the java.security.ciphers file to configure disabled TLS protocols and algorithms. This also cleans up systemd service files for agent and usage server. This fixes apache#3140 Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
eaf0656 to
4303ec1
Compare
|
@blueorangutan package |
|
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔centos6 ✔centos7 ✔debian. JID-2594 |
|
@blueorangutan test matrix |
|
@rhtyd a Trillian-Jenkins matrix job (centos6 mgmt + xs71, centos7 mgmt + vmware65, centos7 mgmt + kvmcentos7) has been kicked to run smoke tests |
|
@GabrielBrascher please consider including this in 4.12.0.0 as this fixes the TLS configuration security issue. |
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
|
Forward merging-note: master does not support ubuntu 14.04 and older, therefore jsvc dependency can be removed from master's |
|
Trillian test result (tid-3371)
|
|
Trillian test result (tid-3372)
|
|
We are on tight schedule for 4.12; thus, I am trying to keep as short as possible the list of PRs aiming the 4.12 release. Considering this; @rhtyd do you think that this PR is a blocker for 4.12? If so, could you please register this PR as a blocker on the mailing list thread '[PROPOSE] RM for 4.12'? Thanks! |
|
Yes @GabrielBrascher because the tls disabled settings is no longer honoured, it's a security issue. Will propose on the list. |
# Conflicts: # packaging/debian/init/cloud-management # packaging/systemd/cloudstack-agent.default # packaging/systemd/cloudstack-agent.service # packaging/systemd/cloudstack-management.service
borisstoyanov
left a comment
There was a problem hiding this comment.
LGTM, run manual testing and could confirm that secure renegotiation is not supported with tls1 and tls1_1
This fixes regression introduced by refactoring PR apache#3163 where `-Dpid` was incorrectly passed string `$$` instead of parent PID integer. Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
* systemd: Fix -Dpid arg passing to systemd usage service This fixes regression introduced by refactoring PR #3163 where `-Dpid` was incorrectly passed string `$$` instead of parent PID integer. Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com> * fix systemd limitation, exec using /bin/sh instead and wrap in ${} syntax https://www.freedesktop.org/software/systemd/man/systemd.service.html#Command%20lines Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com> * usage: don't hide exception from Gabriel's https://github.com/apache/cloudstack/pull/3207/files#diff-062fcf5ae32de59dfd6cd4f780e1d7cd Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
* systemd: Fix -Dpid arg passing to systemd usage service This fixes regression introduced by refactoring PR apache#3163 where `-Dpid` was incorrectly passed string `$$` instead of parent PID integer. Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com> * fix systemd limitation, exec using /bin/sh instead and wrap in ${} syntax https://www.freedesktop.org/software/systemd/man/systemd.service.html#Command%20lines Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com> * usage: don't hide exception from Gabriel's https://github.com/apache/cloudstack/pull/3207/files#diff-062fcf5ae32de59dfd6cd4f780e1d7cd Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
…iphers (apache#3163) * systemd: fix services to allow TLS configurations via java.security.ciphers This fixes the management server and systemd services to allow the java.security.ciphers file to configure disabled TLS protocols and algorithms. This also cleans up systemd service files for agent and usage server. This fixes apache#3140 Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com> * configure: fix travis failure due pycodestyle error Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com> (cherry picked from commit cb3fed0) Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
* systemd: Fix -Dpid arg passing to systemd usage service This fixes regression introduced by refactoring PR apache#3163 where `-Dpid` was incorrectly passed string `$$` instead of parent PID integer. Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com> * fix systemd limitation, exec using /bin/sh instead and wrap in ${} syntax https://www.freedesktop.org/software/systemd/man/systemd.service.html#Command%20lines Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com> * usage: don't hide exception from Gabriel's https://github.com/apache/cloudstack/pull/3207/files#diff-062fcf5ae32de59dfd6cd4f780e1d7cd Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com> (cherry picked from commit f7327c7) Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
* systemd: Fix -Dpid arg passing to systemd usage service This fixes regression introduced by refactoring PR apache#3163 where `-Dpid` was incorrectly passed string `$$` instead of parent PID integer. Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com> * fix systemd limitation, exec using /bin/sh instead and wrap in ${} syntax https://www.freedesktop.org/software/systemd/man/systemd.service.html#Command%20lines Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com> * usage: don't hide exception from Gabriel's https://github.com/apache/cloudstack/pull/3207/files#diff-062fcf5ae32de59dfd6cd4f780e1d7cd Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This fixes the management server and systemd services to allow the
java.security.ciphers file to configure disabled TLS protocols and
algorithms. This also cleans up systemd service files for agent and
usage server, and deprecates use of
jsvcwhen systemd can be useddirectly.
This fixes #3140
Types of changes
How Has This Been Tested?
Deploy systemd based environments using CentOS7 and Ubuntu 18.04. Verified first that TLS settings has no effect, then with the changes applied found in both usage, kvm agent and management server that systemd service works OK and TLS was configurable again.