Repository navigation
Expand file tree
/
Copy pathdeny.toml
More file actions
106 lines (100 loc) · 4.71 KB
/
Copy pathdeny.toml
File metadata and controls
106 lines (100 loc) · 4.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
# Copyright (c) 2026 Databricks, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# Configuration for cargo-deny. See https://embarkstudios.github.io/cargo-deny/.
# Enforced by .github/workflows/license-check.yml.
[graph]
all-features = true
[advisories]
yanked = "warn"
ignore = [
# RUSTSEC-2023-0071 — "Marvin Attack": RSA timing sidechannel in the
# `rsa` crate. No fixed version exists (only 0.10 release candidates;
# stable 0.9.x is still affected), so it cannot be cleared by a bump.
#
# `rsa` is a DEV-ONLY dependency here: it generates RSA test keys
# in-process for the JWT auth unit tests (`src/auth/oauth/test_keys.rs`)
# so we don't commit PEM fixtures (secret scanner) or shell out to
# `openssl` (not on Windows). Verified dev-only via `cargo tree -i rsa`
# — it is never linked into the shipped kernel, pyo3, or napi artifacts,
# so the timing sidechannel is not reachable by any driver consumer.
# The runtime signing path uses `jsonwebtoken` (ring), not `rsa`.
#
# We keep `rsa` (rather than dropping RSA test coverage for EC-only)
# because RS256 is the JDBC default and the most common real-world key
# type, so exercising the RSA load+sign path in tests has value.
# Re-evaluate when `rsa` ships a constant-time stable release.
"RUSTSEC-2023-0071",
# RUSTSEC-2026-0258 — "h2 unbounded empty DATA frames". A DoS advisory
# in `h2 0.4.15`, pulled in transitively via `hyper` <- `reqwest`
# (`cargo tree -i h2`); not a direct dependency and unrelated to this
# crate's code. 0.4.15 is already the latest 0.4.x (a `cargo update -p
# h2` is a no-op), so it cannot be cleared by a bump; clearing it needs
# an upstream `hyper`/`reqwest` release that requires the fixed `h2`.
# The advisory concerns a server-side frame-flood; the kernel is an
# HTTP *client* to Databricks SEA, so the attack surface is not exercised
# here. Pre-existing on `main` (fires against the shared reqwest stack,
# not this PR). Re-evaluate when the reqwest/hyper stack picks up the fix.
"RUSTSEC-2026-0258",
# RUSTSEC-2026-0543 marks chrono as unmaintained; it does not describe a
# vulnerability. chrono is part of the public API and is also required by
# Arrow, so replacing it is an API and ecosystem migration rather than a
# security patch. Re-evaluate by 2027-02-28 or when Arrow migrates.
"RUSTSEC-2026-0543",
# RUSTSEC-2026-0592 is a stack overflow in `url::Url::origin()` for deeply
# nested `blob:` URLs. The kernel never calls `Url::origin()` and does not
# accept blob URLs. url 2.5.9 contains the fix, but it is not yet available
# from the required Databricks package proxy. This temporary exception must
# be replaced with a lockfile update as soon as 2.5.9 is available.
"RUSTSEC-2026-0592",
]
[licenses]
# Permissive licenses we allow in transitive deps. Adding a new
# entry requires PR-description justification.
allow = [
"Apache-2.0",
# target-lexicon, used by PyO3's build configuration.
"Apache-2.0 WITH LLVM-exception",
"BSD-2-Clause",
"BSD-3-Clause",
# CC0-1.0 is a public-domain dedication (no attribution or
# copyleft obligation). Pulled in transitively by `tiny-keccak`
# (v2.0.2) — present in BOTH the root graph (ahash -> const-random
# -> const-random-macro -> tiny-keccak) and the napi graph. The
# root `cargo deny` run was previously passing without this entry
# only because the license text was classified as "unknown" under
# confidence-threshold = 0.93 rather than matched to the explicit
# CC0-1.0 string; allow-listing it makes the policy explicit so a
# future classifier change can't silently flip it to a hard reject.
"CC0-1.0",
"CDLA-Permissive-2.0",
"ISC",
"MIT",
"MIT-0",
"MPL-2.0",
"Unicode-3.0",
"Unicode-DFS-2016",
"Unlicense",
"Zlib",
]
# Confidence threshold for license-text matching. 0.8 is the
# cargo-deny default; 0.93 reduces false positives for crates with
# slightly non-standard licence text.
confidence-threshold = 0.93
[bans]
# Tighten over time. Today we just want license enforcement live.
multiple-versions = "allow"
wildcards = "allow"
[sources]
unknown-registry = "warn"
unknown-git = "warn"