Skip to content

systemd: fix services to allow TLS configurations via java.security.ciphers#3163

Merged
GabrielBrascher merged 2 commits into
apache:4.11from
shapeblue:javasecurity-fix-systemd
Feb 4, 2019
Merged

systemd: fix services to allow TLS configurations via java.security.ciphers#3163
GabrielBrascher merged 2 commits into
apache:4.11from
shapeblue:javasecurity-fix-systemd

Conversation

@yadvr
Copy link
Copy Markdown
Member

@yadvr yadvr commented Feb 4, 2019

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 jsvc when systemd can be used
directly.

This fixes #3140

Types of changes

  • Breaking change (fix or feature that would cause existing functionality to change)
  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (improves an existing feature and functionality)
  • Cleanup (Code refactoring and cleanup, that may add test cases)

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.

…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>
@yadvr
Copy link
Copy Markdown
Member Author

yadvr commented Feb 4, 2019

@blueorangutan package

@blueorangutan
Copy link
Copy Markdown

@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress.

@blueorangutan
Copy link
Copy Markdown

Packaging result: ✔centos6 ✔centos7 ✔debian. JID-2594

@yadvr
Copy link
Copy Markdown
Member Author

yadvr commented Feb 4, 2019

@blueorangutan test matrix

@blueorangutan
Copy link
Copy Markdown

@rhtyd a Trillian-Jenkins matrix job (centos6 mgmt + xs71, centos7 mgmt + vmware65, centos7 mgmt + kvmcentos7) has been kicked to run smoke tests

@yadvr yadvr added this to the 4.11.3.0 milestone Feb 4, 2019
@yadvr
Copy link
Copy Markdown
Member Author

yadvr commented Feb 4, 2019

@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>
Copy link
Copy Markdown
Contributor

@wido wido left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@yadvr
Copy link
Copy Markdown
Member Author

yadvr commented Feb 4, 2019

Forward merging-note: master does not support ubuntu 14.04 and older, therefore jsvc dependency can be removed from master's debian/.

@blueorangutan
Copy link
Copy Markdown

Trillian test result (tid-3371)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 24936 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr3163-t3371-kvm-centos7.zip
Intermittent failure detected: /marvin/tests/smoke/test_deploy_virtio_scsi_vm.py
Intermittent failure detected: /marvin/tests/smoke/test_vpc_redundant.py
Intermittent failure detected: /marvin/tests/smoke/test_vpc_vpn.py
Smoke tests completed. 67 look OK, 1 have error(s)
Only failed tests results shown below:

Test Result Time (s) Test File
test_01_redundant_vpc_site2site_vpn Failure 205.85 test_vpc_vpn.py

@blueorangutan
Copy link
Copy Markdown

Trillian test result (tid-3372)
Environment: vmware-65 (x2), Advanced Networking with Mgmt server 7
Total time taken: 26302 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr3163-t3372-vmware-65.zip
Smoke tests completed. 68 look OK, 0 have error(s)
Only failed tests results shown below:

Test Result Time (s) Test File

@GabrielBrascher
Copy link
Copy Markdown
Member

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!

@yadvr
Copy link
Copy Markdown
Member Author

yadvr commented Feb 4, 2019

Yes @GabrielBrascher because the tls disabled settings is no longer honoured, it's a security issue. Will propose on the list.

@apache apache deleted a comment from blueorangutan Feb 4, 2019
@GabrielBrascher GabrielBrascher merged commit cb3fed0 into apache:4.11 Feb 4, 2019
GabrielBrascher pushed a commit that referenced this pull request Feb 5, 2019
# Conflicts:
#	packaging/debian/init/cloud-management
#	packaging/systemd/cloudstack-agent.default
#	packaging/systemd/cloudstack-agent.service
#	packaging/systemd/cloudstack-management.service
Copy link
Copy Markdown
Contributor

@borisstoyanov borisstoyanov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, run manual testing and could confirm that secure renegotiation is not supported with tls1 and tls1_1

yadvr added a commit to shapeblue/cloudstack that referenced this pull request Mar 12, 2019
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>
GabrielBrascher pushed a commit that referenced this pull request Mar 14, 2019
* 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>
pbankonier pushed a commit to pbankonier/cloudstack that referenced this pull request Apr 24, 2019
* 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>
nvazquez pushed a commit to shapeblue/cloudstack that referenced this pull request Jul 24, 2019
…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>
nvazquez pushed a commit to shapeblue/cloudstack that referenced this pull request Jul 24, 2019
* 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>
ustcweizhou pushed a commit to ustcweizhou/cloudstack that referenced this pull request Feb 14, 2020
* 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants