Skip to content

Commit 01a00c9

Browse files
committed
chore(deps): 2025.12.0
adds wget back, and removes checksum verification. since github added automatic checksums, bitwarden stopped publishing the txt checksum files. extracting the checksum hash from github releases is non-trivial and would require a lot of changes to the Dockerfile that wouldn't be reflected on the external-secrets documentation page. the point of this repo is to be in lock-step with those docs, so i'm removing it. if someone adds the checksum verification logic to the `Dockerfile` on docs page, i will add it back here refs: - #7
1 parent 31c9dc2 commit 01a00c9

3 files changed

Lines changed: 11 additions & 23 deletions

File tree

Dockerfile

Lines changed: 9 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,15 @@
1-
FROM alpine:latest AS downloader
2-
3-
ARG BW_VERSION=2025.6.1
4-
5-
RUN apk update --no-cache \
6-
&& apk add --no-cache curl jq \
7-
&& curl -sLo bw.zip "https://github.com/bitwarden/clients/releases/download/cli-v${BW_VERSION}/bw-oss-linux-${BW_VERSION}.zip" \
8-
&& echo $(\
9-
curl -sL "https://api.github.com/repos/bitwarden/clients/releases/tags/cli-v${BW_VERSION}" | \
10-
jq -r ".assets[] | select(.name == \"bw-oss-linux-${BW_VERSION}.zip\") .digest" | \
11-
cut -f2 -d:) bw.zip > sum.txt \
12-
&& sha256sum -sc sum.txt \
13-
&& unzip bw.zip
14-
151
FROM debian:sid
162

17-
COPY --from=downloader bw /usr/local/bin/
18-
19-
USER 1000
20-
21-
WORKDIR /bw
3+
ARG BW_CLI_VERSION=2025.12.0
224

23-
ENV HOME=/bw
5+
RUN apt update && \
6+
apt install -y wget unzip && \
7+
wget https://github.com/bitwarden/clients/releases/download/cli-v${BW_CLI_VERSION}/bw-oss-linux-${BW_CLI_VERSION}.zip && \
8+
unzip bw-linux-${BW_CLI_VERSION}.zip && \
9+
chmod +x bw && \
10+
mv bw /usr/local/bin/bw && \
11+
rm -rfv *.zip
2412

2513
COPY entrypoint.sh /
2614

27-
ENTRYPOINT ["/entrypoint.sh"]
15+
CMD ["/entrypoint.sh"]

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ this is based on the code in the [external-secrets documentation](https://extern
66

77
both the `Dockerfile` and `entrypoint.sh` are a near-identical copy/paste.
88

9-
the only changes are to the `Dockerfile` to add shasum checking (thanks [majabojarska](https://github.com/majabojarska)!), and to convert `BW_CLI_VERSION` from an `ENV` to an `ARG`,
9+
the only changes are to the `Dockerfile` to convert `BW_CLI_VERSION` from an `ENV` to an `ARG`,
1010
so that the official upstream version can be read from the `VERISON` file for the `ARG` as well as the image tag
1111

1212
# tag convention

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2025.6.1
1+
2025.12.0

0 commit comments

Comments
 (0)