Commit Graph

7404 Commits

Author SHA1 Message Date
irbekrm
65be2caaae Initial commit
Signed-off-by: irbekrm <irbekrm@gmail.com>
2023-01-10 18:33:20 +00:00
jetstack-bot
aa7fe1130c
Merge pull request #5660 from irbekrm/certificate_labels
Ensures that certificate.spec.secretName and temporary private key Secrets are labelled
2023-01-09 10:57:30 +00:00
jetstack-bot
7c175c5d80
Merge pull request #5693 from SgtCoDFish/extraarghs
Move custom acmesolver image above extraArgs
2023-01-09 09:37:30 +00:00
irbekrm
5e8fd7dc41 Policy check ensures that cert.sepc.secretName secret gets labelled
Makes sure that when an unlabelled Secret is encountered at any point (even outside issuance) it will be labelled

Signed-off-by: irbekrm <irbekrm@gmail.com>
2023-01-06 18:31:31 +00:00
irbekrm
213949a590 Keymanager controller ensures that temporary private key Secrets are labelled
Signed-off-by: irbekrm <irbekrm@gmail.com>
2023-01-06 18:30:34 +00:00
irbekrm
c7465fd921 Issuing controller ensures that cert.spec.secretName secrets are labelled
Signed-off-by: irbekrm <irbekrm@gmail.com>
2023-01-06 18:29:51 +00:00
irbekrm
767170d65f Adds a new label to cert-manager API
Signed-off-by: irbekrm <irbekrm@gmail.com>
2023-01-06 18:28:50 +00:00
jetstack-bot
248eff5bce
Merge pull request #5694 from irbekrm/fix_cainjector_namespace
Fix cainjector's namespace flag
2023-01-06 10:43:41 +00:00
irbekrm
ff80030737 Log error if CA source is in a namespace that is not in scope
cainjector will still watch cluster-scoped resources such as CRDs, so it can get references to Secrets or Certificates in namespaces that are out of scope

Signed-off-by: irbekrm <irbekrm@gmail.com>
2023-01-06 10:09:36 +00:00
jetstack-bot
093610997e
Merge pull request #5691 from irbekrm/remove_redundant_secret_cache
Ensures that only one secrets cache is created for cert-manager controller
2023-01-06 09:36:50 +00:00
jetstack-bot
6f651193ec
Merge pull request #5692 from lucacome/bump-golang.org
Bump golang.org/x/crypto and golang.org/x/oauth2
2023-01-05 18:28:49 +00:00
irbekrm
87bef52337 Fix cainjector's namespace flag
Ensures that when cainjector has the namespace flag passed, namespaced resource caching is scoped to that namespace

Signed-off-by: irbekrm <irbekrm@gmail.com>
2023-01-05 18:15:19 +00:00
irbekrm
eaf814cffa Code review feedback- better comment
Signed-off-by: irbekrm <irbekrm@gmail.com>
2023-01-05 17:42:40 +00:00
Luca Comellini
02297b4e56
Bump golang.org/x/crypto and golang.org/x/oauth2
Signed-off-by: Luca Comellini <luca.com@gmail.com>
2023-01-05 17:58:22 +01:00
Ashley Davis
264ebe6d29
move custom acmesolver image above extraArgs
since the acmesolver image has defaults (i.e. the repository is set by
default[1]), the helm chart changes introduced in #5554 will always set
the `--acme-http01-solver-image` parameter.

This can break users who previously had this parameter set via the
extraArgs Helm option, which was found and reported on Slack[2].

This commit moves the new Helm value added in #5554 above extraArgs,
so that if extraArgs is set it will take precedence and nothing should
change as users upgrade.

[1] a5d67d3a21/deploy/charts/cert-manager/values.yaml (L504-L516)
[2] https://kubernetes.slack.com/archives/CDEQJ0Q8M/p1672925692339849

Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
2023-01-05 16:42:57 +00:00
irbekrm
8ed0faf228 Fix integration tests
Signed-off-by: irbekrm <irbekrm@gmail.com>
2023-01-05 12:07:25 +00:00
irbekrm
036b013942 Ensures that only one secrets cache is created for cert-manager controller
Signed-off-by: irbekrm <irbekrm@gmail.com>
2023-01-05 10:11:48 +00:00
jetstack-bot
a5d67d3a21
Merge pull request #5688 from SgtCoDFish/bumpbase
bump base images to latest
2023-01-04 16:09:01 +00:00
Ashley Davis
6d1a65c771
bump base images to latest
Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
2023-01-04 15:34:15 +00:00
jetstack-bot
094b4c763e
Merge pull request #5662 from lucacome/bump-controller-tools
Bump sigs.k8s.io deps
2023-01-04 14:02:00 +00:00
jetstack-bot
b6013599e4
Merge pull request #5681 from SgtCoDFish/noconfuse
Avoid logging confusing error messages for external issuers
2023-01-04 12:48:00 +00:00
Ashley Davis
0225cc9234
avoid logging confusing error messages for external issuers
See https://github.com/cert-manager/cert-manager/issues/5601

When referring to external issuers whose kind is not "Issuer" or
"ClusterIssuer" we log an error message thanks to a new check added in
a previous PR[1] which should only trigger for SelfSigned issuers.

The error previously looked like:

```text
"error"="invalid value \"x\" for issuerRef.kind. Must
be empty, \"Issuer\" or \"ClusterIssuer\""
```

After this PR, any CR with an issuer whose group or kind doesn't
match what's expected for a built-in issuer will be skipped

https://github.com/cert-manager/cert-manager/pull/5336

Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>

WIP: test other issuer kinds

Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
2023-01-04 12:10:34 +00:00
jetstack-bot
ffcd374e14
Merge pull request #5685 from wallrj/make-ko-deploy-certmanager-with-helm-values
Allow custom helm values files to be supplied to make ko-deploy-certmanager
2023-01-04 10:54:00 +00:00
jetstack-bot
e473c89490
Merge pull request #5684 from wallrj/remove-duplicate-ko-make-targets
Remove duplicate ko-deploy-cert-manager make target
2023-01-04 09:31:11 +00:00
jetstack-bot
d8a6ec0dcb
Merge pull request #5663 from weisdd/fix/azure-workload-identity-early-reconcilation
fix(AzureDNS): prevent early reconciliations for misconfigured Workload Identity
2023-01-03 18:00:10 +00:00
jetstack-bot
a12ff40f12
Merge pull request #5679 from SgtCoDFish/ginkgo-tweaks
Various ginkgo tweaks
2023-01-03 17:24:10 +00:00
Richard Wall
33ba0f3ae7 Allow custom helm values files to be supplied to make ko-deploy-certmanager
Signed-off-by: Richard Wall <richard.wall@jetstack.io>
2023-01-03 17:23:58 +00:00
Richard Wall
67297a1b80 Remove trailing escape slash
Signed-off-by: Richard Wall <richard.wall@jetstack.io>
2023-01-03 16:51:31 +00:00
Ashley Davis
f8bee19c04
various ginkgo tweaks
1. Remove deprecated args (progress, slow spec threshold)
2. Disable colors in CI

Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
2023-01-03 16:47:56 +00:00
Richard Wall
5f1a4ac91c Remove duplicate ko-deploy-cert-manager make target
Signed-off-by: Richard Wall <richard.wall@jetstack.io>
2023-01-03 16:44:42 +00:00
jetstack-bot
abfc9b7da8
Merge pull request #5680 from SgtCoDFish/tmpdirtweak
Use template when generating tempdir in verify-crds
2023-01-03 16:30:11 +00:00
Ashley Davis
c685efeb03
use template when generating tempdir in verify-crds
Due to a bug in controller-gen[1] certain paths are incorrectly split
and part of these paths can be interpreted as a numeric literal, which
will cause controller-gen to fail. We observe this as occasional test
flakes in the "verify-crds" target, when the tmpdir starts with a zero,
such as in "/tmp/tmp.0PFqFSHBID"

This commit attempts to avoid this bug by specifying a template for the
tmpdir we generate when verifying CRDs which doesn't include any "."
characters, which seem to be being split incorrectly.

[1] https://github.com/kubernetes-sigs/controller-tools/issues/734

Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
2023-01-03 15:14:02 +00:00
jetstack-bot
98498ef17e
Merge pull request #5674 from maelvls/upgrade-vcert
vcert: upgrade to v4.23.0 to fix certificate renewal stuck on TPP errors ("Click Retry" and "WebSDK CertRequest")
2023-01-03 12:15:46 +00:00
Maël Valais
6403091073 update LICENSES (make update-licenses)
Signed-off-by: Maël Valais <mael@vls.dev>
2023-01-03 11:46:33 +01:00
Maël Valais
dcab0d2e3f vcert: upgrade to v4.23.0 to fix "Click Retry" and "WebSDK CertRequest"
cert-manager was not able to retry failed TPP certificates due to the
fact that TPP will not reset a given certificate that has a failed
enrollment status from a previous enrollment. More specifically,
cert-manager was getting stuck with either:

    WebSDK CertRequest Module Requested Certificate

or

    This certificate cannot be processed while it is in an error state.
    Fix any errors, and then click Retry.

With vcert v4.23.0, a call to "reset" is made when one of these two
messages are found while polling for the certificate (i.e., while
calling vcert's RetrieveCertificate function).

Signed-off-by: Maël Valais <mael@vls.dev>
2023-01-02 13:21:46 +01:00
Igor Beliakov
1c01973813 fix(AzureDNS): suppress original message in adal.TokenRefreshError to prevent early CR reconciliations due to unique data (timestamp, Trace ID) that lands to CR status
Signed-off-by: Igor Beliakov <demtis.register@gmail.com>
2022-12-22 11:59:37 +01:00
jetstack-bot
2a7fabd5ca
Merge pull request #5554 from camptocamp/helm-add-acme-http01-solver-image-override-option
helm: add option to override ACME HTTP-01 solver image
2022-12-22 10:10:13 +00:00
Yann Soubeyrand
ea0bea9db0 helm: add option to override ACME HTTP-01 solver image
Signed-off-by: Yann Soubeyrand <yann.soubeyrand@camptocamp.com>
2022-12-21 19:48:11 +01:00
jetstack-bot
ca318f1d41
Merge pull request #5661 from SgtCoDFish/helmchartversionfix
Bump supported versions of k8s mentioned in the helm chart
2022-12-21 17:57:13 +00:00
Luca Comellini
dbd6dc9b16
Bump sigs.k8s.io deps
Signed-off-by: Luca Comellini <luca.com@gmail.com>
2022-12-21 09:47:41 -08:00
Ashley Davis
1a63cba52a
Bump supported versions of k8s mentioned in the helm chart
This reflects the latest supported releases as of an update on
2022-12-16

See https://github.com/cert-manager/website/pull/1131

Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
2022-12-21 17:17:21 +00:00
jetstack-bot
8deaca755d
Merge pull request #5644 from SgtCoDFish/acmeissuerbundle
Add CABundle for ACME Servers
2022-12-21 15:08:13 +00:00
jetstack-bot
9a68a86ac6
Merge pull request #5655 from wallrj/images-push
Experimental make targets for pushing images to a Docker registry and redeploying cert-manager
2022-12-21 13:12:56 +00:00
Richard Wall
755fec1170 Add some experimental ko based build and deploy tools
Signed-off-by: Richard Wall <richard.wall@jetstack.io>
2022-12-21 12:12:09 +00:00
jetstack-bot
a7671cf205
Merge pull request #5659 from SgtCoDFish/bumpbase
Update base images to latest
2022-12-21 10:25:36 +00:00
jetstack-bot
8641c4a697
Merge pull request #5641 from cert-manager/dependabot/go_modules/helm.sh/helm/v3-3.10.3
Bump helm.sh/helm/v3 from 3.10.0 to 3.10.3
2022-12-20 18:31:35 +00:00
jetstack-bot
6e0f99de81
Merge pull request #5658 from SgtCoDFish/harmonizecontour
Bump version of contour helm chart + images
2022-12-20 17:26:52 +00:00
Ashley Davis
a08cf19aa7
update base images to latest
Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
2022-12-20 17:21:01 +00:00
Ashley Davis
31a3edf031
Bump version of contour helm chart + images
Also adds a note about how to update the helm chart version, in the
future

Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
2022-12-20 16:05:40 +00:00
Richard Wall
2eef0dad06 Add ko tool
Signed-off-by: Richard Wall <richard.wall@jetstack.io>
2022-12-20 15:38:19 +00:00