Commit Graph

7368 Commits

Author SHA1 Message Date
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
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
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
jetstack-bot
8a3811314f
Merge pull request #5656 from SgtCoDFish/trivydec
Bump golang.org/x/net version to fix trivy vulns
2022-12-20 12:35:52 +00:00
Ashley Davis
12e0e0a9eb
bump golang.org/x/net version to fix trivy vulns
Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
2022-12-20 11:57:39 +00:00
jetstack-bot
c27b7cea6a
Merge pull request #5654 from SgtCoDFish/updatesec
Update SECURITY policy to exclude vuln reports
2022-12-19 19:24:35 +00:00
Ashley Davis
1542ea0492
update SECURITY policy to exclude vuln reports
Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
2022-12-19 17:21:59 +00:00
jetstack-bot
501f4928ea
Merge pull request #5646 from SgtCoDFish/k8s1.26
Enable + use k8s 1.26 for e2e tests by default
2022-12-16 17:57:00 +00:00
Ashley Davis
1e419a468f
Enable + use k8s 1.26 for e2e tests by default
Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
2022-12-16 17:06:18 +00:00
Tim Ramlot
ff6fec9088
Bumps [helm.sh/helm/v3](https://github.com/helm/helm) from 3.10.0 to 3.10.3.
- [Release notes](https://github.com/helm/helm/releases)
- [Commits](helm/helm@v3.10.0...v3.10.3)

---
updated-dependencies:
- dependency-name: helm.sh/helm/v3
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-16 18:05:00 +01:00
Ashley Davis
c5924f54a1
add + use CABundle field for ACME servers in issuers
Previously it wasn't possible to set a custom CA bundle for an ACME
server, leading users to either patch the cert-manager system CA bundle
manually or else use SkipTLSVerify which is a security issue.

This adds CABundle for ACME, similar to what we have for Vault and
Venafi TPP issuers.

Longer term we'd like to have a more fully featured approach. It would
for example make sense to support loading CA bundles from ConfigMaps or
Secrets (similar to what we do for Vault issuers today), but for now this
change is the simplest change.

Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
2022-12-15 16:21:07 +00:00
Ashley Davis
f68693bb6a
change wording on descriptions for Vault and TPP 'CABundle' fields
Clarifies language a little; makes it clearer that the bundle
should be base64 encoded. Previously it was slightly confusing
in that PEM certificates are themselves base64 encoded.

Also makes it clearer what our CABundle validation does and does not do
by adding a standalone validation function and tweaking the error
message for an invalid CA bundle.

Also updates validation to not print CA bundle for Vault issuer when the
bundle is invalid, since it won't help with debugging anything.
Currently the bundle is printed as byte values ("0x32, 0x58, 0x43...")
and in any case printing the whole bundle could be noisy if it's large

Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
2022-12-15 16:21:02 +00:00
jetstack-bot
6806035cb7
Merge pull request #5637 from RomanenkoDenys/fix-kubebuilder-sha
fix kubebuilder tools arm64 sha256sum
2022-12-15 11:46:21 +00:00
jetstack-bot
a5a21693bc
Merge pull request #5629 from lucacome/bump-k8s-deps
Bump k8s.io deps to v0.26.0
2022-12-15 11:01:20 +00:00
Luca Comellini
bb252356a2
Update controller-runtime to v0.14.0
Signed-off-by: Luca Comellini <luca.com@gmail.com>
2022-12-14 21:53:42 -08:00
Tim Ramlot
8baaffc02b
kubebuilder did not yet create a 1.26 release
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
Signed-off-by: Luca Comellini <luca.com@gmail.com>
2022-12-14 21:53:42 -08:00
Tim Ramlot
26d04f3d8a
add WithLegacy function to our fake discovery client
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
Signed-off-by: Luca Comellini <luca.com@gmail.com>
2022-12-14 21:53:42 -08:00
Luca Comellini
c99c147059
Bump k8s.io deps to v0.26.0
Signed-off-by: Luca Comellini <luca.com@gmail.com>
2022-12-14 21:53:42 -08:00
jetstack-bot
19d433da15
Merge pull request #5638 from lvyanru8200/maxconcurrent
feat: Add max-concurrent-challenges parameter to helm
2022-12-14 12:01:42 +00:00
jetstack-bot
a1391d6995
Merge pull request #5604 from maelvls/upgrade-vault-in-e2e
End-to-end tests: use Vault 1.12.1 instead of the outdated Vault 1.2.3
2022-12-13 14:50:30 +00:00
lv
2f0d492036 feat: Add max-concurrent-challenges parameter to helm
Set the max-concurrent-challenges value with -set maxConcurrentChallenges=value when deploying with helm

Fixes: https://github.com/cert-manager/cert-manager/issues/5627
Signed-off-by: lvyanru <yanru.lv@daocloud.io>
2022-12-13 18:15:16 +08:00
Denis Romanenko
d62bf032f5 fix kubebuilder tools arm64 sha256sum
Signed-off-by: Denis Romanenko <denis.romanenko@flant.com>
2022-12-13 09:41:29 +03:00
jetstack-bot
a72095b800
Merge pull request #5632 from SgtCoDFish/fixtrivy
Bump dep versions to fix trivy-reported vulns
2022-12-12 15:32:45 +00:00
Ashley Davis
a099eb306a
bump dep versions to fix trivy-reported vulns
```text
{
  "VulnerabilityID": "CVE-2022-41717",
  "PkgName": "golang.org/x/net",
  "InstalledVersion": "v0.0.0-20220921155015-db77216a4ee9",
  "FixedVersion": "0.4.0",
  "Layer": {
    "DiffID": "sha256:629212d4fb1b47585329d1c630cb91f919ddcd6168031a07121953d6c6dbd438"
  },
  "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2022-41717",
  "DataSource": {
    "ID": "go-vulndb",
    "Name": "The Go Vulnerability Database",
    "URL": "https://github.com/golang/vulndb"
  },
  "Title": "An attacker can cause excessive memory growth in a Go server accepting ...",
  "Description": "An attacker can cause excessive memory growth in a Go server accepting HTTP/2 requests. HTTP/2 server connections contain a cache of HTTP header keys sent by the client. While the total number of entries in this cache is capped, an attacker sending very large keys can cause the server to allocate approximately 64 MiB per open connection.",
  "Severity": "UNKNOWN",
  "References": [
    "https://go.dev/cl/455635",
    "https://go.dev/cl/455717",
    "https://go.dev/issue/56350",
    "https://groups.google.com/g/golang-announce/c/L_3rmdT0BMU/m/yZDrXjIiBQAJ",
    "https://pkg.go.dev/vuln/GO-2022-1144"
  ],
  "PublishedDate": "2022-12-08T20:15:00Z",
  "LastModifiedDate": "2022-12-08T22:30:00Z"
}
```

Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
2022-12-12 11:12:33 +00:00
jetstack-bot
7ef91210ae
Merge pull request #5628 from yk/patch-1
Fixed a typo in helm chart values
2022-12-09 16:54:24 +00:00
Yannic Kilcher
5ce5129a3c
Fixed a typo in helm chart values
Signed-off-by: Yannic Kilcher <yk@users.noreply.github.com>
2022-12-09 11:55:33 +01:00
jetstack-bot
2f24231383
Merge pull request #5618 from SgtCoDFish/no-licenses-ci-presubmit
Remove verify-licenses from ci-presubmit
2022-12-07 11:25:20 +00:00
jetstack-bot
cb4d9b566d
Merge pull request #5619 from SgtCoDFish/bumpgo
Bump go to 1.19.4
2022-12-07 10:47:54 +00:00
Ashley Davis
22f3a6152d
bump go to 1.19.4
Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
2022-12-07 10:10:35 +00:00
jetstack-bot
0fa83c3f88
Merge pull request #5597 from sathyanarays/keystore_fix
Refreshing secrets if keystore format change
2022-12-07 06:05:54 +00:00
Ashley Davis
79bd127d3b
remove verify-licenses from ci-presubmit
see https://github.com/cert-manager/release/pull/111

Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
2022-12-06 16:40:20 +00:00
Sathyanarayanan Saravanamuthu
f719247d2b Addressing review comments
Signed-off-by: Sathyanarayanan Saravanamuthu <sathyanarays@vmware.com>
2022-12-06 18:54:46 +05:30
Sathyanarayanan Saravanamuthu
5aabf62585 Updating CRDs
Signed-off-by: Sathyanarayanan Saravanamuthu <sathyanarays@vmware.com>
2022-12-06 18:54:46 +05:30
Sathyanarayanan Saravanamuthu
94fa9eeee6 Addressing review comments
Signed-off-by: Sathyanarayanan Saravanamuthu <sathyanarays@vmware.com>
2022-12-06 18:54:46 +05:30
Sathyanarayanan Saravanamuthu
4a6bae60be Update internal/controller/certificates/policies/checks.go
Co-authored-by: Richard Wall <wallrj@users.noreply.github.com>
Signed-off-by: Sathyanarayanan Saravanamuthu <107846526+sathyanarays@users.noreply.github.com>
2022-12-06 18:54:46 +05:30
Sathyanarayanan Saravanamuthu
42ae76ae30 Refreshing secrets when the keystore fields change
Signed-off-by: Sathyanarayanan Saravanamuthu <sathyanarays@vmware.com>
2022-12-06 18:54:46 +05:30
jetstack-bot
37ae8b2773
Merge pull request #5595 from irbekrm/update_gwapi_install
Updates Gateway API test setup
2022-12-06 10:51:03 +00:00
irbekrm
c60a181baf Gateway and GatewayClass for tests are created against beta Gateway API
Signed-off-by: irbekrm <irbekrm@gmail.com>
2022-12-05 15:05:47 +00:00
irbekrm
0c8aa75b18 Corrects test Gateway resources
TLS block is only valid for TLS listeners

Signed-off-by: irbekrm <irbekrm@gmail.com>
2022-12-05 15:05:45 +00:00