Skip to content

Commit

Permalink
feat: use Go 1.20.3 for builds
Browse files Browse the repository at this point in the history
also bump dependencies to latest and use new base image
Alpine Linux 3.17.3, that contains mitigations for:
* openssl CVE-2023-0464
* openssl CVE-2023-0465
  • Loading branch information
aellwein committed Apr 5, 2023
1 parent 29fb381 commit 15c916f
Show file tree
Hide file tree
Showing 8 changed files with 111 additions and 20 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM --platform=$BUILDPLATFORM golang:1.19.5-alpine3.17 AS build
FROM --platform=$BUILDPLATFORM golang:1.20.3-alpine3.17 AS build
RUN apk add --no-cache git
WORKDIR /workspace
COPY go.mod go.sum .
Expand All @@ -7,7 +7,7 @@ COPY . .
ARG TARGETOS TARGETARCH
RUN CGO_ENABLED=0 GOOS=$TARGETOS GOARCH=$TARGETARCH go build -o webhook -ldflags '-w -extldflags "-static"' .

FROM alpine:3.17.2
FROM alpine:3.17.3
RUN apk add --no-cache ca-certificates
COPY --from=build /workspace/webhook /usr/local/bin/webhook
ENTRYPOINT ["webhook"]
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ OS ?= $(shell go env GOOS)
ARCH ?= $(shell go env GOARCH)

IMAGE_NAME := "elvino76/cert-manager-webhook-netcup"
IMAGE_TAG := "1.0.13"
IMAGE_TAG := "1.0.14"

OUT := $(shell pwd)/_out

Expand Down
Binary file added charts/cert-manager-webhook-netcup-1.0.14.tgz
Binary file not shown.
54 changes: 54 additions & 0 deletions charts/cert-manager-webhook-netcup-1.0.14.tgz.prov
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

annotations:
artifacthub.io/changes: |
- kind: added
description: "use Go 1.20.3 for builds"
- kind: fixed
description: "upgrade base image to mitigate openssl CVE-2023-0464"
- kind: fixed
description: "upgrade base image to mitigate openssl CVE-2023-0465"
artifacthub.io/containsSecurityUpdates: "true"
artifacthub.io/license: Apache-2.0
artifacthub.io/maintainers: |
- name: Alex Ellwein
email: [email protected]
artifacthub.io/signKey: |
fingerprint: "F91914CE96676E209A8240290EEF2777053A7D1A"
url: https://keybase.io/aellwein/pgp_keys.asc
apiVersion: v1
appVersion: 1.0.14
description: A Helm chart for cert manager webhook solver for ACME DNS01 challenge
via Netcup
home: https://github.com/aellwein/cert-manager-webhook-netcup
icon: https://raw.githubusercontent.com/cert-manager/cert-manager/master/logo/logo.png
keywords:
- - cert-manager
- - webhook
- - letsencrypt
- - netcup
- - ACME
- - DNS01
name: cert-manager-webhook-netcup
version: 1.0.14

...
files:
./cert-manager-webhook-netcup-1.0.14.tgz: sha256:5ae3d345efadfd55f8b3c154fd81f2ccd95896bed24ee918c9d71d495021a6b5
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEE1HATsJzIi3L2TkHNV/husVzFn5YFAmQtew4ACgkQV/husVzF
n5Y4BQ//ZoBnzpFg1nKeYjfU+YYuadI2mdrgSHjyPFyyKeNe/eZjoGWOUd2dui0H
lza+27zgb+3fKdabfBr8BCpwGPgIqX4mcA0INxvQ1xQPvEDf8HnxOII7CoyUQ2Vo
AQ1zJmy47UAjWlF3zVXvPnchrdGH053yDen3r87/33jckF/LnUhelfeyikC/zQbP
M1XE7NySsPAWVPo6uEtzKlgGVngqY2xL4pvRzHf8RBqKFAkP14rJwROT9s1+ia8g
d2aZMY+fHkV/DVhcvSiyffyDfKAqEbGVbRro7LQ8gOciuAEGq8xP7qybVxv5aRys
JWBMd7V++84LJNHKODGDj545qSNvneettzIkUtprjEd9/dd2zozjbDc56GiC7D8H
vSgg7vf2f1lLbZRFWhlWu3HaERRV11nwoIlqy8iuLxRPGjfLu8xq2gH8xIwR6dP6
oL8WJKIKFyVRiXTaro/CnVSt1pQk/49MAM4MsGujK9XdX8UA6ZPyOjkzSPy8U4hS
AurnzhoVrD5ArQopOBqkmH4Ff/A12gP/a2t8QZef3/AM9W7mMDD8LfDB0SWDEPWL
bOt8JG37+7ehhLRDSy2m94+PnZ16Qh5TzrgBOfaXl2ISoYS3w0POIgrT8eBGnksr
UMq+OBmhkmL4EaoGwhGsph3TiNhW7OB+RA5waGoyqpJXa6+PZ0A=
=amcs
-----END PGP SIGNATURE-----
57 changes: 46 additions & 11 deletions charts/index.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,41 @@
apiVersion: v1
entries:
cert-manager-webhook-netcup:
- annotations:
artifacthub.io/changes: |
- kind: added
description: "use Go 1.20.3 for builds"
- kind: fixed
description: "upgrade base image to mitigate openssl CVE-2023-0464"
- kind: fixed
description: "upgrade base image to mitigate openssl CVE-2023-0465"
artifacthub.io/containsSecurityUpdates: "true"
artifacthub.io/license: Apache-2.0
artifacthub.io/maintainers: |
- name: Alex Ellwein
email: [email protected]
artifacthub.io/signKey: |
fingerprint: "F91914CE96676E209A8240290EEF2777053A7D1A"
url: https://keybase.io/aellwein/pgp_keys.asc
apiVersion: v1
appVersion: 1.0.14
created: "2023-04-05T15:44:03.596025+02:00"
description: A Helm chart for cert manager webhook solver for ACME DNS01 challenge
via Netcup
digest: 5ae3d345efadfd55f8b3c154fd81f2ccd95896bed24ee918c9d71d495021a6b5
home: https://github.com/aellwein/cert-manager-webhook-netcup
icon: https://raw.githubusercontent.com/cert-manager/cert-manager/master/logo/logo.png
keywords:
- cert-manager
- webhook
- letsencrypt
- netcup
- ACME
- DNS01
name: cert-manager-webhook-netcup
urls:
- cert-manager-webhook-netcup-1.0.14.tgz
version: 1.0.14
- annotations:
artifacthub.io/changes: |
- kind: added
Expand All @@ -17,7 +52,7 @@ entries:
url: https://keybase.io/aellwein/pgp_keys.asc
apiVersion: v1
appVersion: 1.0.13
created: "2023-02-27T20:33:47.945252+01:00"
created: "2023-04-05T15:44:03.595749+02:00"
description: A Helm chart for cert manager webhook solver for ACME DNS01 challenge
via Netcup
digest: 68f71804f042cf7d2a6a2470cb4dfb8c48c26389f07f66e266ae9a0619a15c21
Expand Down Expand Up @@ -77,7 +112,7 @@ entries:
email: [email protected]
apiVersion: v1
appVersion: 1.0.12
created: "2023-02-27T20:33:47.944969+01:00"
created: "2023-04-05T15:44:03.595449+02:00"
description: A Helm chart for cert manager webhook solver for ACME DNS01 challenge
via Netcup
digest: bede761557c38f373c3923f9d9128f77c8fc32d2b1d79f1fda4cb548c031f62d
Expand All @@ -104,7 +139,7 @@ entries:
email: [email protected]
apiVersion: v1
appVersion: 1.0.11
created: "2023-02-27T20:33:47.944671+01:00"
created: "2023-04-05T15:44:03.595159+02:00"
description: A Helm chart for cert manager webhook solver for ACME DNS01 challenge
via Netcup
digest: aa66de90af78012c0521d3ec48265746ee97f26640248e4b68328331c4ce6f2d
Expand Down Expand Up @@ -132,7 +167,7 @@ entries:
email: [email protected]
apiVersion: v1
appVersion: 1.0.10
created: "2023-02-27T20:33:47.944394+01:00"
created: "2023-04-05T15:44:03.594879+02:00"
description: A Helm chart for cert manager webhook solver for ACME DNS01 challenge
via Netcup
digest: f6ec08186bf14c204eef0971e9c84545b5a8bb3d455d7cdcca488ddc71830695
Expand Down Expand Up @@ -161,7 +196,7 @@ entries:
email: [email protected]
apiVersion: v1
appVersion: 1.0.9
created: "2023-02-27T20:33:47.947169+01:00"
created: "2023-04-05T15:44:03.598191+02:00"
description: A Helm chart for cert manager webhook solver for ACME DNS01 challenge
via Netcup
digest: d3b6eab27e21af3ae6fb5473e4b0e5db8d75c95bf5ee9b7f1b2e25e98b488bd3
Expand All @@ -180,7 +215,7 @@ entries:
version: 1.0.9
- apiVersion: v1
appVersion: 1.0.8
created: "2023-02-27T20:33:47.946282+01:00"
created: "2023-04-05T15:44:03.59762+02:00"
description: Allow cert-manager to solve DNS challenges using Netcup DNS API
digest: 4b1c49ef9ab1c57428cff35824dd7cb13f187af74fa7dcd560dd788aa0dce892
name: cert-manager-webhook-netcup
Expand All @@ -189,7 +224,7 @@ entries:
version: 1.0.8
- apiVersion: v1
appVersion: 1.0.7
created: "2023-02-27T20:33:47.946072+01:00"
created: "2023-04-05T15:44:03.59686+02:00"
description: Allow cert-manager to solve DNS challenges using Netcup DNS API
digest: 0d262079f7326e41020df239298f5106bebaf9d797a9ce61550caa6457237a69
name: cert-manager-webhook-netcup
Expand All @@ -198,7 +233,7 @@ entries:
version: 1.0.7
- apiVersion: v1
appVersion: 1.0.6
created: "2023-02-27T20:33:47.945868+01:00"
created: "2023-04-05T15:44:03.596661+02:00"
description: Allow cert-manager to solve DNS challenges using Netcup DNS API
digest: f1eb0f11758d480a6fa187a54cdca8669b1ccdb75f022b53d84253723827b7c7
name: cert-manager-webhook-netcup
Expand All @@ -207,7 +242,7 @@ entries:
version: 1.0.6
- apiVersion: v1
appVersion: 1.0.5
created: "2023-02-27T20:33:47.945677+01:00"
created: "2023-04-05T15:44:03.596469+02:00"
description: Allow cert-manager to solve DNS challenges using Netcup DNS API
digest: 24df7547c2509b06972440c318a22e7e62c0c00c55a796b2c71b70c2e6a1f9bf
name: cert-manager-webhook-netcup
Expand All @@ -216,11 +251,11 @@ entries:
version: 1.0.5
- apiVersion: v1
appVersion: 1.0.3
created: "2023-02-27T20:33:47.945461+01:00"
created: "2023-04-05T15:44:03.596247+02:00"
description: Allow cert-manager to solve DNS challenges using Netcup DNS API
digest: 03f7f124bb6d76a606a9ed598466b1f4aa422c4406bde52cfff1202a209cd9fd
name: cert-manager-webhook-netcup
urls:
- cert-manager-webhook-netcup-1.0.3.tgz
version: 1.0.3
generated: "2023-02-27T20:33:47.943991+01:00"
generated: "2023-04-05T15:44:03.594464+02:00"
10 changes: 6 additions & 4 deletions deploy/cert-manager-webhook-netcup/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
appVersion: "1.0.13"
version: 1.0.13
appVersion: "1.0.14"
version: 1.0.14
description: A Helm chart for cert manager webhook solver for ACME DNS01 challenge via Netcup
name: cert-manager-webhook-netcup
home: https://github.com/aellwein/cert-manager-webhook-netcup
Expand All @@ -20,9 +20,11 @@ annotations:
artifacthub.io/containsSecurityUpdates: "true"
artifacthub.io/changes: |
- kind: added
description: "bump dependencies"
description: "use Go 1.20.3 for builds"
- kind: fixed
description: "upgrade golang.org/x/net to 0.7.0 to mitigate CVE-2022-41723"
description: "upgrade base image to mitigate openssl CVE-2023-0464"
- kind: fixed
description: "upgrade base image to mitigate openssl CVE-2023-0465"
artifacthub.io/signKey: |
fingerprint: "F91914CE96676E209A8240290EEF2777053A7D1A"
url: https://keybase.io/aellwein/pgp_keys.asc
2 changes: 1 addition & 1 deletion deploy/cert-manager-webhook-netcup/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ certManager:

image:
repository: elvino76/cert-manager-webhook-netcup
tag: 1.0.13
tag: 1.0.14
# sha hash can be used to specify image version, instead of tag
hash: ""
pullPolicy: IfNotPresent
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/aellwein/cert-manager-webhook-netcup

go 1.19
go 1.20

require (
github.com/aellwein/netcup-dns-api v1.0.3
Expand Down

0 comments on commit 15c916f

Please sign in to comment.