Repository navigation
Bump Cloudflared to 2026.9.1 #153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| FROM --platform=$BUILDPLATFORM golang:1.26.8 AS builder | ||
|
|
||
| ARG TARGETOS | ||
| ARG TARGETARCH | ||
| ENV GO111MODULE=on \ | ||
| CGO_ENABLED=0 \ | ||
| GOPROXY=https://athens.cfdata.org|https://proxy.golang.org|direct \ | ||
| TARGET_GOOS=${TARGETOS} \ | ||
| TARGET_GOARCH=${TARGETARCH} \ | ||
| CONTAINER_BUILD=1 \ | ||
| CLOUDFLARED_VERSION=2026.9.1 | ||
| WORKDIR /go/src/github.com/cloudflare/cloudflared/ | ||
|
|
||
| # copy our sources into the builder image | ||
| RUN git clone --branch ${CLOUDFLARED_VERSION} --single-branch --depth 1 https://github.com/cloudflare/cloudflared.git . | ||
|
|
||
| # Download dependencies separately from compilation. | ||
| RUN go mod download | ||
|
|
||
| # compile cloudflared | ||
| RUN GOOS=${TARGET_GOOS} GOARCH=${TARGET_GOARCH} make cloudflared | ||
|
|
||
| # use a distroless base image with glibc | ||
| FROM gcr.io/distroless/base-debian13:nonroot@sha256:d199d20fb09c898d8822ae5cbd5cf3c6d424e9b5e1fc2eb9a719a7752cd9d861 | ||
|
|
||
| LABEL org.opencontainers.image.source="https://github.com/cloudflare/cloudflared" | ||
|
|
||
| # copy our compiled binary | ||
| COPY --from=builder --chown=nonroot /go/src/github.com/cloudflare/cloudflared/cloudflared /usr/local/bin/ | ||
|
|
||
| # run as nonroot user | ||
| USER 65532:65532 | ||
|
|
||
| # command / entrypoint of container | ||
| ENTRYPOINT ["cloudflared", "--no-autoupdate"] | ||
| CMD ["version"] | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔒 Security & Privacy | 🛡️ Analyzed with Security Review | 🟡 Minor | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
Repository: btcpayserver/dockerfile-deps
Length of output: 5587
🤖 get_repo_knowledge executed:
get_repo_knowledge btcpayserver/dockerfile-deps /tmp/coderabbit-repo-knowledge/btcpayserver-dockerfile-deps-fa0f784c/architectureLength of output: 18435
🏁 Script executed:
Repository: btcpayserver/dockerfile-deps
Length of output: 4050
Security Misconfiguration
Reachability: External
Exploitability: Difficult
CWE: CWE-494 — Download of Code Without Integrity Check
Pin the builder image and source revision. The build uses the mutable
golang:1.26.8tag and clones the mutable2026.9.1Git ref before compilingcloudflared. CI only invokes Docker build/buildx and does not pin or verify these inputs. Pin the builder image by digest and check out an immutable commit, or verify the signed tag, beforemake cloudflared.🤖 Prompt for AI Agents