Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
d7f6e2f
Harden tunnel lifecycle and resource limits with protocol v2
nd4y Oct 17, 2026
5425663
Use the selected CI toolchain and avoid duplicate branch runs
nd4y Oct 17, 2026
7b98ced
Fix HTTP compression and validate high-latency performance
nd4y Oct 18, 2026
5c3d1ff
Add isolated QUIC BBR experiment and bidirectional WAN evidence
nd4y Oct 18, 2026
379a9df
Bound global resources, adapt compression, and support credential rot…
nd4y Oct 18, 2026
239e01f
Reject special files without blocking credential reload
nd4y Oct 18, 2026
8bc9271
Reserve stream and codec capacity outside the HTTP idle pool
nd4y Oct 18, 2026
a1cd4d6
Report admission exhaustion as HTTP 503 and capacity metrics
nd4y Oct 18, 2026
1ee91c2
Expire unauthenticated connections despite transport keepalives
nd4y Oct 18, 2026
1080dfd
Add bounded continuous benchmark transfers with end-to-end integrity
nd4y Oct 18, 2026
82a663b
Document bounded operation and refresh tested BBR integration
nd4y Oct 18, 2026
88fbe38
Allow bounded benchmark drain after maximum streaming duration
nd4y Oct 18, 2026
35b7872
Pin refreshed experiment and document complete stream delivery
nd4y Oct 18, 2026
081a144
Validate bounded operation and adaptive compression on pr4 and pr5
nd4y Oct 18, 2026
761e1c6
Correct BBR pre-send flight accounting and validate idle capacity
nd4y Oct 18, 2026
f86d29b
Report loss statistics for external QUIC congestion controllers
nd4y Oct 19, 2026
2c16f4d
Clarify cumulative tunnel loss metric semantics
nd4y Oct 19, 2026
9af3f14
Document traced UDP queue overflow and verified pr4 pr5 fix
nd4y Oct 19, 2026
2cf91a1
Preserve BBR pacer MTU at construction and after idle
nd4y Oct 19, 2026
841cc97
Record final review regressions and verified BBR loopback
nd4y Oct 19, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.git
bin
*.exe
**/*_test.go
configs/*.yaml
*.pem
**/*.pem
*.prof
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
* text=auto eol=lf
# Unified-diff context prefixes can precede Go indentation tabs.
experiments/bbr/*.patch -whitespace
77 changes: 77 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
name: CI
on:
pull_request:
push:
branches: [main]
env:
GOTOOLCHAIN: local
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
timeout-minutes: 15
steps:
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
- uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6
with:
go-version-file: go.mod
- run: go mod verify
- run: go vet ./...
- run: go test ./... -count=1 -timeout=3m
- if: runner.os == 'Linux'
run: go test -race ./... -count=1 -timeout=5m
- if: runner.os == 'Linux'
run: go run golang.org/x/vuln/cmd/govulncheck@v1.9.0 ./...
- if: runner.os == 'Linux'
run: |
go test ./internal/protocol -run '^$' -fuzz '^FuzzAddress$' -fuzztime=10s -parallel=2
go test ./internal/protocol -run '^$' -fuzz '^FuzzDatagram$' -fuzztime=10s -parallel=2
go test ./internal/compress -run '^$' -fuzz '^FuzzDecopy$' -fuzztime=10s -parallel=2
build:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
- uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6
with:
go-version-file: go.mod
- name: Build release targets
env:
CGO_ENABLED: '0'
run: |
mkdir -p bin
GOOS=linux GOARCH=amd64 go build -trimpath -buildvcs=false -ldflags='-s -w -buildid=' -o bin/wanopt-server-linux-amd64 ./cmd/server
GOOS=windows GOARCH=amd64 go build -trimpath -buildvcs=false -ldflags='-s -w -buildid=' -o bin/wanopt-client-windows-amd64.exe ./cmd/client
go build -trimpath -buildvcs=false -ldflags='-s -w -buildid=' -o bin/wanopt-keygen ./cmd/keygen
- name: Validate optional small-node Compose envelope
run: docker compose -f docker-compose.yaml -f docker-compose.small.yaml config --quiet
- run: docker build -t wanopt-server:ci .
- name: Exercise nonroot read-only container and restart
env:
WANOPT_DOCKER_IMAGE: wanopt-server:ci
run: go test ./internal/integration -run TestDockerImage -count=1 -timeout=60s
- uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6
with:
name: binaries
path: bin/
retention-days: 7
experimental-bbr:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
with:
fetch-depth: 0
- uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6
with:
go-version-file: go.mod
- name: Apply pinned patches, test both modules, and build BBR experiment
run: bash experiments/bbr/build.sh "${RUNNER_TEMP}/wanopt-bbr-bin"
28 changes: 15 additions & 13 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
# Build stage
FROM golang:1.22-alpine AS build
FROM golang:1.27.2-alpine@sha256:f92b6ef800e499660581efdabdf25d9d817a9d124eaf900924f0504e7e27e12d AS build
WORKDIR /src
COPY go.mod go.sum* ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 go build -trimpath -ldflags="-s -w" -o /out/wanopt-server ./cmd/server \
&& CGO_ENABLED=0 go build -trimpath -ldflags="-s -w" -o /out/wanopt-keygen ./cmd/keygen
ENV CGO_ENABLED=0 GOTOOLCHAIN=local GOMAXPROCS=2 GOMEMLIMIT=512MiB
COPY go.mod go.sum ./
RUN go mod download && go mod verify
COPY cmd/server ./cmd/server
COPY cmd/keygen ./cmd/keygen
COPY internal ./internal
RUN --mount=type=cache,target=/root/.cache/go-build go build -trimpath -buildvcs=false -ldflags="-s -w -buildid=" -o /out/wanopt-server ./cmd/server \
&& go build -trimpath -buildvcs=false -ldflags="-s -w -buildid=" -o /out/wanopt-keygen ./cmd/keygen

# Runtime stage
FROM alpine:3.20
RUN adduser -D -u 10001 wanopt
FROM scratch
COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
COPY --from=build /out/wanopt-server /usr/local/bin/wanopt-server
COPY --from=build /out/wanopt-keygen /usr/local/bin/wanopt-keygen
USER wanopt
USER 10001:10001
WORKDIR /etc/wanopt
EXPOSE 4242/udp
ENTRYPOINT ["wanopt-server"]
CMD ["-config", "/etc/wanopt/server.yaml"]
ENTRYPOINT ["/usr/local/bin/wanopt-server"]
CMD ["-config", "/etc/wanopt/server.yaml"]
Loading