[tests] Fuzz: cargo-fuzz targets for route files, header rules, share tokens, path_within and the CA's PEM/CSR parsing (tests/fuzz), a bounded run script that saves any crash as a hex regression, and every seed and saved crash replayed in cargo test

This commit is contained in:
2026-11-10 21:17:29 +01:00
parent 1358649550
commit 08e24e5d40
30 changed files with 673 additions and 1 deletions
+2
View File
@@ -0,0 +1,2 @@
hosts/../x.tomlhostname = "A..test"
upstreams = ["ftp://x"]
+18
View File
@@ -0,0 +1,18 @@
secrets = ["api_key", "ui-proof"]
[forward_auth]
url = "http://127.0.0.1:9091/api/authz/forward-auth"
[acme]
directory = "https://acme.test/dir"
email = "a@b.test"
hostname = "b.test"
upstreams = ["https://[::1]:8443", "https://app.test:8443"]
tls = "letsencrypt"
websockets = true
share_links = true
access_log = "truncated"
[health_check]
path = "/healthz"
interval_secs = 5
[[response_headers]]
action = "remove"
name = "Server"
+11
View File
@@ -0,0 +1,11 @@
secrets = ["api_key", "ui-proof"]
[forward_auth]
url = "http://127.0.0.1:9091/api/authz/forward-auth"
hostname = "ui.test"
upstreams = ["unix:/run/ianitor-control/ui.sock"]
tls = "domi"
auth = "forward-auth"
[[request_headers]]
action = "set"
name = "X-Ianitor-Proof"
secret = "ui-proof"
+4
View File
@@ -0,0 +1,4 @@
secrets = []
hostname = "a.test"
upstreams = ["http://127.0.0.1:3000"]
tls = "domi"