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

Allow SSL certificate to be sourced at runtime from a Secret #117

Open
Florent-A opened this issue Jul 30, 2021 · 3 comments
Open

Allow SSL certificate to be sourced at runtime from a Secret #117

Florent-A opened this issue Jul 30, 2021 · 3 comments

Comments

@Florent-A
Copy link

I try to use this image on multiple Openshift 4.7 platforms, where the httpd service handles the SSL termination (each cluster coming with different domain).

In order to achieve this I'd like to provide the SSL key/cert pair at pod runtime using a Secret of type "kubernetes.io/tls", coming with tls.crt and tls.crt keys

Unfortunately, because of the current way certs are sourced in the httpd-container, I can't mount this secret to any pod folder and get the pair picked up by the container at runtime.

--> Would it be possible to change the way SSL cert/key pair are sourced so that Secrets can be used?
Thanks

@Florent-A Florent-A changed the title Allow SSL certificate to be source at runtime from a Secret Allow SSL certificate to be sourced at runtime from a Secret Jul 30, 2021
@notroj
Copy link
Contributor

notroj commented Jul 30, 2021

Are the secrets available as files during the s2i assemble process? I'm not sure how this works.

@Florent-A
Copy link
Author

Hello @notroj
There is no build/s2i process involved here, I'm actually trying to avoid building a new image here, but rather use the httpd-container image directly (using registry.access.redhat.com/ubi8/httpd-24:latest) in my deployment.

Rationale for this is to keep binaries/images alignment between multiple clusters, and only provide specific runtime configuration on a per cluster basis using Secrets / ConfigMaps mounted at pod runtime.
(This requirement comes from our release process, involving testing in non-prod clusters and then deployment in multiple production clusters.)

@ibotty
Copy link

ibotty commented Jun 9, 2022

This is mostly the same issue as sclorg/s2i-php-container#369. Would you consider a pull request that adding this?

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

No branches or pull requests

3 participants