deny.toml 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. # Supply-chain gates for the OAuth 2.1 authorization server (task 42).
  2. #
  3. # Ring-only TLS: `openssl-sys`, `aws-lc-sys`, and `native-tls` must never enter
  4. # the graph (see the `bans` deny list below). `cargo deny check` runs in CI.
  5. [advisories]
  6. db-urls = ["https://github.com/rustsec/advisory-db"]
  7. yanked = "deny"
  8. # RUSTSEC-2023-0071 (rsa Marvin timing): no patched release exists upstream
  9. # ("No safe upgrade is available"); this crate uses RSA for signature
  10. # verification only (JWK-selected `DecodingKey`), never RSA decryption, so
  11. # the padding-timing oracle does not apply. Re-evaluate when rsa ships a fix.
  12. ignore = [
  13. { id = "RUSTSEC-2023-0071", reason = "unpatched upstream; RSA verify-only, never decryption" },
  14. ]
  15. [bans]
  16. multiple-versions = "warn"
  17. wildcards = "deny"
  18. highlight = "all"
  19. # Ring-only TLS policy: no OpenSSL, no AWS-LC, no platform TLS anywhere in
  20. # the graph (main or dev). A duplicated dependency that pulls one of these
  21. # in fails CI until the duplicate is removed.
  22. deny = [
  23. { crate = "openssl-sys", reason = "ring-only TLS: no OpenSSL anywhere in the graph" },
  24. { crate = "aws-lc-sys", reason = "ring-only TLS: no AWS-LC anywhere in the graph" },
  25. { crate = "native-tls", reason = "ring-only TLS: no platform TLS anywhere in the graph" },
  26. ]
  27. [licenses]
  28. confidence-threshold = 0.93
  29. allow = [
  30. "MIT",
  31. "Apache-2.0",
  32. "ISC",
  33. "BSD-2-Clause",
  34. "BSD-3-Clause",
  35. "CC0-1.0",
  36. "BSL-1.0",
  37. "Zlib",
  38. "OpenSSL",
  39. "Unicode-3.0",
  40. "Unicode-DFS-2016",
  41. "MPL-2.0",
  42. # Mozilla root-store data (via webpki-roots); OSI-approved data license.
  43. "CDLA-Permissive-2.0",
  44. ]
  45. exceptions = []
  46. [sources]
  47. unknown-registry = "deny"
  48. unknown-git = "deny"
  49. allow-registry = ["https://github.com/rust-lang/crates.io-index"]