Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
136 changes: 136 additions & 0 deletions .bestpractices.json

Large diffs are not rendered by default.

64 changes: 0 additions & 64 deletions .github/SECURITY.md

This file was deleted.

81 changes: 58 additions & 23 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ on:
branches: [main, develop]
pull_request:
branches: [main]
release:
types: [created]
# Release Please starts it on each release PR (release-please.yml), whose
# pushes start no workflow of their own
workflow_dispatch:

# Read only unless a job asks for more
permissions:
Expand Down Expand Up @@ -492,36 +493,70 @@ jobs:
cache-to: type=gha,mode=max

# =============================================================================
# Release Builds
# Coverage
# =============================================================================
release:
name: Release
# The Linux test run again, under LLVM's source-based coverage of the
# proxy's own code (the forks under vendor/ have their jobs above): each
# file's lines, regions and functions, and the totals, go to the run's
# summary, and the lcov report is kept with the run.
coverage:
name: Coverage
runs-on: ubuntu-latest
needs: [build, test, integration, security]
if: github.event_name == 'release'

steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

- name: Download all artifacts
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
- uses: dtolnay/rust-toolchain@89b12181fb390509a0842a86cc55eeb8eb928c1d # the toolchain rust-toolchain.toml names
with:
path: artifacts
toolchain: "1.99.0"
components: llvm-tools-preview

- name: Create release archives
run: |
cd artifacts
for dir in */; do
target=$(basename "$dir")
tar -czvf "../${target}.tar.gz" -C "$dir" .
done

- name: Upload release assets
uses: softprops/action-gh-release@8a0cd651e5b2365bd640854a3fa5dfc70e4875f3 # v3
- uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2
with:
key: coverage

- uses: taiki-e/install-action@073e1fd0bc889c9aee68dbaaa927cde1b5653a83 # v2.90.11
with:
files: "*.tar.gz"
tool: cargo-llvm-cov

- name: Setup OpenSSL (Linux)
uses: ./.github/actions/setup-openssl-linux

- name: Install Redis
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends redis-server
sudo systemctl stop redis-server || true

- name: Tests under coverage
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PQCRYPTA_REQUIRE_REDIS: "1"
run: cargo llvm-cov --all-features --ignore-filename-regex '(^|/)vendor/' --lcov --output-path lcov.info

- name: Summary
run: |
{
echo '## Coverage of the proxy'"'"'s own code'
echo
echo '```'
cargo llvm-cov report --summary-only --ignore-filename-regex '(^|/)vendor/'
echo '```'
} >> "$GITHUB_STEP_SUMMARY"

- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7
with:
name: lcov
path: lcov.info

# =============================================================================
# Licensing
# =============================================================================
# Every file's licence and copyright named (REUSE.toml, LICENSES/)
reuse:
name: Licensing (REUSE)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: fsfe/reuse-action@676e2d560c9a403aa252096d99fcab3e1132b0f5 # v6.0.0

# =============================================================================
# Documentation
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
branches: [main]
schedule:
- cron: '0 4 * * 0' # Sunday 04:00 UTC
# Release Please starts it on each release PR (release-please.yml), whose
# pushes start no workflow of their own
workflow_dispatch:

# Read only unless a job asks for more
permissions:
Expand Down
24 changes: 24 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ jobs:
outputs:
release_created: ${{ steps.release.outputs.release_created }}
tag_name: ${{ steps.release.outputs.tag_name }}
prs_created: ${{ steps.release.outputs.prs_created }}
pr: ${{ steps.release.outputs.pr }}
steps:
- uses: googleapis/release-please-action@45996ed1f6d02564a971a2fa1b5860e934307cf7 # v5.0.0
id: release
Expand All @@ -45,6 +47,28 @@ jobs:
# binary runs without either installed. release-please creates the release as a
# draft (release-please-config.json): the asset goes up, then the release is
# published, as immutable releases require.
# The release PR is opened and updated with this workflow's GITHUB_TOKEN,
# and GitHub starts no workflow for a push made with that token, so its
# commit would merge with neither CI nor CodeQL behind it. A
# workflow_dispatch made with the same token does start one: both run on the
# release branch, and their checks are on the commit the PR merges.
release-pr-checks:
name: CI and CodeQL on the release PR
needs: release-please
if: needs.release-please.outputs.prs_created == 'true'
runs-on: ubuntu-latest
permissions:
actions: write
steps:
- name: Start them on the release branch
env:
GH_TOKEN: ${{ github.token }}
BRANCH: ${{ fromJSON(needs.release-please.outputs.pr).headBranchName }}
run: |
for workflow in ci.yml codeql.yml; do
gh workflow run "$workflow" --repo "$GITHUB_REPOSITORY" --ref "$BRANCH"
done

binary:
name: Release binary
needs: release-please
Expand Down
33 changes: 33 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,11 @@
## [0.26.3](https://github.com/PQCrypta/pqcrypta-proxy/compare/v0.26.2...v0.26.3) (2026-11-29)


### Security

* [GHSA-v682-4ff3-5pjm](https://github.com/PQCrypta/pqcrypta-proxy/security/advisories/GHSA-v682-4ff3-5pjm): The response cache stored a 304 Not Modified and served it to requests that held no copy (all versions before 0.26.3).
* [GHSA-xfc5-32cw-xrqq](https://github.com/PQCrypta/pqcrypta-proxy/security/advisories/GHSA-xfc5-32cw-xrqq): CRS skipped the body of a request without a Content-Length once it reached max_body_scan_bytes (all versions before 0.26.3).

### Bug Fixes

* **cache:** a 304 is never stored ([bce8c55](https://github.com/PQCrypta/pqcrypta-proxy/commit/bce8c553525a77b7aa4f2fe65e9384b02044ea13))
Expand All @@ -143,6 +148,12 @@
## [0.26.2](https://github.com/PQCrypta/pqcrypta-proxy/compare/v0.26.1...v0.26.2) (2026-11-29)


### Security

* [GHSA-572v-6rjh-r9j9](https://github.com/PQCrypta/pqcrypta-proxy/security/advisories/GHSA-572v-6rjh-r9j9): Forwarding headers a client sent about itself were passed to backends (all versions before 0.26.2).
* [GHSA-8gjp-crm8-qg5w](https://github.com/PQCrypta/pqcrypta-proxy/security/advisories/GHSA-8gjp-crm8-qg5w): 0-RTT replay protection could be skipped by a ClientHello split across TCP segments (all versions before 0.26.2).
* [GHSA-86jw-h76p-26gg](https://github.com/PQCrypta/pqcrypta-proxy/security/advisories/GHSA-86jw-h76p-26gg): A percent-encoded spelling of a path could be routed past the guard of the route that names it (all versions before 0.26.2).

### Bug Fixes

* **routing:** the path routed, limited and judged is the name the origin serves; forwarding fields a client claims stay with the client ([48be282](https://github.com/PQCrypta/pqcrypta-proxy/commit/48be282b5281dd27605f006e99e14f710f374ba7))
Expand All @@ -157,6 +168,10 @@
## [0.26.0](https://github.com/PQCrypta/pqcrypta-proxy/compare/v0.25.0...v0.26.0) (2026-11-28)


### Security

* [GHSA-c6c9-wxf2-mh63](https://github.com/PQCrypta/pqcrypta-proxy/security/advisories/GHSA-c6c9-wxf2-mh63): Over TCP, a signed route's request body reached the backend before its Content-Digest was checked (versions 0.18.0 to 0.25.0).

### Features

* **pqc:** the key-exchange policy in every QUIC application's own terms ([02b3533](https://github.com/PQCrypta/pqcrypta-proxy/commit/02b3533461c92d7fc59b744b7209d6c7ffff18da))
Expand Down Expand Up @@ -408,6 +423,12 @@ WebTransport over HTTP/3 as draft-ietf-webtrans-http3-17 has it, on the QUIC lis
## [0.17.0](https://github.com/PQCrypta/pqcrypta-proxy/compare/v0.16.0...v0.17.0) (2026-11-18)


### Security

* [GHSA-xp2j-wp95-2j2f](https://github.com/PQCrypta/pqcrypta-proxy/security/advisories/GHSA-xp2j-wp95-2j2f): A generated admin API token was written to standard error and the log (versions 0.3.0 to 0.16.0).
* [GHSA-p42p-5q6x-h4h9](https://github.com/PQCrypta/pqcrypta-proxy/security/advisories/GHSA-p42p-5q6x-h4h9): Extended CONNECT requests on HTTP/3 and WebTransport sessions bypassed route gates, per-route limits and route policy (versions 0.3.0 to 0.16.0).
* [GHSA-96wm-f558-px7v](https://github.com/PQCrypta/pqcrypta-proxy/security/advisories/GHSA-96wm-f558-px7v): A signed request could be accepted again after its HMAC nonce was forgotten (versions 0.3.0 to 0.16.0).

### Features

* `--admin METHOD PATH`, a signed request to this node's admin API ([772ae8c](https://github.com/PQCrypta/pqcrypta-proxy/commit/772ae8c39b85a8b9a8462ffbe3cea8188e97d563))
Expand Down Expand Up @@ -449,6 +470,10 @@ WebTransport over HTTP/3 as draft-ietf-webtrans-http3-17 has it, on the QUIC lis
## [0.14.0](https://github.com/PQCrypta/pqcrypta-proxy/compare/v0.13.3...v0.14.0) (2026-11-16)


### Security

* [GHSA-6vmf-v85f-vxrc](https://github.com/PQCrypta/pqcrypta-proxy/security/advisories/GHSA-6vmf-v85f-vxrc): WebTransport streams that withheld their end grew the proxy's memory until it was killed (versions 0.2.1 to 0.13.3); reported in #223.

### Features

* backend health probed in the background, by HTTP where a path is set ([84913a3](https://github.com/PQCrypta/pqcrypta-proxy/commit/84913a3c305c4ef450e646b2440d245c1bc9fa1a))
Expand Down Expand Up @@ -516,6 +541,10 @@ WebTransport over HTTP/3 as draft-ietf-webtrans-http3-17 has it, on the QUIC lis
## [0.11.1](https://github.com/PQCrypta/pqcrypta-proxy/compare/v0.11.0...v0.11.1) (2026-11-13)


### Security

* [GHSA-2x5f-g7rf-883h](https://github.com/PQCrypta/pqcrypta-proxy/security/advisories/GHSA-2x5f-g7rf-883h): Tables keyed by client-chosen values grew without bound or cost a full pass per new key (all versions before 0.11.1).

### Bug Fixes

* bound every table a client can add to; decline early data the replay guard cannot vouch for ([d3bbf13](https://github.com/PQCrypta/pqcrypta-proxy/commit/d3bbf13068b482da8c2c8cdeaf4b0511b0c2f128)), closes [#184](https://github.com/PQCrypta/pqcrypta-proxy/issues/184)
Expand Down Expand Up @@ -622,6 +651,10 @@ WebTransport over HTTP/3 as draft-ietf-webtrans-http3-17 has it, on the QUIC lis
## [0.7.0](https://github.com/PQCrypta/pqcrypta-proxy/compare/v0.6.0...v0.7.0) (2026-11-12)


### Security

* [GHSA-932f-949c-8mmf](https://github.com/PQCrypta/pqcrypta-proxy/security/advisories/GHSA-932f-949c-8mmf): Unique failing HTTP/3 paths grew the per-endpoint error table without bound (versions 0.3.0 to 0.6.0); reported in #184.

### Features

* **masque:** allowed_clients names the clients a CONNECT-UDP session is relayed for ([f7ac1ac](https://github.com/PQCrypta/pqcrypta-proxy/commit/f7ac1ac180f64a0ae2b06c3da3a9ae27aa128df3))
Expand Down
Loading
Loading