-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added TLS certificate support for op-challenger
- Loading branch information
1 parent
6652a1a
commit 6139d27
Showing
4 changed files
with
48 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{{- if .Values.config.signer.tls.certManager.enabled }} | ||
apiVersion: cert-manager.io/v1 | ||
kind: Certificate | ||
metadata: | ||
name: {{ template "op-challenger.fullname" . }}-tls | ||
spec: | ||
secretName: {{ template "op-challenger.fullname" . }}-tls | ||
privateKey: | ||
algorithm: RSA | ||
encoding: PKCS1 | ||
size: 2048 | ||
|
||
duration: 2160h # 90d | ||
renewBefore: 360h # 15d | ||
|
||
isCA: false | ||
usages: | ||
- client auth | ||
|
||
subject: | ||
organizations: | ||
- cLabs | ||
# The use of the common name field has been deprecated since 2000 and is | ||
# discouraged from being used. | ||
commonName: {{ template "op-challenger.fullname" . }} | ||
|
||
# At least one of commonName (possibly through literalSubject), dnsNames, uris, emailAddresses, ipAddresses or otherNames is required. | ||
dnsNames: | ||
- {{ template "op-challenger.fullname" . }} | ||
|
||
# Issuer references are always required. | ||
issuerRef: | ||
name: {{ .Values.config.signer.tls.certManager.issuerName }} | ||
kind: {{ .Values.config.signer.tls.certManager.issuerKind }} | ||
group: {{ .Values.config.signer.tls.certManager.issuerGroup }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters