Skip to content

Commit

Permalink
fix: add kube-oidc-proxy custom ca bundle copy (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
mhrabovcin authored Mar 12, 2024
1 parent 6472753 commit 3ba2ab9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion kube-oidc-proxy/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@ ARG BASE_IMAGE

FROM $SOURCE_IMAGE as source

FROM ${BASE_IMAGE} as certs

FROM ${BASE_IMAGE}

# RUN apk --no-cache add ca-certificates && update-ca-certificates
COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/certs-bundle.crt

# See: https://github.com/TremoloSecurity/kube-oidc-proxy/blob/1acdbd93710e61117d6daf90f541f2107552d9e6/Dockerfile
COPY --from=source /usr/bin/kube-oidc-proxy /usr/local/bin/kube-oidc-proxy
Expand Down
2 changes: 2 additions & 0 deletions kube-oidc-proxy/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ There is a [maintained fork](https://www.tremolosecurity.com/post/updating-kube-

The forked image gets rebuilt by copying the fork build and adding it to static distroless container image to minimize attack surface.

The CA certs bundle from the original distroless container image is copied to the `/etc/ssl/certs/certs-bundle.crt` that allows specific overrides.

## Build

```
Expand Down

0 comments on commit 3ba2ab9

Please sign in to comment.