# Supply chain policy — enforced by `cargo deny check` in CI
# See: https://embarkstudios.github.io/cargo-deny/

[advisories]
ignore = [
    { id = "RUSTSEC-2023-0071", reason = "rsa Marvin Attack — no fix available, used via sqlx-mysql (dev path only)" },
    { id = "RUSTSEC-2025-0134", reason = "rustls-pemfile unmaintained — migrate to rustls-pki-types PemObject when updating rustls" },
    { id = "RUSTSEC-2026-0098", reason = "rustls-webpki 0.101.7 URI name constraints — pinned by aws-smithy-http-client via rustls 0.21; no patch for 0.101.x branch" },
    { id = "RUSTSEC-2026-0099", reason = "rustls-webpki 0.101.7 wildcard name constraints — same root cause as 0098, awaiting AWS SDK update" },
    { id = "RUSTSEC-2026-0104", reason = "rustls-webpki 0.101.7 CRL parsing panic — pinned by aws-smithy-http-client via rustls 0.21; 0.103.x fixed via update to 0.103.13" },
]

[licenses]
allow = [
    "Apache-2.0",
    "Apache-2.0 WITH LLVM-exception",
    "BSD-2-Clause",
    "BSD-3-Clause",
    "BSL-1.0",
    "CC0-1.0",
    "CDLA-Permissive-2.0",
    "ISC",
    "MIT",
    "MIT-0",
    "MPL-2.0",
    "Unicode-3.0",
    "Unlicense",
    "Zlib",
]
confidence-threshold = 0.8

[bans]
multiple-versions = "warn"
wildcards = "deny"

[sources]
unknown-registry = "deny"
unknown-git = "deny"
allow-registry = ["https://github.com/rust-lang/crates.io-index"]
allow-git = []
