Skip to content

Commit 8d88cce

Browse files
authored
[Kernel OSS Readiness] Canonicalize license and notice files (#502)
## Description Keep the repository's Apache 2.0 license text canonical and place project-specific attribution where downstream consumers expect it. This removes the Apache Arrow ADBC footer from both distributed `LICENSE` copies, records the upstream attribution in conventional `NOTICE` files, includes matching legal files in the root and standalone ADBC crate packages, and adds CI protection against content drift and package omission. ## Testing - Rebased onto latest `main` and repeated a hidden-file, case-insensitive search; no `NOTICE.txt` callsites remain. - Confirmed both `LICENSE` files byte-match `/usr/share/common-licenses/Apache-2.0` and each other. - Confirmed the root and ADBC `NOTICE` files match. - Confirmed `cargo package --list --allow-dirty` includes `LICENSE` and `NOTICE` for both the root and ADBC crates. - Ran the CI comparison locally: `cmp LICENSE adbc/LICENSE && cmp NOTICE adbc/NOTICE`. - `git diff --check`. - Databricks commit and push secret scans passed. ## Additional notes No runtime behavior changes. --------- Signed-off-by: Rahul Singhal <rahul.singhal@databricks.com>
1 parent 5125f01 commit 8d88cce

8 files changed

Lines changed: 281 additions & 18 deletions

File tree

‎.github/workflows/license-check.yml‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ on:
3232
- "Cargo.lock"
3333
- "adbc/Cargo.toml"
3434
- "adbc/Cargo.lock"
35+
- "LICENSE"
36+
- "NOTICE"
37+
- "adbc/LICENSE"
38+
- "adbc/NOTICE"
3539
- "deny.toml"
3640
# napi/ is a standalone workspace with its own lockfile; its
3741
# dependency graph is invisible to a root `cargo deny` run, so
@@ -48,6 +52,10 @@ on:
4852
- "Cargo.lock"
4953
- "adbc/Cargo.toml"
5054
- "adbc/Cargo.lock"
55+
- "LICENSE"
56+
- "NOTICE"
57+
- "adbc/LICENSE"
58+
- "adbc/NOTICE"
5159
- "deny.toml"
5260
- "napi/Cargo.toml"
5361
- "napi/Cargo.lock"
@@ -77,12 +85,20 @@ jobs:
7785
steps:
7886
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
7987

88+
- name: Check ADBC legal files match repository copies
89+
run: cmp LICENSE adbc/LICENSE && cmp NOTICE adbc/NOTICE
90+
8091
- uses: ./.github/actions/setup-public-package-proxies
8192
with:
8293
cargo: "true"
8394

8495
- uses: actions-rust-lang/setup-rust-toolchain@166cdcfd11aee3cb47222f9ddb555ce30ddb9659 # v1.17.0
8596

97+
- name: Check NOTICE files are included in packages
98+
run: |
99+
cargo package --list --allow-dirty | grep -qx NOTICE
100+
cargo package --list --allow-dirty --manifest-path adbc/Cargo.toml | grep -qx NOTICE
101+
86102
- name: Install cargo-deny
87103
uses: taiki-e/install-action@41049aa56687c35e0afa74eed4f09cec4f9afabf # v2.85.2
88104
with:

‎Cargo.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ include = [
3434
"/CHANGELOG.md",
3535
"/CONNECTION_PARAMETERS.md",
3636
"/LICENSE",
37-
"/NOTICE.txt",
37+
"/NOTICE",
3838
]
3939

4040
[dependencies]

‎LICENSE‎

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -200,11 +200,3 @@
200200
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201201
See the License for the specific language governing permissions and
202202
limitations under the License.
203-
204-
--------------------------------------------------------------------------------
205-
206-
This project includes code from Apache Arrow ADBC.
207-
208-
Copyright: 2022 The Apache Software Foundation.
209-
Home page: https://arrow.apache.org/
210-
License: http://www.apache.org/licenses/LICENSE-2.0

NOTICE.txt renamed to NOTICE

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,13 @@ Apache License 2.0
184184
This Software contains code from the following open source projects, licensed under the apache license 2.0 (https://www.apache.org/licenses/LICENSE-2.0).
185185

186186

187+
Apache Arrow ADBC
188+
Copyright 2022-2026 The Apache Software Foundation
189+
190+
This product includes software developed at
191+
The Apache Software Foundation (http://www.apache.org/).
192+
193+
187194
Package: arrow-array
188195
Project URL: https://github.com/apache/arrow-rs
189196
Copyright: Copyright 2016-2026 The Apache Software Foundation

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,4 @@ and security vulnerabilities should be reported according to
6868

6969
## License
7070

71-
Apache 2.0. See [LICENSE](LICENSE) and [NOTICE.txt](NOTICE.txt).
71+
Apache 2.0. See [LICENSE](LICENSE) and [NOTICE](NOTICE).

‎adbc/Cargo.toml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ include = [
1616
"/examples/**",
1717
"/README.md",
1818
"/LICENSE",
19+
"/NOTICE",
1920
"/PACKAGING.md",
2021
]
2122
# Keep disabled while this implementation is experimental. Publication requires

‎adbc/LICENSE‎

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -200,11 +200,3 @@
200200
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201201
See the License for the specific language governing permissions and
202202
limitations under the License.
203-
204-
--------------------------------------------------------------------------------
205-
206-
This project includes code from Apache Arrow ADBC.
207-
208-
Copyright: 2022 The Apache Software Foundation.
209-
Home page: https://arrow.apache.org/
210-
License: http://www.apache.org/licenses/LICENSE-2.0

‎adbc/NOTICE‎

Lines changed: 255 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,255 @@
1+
Copyright (2026) Databricks, Inc.
2+
This Software includes software developed at Databricks (https://www.databricks.com/) and its use is subject to the included LICENSE file.
3+
4+
5+
Dependencies are grouped below by license. The full text of each license is available via the link in the section header.
6+
MIT License
7+
This Software contains code from the following open source projects, licensed under the mit license (https://opensource.org/licenses/MIT).
8+
9+
10+
Package: aes
11+
Project URL: https://github.com/RustCrypto/block-ciphers
12+
Copyright: Copyright (c) 2018-2024 The RustCrypto Project Developers; Copyright (c) 2018 Artyom Pavlov
13+
14+
15+
Package: async-trait
16+
Project URL: https://github.com/dtolnay/async-trait
17+
Copyright: Copyright async-trait Authors.
18+
19+
20+
Package: base64
21+
Project URL: https://github.com/marshallpierce/rust-base64
22+
Copyright: Copyright (c) 2025 Alice Maz, Marshall Pierce
23+
24+
25+
Package: cbc
26+
Project URL: https://github.com/RustCrypto/block-modes
27+
Copyright: Copyright (c) 2018-2022 RustCrypto Developers; Copyright (c) 2018 Artyom Pavlov
28+
29+
30+
Package: chrono
31+
Project URL: https://github.com/chronotope/chrono
32+
Copyright: Copyright (c) 2014--2026, Kang Seonghoon and contributors; Copyright (c) 2014, Kang Seonghoon
33+
34+
35+
Package: dashmap
36+
Project URL: https://github.com/xacrimon/dashmap
37+
Copyright: Copyright (c) 2025 Joel Wejdenstål
38+
39+
40+
Package: dirs
41+
Project URL: https://github.com/soc/dirs-rs
42+
Copyright: Copyright (c) 2018-2019 dirs-rs contributors
43+
44+
45+
Package: futures
46+
Project URL: https://github.com/rust-lang/futures-rs
47+
Copyright: Copyright (c) 2016 Alex Crichton; Copyright (c) 2017 The Tokio Authors
48+
49+
50+
Package: geo-traits
51+
Project URL: https://github.com/georust/geo
52+
Copyright: Copyright (c) 2017 The GeoRust Project Developers
53+
54+
55+
Package: hex
56+
Project URL: https://github.com/KokaKiwi/rust-hex
57+
Copyright: Copyright (c) 2013-2014 The Rust Project Developers; Copyright (c) 2015-2020 The rust-hex Developers
58+
59+
60+
Package: hmac
61+
Project URL: https://github.com/RustCrypto/MACs
62+
Copyright: Copyright (c) 2017 Artyom Pavlov
63+
64+
65+
Package: jsonwebtoken
66+
Project URL: https://github.com/Keats/jsonwebtoken
67+
Copyright: Copyright (c) 2015 Vincent Prouillet
68+
69+
70+
Package: log
71+
Project URL: https://github.com/rust-lang/log
72+
Copyright: Copyright (c) 2014 The Rust Project Developers
73+
74+
75+
Package: lz4_flex
76+
Project URL: https://github.com/pseitz/lz4_flex
77+
Copyright: Copyright (c) 2020 Pascal Seitz
78+
79+
80+
Package: napi
81+
Project URL: https://github.com/napi-rs/napi-rs
82+
Copyright: Copyright (c) 2020-present LongYinan
83+
84+
85+
Package: napi-derive
86+
Project URL: https://github.com/napi-rs/napi-rs
87+
Copyright: Copyright (c) 2020-present LongYinan
88+
89+
90+
Package: oauth2
91+
Project URL: https://github.com/ramosbugs/oauth2-rs
92+
Copyright: Copyright (c) 2014 Alex Crichton
93+
94+
95+
Package: once_cell
96+
Project URL: https://github.com/matklad/once_cell
97+
Copyright: Copyright once_cell Authors.
98+
99+
100+
Package: open
101+
Project URL: https://github.com/Byron/open-rs
102+
Copyright: Copyright © 2015 Sebastian Thiel
103+
104+
105+
Package: pbkdf2
106+
Project URL: https://github.com/RustCrypto/password-hashes
107+
Copyright: Copyright (c) 2017 Artyom Pavlov; Copyright (c) 2018-2023 The RustCrypto Project Developers
108+
109+
110+
Package: pkcs8
111+
Project URL: https://github.com/RustCrypto/formats/tree/master/pkcs8
112+
Copyright: Copyright (c) 2020-2023 The RustCrypto Project Developers
113+
114+
115+
Package: pyo3
116+
Project URL: https://github.com/pyo3/pyo3
117+
Copyright: Copyright (c) 2023-present PyO3 Project and Contributors
118+
119+
120+
Package: pyo3-log
121+
Project URL: https://github.com/vorner/pyo3-log
122+
Copyright: Copyright pyo3-log Authors.
123+
124+
125+
Package: rand
126+
Project URL: https://github.com/rust-random/rand
127+
Copyright: Copyright 2018 Developers of the Rand project; Copyright (c) 2014 The Rust Project Developers
128+
129+
130+
Package: reqwest
131+
Project URL: https://github.com/seanmonstar/reqwest
132+
Copyright: Copyright (c) 2016-2026 Sean McArthur
133+
134+
135+
Package: serde
136+
Project URL: https://github.com/serde-rs/serde
137+
Copyright: Copyright serde Authors.
138+
139+
140+
Package: serde_json
141+
Project URL: https://github.com/serde-rs/json
142+
Copyright: Copyright serde_json Authors.
143+
144+
145+
Package: thiserror
146+
Project URL: https://github.com/dtolnay/thiserror
147+
Copyright: Copyright thiserror Authors.
148+
149+
150+
Package: tokio
151+
Project URL: https://github.com/tokio-rs/tokio
152+
Copyright: Copyright (c) Tokio Contributors
153+
154+
155+
Package: tokio-util
156+
Project URL: https://github.com/tokio-rs/tokio
157+
Copyright: Copyright (c) Tokio Contributors
158+
159+
160+
Package: tracing
161+
Project URL: https://github.com/tokio-rs/tracing
162+
Copyright: Copyright (c) 2019 Tokio Contributors
163+
164+
165+
Package: tracing-subscriber
166+
Project URL: https://github.com/tokio-rs/tracing
167+
Copyright: Copyright (c) 2019 Tokio Contributors
168+
169+
170+
Package: wkb
171+
Project URL: https://github.com/georust/wkb
172+
Copyright: Copyright (c) 2024 The GeoRust Project Developers
173+
174+
175+
Package: wkt
176+
Project URL: https://github.com/georust/wkt
177+
Copyright: Copyright (c) 2017 The GeoRust Project Developers
178+
179+
180+
Package: zeroize
181+
Project URL: https://github.com/RustCrypto/utils
182+
Copyright: Copyright (c) 2018-2026 The RustCrypto Project Developers
183+
Apache License 2.0
184+
This Software contains code from the following open source projects, licensed under the apache license 2.0 (https://www.apache.org/licenses/LICENSE-2.0).
185+
186+
187+
Apache Arrow ADBC
188+
Copyright 2022-2026 The Apache Software Foundation
189+
190+
This product includes software developed at
191+
The Apache Software Foundation (http://www.apache.org/).
192+
193+
194+
Package: arrow-array
195+
Project URL: https://github.com/apache/arrow-rs
196+
Copyright: Copyright 2016-2026 The Apache Software Foundation
197+
198+
199+
Package: arrow-buffer
200+
Project URL: https://github.com/apache/arrow-rs
201+
Copyright: Copyright 2016-2026 The Apache Software Foundation
202+
203+
204+
Package: arrow-cast
205+
Project URL: https://github.com/apache/arrow-rs
206+
Copyright: Copyright 2016-2026 The Apache Software Foundation
207+
208+
209+
Package: arrow-ipc
210+
Project URL: https://github.com/apache/arrow-rs
211+
Copyright: Copyright 2016-2026 The Apache Software Foundation
212+
213+
214+
Package: arrow-ord
215+
Project URL: https://github.com/apache/arrow-rs
216+
Copyright: Copyright 2016-2026 The Apache Software Foundation
217+
218+
219+
Package: arrow-pyarrow
220+
Project URL: https://github.com/apache/arrow-rs
221+
Copyright: Copyright 2016-2026 The Apache Software Foundation
222+
223+
224+
Package: arrow-schema
225+
Project URL: https://github.com/apache/arrow-rs
226+
Copyright: Copyright 2016-2026 The Apache Software Foundation
227+
228+
229+
Package: arrow-select
230+
Project URL: https://github.com/apache/arrow-rs
231+
Copyright: Copyright 2016-2026 The Apache Software Foundation
232+
233+
234+
Package: moka
235+
Project URL: https://github.com/moka-rs/moka
236+
Copyright: Copyright (c) 2020 - 2026 Tatsuya Kawano
237+
238+
239+
Package: pyarrow
240+
Project URL: https://github.com/apache/arrow
241+
Copyright: Copyright 2016-2026 The Apache Software Foundation
242+
ISC License
243+
This Software contains code from the following open source projects, licensed under the isc license (https://opensource.org/licenses/ISC).
244+
245+
246+
Package: rustls-webpki
247+
Project URL: https://github.com/rustls/webpki
248+
Copyright: Copyright 2015 Brian Smith
249+
CDLA-Permissive-2.0
250+
This Software contains code from the following open source projects, licensed under the cdla-permissive-2.0 (https://cdla.dev/permissive-2-0/).
251+
252+
253+
Package: webpki-roots
254+
Project URL: https://github.com/rustls/webpki-roots
255+
Copyright: Copyright webpki-roots Authors.

0 commit comments

Comments
 (0)