Skip to content

kubernetes.io/tls certificate support for certificatesSecret #3183

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

Closed
cyrilcros opened this issue Feb 12, 2021 · 2 comments
Closed

kubernetes.io/tls certificate support for certificatesSecret #3183

cyrilcros opened this issue Feb 12, 2021 · 2 comments
Labels
meta: stale This issue/PR is stale and will be closed soon

Comments

@cyrilcros
Copy link

cyrilcros commented Feb 12, 2021

Hi, could you please consider allowing the use of SSL certificates with the Secret kubernetes.io/tls type and tls.crt / tls.key as keys?
Currently the Chart requires you to do a lot of extra work and customizations around certbot. Allowing that type of cert and extracting the parts from it allows using certmanager like below. See https://cert-manager.io/docs/usage/certificate/
Thanks!

EDITED: it would be nice to just set up something like below

apiVersion: cert-manager.io/v1 
kind: Certificate 
metadata:
  name: gitpod-cert
  namespace: gitpod
spec:
   secretName: gitpod-cert
   dnsNames:
   - "gitpod.my.domain"
   - "*.gitpod.my.domain"
   - "*.ws.gitpod.my.domain"
   issuerRef:
     name: letsencrypt-prod
     kind: ClusterIssuer

and in values.yaml

certificatesSecret:
   secretName: gitpod-cert

The certificate should be easy to split via -----BEGIN CERTIFICATE----- -----END CERTIFICATE-----....
Instead we have this:

{{- if (and $.Values.certificatesSecret.fullChainName $.Values.certificatesSecret.chainName $.Values.certificatesSecret.keyName) }}

** RE-EDIT: ** it doesn't even look like all the files listed here and at https://www.gitpod.io/docs/self-hosted/latest/install/configure-ingress/ are even required. They are just used here

ssl_trusted_certificate /etc/nginx/certificates/fullchain.pem;

Only the tls.crt / tls.key are required

@cyrilcros cyrilcros changed the title "Conventional" ingress / kubernetes.io/tls certificate support kubernetes.io/tls certificate support Feb 12, 2021
@cyrilcros cyrilcros changed the title kubernetes.io/tls certificate support kubernetes.io/tls certificate support for certificatesSecret Feb 13, 2021
@stale
Copy link

stale bot commented May 18, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the meta: stale This issue/PR is stale and will be closed soon label May 18, 2021
@cyrilcros
Copy link
Author

Closing this because the proxy2caddy move will make changes to nginx moot. They will also include better certs handling.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
meta: stale This issue/PR is stale and will be closed soon
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant