Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
394 commits
Select commit Hold shift + click to select a range
f1a6583
unitctl: drop HTTP/2 from the control API client
andypost Sep 13, 2026
4514958
ci(unitctl): audit Cargo.lock against the RustSec database
andypost Sep 13, 2026
8414907
docs(changes): record unitctl's rustls-pki-types and http2 removals
andypost Sep 13, 2026
a8018bc
port: close the descriptors a handler does not take
andypost Sep 13, 2026
aaf92f7
test: pin the descriptor leak in nxt_port_rpc_handler()
andypost Sep 13, 2026
eafe83d
test: pin the dispatcher tail close and fragment-merge close
andypost Sep 13, 2026
6f3c019
port: report an inline write that EAGAIN left nowhere to go
andypost Sep 13, 2026
47afaed
test: one definition for "is this descriptor still open"
andypost Sep 13, 2026
f288ee8
static: answer conditional requests with 304
andypost Sep 13, 2026
537b042
static: combine repeated If-Match and If-None-Match field lines
andypost Sep 13, 2026
60ee106
docs(changes): record conditional request support in changes.xml
andypost Sep 13, 2026
0115e3e
static: an unacceptable representation outranks a precondition
andypost Sep 13, 2026
f916d25
unitctl: stop parsing hjson
andypost Sep 13, 2026
79a1bab
docs(changes): unitctl no longer reads hjson
andypost Sep 13, 2026
29069ae
static: close the file when no representation is acceptable
andypost Sep 13, 2026
af7f7a0
http: weaken the entity-tag of a coded representation
andypost Sep 13, 2026
a8ddab2
static: implement HTTP byte-range requests
andypost Sep 13, 2026
af733f1
test(static): adversarial probes for conditional and byte-range requests
andypost Sep 13, 2026
a017757
unitctl: drop YAML input and output
andypost Sep 13, 2026
5ae326c
docs(changes): unitctl no longer reads or writes YAML
andypost Sep 13, 2026
7f9755e
unitctl: put TLS behind a Cargo feature
andypost Sep 13, 2026
2083d84
docs(changes): record the unitctl tls build feature
andypost Sep 13, 2026
7742b16
build(unitctl): opt out of TLS on a musl host, not only a musl target
andypost Sep 14, 2026
cb781b8
build(unitctl): opt the test recipe out of TLS on a musl host too
andypost Sep 14, 2026
023d45c
http: say what a negotiated response varied on
andypost Sep 13, 2026
fd5b537
http: merge Accept-Encoding into an existing Vary
andypost Sep 13, 2026
f647d88
http: trim both ends before treating Vary as a wildcard
andypost Sep 13, 2026
2038b1b
http: tidy the Vary token scan and its edges
andypost Sep 14, 2026
e9acfe0
http: keep Accept-Encoding in Vary past response_headers
andypost Sep 14, 2026
0a4d9a2
port: re-arm a port without allocating
andypost Sep 13, 2026
eb7a64c
port: name the change the test wrapper refers to
andypost Sep 13, 2026
76cf48e
src: remove the unused nxt_dyld wrapper
andypost Sep 13, 2026
cba15d6
build: remove unused src/nxt_queue.c
andypost Sep 13, 2026
7d67c98
Remove the unused job cluster
andypost Sep 13, 2026
fc5f08e
Remove nxt_mem_zone, an unused second allocator
andypost Sep 13, 2026
fcd389f
ci(unitctl): build and test the musl, TLS-free state
andypost Sep 14, 2026
11a0bcd
http: weaken the static ETag inside the mtime second
andypost Sep 14, 2026
2edd375
changelog: weak validators inside the mtime second
andypost Sep 14, 2026
49c8a54
http: test the boundary the weak ETag turns on, and fix two claims
andypost Sep 14, 2026
b7efd13
unitctl: send a JSON configuration file as it was written
andypost Sep 14, 2026
85e481c
docs(changes): record the unitctl configuration byte path
andypost Sep 14, 2026
abe1d52
unitctl: stop pointing at curl for a configuration it cannot send
andypost Sep 14, 2026
430323f
chore: remove the GnuTLS, CyaSSL, and PolarSSL TLS backends
andypost Sep 14, 2026
aa4de02
unitctl: stop reading JSON5
andypost Sep 14, 2026
335ac60
docs(changes): record that unitctl no longer reads JSON5
andypost Sep 14, 2026
4cbc372
changelog: correct the releases the 406 descriptor leak shipped in
andypost Sep 14, 2026
d2dc364
test(static): cover the Vary merge branch by branch
andypost Sep 14, 2026
5ee6390
test: keep a truncated log in the type it arrived as
andypost Sep 14, 2026
2ab6eb7
ci(fuzzing): run on a change to the UTF-8 decoder
andypost Sep 14, 2026
77a4528
unitctl: send a JavaScript module instead of aborting
andypost Sep 14, 2026
b4e4110
port: take the message back when the port refuses it
andypost Sep 14, 2026
7e27eb0
port: report a send that failed because the peer is gone
andypost Sep 14, 2026
4d3c365
build(deps): bump contrib njs to 1.0.1
andypost Sep 14, 2026
9d0c232
build(deps): record the njs 1.0.1 digest
andypost Sep 14, 2026
0f83875
http: escape what a variable expands to in a text access log
andypost Sep 14, 2026
2ee5ee6
test: default "Connection: close" for explicit request headers
andypost Sep 15, 2026
e459976
test: case-insensitive "Connection" and one knob name in request_headers
andypost Sep 15, 2026
586cf13
ci: spread the shared suite across the python legs
andypost Sep 15, 2026
8157a80
ci(audit): audit every Cargo.lock, and close the advisories it finds
andypost Sep 15, 2026
641ecbf
docs(eol): record both wasmtime pins, and which one is audited
andypost Sep 15, 2026
befc02c
test: read one frame in test_asgi_websockets_large, and check it
andypost Sep 15, 2026
79f99c4
port: a queued message owns the descriptors it sends
andypost Sep 14, 2026
47735b4
changelog: classify the queued-descriptor fix as Security
andypost Sep 14, 2026
cd2e4a9
ci: build the core once, and let every leg unpack it
andypost Sep 15, 2026
385244c
ci: run the Range x Content-Encoding tests with --zlib and --restart
andypost Sep 15, 2026
e586643
http: hold the compression state per configuration
andypost Sep 15, 2026
4a32bc8
changelog: compression state is held per configuration
andypost Sep 15, 2026
df9843b
ci: drop the dedicated Range x Content-Encoding job
andypost Sep 15, 2026
362f584
websocket: validate text frames and close reasons as UTF-8
andypost Sep 16, 2026
4451fef
port: keep the queue wake-up when the kernel could not send it
andypost Sep 14, 2026
c8a0753
changelog: the queue wake-up is kept when the kernel could not send it
andypost Sep 14, 2026
b20aeb7
php: remove the TrueAsync code path
andypost Sep 17, 2026
118b28f
changelog: the PHP TrueAsync code path is removed
andypost Sep 17, 2026
3a223d9
router: count a worker that answered and kept running
andypost Sep 14, 2026
d717041
php: report fastcgi_finish_request() as a detached response
andypost Sep 14, 2026
a584944
router: bound a request that is parked with no worker to ack it
andypost Sep 14, 2026
8fa5df3
router: retain detached app through replacement dispatch
andypost Sep 15, 2026
7545594
unit: retry detached lifecycle notifications
andypost Sep 16, 2026
27f12bd
router: keep a worker the deadline gave up on out of the idle economy
andypost Sep 16, 2026
c24e2d5
router: settle the websocket count when the session ends
andypost Sep 18, 2026
3f992cd
tests: cover the websocket release accounting
andypost Sep 18, 2026
1554ef3
tests: show a websocket worker rejoining the idle economy
andypost Sep 18, 2026
bc28f59
changelog: a websocket worker is idle again when the session ends
andypost Sep 18, 2026
6be793b
build(deps): Bump actions/download-artifact from 4 to 8
dependabot[bot] Sep 18, 2026
3bc72e1
contrib: bump wasmtime 43.0.1 to 47.0.4
andypost Sep 16, 2026
af31071
ci(audit): check tarball-pinned dependencies against OSV
andypost Sep 16, 2026
1797865
test(wasm): run a C wasm guest, and cover access.filesystem
andypost Sep 16, 2026
eb1767c
ci: audit the pinned Wasmtime source lock
andypost Sep 18, 2026
3d707b7
var: drop the write-only variable index
andypost Sep 21, 2026
bbab159
Fix router crash on object-form "compressors" (#431)
claude Sep 23, 2026
9d4ad49
router: stop the request deadline at a WebSocket upgrade (#422)
claude Sep 23, 2026
841b6d0
java: report a binary close reason for an oversized binary message
claude Sep 23, 2026
797de61
feat(cert): check the key at upload and reserve dot names
claude Sep 24, 2026
23d7a39
docs(cert): note what an upgrade does to a stored bundle with a bad key
claude Sep 25, 2026
c66f459
test(http): free the lvlhsh tables the parse test builds
claude Sep 25, 2026
76fdcce
test(port): release the ports and processes the port fixtures build
claude Sep 25, 2026
9040118
ci: run the C test binary under ASan with leak detection on
claude Sep 25, 2026
9aaad44
port: drop a port's pending fd-event changes before it is freed
andypost Sep 17, 2026
356fc25
changelog: a freed port no longer leaves a pending fd-event change
andypost Sep 17, 2026
0c4199b
test: commit the engine's own changes before counting a leg's
claude Sep 25, 2026
530ccdd
kqueue: give the real reason a flush leaves ->changing set
claude Sep 25, 2026
8a24a9f
test: step control messages with NXT_CMSG_NXTHDR
andypost Sep 25, 2026
43e5cf1
ci(distros): build the tests binary on the rolling legs
claude Sep 25, 2026
50b58bf
ci: drop the dead CLANG_PATH pin from the wasm-wasi-component leg
andypost Sep 25, 2026
78145ff
ci(distros): run the standalone test binaries on the rolling legs
andypost Sep 25, 2026
0736a5f
fix(h1): hold the listener configuration until the TLS connection is …
claude Sep 25, 2026
585ba7c
test(tls): read to EOF when the router closes an idle connection
claude Sep 25, 2026
f9a9045
test(tls): fail when the router never closes the idle connection
claude Sep 25, 2026
5bfe284
fix(static): close the file before the request pool can go
claude Sep 25, 2026
96da3b6
fix(proxy): send one Content-Length for a chunked request body
claude Sep 25, 2026
c046d95
test(proxy): check that a chunked request goes upstream with one Cont…
claude Sep 25, 2026
2d1fea2
java: send a complete WebSocket text message as one frame
andypost Sep 21, 2026
05820ad
tests: raise the java websockets mirror receive buffers
andypost Sep 21, 2026
a0a0e61
changelog: a complete java websocket text message is sent as one frame
andypost Sep 21, 2026
ff170d8
java: send through the asynchronous WebSocket remote
claude Sep 25, 2026
ddde07c
java: send a WebSocket frame from where its buffer starts
claude Sep 25, 2026
3e4b343
fix(buf): do not memcpy() from an empty string
claude Sep 25, 2026
d22974c
java: send an asynchronous WebSocket text message as one frame
andypost Sep 25, 2026
e9ff6e6
tests: cover the async one-frame text path more widely, and name its …
claude Sep 25, 2026
3ac8bec
fix(conf): store mapped config values through memcpy, not a typed union
claude Sep 26, 2026
7c2ba8f
fix(http): guard nxt_http_route_memcmp() against an empty pattern slice
claude Sep 26, 2026
b7d503e
test(conf): cover nxt_conf_map_object() with a misaligning destination
claude Sep 26, 2026
f6171a2
ci(sanitize): drop the fixed UBSan waivers, run the C tests under UBSan
claude Sep 26, 2026
a7e1230
test(conf): check what NXT_CONF_MAP_STR and NXT_CONF_MAP_PTR store
claude Sep 26, 2026
b0027c8
string: short-circuit a zero length in nxt_str_eq() and nxt_str_start()
claude Sep 26, 2026
ec21b9b
conn: make nxt_conn_close() safe for queued I/O handlers
claude Sep 25, 2026
498cb07
fix(conn): return early from a queued write only on a closed conn
claude Sep 25, 2026
c0a18d1
test(conn): cover a close from a queued read after a close
claude Sep 25, 2026
60b789e
proxy: consume upstream 1xx interim responses
andypost Sep 26, 2026
7df3fb4
python: let the router's max_frame_size decide what an ASGI websocket…
andypost Sep 21, 2026
ba346b7
tests: pin the websocket message limits the ASGI module enforces
andypost Sep 21, 2026
c494bbe
changelog: an ASGI websocket message is no longer capped at 1 MB
andypost Sep 21, 2026
348c3b6
port: bound the queued messages that hold a descriptor
andypost Sep 15, 2026
4f81c40
fix(port): log a refused descriptor once per stall and harden the count
claude Sep 25, 2026
c930359
router: count the application's detached work instead of latching a flag
andypost Sep 19, 2026
642c9c8
router: log a refused detached edge as an alert once per port
claude Sep 25, 2026
4f8cbe5
otel: pass FreeUnit's own span to the application as its parent
claude Sep 24, 2026
8788595
test: fix tests and fixtures that could not fail
andypost Sep 26, 2026
81a7106
ci: run the unsafe websocket cases and the unprivileged configuration…
andypost Sep 26, 2026
cefaf8b
test(java): gate the async 16 MiB case on option.unsafe
claude Sep 26, 2026
9829884
port: pace an ENOMEM retry instead of re-checking it on the spot
andypost Sep 26, 2026
593f9f5
fix(router): refuse request lengths that do not fit the app protocol
claude Sep 25, 2026
3edd7f9
port: hand a marker refused by a dead peer to the error handler
andypost Sep 26, 2026
b00ab4c
main: refuse a WHOAMI that does not match how the sender was started
claude Sep 26, 2026
589be19
application: report a pid-isolated worker that died before it was cre…
andypost Sep 26, 2026
f72f93d
cert: replace a certificate in place through the control API
andypost Sep 26, 2026
96f88f7
build: keep the NXT_TESTS hooks out of unitd, libunit.a and modules
andypost Sep 26, 2026
4468477
changelog: a request length that does not fit the app protocol is ref…
andypost Sep 26, 2026
1e73d92
build: add --hardening and the checked/span helpers
andypost Sep 26, 2026
35d7684
http: stop serving a range to a client that refused identity
andypost Sep 26, 2026
6240db2
http: parse Accept-Encoding by its grammar; drop a Range wholly or not
andypost Sep 26, 2026
37fe59b
router: answer 406, not 503, on a negotiation failure
andypost Sep 26, 2026
f680aa3
build: address the review of --hardening
andypost Sep 26, 2026
7db3eb3
fix(port): bound the reads of untrusted shared-memory records
andypost Sep 26, 2026
9db0b0b
proxy: parse the upstream Transfer-Encoding as a list of codings
andypost Sep 26, 2026
23da889
fix: read what the application exchanges through shared memory once
andypost Sep 27, 2026
9289c02
port: bound the shared memory segment ids
andypost Sep 27, 2026
0f0eada
port: bound fragment reassembly and pair ports in one place
andypost Sep 26, 2026
b040963
fix(port): bound the retries of the shared-memory queues
andypost Sep 24, 2026
c05a45d
docs: document the C test suite and --hardening in CONTRIBUTING.md
andypost Sep 26, 2026
af66a87
router: align the declaration block of nxt_router_app_prepare_request()
andypost Sep 26, 2026
d92723b
router: leave skipped fields out of the app message size and the name…
andypost Sep 26, 2026
824d1be
router: log a failed app message once
andypost Sep 26, 2026
0bdeb82
tests: pin nxt_app_msg_prefix[] in the prepare-msg test, and declare …
andypost Sep 26, 2026
4a42cbc
fix(unit): act on a QUIT that arrives on the bare socket
andypost Sep 25, 2026
5a0621c
fix(router): do not alert when the prototype is gone at worker start
claude Sep 27, 2026
a743e4b
fix(prototype): log a QUIT to an exited worker at info, not alert
andypost Sep 27, 2026
651cb77
fix(controller): accept the configured control-socket user and group
andypost Sep 27, 2026
0da3dbb
ci: start the slow legs first, cache Rust builds, stop waiting on reads
andypost Sep 27, 2026
296ebda
http: select a compressor that can be applied, and let "*" mean the u…
andypost Sep 26, 2026
20b93ac
http: answer 406 where no coding can replace a refused identity
andypost Sep 26, 2026
e62650f
http: read a refused identity when no compressor is configured
andypost Sep 26, 2026
97bac4b
changelog: add entries for fixes merged without one
claude Sep 27, 2026
691d455
build(deps): Bump actions/cache from 4 to 6
dependabot[bot] Sep 27, 2026
d9afbc6
test(fuzz): add a libFuzzer target for the chunked body decoder
andypost Sep 27, 2026
2591e5a
test(fuzz): add a libFuzzer target for the upstream response header
andypost Sep 27, 2026
e89b926
test(fuzz): add a libFuzzer target for the WebSocket UTF-8 check
andypost Sep 27, 2026
4177aa9
ci(fuzz): run the three new targets in CI
andypost Sep 27, 2026
434a748
changelog: unitctl reads json and pem, not json5
claude Sep 27, 2026
3e7ea21
router: accept control messages only from main and the controller
andypost Sep 27, 2026
dd3775b
refactor(http): share the body buffer allocation and the Host check
andypost Sep 27, 2026
3a5bb34
libunit: run the detached finish retry from an embedder event loop
andypost Sep 27, 2026
f5f2469
router: put the sender gate of the main port in one table
andypost Sep 27, 2026
55ea9a8
router: check the sender of NEW_PORT, RPC replies and the libunit req…
andypost Sep 27, 2026
24735a4
router: refuse GET_PORT for a foreign pid when the port is not in the…
andypost Sep 27, 2026
0fb49d8
ci: run the standalone libunit tests under ASan, LSan and UBSan
andypost Sep 27, 2026
d4c8558
cert: follow-ups to certificate replacement
andypost Sep 27, 2026
80c24f6
fix(conn): accept and idle-close edge cases
andypost Sep 28, 2026
1acaf80
fix(router): keep a listener whose spare conn or listen event fails
andypost Sep 28, 2026
b12fb67
main: store the state files in a short-lived child process
andypost Sep 28, 2026
69eeda4
php: read the target index before the request ends
andypost Oct 3, 2026
76c406b
mmap: poison released buffers only in debug builds
andypost Oct 3, 2026
333abf0
http: answer "Expect: 100-continue"
andypost Oct 3, 2026
d6ea318
http: end a chunked response header at once
andypost Oct 3, 2026
ac2f2d2
php: send the response header on flush()
andypost Oct 2, 2026
85c23db
regex: cap the match work of one regex test at 100,000 steps
andypost Sep 28, 2026
f698225
http: add body_min_rate and send_min_rate
andypost Sep 27, 2026
72b8d02
tests: wait 30 s for the echo of a large websocket message
andypost Oct 3, 2026
8c965df
http: answer 413 when a chunked body grows over max_body_size
andypost Oct 3, 2026
d6a6707
regex: limit the recursion depth on PCRE2 before 10.30
andypost Oct 3, 2026
1c66c4d
port: never hand out RPC stream 0 after the counter wraps
andypost Sep 28, 2026
1dd9af5
wasm: check the guest malloc result against the linear memory size
andypost Sep 28, 2026
0d96be5
docker: build the images with Rust 1.95.0
andypost Oct 4, 2026
c868c51
wasm: update Wasmtime to 48.0.5
andypost Oct 4, 2026
d4d7f55
isolation: create mount destinations without following symlinks
andypost Sep 28, 2026
25ec9f6
fix(isolation): unshare the cgroup namespace after the cgroup move
andypost Sep 28, 2026
39700f2
libunit: keep the messages of a request in order on a queue port
andypost Oct 3, 2026
34bf22e
http: state how the rate floors work with a zero timeout
andypost Oct 3, 2026
92adbb2
tests: check the body floor record, and test chunked and TLS bodies
andypost Oct 3, 2026
31df46b
wasm: read the guest memory base again after the guest runs
andypost Oct 3, 2026
9983351
http: answer only the latest WebSocket ping while a pong is pending
andypost Sep 28, 2026
387b02c
lib: lower the CPU count to the cgroup v2 CPU limit
andypost Oct 3, 2026
c6518d8
php: free the root path buffer on every error path of set_target
andypost Sep 28, 2026
4a6aad0
main: at exit, kill a state store child that a newer store replaces
andypost Sep 30, 2026
8bd4d1d
main: close inherited descriptors in the state store child
andypost Sep 30, 2026
c3d3251
main: store certificate bundles in the state store child
andypost Sep 30, 2026
6ccfa2a
http: serve a static .svgz file as gzip-coded image/svg+xml
andypost Oct 4, 2026
6c08e4e
http: correct two comments about pattern decoding and PCRE2 ovecsize
andypost Sep 28, 2026
d611710
php: free the targets on every error return of nxt_php_start
andypost Sep 30, 2026
96d0835
php: require a path separator after the root in the script check
andypost Sep 30, 2026
bb3e54e
script: load every stored module after one that fails
andypost Sep 30, 2026
8262f06
script: store an njs module in the state store child
andypost Sep 30, 2026
60033ee
file: flush with F_FULLFSYNC on macOS
andypost Sep 30, 2026
07944c4
ci: update OpenSSL, move actions off Node 20, pin third-party actions
andypost Oct 4, 2026
1453d33
http: give each request its own compressor stream
andypost Oct 3, 2026
504ec33
http: do not compress when response_headers set Content-Encoding
andypost Oct 4, 2026
c1dfb04
ci: let Dependabot update cargo dependencies
andypost Oct 4, 2026
3dbfb15
java: update tomcat jars to 9.0.122
andypost Oct 4, 2026
b5bf3e6
docker: add Go 1.27, Perl 5.44 and Java 27, and upgrade base packages
andypost Oct 4, 2026
60f5d0c
rust: declare rust-version per crate, and build the builders with 1.95.0
andypost Oct 4, 2026
fe2a093
ci: build every crate with its declared rust-version
andypost Oct 4, 2026
f031a0b
ci: fail the wasm-wasi-component leg when its tests all skip
andypost Oct 4, 2026
61b297a
release: prepare 1.37.0
claude Sep 25, 2026
9627a35
docs: say how CHANGES and the unitctl tag are really made
claude Sep 25, 2026
6bb137e
build(deps): Bump the minor-and-patch group across 7 directories with…
dependabot[bot] Oct 4, 2026
f0f589e
ci: keep the otel crates out of the Dependabot minor-and-patch group
andypost Oct 4, 2026
ccf1f52
build(deps): Bump the otel group across 2 directories with 5 updates
dependabot[bot] Oct 4, 2026
47d2f93
changelog: open the 1.37.1 section
andypost Oct 4, 2026
a9ec88c
otel: stop requiring and linking OpenSSL
andypost Oct 4, 2026
a7e3a29
wasm: refuse a handler export that is not a function
andypost Oct 4, 2026
5c785aa
wasm: trap an import that needs a request before the first request
andypost Oct 4, 2026
a033621
controller: ignore a line end in the state version file
andypost Oct 6, 2026
c8b33ba
http: consume chunk data that ends at the end of a read
andypost Oct 6, 2026
7cfd11e
controller: parse the version file with nxt_str_strip()
andypost Oct 6, 2026
2e33433
port: do not re-arm an active read event after each drain
andypost Oct 6, 2026
6b204e2
tests: wait for the listener in the version file test
andypost Oct 6, 2026
23074fa
otel: disable the OTLP exporter retries that opentelemetry-otlp 0.33 …
andypost Oct 5, 2026
7d72958
http: count large header buffers in a size_t
andypost Oct 5, 2026
f09f5c4
test: name the descriptor kinds a leak assert found
andypost Oct 7, 2026
cee5ceb
test: fix two fd-kind parsing bugs found by review
andypost Oct 8, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
76 changes: 75 additions & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,80 @@ version: 2
updates:
- package-ecosystem: github-actions
directory: "/"
target-branch: "pre-1.35.6"
schedule:
interval: weekly

# Every Cargo.toml that has its own Cargo.lock. tools/unitctl is one
# workspace, so its root covers the three member crates. The tests build
# a copy of each test/wasm_component fixture with "cargo component build",
# which writes src/bindings.rs again. The exports come from
# wasi::http::proxy::export!, so a bump cannot break a fixture through
# that file.
- package-ecosystem: cargo
directories:
- "/tools/unitctl"
- "/src/otel"
- "/src/wasm-wasi-component"
- "/pkg/eol"
- "/test/fake_otlp"
- "/test/fake_upstream"
- "/test/wasm_component/hello_world"
- "/test/wasm_component/spin_loop"
schedule:
interval: weekly
# Every version update below belongs to a group, and a group is one
# pull request for all directories. So at most three version-update
# pull requests are open, whether the limit counts per directory or for
# the whole block.
open-pull-requests-limit: 3
commit-message:
prefix: "build(deps)"
# A group is one pull request for all directories, so src/otel and
# test/fake_otlp move together in one otel pull request.
groups:
otel:
patterns:
- "opentelemetry*"
- "tonic*"
- "prost*"
# A group covers version updates only, so security updates need their
# own group to keep the otel crates together.
otel-security:
applies-to: security-updates
patterns:
- "opentelemetry*"
- "tonic*"
- "prost*"
# A group without "patterns" outranks "opentelemetry*" when Dependabot
# picks the most specific group, so the two groups below must exclude
# the otel crates. Otherwise they claim them and split the stack.
minor-and-patch:
exclude-patterns:
- "opentelemetry*"
- "tonic*"
- "prost*"
update-types:
- "minor"
- "patch"
# Major updates, including a 0.x minor, which cargo rates as major.
# They come together in one pull request.
major:
exclude-patterns:
- "opentelemetry*"
- "tonic*"
- "prost*"
update-types:
- "major"
ignore:
# Wasmtime is updated by hand. Its version is also pinned in
# pkg/contrib/src/wasmtime/version, EOL.md and pkg/eol.json, which a
# Dependabot pull request cannot change. It stays on the 48 LTS line.
# This also stops Dependabot security pull requests for Wasmtime; the
# weekly audit.yml run reports its advisories instead.
- dependency-name: "wasmtime*"
# bindgen 0.68 emitted opaque structs under clang 22; 0.72 is the
# tested version. A 0.x minor can break, so bump it by hand.
- dependency-name: "bindgen"
update-types:
- "version-update:semver-minor"
- "version-update:semver-major"
17 changes: 17 additions & 0 deletions .github/sanitizer-allowlist.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Known UndefinedBehaviorSanitizer violations, waived by
# .github/scripts/check-sanitizer-reports.sh so that the sanitizer gate can be
# made blocking without first fixing every pre-existing site.
#
# Rules:
# - One POSIX extended regular expression per line, matched against the
# report line as it appears in the harness's unit.log.
# - Every entry names the issue tracking its fix. An entry without one is a
# bug in this file: the point of the list is to shrink, and an unattributed
# waiver never does.
# - ASan/LSan/TSan reports cannot be waived here. The script refuses to
# match them on purpose -- a memory-safety report fails the leg, always.
# - Pin the source location. A bare message would waive the same class of
# violation everywhere in the tree, including a new one.
#
# No active waivers. The last four (freeunitorg/freeunit#188, #200) are
# fixed at their source.
66 changes: 66 additions & 0 deletions .github/scripts/check-rust-version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
#!/usr/bin/env python3
#
# Check every package of a Cargo project with the Rust release that its
# "rust-version" names, so that a dependency update which raises the floor
# fails here instead of in a build that pins an older toolchain.
#
# Usage: check-rust-version.py <directory> [<target>]
#
# A package without "rust-version" is an error.

import os
import subprocess
import sys
import tomllib


def load(path):
with open(path, 'rb') as f:
return tomllib.load(f)


def run(cmd):
print('+ ' + ' '.join(cmd), flush=True)
return subprocess.run(cmd).returncode


def main():
root = sys.argv[1]
target = ['--target', sys.argv[2]] if len(sys.argv) > 2 else []
manifest = os.path.join(root, 'Cargo.toml')
top = load(manifest)
workspace = top.get('workspace', {})

dirs = [os.path.join(root, m) for m in workspace.get('members', [])]
if 'package' in top:
dirs.insert(0, root)

failed = False

for d in dirs:
path = os.path.join(d, 'Cargo.toml')
package = load(path)['package']
version = package.get('rust-version')

if isinstance(version, dict) and version.get('workspace'):
version = workspace.get('package', {}).get('rust-version')

if not isinstance(version, str):
print(f'::error file={path}::{package["name"]} declares no '
'rust-version')
failed = True
continue

if (run(['rustup', 'toolchain', 'install', version,
'--profile', 'minimal', *target]) != 0
or run(['cargo', f'+{version}', 'check', '--locked',
'--manifest-path', manifest, '-p', package['name'],
*target]) != 0):
print(f'::error file={path}::{package["name"]} does not build '
f'with Rust {version}, its rust-version')
failed = True

sys.exit(1 if failed else 0)


main()
126 changes: 126 additions & 0 deletions .github/scripts/check-sanitizer-reports.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
#!/bin/sh
#
# Fail a sanitizer CI leg on any ASan/UBSan report the test session produced.
#
# Why this scans the harness's unit.log rather than a sanitizer log_path
# directory: ASAN_OPTIONS/UBSAN_OPTIONS log_path does not work for unitd.
# The daemon relocates argv[]/environ[] in nxt_process_title()
# (src/nxt_process_title.c) and overwrites the original block, so by the time a
# forked router or application worker writes a report the options string the
# sanitizer runtime kept a pointer into is gone. Measured on this tree: an
# ordinary binary run with the same UBSAN_OPTIONS honours log_path,
# halt_on_error and print_stacktrace; inside unitd none of the three take
# effect and the log directory stays empty on every run -- including runs that
# produced a genuine heap-use-after-free. Reports do reach unitd's stderr,
# which test/conftest.py wires to <temp_dir>/unit.log, so that is what we read.
#
# The caller must pass --save-log to pytest: without it conftest.py removes the
# per-restart temp dir (and with it unit.log) after every test.
#
# Usage: check-sanitizer-reports.sh <log-root> [allowlist-file]
# <log-root> directory holding the harness's unit-test-* temp dirs
# (tempfile.mkdtemp(prefix='unit-test-'), i.e. $TMPDIR or /tmp)
# [allowlist-file] optional; see .github/sanitizer-allowlist.txt

set -eu

log_root=${1:?usage: check-sanitizer-reports.sh <log-root> [allowlist-file]}
allowlist=${2:-}

# A sanitizer report line, anchored tightly enough that a request body echoed
# into the --debug log cannot forge one.
# UBSan: "src/nxt_conf.c:664:26: runtime error: ..."
# ASan: "==123==ERROR: AddressSanitizer: heap-use-after-free ..."
ubsan_re='[^[:space:]]+:[0-9]+:[0-9]+: runtime error: '
asan_re='(ERROR|SUMMARY): [A-Za-z]*Sanitizer:'

logs=$(find "$log_root" -maxdepth 2 -name unit.log -type f 2>/dev/null | sort)

if [ -z "$logs" ]; then
echo "::error::No unit.log found under ${log_root}. The sanitizer gate" \
"cannot certify this leg: either the test session never started, or" \
"pytest was invoked without --save-log and the harness removed the" \
"temp dirs. Refusing to report a clean run."
exit 1
fi

echo "Scanning $(echo "$logs" | wc -l) unit.log file(s) under ${log_root}:"
echo "$logs" | sed 's/^/ /'
echo

findings=$(mktemp)
patterns=$(mktemp)
trap 'rm -f "$findings" "$patterns"' EXIT

# -a is load-bearing, not defensive. unitd's --debug log carries raw payload
# bytes, tens of thousands of NULs in a typical run, so grep classifies
# unit.log as binary: it prints the matches it found before the first NUL and
# then silently stops. Measured on a churn log: 3 of 8 report lines survived,
# and the two AddressSanitizer lines -- which come later in the file than the
# first NUL -- were among the 5 dropped. Without -a this gate reproduces the
# exact bug it was written to remove.
for f in $logs; do
grep -aEH "$ubsan_re|$asan_re" "$f" 2>/dev/null || true
done > "$findings"

if [ ! -s "$findings" ]; then
echo "No sanitizer reports."
exit 0
fi

# An ASan/LSan/TSan report is never allowlistable -- those are memory-safety
# bugs, not style debt. Only UBSan lines can be waived, and only by an entry
# that names an open issue.
hard=$(grep -aE "$asan_re" "$findings" || true)

soft=$(grep -aEv "$asan_re" "$findings" || true)
known=''
unknown=$soft

if [ -n "$allowlist" ] && [ -f "$allowlist" ] && [ -n "$soft" ]; then
# Patterns go through a file, not a heredoc: `grep -f -` would take its
# pattern list from the same stdin the findings are piped in on, match
# nothing, and report a clean leg -- the exact failure this gate exists to
# remove.
grep -Ev '^[[:space:]]*(#|$)' "$allowlist" > "$patterns" || true

if [ -s "$patterns" ]; then
known=$(printf '%s\n' "$soft" | grep -aE -f "$patterns" || true)
unknown=$(printf '%s\n' "$soft" | grep -aE -v -f "$patterns" || true)
fi
fi

if [ -n "$known" ]; then
echo "Known UBSan violations waived by ${allowlist} (tracked, not fixed here):"
printf '%s\n' "$known" | sed 's/.*unit\.log://' | sort | uniq -c | sort -rn |
sed 's/^/ /'
echo
fi

if [ -z "$hard" ] && [ -z "$unknown" ]; then
echo "No unwaived sanitizer reports."
exit 0
fi

if [ -n "$hard" ]; then
echo "AddressSanitizer/LeakSanitizer report(s) -- never waivable:"
printf '%s\n' "$hard" | sed 's/^/ /'
echo
echo "Stack frames from the same log(s):"
for f in $logs; do
grep -aE '^ *#[0-9]+ 0x' "$f" 2>/dev/null | head -40 | sed 's/^/ /'
done
echo
fi

if [ -n "$unknown" ]; then
echo "UBSan violation(s) not in ${allowlist:-(no allowlist)}:"
printf '%s\n' "$unknown" | sed 's/.*unit\.log://' | sort | uniq -c | sort -rn |
sed 's/^/ /'
echo
fi

echo "::error::Sanitizer report(s) in this leg; see the step output above and" \
"the uploaded unit-logs artifact. A new UBSan site must be fixed, or" \
"waived in .github/sanitizer-allowlist.txt with an issue reference."
exit 1
Loading
Loading