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

[CE Sprint #16] [CLOUD-2398] Auto-generate the HTTPS, JGroups keystores, and truststore for the RH-SSO server upon request #221

Merged
merged 1 commit into from Apr 4, 2018

Conversation

iankko
Copy link
Contributor

@iankko iankko commented Mar 28, 2018


[CLOUD-2398] Auto-generate the HTTPS and JGroups keystores if volumes for OpenShift's serving x509 certificate secrets service were properly mounted

Auto-generate the truststore for the RH-SSO server if the X509 CA bundle was provided and truststore doesn't exist yet

Signed-off-by: Jan Lieskovsky

Thanks for submitting your Pull Request!

Please make sure your PR meets following requirements:

  • Pull Request title is properly formatted: [CLOUD-XYA] Subject
  • Pull Request contains link to the JIRA issue
  • Pull Request contains description of the issue
  • Pull request does not include fixes for other issues than the main ticket
  • Attached commits represent unit of work and are properly formatted
  • You have read and agreed to the Developer Certificate of Origin (DCO) (see CONTRIBUTING.md)
  • Every commit contains Signed-off-by: Your Name <yourname@redhat.com> - use git commit -s

@iankko
Copy link
Contributor Author

iankko commented Mar 28, 2018

@rcernich PTAL

Copy link
Contributor

@rcernich rcernich left a comment

Choose a reason for hiding this comment

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

You should add openssl to the packages list in the module.yaml file.

@iankko iankko force-pushed the CLOUD-2398 branch 2 times, most recently from b91c784 to cbcad4d Compare April 3, 2018 18:32
rcernich
rcernich previously approved these changes Apr 3, 2018
rcernich
rcernich previously approved these changes Apr 3, 2018
Copy link
Contributor

@rcernich rcernich left a comment

Choose a reason for hiding this comment

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

LGTM

@iankko
Copy link
Contributor Author

iankko commented Apr 4, 2018

@rcernich Added openssl RPM to module.yaml file. Also performed other changes requested within review of CLOUD-2398. PTAL

# Propagate the trustore related variables to subsequent modules
SSO_TRUSTSTORE_PASSWORD="${PASSWORD}"
SSO_TRUSTSTORE_DIR="${KEYSTORES_STORAGE}"
SSO_TRUSTSTORE="${JKS_TRUSTSTORE_FILE}"
Copy link

Choose a reason for hiding this comment

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

so the truststore will only contain the openshift certificates, and not any of the default list of trusted CAs, right? (which may be problematic, as it probably will break integration with other services that use https )

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Great catch, Marek, thanks! Should we fixed with most recent one.

rcernich
rcernich previously approved these changes Apr 4, 2018
Copy link
Contributor

@rcernich rcernich left a comment

Choose a reason for hiding this comment

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

Looks okay to me.

… for

OpenShift's serving x509 certificate secrets service were properly mounted

Also auto-generate the truststore for the RH-SSO server if the X509 CA
bundle was provided:
* Define local readonly X509_CRT_DELIMITER variable rather than
  definining it in each separate template

* Include known certificates from system's Java CA certificate
  bundle into the auto-generated RH-SSO truststore too

Signed-off-by: Jan Lieskovsky <jlieskov@redhat.com>
Copy link
Contributor

@rcernich rcernich left a comment

Choose a reason for hiding this comment

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

LGTM

@rcernich rcernich merged commit 75324b3 into jboss-openshift:master Apr 4, 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

3 participants