chore: deny unknown and copyleft licenses (#7556)

I just don't wanna rip out parts of our software stack because
someone gets cold feet.

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
pull/24376/head
Marco Neumann 2023-04-17 10:08:48 +02:00 committed by GitHub
parent c26981d51b
commit 1185ced87a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 27 additions and 7 deletions

View File

@ -29,9 +29,25 @@ ignore = [
git-fetch-with-cli = true
[licenses]
default = "allow"
unlicensed = "allow"
copyleft = "allow"
allow-osi-fsf-free = "either"
copyleft = "deny"
unlicensed = "deny"
default = "deny"
exceptions = [
# We should probably NOT bundle CA certs but use the OS ones.
{ name = "webpki-roots", allow = ["MPL-2.0"] },
# Currently needed for testing only via mockito.
{ name = "colored", allow = ["MPL-2.0"] },
]
[[licenses.clarify]]
name = "ring"
expression = "BSD-4-Clause AND ISC AND MIT AND OpenSSL"
license-files = [
# https://github.com/briansmith/ring/blob/95948b3977013aed16db92ae32e6b8384496a740/LICENSE
{ path = "LICENSE", hash = 0xbd0eed23 },
]
[sources.allow-org]
github = ["influxdata", "apache"]

View File

@ -1,7 +1,9 @@
[package]
name = "flightsql"
version = "0.1.0"
edition = "2021"
version.workspace = true
authors.workspace = true
edition.workspace = true
license.workspace = true
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View File

@ -1,7 +1,9 @@
[package]
name = "ingester2_test_ctx"
version = "0.1.0"
edition = "2021"
version.workspace = true
authors.workspace = true
edition.workspace = true
license.workspace = true
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html