-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* implement selfSigned issuer * enable cert duration for ca issuer * enable cert duration for acme issuer * checks for isCA and duration * set requests per day to MaxInt for CA and self-signed issuer * Update pkg/controller/issuer/ca/handler.go Co-authored-by: Martin Weindel <martin.weindel@sap.com> * chore: Remove obsolete script format.sh * style: Run `make format` * fix: Resolve mishaps from rebase * style: Add trailing newline * fix: Dereference duration pointer * refactor: Rename multipleIssuerTypes to hasMultipleIssuerTypes * chore: Fix typo in comment * fix: Check against nil Duration pointer * fix: Check against nil Duration pointer * chore: Fix typo in comment * test: Add self-signed controller unit tests * test: Add certificate controller unit tests * test: Add issuer info unit test * test: Add PKI unit tests * test: Add certificate unit tests * chore: Use proper assertion HaveCap() * style: Format Go imports * chore: Add missing license headers * test: Wrap ACME issuer test in context * test: Integration test for self-signed certificates * test: Structure self-signed certificate unit test * style: Add period after comment (PR review) * style: Add period after comment (PR review) * style: Add period after comment (PR review) * test: Fix test name (PR review) * test: Assert private key size properly (PR review) * test: Assert private key size (PR review) --------- Co-authored-by: Martin Weindel <martin.weindel@sap.com> Co-authored-by: Marc Vornetran <marc.vornetran@sap.com>
- Loading branch information
1 parent
b094e0f
commit e224d15
Showing
29 changed files
with
901 additions
and
73 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
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,7 @@ | ||
apiVersion: cert.gardener.cloud/v1alpha1 | ||
kind: Issuer | ||
metadata: | ||
name: issuer-selfsigned | ||
namespace: default | ||
spec: | ||
selfSigned: {} |
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,23 @@ | ||
apiVersion: cert.gardener.cloud/v1alpha1 | ||
kind: Certificate | ||
metadata: | ||
name: cert-selfsigned | ||
namespace: default | ||
spec: | ||
commonName: ca1.mydomain.com | ||
isCA: true | ||
# optional: default is 90 days (2160h). Must be greater 2*30 days (1440h) | ||
# duration: 1441h | ||
# optional defaults to RSA 2048 | ||
# privateKey: | ||
# algorithm: ECDSA | ||
# size: 384 | ||
# CSR can also be specified | ||
# csr: ... | ||
issuerRef: | ||
name: issuer-selfsigned | ||
namespace: default # must be specified when issuer runs in shoot! | ||
# optional: secret where the certificate should be stored | ||
#secretRef: | ||
# name: cert-selfsigned-foo | ||
# namespace: default |
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.