[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:
@@ -0,0 +1,5 @@
|
||||
auth = "forward-auth"
|
||||
[[request_headers]]
|
||||
action = "set"
|
||||
name = "X-Ianitor-Proof"
|
||||
secret = "ui-proof"
|
||||
@@ -0,0 +1,7 @@
|
||||
[[request_headers]]
|
||||
action = "set"
|
||||
name = "X-Api-Key"
|
||||
secret = "api_key"
|
||||
[[response_headers]]
|
||||
action = "remove"
|
||||
name = "X-Powered-By"
|
||||
@@ -0,0 +1,8 @@
|
||||
[[request_headers]]
|
||||
action = "set"
|
||||
name = "X-A"
|
||||
value = "a b\tc"
|
||||
[[request_headers]]
|
||||
action = "set"
|
||||
name = "Host"
|
||||
value = "x"
|
||||
@@ -0,0 +1 @@
|
||||
/docs/docs/../secret
|
||||
@@ -0,0 +1 @@
|
||||
/a/a/%2e%2e/b
|
||||
@@ -0,0 +1 @@
|
||||
/a/a/‥/b
|
||||
@@ -0,0 +1 @@
|
||||
/a/b/a/b/c.pdf
|
||||
@@ -0,0 +1,11 @@
|
||||
-----BEGIN CERTIFICATE-----
|
||||
MIIBljCCAT2gAwIBAgIUX1lbpmyTvnNF1T88oCzWlkJjimowCgYIKoZIzj0EAwIw
|
||||
ITEfMB0GA1UEAwwWRnV6eiBTZWVkIEludGVybWVkaWF0ZTAeFw0yNjExMTAyMDE2
|
||||
NDZaFw0yNjEyMTAyMDE2NDZaMCExHzAdBgNVBAMMFkZ1enogU2VlZCBJbnRlcm1l
|
||||
ZGlhdGUwWTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAASR07B1zm9jchpPxrFhVANE
|
||||
opzcnaKpjZLi2NANOs/GO2rLFXj7rT2nkFhZcT1s8jebF9+ijPoNurXFEtyLAk/8
|
||||
o1MwUTAdBgNVHQ4EFgQUiDYADaKex6pvmQqH2pZPzFQL1IQwHwYDVR0jBBgwFoAU
|
||||
iDYADaKex6pvmQqH2pZPzFQL1IQwDwYDVR0TAQH/BAUwAwEB/zAKBggqhkjOPQQD
|
||||
AgNHADBEAiBsBb9NFAx5zJr/3DKmNqRnYInjf3NNpFxaQQX+bt8cxQIgIMr3auAS
|
||||
Y4cr/K5PatZGUTXY6Yx8ljbAD6JEh9wnQ50=
|
||||
-----END CERTIFICATE-----
|
||||
@@ -0,0 +1,7 @@
|
||||
-----BEGIN CERTIFICATE REQUEST-----
|
||||
MIHbMIGDAgEAMCExHzAdBgNVBAMMFkZ1enogU2VlZCBJbnRlcm1lZGlhdGUwWTAT
|
||||
BgcqhkjOPQIBBggqhkjOPQMBBwNCAASR07B1zm9jchpPxrFhVANEopzcnaKpjZLi
|
||||
2NANOs/GO2rLFXj7rT2nkFhZcT1s8jebF9+ijPoNurXFEtyLAk/8oAAwCgYIKoZI
|
||||
zj0EAwIDRwAwRAIgOeNFc5Gs6sKwxgorIKYWPGiZggG/n1FMBHPbOvL/M8ECIDJB
|
||||
ThJT2HWLs3qCmMJ5ElwMb8vh21I7AO0V4peZEx1d
|
||||
-----END CERTIFICATE REQUEST-----
|
||||
@@ -0,0 +1,4 @@
|
||||
-----BEGIN CERTIFICATE REQUEST-----
|
||||
MIHbMIGDAgEAMCExHzAdBgNVBAMMFkZ1enogU2VlZCBJbnRlcm1lZGlhdGUwWTAT
|
||||
BgcqhkjOPQIBBggqhkjOPQMBBwNCAASR07B1zm9jchpPxrFhVANEopzcnaKpjZLi
|
||||
2NANOs/GO2rLFXj7rT2nkFhZcT1s8jebF9
|
||||
@@ -0,0 +1,22 @@
|
||||
-----BEGIN CERTIFICATE-----
|
||||
MIIBljCCAT2gAwIBAgIUX1lbpmyTvnNF1T88oCzWlkJjimowCgYIKoZIzj0EAwIw
|
||||
ITEfMB0GA1UEAwwWRnV6eiBTZWVkIEludGVybWVkaWF0ZTAeFw0yNjExMTAyMDE2
|
||||
NDZaFw0yNjEyMTAyMDE2NDZaMCExHzAdB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50=
|
||||
-----END CERTIFICATE-----
|
||||
@@ -0,0 +1,2 @@
|
||||
hosts/../x.tomlhostname = "A..test"
|
||||
upstreams = ["ftp://x"]
|
||||
@@ -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"
|
||||
@@ -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"
|
||||
@@ -0,0 +1,4 @@
|
||||
secrets = []
|
||||
hostname = "a.test"
|
||||
upstreams = ["http://127.0.0.1:3000"]
|
||||
tls = "domi"
|
||||
@@ -0,0 +1 @@
|
||||
isl1.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
@@ -0,0 +1 @@
|
||||
/docs/reporthunter2
|
||||
@@ -0,0 +1 @@
|
||||
/
|
||||
Reference in New Issue
Block a user