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
16 changes: 16 additions & 0 deletions .cargo/audit.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# cargo-audit project configuration (Plan 323).
#
# cargo-audit 0.23.0 reads `./.cargo/audit.toml` in the current directory (or
# `$CARGO_HOME/audit.toml`); it does not read a repository-root `audit.toml`.
# This file owns the audit policy and `deny.toml` owns the cargo-deny policy:
# one effective source per tool.
#
# Keep `ignore` empty. Remediate with a patched version, or extend the offline
# floor guard in `scripts/check-advisory-floors.py`; never silence an advisory.

[advisories]
ignore = []

[yanked]
# Report yanked crates (cargo audit warns unless `--deny yanked` is passed).
enabled = true
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ jobs:
shell: bash
run: |
uname -a
docker run --rm --platform linux/arm64 python:3.11-alpine sh -c 'cat /etc/alpine-release; python --version; uname -m'
docker run --rm --platform linux/arm64 python:3.11-alpine@sha256:7fbad8e4652eae0186429a6f26cf5b23e27e8c6fd7ac4d0cfd7a6988cdeea1e1 sh -c 'cat /etc/alpine-release; python --version; uname -m'
- name: Download AArch64 musl artifact only
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
with:
Expand All @@ -280,7 +280,7 @@ jobs:
docker run --rm --platform linux/arm64 \
-v "$GITHUB_WORKSPACE/aarch64-musl-wheel:/wheels:ro" \
-v "$GITHUB_WORKSPACE/scripts:/scripts:ro" \
python:3.11-alpine \
python:3.11-alpine@sha256:7fbad8e4652eae0186429a6f26cf5b23e27e8c6fd7ac4d0cfd7a6988cdeea1e1 \
sh -c '
cat /etc/alpine-release
python --version
Expand Down Expand Up @@ -534,7 +534,7 @@ jobs:
fi
docker run --rm \
-v "$(pwd)/scripts:/scripts:ro" \
python:3.11-alpine \
python:3.11-alpine@sha256:7fbad8e4652eae0186429a6f26cf5b23e27e8c6fd7ac4d0cfd7a6988cdeea1e1 \
sh -c "
pip install --no-cache-dir --only-binary=:all: --index-url ${INDEX_URL} 'eggserve==${VERSION}'
python -c \"import eggserve; import eggserve._native; print(f'version={eggserve.__version__}')\"
Expand All @@ -556,9 +556,9 @@ jobs:
INDEX_URL="https://test.pypi.org/simple/"
fi
if [ "${{ matrix.mode }}" = "qemu-glibc-armv7" ]; then
IMAGE="arm32v7/python:3.11-bookworm"
IMAGE="arm32v7/python:3.11-bookworm@sha256:f5ac5bd76de95eeadfd7fc35d5385e6fa14fa3ed6ce070ecacbfb935eec47c66"
else
IMAGE="arm32v7/python:3.11-alpine"
IMAGE="arm32v7/python:3.11-alpine@sha256:c7b37e6338824a66959195b7657a7bd0c6e5020d51b49f295b27fd9af95dd227"
fi
docker run --rm --platform linux/arm/v7 \
-v "$(pwd)/scripts:/scripts:ro" \
Expand Down
13 changes: 13 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,16 @@ crates/eggserve-python/packaging-tests/__pycache__/
# Release infrastructure (generated)
release/rc-status.json
release/sbom/

# Credential material (Plan 323). Defensive only: no secret is committed today.
# Tracked test fixtures are explicitly re-included so an intentional fixture is
# never hidden by the blanket key rule.
.env
.env.*
!.env.example
*.p12
*.pfx
id_rsa*
id_ed25519*
*.key
!crates/eggserve-python/tests/fixtures/*.key
52 changes: 52 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,57 @@
# Changelog

## Unreleased — post-audit maintenance (Plans 320–325)

No version has been published from this work; the Rust line stays on `0.5.x`
and the wheel on `0.2.5` until a maintainer chooses a release.

- **Compatible dependency refresh (Plan 325).** The root, Python-wheel, and
fuzz lockfiles now resolve the newest semver-compatible dependency set
available at implementation time, with shared packages aligned. The pinned
audit tools are `cargo-audit 0.23.0` and `cargo-deny 0.21.0`; the Python
policy invocation follows cargo-deny's global `--config` option. No manifest
requirement, public API, capability, behavior, or support tier changed, and
no release or version bump is included.
- **Advisory floors (Plan 320).** The lockfiles resolve `quinn-proto 0.11.19`
(RUSTSEC-2026-0523, -0524), `quinn-udp 0.5.16` (RUSTSEC-2026-0538),
`rustix 1.1.6` (RUSTSEC-2026-0486), and `tokio 1.53.3`
(RUSTSEC-2026-0386). No dependency was added or removed and the H3
protocol crates did not move. `scripts/check-advisory-floors.py` is a new
offline guard (with `--self-test`) wired into `scripts/check-supply-chain.sh`
and `scripts/verify.sh fast`. H3 remains experimental.
- **Forwarded-metadata trust (Plan 321).** `trusted_proxy.trust_unix` now
applies only to runtime-owned Unix-domain listeners. A caller-owned peerless
stream — including one driven with `ConnectionContext::for_unix()` through a
public connection API — never inherits that trust, because the runtime did
not accept its peer. TCP/TLS/QUIC peer policy, PROXY preambles, raw peers,
canonical `Host`, and the request target are unchanged. This is a security
correction for embedders that relied on the broader behavior; see the
migration guide.
- **Bounded Python stream producers (Plan 322).** `Response.stream` producer
threads observe receiver closure before every pull and in the empty-chunk
branch, and each holds one admission permit for its lifetime. Capacity
reuses `max_python_callbacks` (default 8) but is independent of the callback
budget; exhaustion is a sanitized 503 before response start. A Python
`__next__` that blocks indefinitely still cannot be interrupted.
- **Operator and repository hygiene (Plan 323).** `--public` documentation now
matches the fail-safe CLI (it acknowledges a wildcard bind and does not
change the address). `cargo audit` policy moved to `.cargo/audit.toml` (the
dead root `audit.toml` is gone) and `deny.toml` remains the cargo-deny
policy. `eggserve-core` no longer enables the unused `tokio/signal` feature in its
production graph; the six core examples keep a dev-only signal feature.
`.gitignore` gains credential patterns with a fixture negation. Release
container images are digest-pinned and `docs/action-pinning.md` matches the
actual action inventory. The corrupted `docs/threat-model.md` opening
paragraph is restored. The macOS-only static canonicalization test now
passes. The release `MANIFEST` is documented as integrity data, not signed
provenance.
- **Runtime/TLS hardening (Plan 324).** `ServerBuilder` adopts each systemd
descriptor at most once (a duplicate index or name fails before the fd is
borrowed). Ambiguous request framing closes the connection in both
pipelines. Identity certificate/key PEM input is bounded to 1 MiB before
parsing, for in-memory and file-path loads. No TLS identity/trust/auth
semantics changed.

## 0.5.1 — `eggserve-static` patch (published 2026-10-23)

The `eggserve-static` crate is republished on its own line. The rest of the
Expand Down
Loading
Loading