Skip to content

Commit 535fe9e

Browse files
committed
Merge branch 'tunnel_token_file' of github.com:Cyb3r-Jak3/cloudflared into tunnel_token_file
2 parents 59e3136 + 521220a commit 535fe9e

File tree

291 files changed

+14546
-11217
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

291 files changed

+14546
-11217
lines changed

.github/workflows/semgrep.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
on:
2+
pull_request: {}
3+
workflow_dispatch: {}
4+
push:
5+
branches:
6+
- main
7+
- master
8+
schedule:
9+
- cron: '0 0 * * *'
10+
name: Semgrep config
11+
jobs:
12+
semgrep:
13+
name: semgrep/ci
14+
runs-on: ubuntu-latest
15+
env:
16+
SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }}
17+
SEMGREP_URL: https://cloudflare.semgrep.dev
18+
SEMGREP_APP_URL: https://cloudflare.semgrep.dev
19+
SEMGREP_VERSION_CHECK_URL: https://cloudflare.semgrep.dev/api/check-version
20+
container:
21+
image: semgrep/semgrep
22+
steps:
23+
- uses: actions/checkout@v4
24+
- run: semgrep ci

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,4 @@ cscope.*
1717
ssh_server_tests/.env
1818
/.cover
1919
built_artifacts/
20+
component-tests/.venv

.teamcity/install-cloudflare-go.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
cd /tmp
44
git clone -q https://github.com/cloudflare/go
55
cd go/src
6-
# https://github.com/cloudflare/go/tree/ec0a014545f180b0c74dfd687698657a9e86e310 is version go1.22.2-devel-cf
7-
git checkout -q ec0a014545f180b0c74dfd687698657a9e86e310
8-
./make.bash
6+
# https://github.com/cloudflare/go/tree/f4334cdc0c3f22a3bfdd7e66f387e3ffc65a5c38 is version go1.22.5-devel-cf
7+
git checkout -q f4334cdc0c3f22a3bfdd7e66f387e3ffc65a5c38
8+
./make.bash

.teamcity/windows/component-test.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ if ($LASTEXITCODE -ne 0) { throw "Failed unit tests" }
3737

3838
Write-Output "Running component tests"
3939

40-
python -m pip --disable-pip-version-check install --upgrade -r component-tests/requirements.txt
40+
python -m pip --disable-pip-version-check install --upgrade -r component-tests/requirements.txt --use-pep517
4141
python component-tests/setup.py --type create
4242
python -m pytest component-tests -o log_cli=true --log-cli-level=INFO
4343
if ($LASTEXITCODE -ne 0) {

.teamcity/windows/install-cloudflare-go.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ Set-Location "$Env:Temp"
99
git clone -q https://github.com/cloudflare/go
1010
Write-Output "Building go..."
1111
cd go/src
12-
# https://github.com/cloudflare/go/tree/ec0a014545f180b0c74dfd687698657a9e86e310 is version go1.22.2-devel-cf
13-
git checkout -q ec0a014545f180b0c74dfd687698657a9e86e310
12+
# https://github.com/cloudflare/go/tree/f4334cdc0c3f22a3bfdd7e66f387e3ffc65a5c38 is version go1.22.5-devel-cf
13+
git checkout -q f4334cdc0c3f22a3bfdd7e66f387e3ffc65a5c38
1414
& ./make.bat
1515

16-
Write-Output "Installed"
16+
Write-Output "Installed"

.teamcity/windows/install-go-msi.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
$ErrorActionPreference = "Stop"
22
$ProgressPreference = "SilentlyContinue"
3-
$GoMsiVersion = "go1.22.2.windows-amd64.msi"
3+
$GoMsiVersion = "go1.22.5.windows-amd64.msi"
44

55
Write-Output "Downloading go installer..."
66

@@ -17,4 +17,4 @@ Install-Package "$Env:Temp\$GoMsiVersion" -Force
1717
# Go installer updates global $PATH
1818
go env
1919

20-
Write-Output "Installed"
20+
Write-Output "Installed"

CHANGES.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
## 2024.12.2
2+
### New Features
3+
- This release introduces the ability to collect troubleshooting information from one instance of cloudflared running on the local machine. The command can be executed as `cloudflared tunnel diag`.
4+
5+
## 2024.12.1
6+
### Notices
7+
- The use of the `--metrics` is still honoured meaning that if this flag is set the metrics server will try to bind it, however, this version includes a change that makes the metrics server bind to a port with a semi-deterministic approach. If the metrics flag is not present the server will bind to the first available port of the range 20241 to 20245. In case of all ports being unavailable then the fallback is to bind to a random port.
8+
9+
## 2024.10.0
10+
### Bug Fixes
11+
- We fixed a bug related to `--grace-period`. Tunnels that use QUIC as transport weren't abiding by this waiting period before forcefully closing the connections to the edge. From now on, both QUIC and HTTP2 tunnels will wait for either the grace period to end (defaults to 30 seconds) or until the last in-flight request is handled. Users that wish to maintain the previous behavior should set `--grace-period` to 0 if `--protocol` is set to `quic`. This will force `cloudflared` to shutdown as soon as either SIGTERM or SIGINT is received.
12+
113
## 2024.2.1
214
### Notices
315
- Starting from this version, tunnel diagnostics will be enabled by default. This will allow the engineering team to remotely get diagnostics from cloudflared during debug activities. Users still have the capability to opt-out of this feature by defining `--management-diagnostics=false` (or env `TUNNEL_MANAGEMENT_DIAGNOSTICS`).

Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
# use a builder image for building cloudflare
22
ARG TARGET_GOOS
33
ARG TARGET_GOARCH
4-
FROM golang:1.22.2 as builder
4+
FROM golang:1.22.5 as builder
55
ENV GO111MODULE=on \
66
CGO_ENABLED=0 \
77
TARGET_GOOS=${TARGET_GOOS} \
8-
TARGET_GOARCH=${TARGET_GOARCH}
8+
TARGET_GOARCH=${TARGET_GOARCH} \
9+
CONTAINER_BUILD=1
10+
911

1012
WORKDIR /go/src/github.com/cloudflare/cloudflared/
1113

Dockerfile.amd64

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# use a builder image for building cloudflare
2-
FROM golang:1.22.2 as builder
2+
FROM golang:1.22.5 as builder
33
ENV GO111MODULE=on \
44
CGO_ENABLED=0
55

Dockerfile.arm64

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# use a builder image for building cloudflare
2-
FROM golang:1.22.2 as builder
2+
FROM golang:1.22.5 as builder
33
ENV GO111MODULE=on \
44
CGO_ENABLED=0
55

0 commit comments

Comments
 (0)