Skip to content

Commit eb1d83b

Browse files
committed
feat(Dockerfiles): upgrade dependencies within the Dockerfiles
- This change will upgrade the various binaries mentioned within the three different Dockerfiles. We need to keep the binaries up to date to leverage either security fixes, or new features - Also, a bit of organizational change, we grouped all of the indirect dependencies to their own require block in the go.mod file. Signed-off-by: Casale, Robert <[email protected]>
1 parent 46eed84 commit eb1d83b

File tree

4 files changed

+28
-30
lines changed

4 files changed

+28
-30
lines changed

Dockerfile

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
FROM alpine:3.19 AS certs
2-
RUN apk --update add ca-certificates
3-
RUN adduser -D kconnect
1+
FROM alpine:3.20 AS certs
2+
RUN apk --update add ca-certificates && adduser -D kconnect
43

54
FROM scratch
65

76
COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
8-
COPY kconnect /
7+
COPY kconnect /
98

109
COPY --from=certs /etc/passwd /etc/passwd
1110
COPY --from=certs /home /home

Dockerfile.alpine

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
FROM alpine:3.19
1+
FROM alpine:3.20
22

3-
RUN apk --no-cache add ca-certificates
4-
COPY kconnect /
3+
RUN apk --no-cache add ca-certificates && adduser -D kconnect
4+
COPY kconnect /
55

6-
RUN adduser -D kconnect
76
USER kconnect
87
ENTRYPOINT ["/kconnect"]

Dockerfile.deps

+8-7
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
FROM alpine:3.19 AS builder
1+
FROM alpine:3.20 AS builder
22

3-
ARG AWS_IAM_AUTH_VERSION=0.6.14
4-
ARG ODIC_LOGIN_VERSION=1.28.0
5-
ARG KUBELOGIN_VERSION=0.1.3
6-
ARG KUBECTL_VERSION=1.31.0
7-
ARG HELM_VERSION=3.13.3
3+
ARG AWS_IAM_AUTH_VERSION=0.6.29
4+
ARG ODIC_LOGIN_VERSION=1.31.1
5+
ARG KUBELOGIN_VERSION=0.1.6
6+
ARG KUBECTL_VERSION=1.32.0
7+
ARG HELM_VERSION=3.16.4
88
ARG TARGETOS
99
ARG TARGETARCH
1010
ARG TARGETVARIANT
@@ -36,7 +36,8 @@ RUN curl -L \
3636
RUN curl -L https://get.helm.sh/helm-v${HELM_VERSION}-${TARGETOS}-${TARGETARCH}.tar.gz -o helm.tar.gz && \
3737
tar xvfz helm.tar.gz
3838

39-
FROM mcr.microsoft.com/azure-cli:2.56.0
39+
# Azure CLI
40+
FROM mcr.microsoft.com/azure-cli:2.67.0
4041
RUN apk --no-cache add ca-certificates
4142

4243
WORKDIR /app/

go.mod

+14-15
Original file line numberDiff line numberDiff line change
@@ -9,46 +9,31 @@ require (
99
github.com/Azure/azure-sdk-for-go v68.0.0+incompatible
1010
github.com/Azure/go-autorest/autorest v0.11.29
1111
github.com/Azure/go-autorest/autorest/azure/auth v0.5.13
12-
github.com/Azure/go-autorest/autorest/to v0.4.0 // indirect
13-
github.com/Azure/go-autorest/autorest/validation v0.3.0 // indirect
14-
github.com/Azure/go-ntlmssp v0.0.0-20211209120228-48547f28849e // indirect
15-
github.com/PuerkitoBio/goquery v1.9.2 // indirect
16-
github.com/andybalholm/cascadia v1.3.2 // indirect
1712
github.com/aws/aws-sdk-go v1.55.5
1813
github.com/beevik/etree v1.4.1
1914
github.com/blang/semver v3.5.1+incompatible
2015
github.com/brianvoe/gofakeit/v5 v5.11.2
2116
github.com/go-playground/validator/v10 v10.24.0
2217
github.com/golang/mock v1.6.0
2318
github.com/google/go-github v17.0.0+incompatible
24-
github.com/google/go-querystring v1.0.0 // indirect
25-
github.com/google/gofuzz v1.2.0 // indirect
2619
github.com/google/uuid v1.6.0
27-
github.com/marshallbrekka/go-u2fhost v0.0.0-20210111072507-3ccdec8c8105 // indirect
28-
github.com/mgutz/ansi v0.0.0-20200706080929-d51e80ef957d // indirect
2920
github.com/mitchellh/go-homedir v1.1.0
30-
github.com/mitchellh/mapstructure v1.5.0 // indirect
3121
github.com/oklog/ulid v1.3.1
3222
github.com/onsi/gomega v1.36.2
3323
github.com/pkg/errors v0.9.1
3424
github.com/sirupsen/logrus v1.9.3
35-
github.com/spf13/afero v1.11.0 // indirect
36-
github.com/spf13/cast v1.6.0 // indirect
3725
github.com/spf13/cobra v1.8.1
3826
github.com/spf13/pflag v1.0.5
3927
github.com/spf13/viper v1.19.0
4028
github.com/versent/saml2aws/v2 v2.36.17
41-
go.uber.org/multierr v1.11.0 // indirect
4229
go.uber.org/zap v1.27.0
43-
golang.org/x/crypto v0.32.0 // indirect
4430
golang.org/x/mod v0.22.0
4531
gopkg.in/ini.v1 v1.67.0
4632
gopkg.in/yaml.v2 v2.4.0
4733
k8s.io/apimachinery v0.32.0
4834
k8s.io/cli-runtime v0.32.0
4935
k8s.io/client-go v0.32.0
5036
sigs.k8s.io/yaml v1.4.0
51-
5237
)
5338

5439
require (
@@ -57,8 +42,13 @@ require (
5742
github.com/Azure/go-autorest/autorest/adal v0.9.22 // indirect
5843
github.com/Azure/go-autorest/autorest/azure/cli v0.4.6 // indirect
5944
github.com/Azure/go-autorest/autorest/date v0.3.0 // indirect
45+
github.com/Azure/go-autorest/autorest/to v0.4.0 // indirect
46+
github.com/Azure/go-autorest/autorest/validation v0.3.0 // indirect
6047
github.com/Azure/go-autorest/logger v0.2.1 // indirect
6148
github.com/Azure/go-autorest/tracing v0.6.0 // indirect
49+
github.com/Azure/go-ntlmssp v0.0.0-20211209120228-48547f28849e // indirect
50+
github.com/PuerkitoBio/goquery v1.9.2 // indirect
51+
github.com/andybalholm/cascadia v1.3.2 // indirect
6252
github.com/avast/retry-go v3.0.0+incompatible // indirect
6353
github.com/bearsh/hid v1.3.0 // indirect
6454
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
@@ -75,6 +65,8 @@ require (
7565
github.com/gogo/protobuf v1.3.2 // indirect
7666
github.com/golang-jwt/jwt/v4 v4.5.1 // indirect
7767
github.com/google/go-cmp v0.6.0 // indirect
68+
github.com/google/go-querystring v1.0.0 // indirect
69+
github.com/google/gofuzz v1.2.0 // indirect
7870
github.com/hashicorp/hcl v1.0.0 // indirect
7971
github.com/inconshreveable/mousetrap v1.1.0 // indirect
8072
github.com/jmespath/go-jmespath v0.4.0 // indirect
@@ -83,8 +75,11 @@ require (
8375
github.com/leodido/go-urn v1.4.0 // indirect
8476
github.com/liggitt/tabwriter v0.0.0-20181228230101-89fcab3d43de // indirect
8577
github.com/magiconair/properties v1.8.7 // indirect
78+
github.com/marshallbrekka/go-u2fhost v0.0.0-20210111072507-3ccdec8c8105 // indirect
8679
github.com/mattn/go-colorable v0.1.13 // indirect
8780
github.com/mattn/go-isatty v0.0.17 // indirect
81+
github.com/mgutz/ansi v0.0.0-20200706080929-d51e80ef957d // indirect
82+
github.com/mitchellh/mapstructure v1.5.0 // indirect
8883
github.com/moby/term v0.5.0 // indirect
8984
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
9085
github.com/modern-go/reflect2 v1.0.2 // indirect
@@ -94,12 +89,16 @@ require (
9489
github.com/sagikazarmark/locafero v0.4.0 // indirect
9590
github.com/sagikazarmark/slog-shim v0.1.0 // indirect
9691
github.com/sourcegraph/conc v0.3.0 // indirect
92+
github.com/spf13/afero v1.11.0 // indirect
93+
github.com/spf13/cast v1.6.0 // indirect
9794
github.com/subosito/gotenv v1.6.0 // indirect
9895
github.com/tidwall/gjson v1.17.1 // indirect
9996
github.com/tidwall/match v1.1.1 // indirect
10097
github.com/tidwall/pretty v1.2.1 // indirect
10198
github.com/trimble-oss/go-webauthn-client v0.3.0 // indirect
10299
github.com/x448/float16 v0.8.4 // indirect
100+
go.uber.org/multierr v1.11.0 // indirect
101+
golang.org/x/crypto v0.32.0 // indirect
103102
golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56 // indirect
104103
golang.org/x/net v0.34.0 // indirect
105104
golang.org/x/oauth2 v0.23.0 // indirect

0 commit comments

Comments
 (0)