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
11 changes: 8 additions & 3 deletions .github/workflows/audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
permissions:
contents: read # checkout
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- run: rustup toolchain install stable --profile minimal
Expand All @@ -55,14 +55,19 @@ jobs:
# workspace but each has its own go.mod / go.sum.
module: [go/ressrf, go-native/ressrf]
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6.5.0
- uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
with:
go-version-file: ${{ matrix.module }}/go.mod
cache-dependency-path: ${{ matrix.module }}/go.sum
- name: Install govulncheck
# setup-go sets GOTOOLCHAIN=local. Latest govulncheck may need a
# newer compiler than the module pin, so let the install step
# fetch one. The scan below still uses the module's toolchain.
env:
GOTOOLCHAIN: auto
run: go install golang.org/x/vuln/cmd/govulncheck@latest
- name: Run govulncheck
working-directory: ${{ matrix.module }}
Expand Down
56 changes: 28 additions & 28 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ jobs:
permissions:
contents: read # checkout
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- run: rustup toolchain install stable --profile minimal
- uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
- uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
- run: cargo check --workspace --all-targets --all-features --locked

fmt:
Expand All @@ -46,7 +46,7 @@ jobs:
permissions:
contents: read # checkout
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- run: rustup toolchain install stable --profile minimal --component rustfmt
Expand All @@ -58,11 +58,11 @@ jobs:
permissions:
contents: read # checkout
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- run: rustup toolchain install stable --profile minimal --component clippy
- uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
- uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
- run: cargo clippy --workspace --all-targets --all-features --locked -- -D warnings

test-rust:
Expand All @@ -75,11 +75,11 @@ jobs:
permissions:
contents: read # checkout
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- run: rustup toolchain install stable --profile minimal
- uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
- uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
- run: cargo test --workspace --all-features --locked

build-wasm:
Expand All @@ -88,7 +88,7 @@ jobs:
permissions:
contents: write # push updated core.wasm
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: ${{ github.head_ref || github.ref_name }}
persist-credentials: true # needed for git push in commit step
Expand All @@ -113,7 +113,7 @@ jobs:
- if: steps.inputs.outputs.changed == 'true'
run: rustup toolchain install stable --profile minimal --target wasm32-wasip1
- if: steps.inputs.outputs.changed == 'true'
uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
- name: Install wasm-opt
if: steps.inputs.outputs.changed == 'true'
run: |
Expand Down Expand Up @@ -152,11 +152,11 @@ jobs:
permissions:
contents: read # checkout
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: ${{ github.head_ref || github.ref_name }}
persist-credentials: false
- uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6.5.0
- uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
with:
go-version-file: go/ressrf/go.mod
cache-dependency-path: go/ressrf/go.sum
Expand All @@ -174,11 +174,11 @@ jobs:
permissions:
contents: read # checkout
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: ${{ github.head_ref || github.ref_name }}
persist-credentials: false
- uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6.5.0
- uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
with:
go-version-file: go/ressrf/go.mod
cache-dependency-path: go/ressrf/go.sum
Expand All @@ -197,15 +197,15 @@ jobs:
permissions:
contents: read # checkout
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: astral-sh/setup-uv@11f9893b081a58869d3b5fccaea48c9e9e46f990 # v8.3.2
- uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0
with:
enable-cache: true
cache-dependency-glob: python/uv.lock
- run: rustup toolchain install stable --profile minimal
- uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
- uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
with:
workspaces: python
- name: Install and test
Expand All @@ -222,10 +222,10 @@ jobs:
permissions:
contents: read # checkout
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: astral-sh/setup-uv@11f9893b081a58869d3b5fccaea48c9e9e46f990 # v8.3.2
- uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0
- name: Ruff format check
working-directory: python
run: uvx ruff format --check .
Expand All @@ -247,7 +247,7 @@ jobs:
permissions:
contents: read # checkout
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: ${{ github.head_ref || github.ref_name }}
persist-credentials: false
Expand All @@ -270,7 +270,7 @@ jobs:
permissions:
contents: read # checkout
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: ${{ github.head_ref || github.ref_name }}
persist-credentials: false
Expand Down Expand Up @@ -298,11 +298,11 @@ jobs:
# off by default so the standard test-rust matrix above stays
# hermetic on macOS / Windows.
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- run: rustup toolchain install stable --profile minimal
- uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
- uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
with:
# Different feature set than the main test-rust job; cache key
# is namespaced so the e2e build artifacts do not pollute or
Expand Down Expand Up @@ -330,10 +330,10 @@ jobs:
permissions:
contents: read # checkout
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6.5.0
- uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
with:
go-version-file: go-native/ressrf/go.mod
cache-dependency-path: go-native/ressrf/go.sum
Expand All @@ -350,10 +350,10 @@ jobs:
permissions:
contents: read # checkout
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6.5.0
- uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
with:
go-version-file: go-native/ressrf/go.mod
cache-dependency-path: go-native/ressrf/go.sum
Expand All @@ -372,10 +372,10 @@ jobs:
permissions:
contents: read # checkout
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6.5.0
- uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
with:
go-version-file: go-native/ressrf/go.mod
cache-dependency-path: go-native/ressrf/go.sum
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/diffuzz.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@ jobs:
# silently passing with every subtest SKIPped. See diff_fuzz_test.go.
RESSRF_REQUIRE_WASM: "1"
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false

- uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6.5.0
- uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
with:
go-version-file: go-native/ressrf/go.mod
cache-dependency-path: go-native/ressrf/go.sum
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/fuzz.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
- target: fuzz_url_validator
max_len: 2048
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false

Expand All @@ -45,7 +45,7 @@ jobs:
rustup toolchain install nightly --profile minimal --component llvm-tools-preview
rustup default nightly

- uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
- uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
with:
workspaces: fuzz -> target

Expand Down Expand Up @@ -103,11 +103,11 @@ jobs:
- FuzzGlobMatchHost
- FuzzGlobMatchPath
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false

- uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6.5.0
- uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
with:
go-version-file: go-native/ressrf/go.mod
cache-dependency-path: go-native/ressrf/go.sum
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/update-ip-ranges.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ jobs:
contents: write # create branch and push
pull-requests: write # open PR
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: true

- uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: "3.12"

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/zizmor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
permissions:
contents: read # checkout
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Install zizmor
Expand Down
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ This release ships two Go modules in the same repo, under one release cadence an
| Path | Runtime | Engine | Picking criteria |
|------|---------|--------|------------------|
| `github.com/timescale/ressrf/go/ressrf` | `wazero`, `//go:embed core.wasm` | Rust `ressrf-core` (WASM) | Guaranteed bit-for-bit parity with the Rust core; security-strict consumers; willing to carry the wazero runtime weight; Go 1.26+ |
| `github.com/timescale/ressrf/go-native/ressrf` | Native Go on `net/netip` | Reimplemented in Go, pinned to WASM via diffuzz | Native debuggability (`pprof`/`delve` through the whole stack); zero WASM runtime weight; idiomatic Go API; split `httpx`/`tcpx`/`sshx` packages so non-SSH consumers do not pull `golang.org/x/crypto`; typed sealed-sum `DenyReason`; Go 1.25+ |
| `github.com/timescale/ressrf/go-native/ressrf` | Native Go on `net/netip` | Reimplemented in Go, pinned to WASM via diffuzz | Native debuggability (`pprof`/`delve` through the whole stack); zero WASM runtime weight; idiomatic Go API; split `httpx`/`tcpx`/`sshx` packages so non-SSH consumers do not pull `golang.org/x/crypto`; typed sealed-sum `DenyReason`; Go 1.26+ |

The native port consumes the same JSON conformance vectors and `crates/ressrf-core/config/` files as the wazero binding (no vendored copies), and additionally runs a differential-fuzz harness against the wazero binding's embedded `core.wasm` via `.github/workflows/diffuzz.yml`. Three parser-level divergences were caught and fixed via diffuzz during the native port's initial development; vectors alone would not have seen them.

Expand All @@ -302,7 +302,7 @@ func TestSomething(t *testing.T) {
|----------|---------|--------------|
| Rust | `cargo add ressrf-core` | Rust 1.75+ |
| Go (wazero) | `go get github.com/timescale/ressrf/go/ressrf` | Go 1.26+ |
| Go (native) | `go get github.com/timescale/ressrf/go-native/ressrf` | Go 1.25+ |
| Go (native) | `go get github.com/timescale/ressrf/go-native/ressrf` | Go 1.26+ |
| Python | `pip install ressrf` | Python 3.10+ |
| Node.js | `npm install ressrf` | Node.js 20+ |

Expand Down
Loading
Loading