mirror of
https://github.com/rustfs/rustfs.git
synced 2026-11-30 20:57:35 +00:00
97d30eaccf
* test(security): add fuzzing, rejection mutants, and obs fault tests Add sigv4_request and notify_xml libFuzzer targets with seed corpora and unit tests, wire fuzz.yml as a workflow_call security-input-gate in CI with trusted changed-path selection, and add fixed rejection-branch mutation verification in isolated workspaces. Verify #[path] coverage attribution with canonical path merging in coverage_per_crate.py, sanitize OTLP startup endpoint logging, and add connect_logs lease/fault regressions, local fake-OTLP 401/500/refused/ timeout/redaction tests, and E2E observability export failure isolation tests. Refs: rustfs/backlog#2677, rustfs/backlog#2679 * fix(ci): stop sending deprecated policy field in s3-tests add-user rustfs/rustfs#9677 hardened /rustfs/admin/v3/add-user to fail closed when a non-empty deprecated policy field is provided. scripts/s3-tests/run.sh was still passing policy=readwrite in the add-user body even though it immediately calls set-user-or-group-policy right after, and awscurl returned exit 0 on XML <Error> responses so provisioning silently failed and broke all alt-user s3-tests. Remove the deprecated policy field from the add-user payload, check awscurl responses for XML <Error> elements in provisioning, and add a regression unit test in scripts/s3-tests/test_runner_tools.py. Refs: rustfs/backlog#1246 * fix(ci): run called validation gates and count wrapped coverage lines * fix(ci): fail S3 user provisioning on HTTP errors without logging responses * fix(iceberg): reject repeated warehouses before validating bucket names * test(ecstore): wait for relaxed writes on the foreground lane * test(quota): isolate concurrent real-disk probes in CI * ci: budget for cold instrumentation builds and validation rebuilds * test(ecstore): scope upload lock identity helper to its Linux test * test(ecstore): isolate namespace lock checks from runner disk latency * test(ecstore): wait for inline source publication before reading a disk * test(connect): isolate the durable receipt integration test
74 lines
1.4 KiB
TOML
74 lines
1.4 KiB
TOML
[package]
|
|
name = "rustfs-fuzz"
|
|
version = "0.0.0"
|
|
edition = "2024"
|
|
publish = false
|
|
|
|
[package.metadata]
|
|
cargo-fuzz = true
|
|
|
|
[workspace]
|
|
|
|
[dependencies]
|
|
arbitrary = { version = "1", features = ["derive"] }
|
|
http = "1.5.0"
|
|
libfuzzer-sys = "0.4"
|
|
rustfs-ecstore = { path = "../crates/ecstore" }
|
|
rustfs-filemeta = { path = "../crates/filemeta" }
|
|
rustfs-notify = { path = "../crates/notify" }
|
|
rustfs-policy = { path = "../crates/policy" }
|
|
rustfs-security-governance = { path = "../crates/security-governance" }
|
|
rustfs-signer = { path = "../crates/signer" }
|
|
rustfs-utils = { path = "../crates/utils", features = ["compress", "path"] }
|
|
serde_json = "1"
|
|
time = { version = "0.3.55", features = ["macros"] }
|
|
|
|
[[bin]]
|
|
name = "bucket_validation"
|
|
path = "fuzz_targets/bucket_validation.rs"
|
|
test = false
|
|
doc = false
|
|
bench = false
|
|
|
|
[[bin]]
|
|
name = "archive_extract"
|
|
path = "fuzz_targets/archive_extract.rs"
|
|
test = false
|
|
doc = false
|
|
bench = false
|
|
|
|
[[bin]]
|
|
name = "local_metadata"
|
|
path = "fuzz_targets/local_metadata.rs"
|
|
test = false
|
|
doc = false
|
|
bench = false
|
|
|
|
[[bin]]
|
|
name = "policy_ingress"
|
|
path = "fuzz_targets/policy_ingress.rs"
|
|
test = false
|
|
doc = false
|
|
bench = false
|
|
|
|
[[bin]]
|
|
name = "path_containment"
|
|
path = "fuzz_targets/path_containment.rs"
|
|
test = false
|
|
doc = false
|
|
bench = false
|
|
|
|
[[bin]]
|
|
name = "sigv4_request"
|
|
path = "fuzz_targets/sigv4_request.rs"
|
|
test = false
|
|
doc = false
|
|
bench = false
|
|
|
|
[[bin]]
|
|
name = "notify_xml"
|
|
path = "fuzz_targets/notify_xml.rs"
|
|
test = false
|
|
doc = false
|
|
bench = false
|