Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added qpid SSL setup tasks #555

Merged
merged 1 commit into from Jul 23, 2018
Merged

Added qpid SSL setup tasks #555

merged 1 commit into from Jul 23, 2018

Conversation

rochacbruno
Copy link
Member

@rochacbruno rochacbruno commented Jul 11, 2018

  • Added as a sub-task of pulp-certs role
  • Added handlers to restart all the services
  • Used command: module instead of openssl or certutil module
  • Used blockinfile to write config files relying on pre-existence
    of config files for qpid and pulp

Pending

  • Use --empty-password for FIPS
  • Testing in FIPS environment

Tested:

  • Fedora 26
  • Fedora 27
  • RHEL 7.5
  • RHEL 7.5 with FIPS enabled

@rochacbruno rochacbruno changed the title Added qpid SSL setup tasks [WIP] Added qpid SSL setup tasks Jul 11, 2018
create: yes

- name: Create the main NSS db
command: certutil -N -d {{ tempdir }} -f {{ pwdfile }}
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this is going to require --empty-password in FIPS mode as well. See: https://bugzilla.redhat.com/show_bug.cgi?id=1401606

Copy link
Member Author

Choose a reason for hiding this comment

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

@daviddavis code updated, I used the empty-password and tested in f26, 27, rhel7.5 and also rhel7.5 with FIPS enabled.

@rochacbruno rochacbruno changed the title [WIP] Added qpid SSL setup tasks Added qpid SSL setup tasks Jul 12, 2018

## Main task

The main,yml tasks creates CA and sets the certificates to Apache
Copy link

@omaciel omaciel Jul 12, 2018

Choose a reason for hiding this comment

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

-main,yml
+main.yml


## Qpid SSL

The qpid.yml tasks creates the qpid nss database ans sets up the certificates for
Copy link

Choose a reason for hiding this comment

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

-database ans sets
+database and sets

ca_name: "ca"
db_password: "pulp"
trust: "TCu,Cu,Tuw"
client_subject: "CN=client,O=pulp,ST=Alabama,C=US"
Copy link

Choose a reason for hiding this comment

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

s/Alabama/North Carolina :)

- Added as a sub-task of pulp-certs role
- Added handlers to restart all the services
- Used `command:` module instead of openssl or certutil module
- Used `blockinfile` to write config files relying on pre-existence
  of config files for qpid and pulp
@rochacbruno
Copy link
Member Author

@omaciel comments addressed.

@omaciel
Copy link

omaciel commented Jul 17, 2018

Thanks @rochacbruno please don't block on me :)

@rochacbruno
Copy link
Member Author

@daviddavis @dkliban this PR is unblocked for review/merge :)

Copy link
Contributor

@daviddavis daviddavis left a comment

Choose a reason for hiding this comment

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

LGTM. @dkliban want to review and merge?

Copy link
Member

@dkliban dkliban left a comment

Choose a reason for hiding this comment

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

Thank you!

@dkliban dkliban merged commit 6c7a42c into pulp:master Jul 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants