Skip to content
This repository has been archived by the owner on Dec 1, 2022. It is now read-only.

CertManager support for HostedCE #480

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from
Draft

Conversation

LincolnBryant
Copy link
Contributor

This is a WIP for #470. Haven't yet tested but here's what I'm thinking.

metadata:
name: osg-hosted-ce-{{ .Values.Instance }}-certificate
spec:
secretName: {{ .Values.HostCredentials.HostCertKeySecret }}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Any reason we can't be prescriptive here and just turn around and use this in the deployment.yaml?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think as long as we don't plan to support creating Let's Encrypt secrets outside of SLATE, I think that's okay. We'll need to possibly redeploy existing HostedCEs to get their certs to line up.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Can't we just handle the different cases with a bunch of if blocks in the deployment? I think we have 3 mutually exclusive cases here:

  1. They set .Values.HostCredentials.CertManager.Enabled then we create the certmanager secret with a known name and use that in a deployment
  2. They give us their own secret with a host cert/key pair then we assume the operator knows what they're doing and we use that
  3. They don't provide a secret and the container automatically pulls in a new LE cert

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Indeed.. I am also wondering if we should consider dropping, e.g. having the container pull in a LE cert on its own. Do we really want to maintain this going forward? What do you think about saying "Use CertManager or provide your own IGTF certs" to users outside of River/Tiger ?

Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't think it really hurts to keep it in as long as we communicate to folks that it's not recommended for prod use

@adamhgriffith-uofu
Copy link
Contributor

Checking in on the status of this work as there are merge conflicts.

@adamhgriffith-uofu adamhgriffith-uofu marked this pull request as draft August 1, 2022 14:44
@adamhgriffith-uofu adamhgriffith-uofu changed the title [WIP] CertManager support for HostedCE CertManager support for HostedCE Aug 1, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants