feat(worker): sandboxed decode child skeleton — rlimits, traced seccomp allowlist, pure-Rust decoders, libwebp in the child, parent RIFF check, musl image with test stage

This commit is contained in:
bchanot committed 2026-10-13 00:01:26 +02:00
1 parent 2a38fa37b5
commit 3970cdca52
13 files changed
+1435

No files matched your search

+39
View File
@@ -0,0 +1,39 @@
[package]
name = "faunosteo-worker"
description = "Faunosteo file-processing worker: job loop (R1) and the sandboxed decode child (R0 proof)"
version.workspace = true
edition.workspace = true
license.workspace = true
rust-version.workspace = true
publish.workspace = true
[lib]
path = "src/lib.rs"
[[bin]]
name = "faunosteo-worker"
path = "src/main.rs"
[features]
default = []
# Extra subcommands and flags for the sandbox tests and the seccomp derivation
# (crates/worker/Dockerfile stage `test`); never part of a release build.
test-hooks = ["dep:crc32fast"]
[dependencies]
image.workspace = true
libwebp-sys.workspace = true
seccompiler.workspace = true
rlimit.workspace = true
libc.workspace = true
crc32fast = { version = "1.4", optional = true }
# The worker owns I/O (it is the process boundary), so the core's disallowed_methods lint is
# off here; unsafe is allowed for the libwebp FFI only, each block carries a SAFETY comment.
[lints.rust]
unsafe_code = "allow"
[lints.clippy]
unwrap_used = "deny"
expect_used = "deny"
disallowed_methods = "allow"