Repository navigation
Expand file tree
/
Copy pathNOTICE
More file actions
110 lines (90 loc) · 6.69 KB
/
Copy pathNOTICE
File metadata and controls
110 lines (90 loc) · 6.69 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
107
108
109
110
mongo-php-async-driver
Copyright 2024-present Daniil Gentili
This product is licensed under the Apache License, Version 2.0 (see LICENSE), except for the
files listed under "Server Side Public License" below.
It contains code ported to Rust from, and tests copied from, the following projects, all
licensed under the Apache License, Version 2.0:
- MongoDB PHP Driver (mongo-php-driver, "phongo"), https://github.com/mongodb/mongo-php-driver
Copyright 2014-present MongoDB, Inc.
Ported: the PHP classes, BSON encoding/decoding layer and driver logic.
Copied: tests/phpt/ (from tests/ at tag 2.5.8).
- MongoDB C Driver (libmongoc and libbson), https://github.com/mongodb/mongo-c-driver
Copyright 2009-present MongoDB, Inc.
Ported: BSON, Decimal128, Extended JSON, URI parsing, SDAM, server selection, connection
pooling, wire protocol, sessions, retries, authentication.
Copied: crates/core/tests/credential_disclosure/credential-disclosure.json (from
src/libmongoc/tests/json/credential_disclosure/ at tag 2.5.9).
- libmongocrypt, https://github.com/mongodb/libmongocrypt
Copyright 2019-present MongoDB, Inc.
Ported: client-side field level encryption and Queryable Encryption.
- MongoDB PHP Library (mongo-php-library, "PHPLIB"), https://github.com/mongodb/mongo-php-library
Copyright 2015-present MongoDB, Inc.
Copied: tests/phplib/ (from tests/, phpunit.xml.dist and composer.json at tag 2.5.1).
- MongoDB Rust Driver (mongodb and bson crates), https://github.com/mongodb/mongo-rust-driver
Copyright 2017-present MongoDB, Inc.
Ported: parts of its spec-test runners.
The extension is built on ext-php-rs (https://github.com/extphprs/ext-php-rs, MIT OR Apache-2.0),
used as a dependency for the Zend Engine bindings, zval ownership and module plumbing.
SCRAM authentication uses, as dependencies (all MIT OR Apache-2.0, pure Rust): the RustCrypto
crates sha1, sha2, md-5, hmac and pbkdf2 (https://github.com/RustCrypto), getrandom
(https://github.com/rust-random/getrandom) and unicode-normalization
(https://github.com/unicode-rs/unicode-normalization). The SASLprep tables in
crates/core/src/auth/tables.rs are libmongoc's copy of the RFC 3454 tables.
TLS uses, as dependencies (no C): rustls (Apache-2.0 OR ISC OR MIT), rustls-webpki (ISC)
and rustls-pki-types (MIT OR Apache-2.0) (https://github.com/rustls), the graviola crypto
library and its rustls provider rustls-graviola (https://github.com/ctz/graviola; Apache-2.0
OR ISC OR MIT-0; Rust with inline assembly, parts of it derived from s2n-bignum, Apache-2.0
OR ISC OR MIT-0), and for the key-file loader the RustCrypto crates pkcs8, pkcs5, spki, der,
aes, des, cbc, scrypt, salsa20 and pbkdf2 (https://github.com/RustCrypto; MIT OR Apache-2.0).
OCSP uses the RustCrypto crates x509-cert, x509-ocsp, der, spki and const-oid (Apache-2.0 OR
MIT), flagset (Apache-2.0) and sha1 (above).
Logging fingerprints use hmac and sha2 (above).
Wire compression uses, as dependencies (pure Rust): flate2 (https://github.com/rust-lang/flate2-rs;
MIT OR Apache-2.0) with miniz_oxide (https://github.com/Frommi/miniz_oxide; MIT OR Zlib OR
Apache-2.0), adler2 (0BSD OR MIT OR Apache-2.0), simd-adler32 (https://github.com/mcountryman/
simd-adler32; MIT) and crc32fast (MIT OR Apache-2.0); ruzstd (https://github.com/KillingSpark/
zstd-rs; MIT); snap (https://github.com/BurntSushi/rust-snappy; BSD-3-Clause, Copyright 2011 The
Snappy-Rust Authors and Copyright 2016 Andrew Gallant).
The Revolt event loop is revolt-rs (https://github.com/danog/revolt-rs), a Rust implementation of
revolt/event-loop (https://github.com/revoltphp/event-loop), compiled into the extension as a
dependency. It is licensed under the MIT License:
The MIT License (MIT)
Copyright (c) 2021-2023 Revolt (Aaron Piotrowski, Cees-Jan Kiewiet, Christian Lück, Niklas Keller, and contributors)
Copyright (c) 2015-2021 amphp (Daniel Lowrey, Aaron Piotrowski, Niklas Keller, Bob Weinand, and contributors)
Copyright (c) 2012-2021 ReactPHP (Christian Lück, Cees-Jan Kiewiet, Jan Sorgalla, Chris Boden, Igor Wiedler, and contributors)
Copyright (c) 2016 PHP Asynchronous Interoperability Group
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
The MongoDB Specifications (https://github.com/mongodb/specifications), whose test files the
test suites read, are licensed under the Creative Commons Attribution-NonCommercial-ShareAlike
3.0 United States License. They are not part of this repository: tests/spec is a git submodule
pointing to that repository.
The NOTICE and THIRD_PARTY_NOTICES files of the projects above apply to the ported code and the
copied tests.
The Decimal128 arithmetic of Queryable Encryption range indexes (crates/crypt/src/dec128.rs)
follows the semantics of the Intel(R) Decimal Floating-Point Math Library
(https://www.intel.com/content/www/us/en/developer/articles/tool/intel-decimal-floating-point-math-library.html),
Copyright (c) 2007-2018, Intel Corp., licensed under the BSD 3-Clause License: no Intel code is
included, only its behaviour (rounding, scalbn, round-to-integral, string format) is reproduced.
Server Side Public License
--------------------------
The files in crates/crypt/src/unicode/ (mod.rs, case_fold_map.rs, diacritic_fold_map.rs) are
ported from libmongocrypt's src/unicode/ (fold.c, case-fold-map.c, diacritic-fold-map.c), which
MongoDB, Inc. licenses under the Server Side Public License, version 1 (Copyright (C)
2025-present MongoDB, Inc.). Those files remain under the SSPL v1 (see LICENSE-SSPL) and keep
MongoDB's license notice. They implement the Unicode case and diacritic folding of Queryable
Encryption string search and are compiled only with the `sspl-text-fold` cargo feature (on by
default): a build with --no-default-features contains no SSPL code and is Apache-2.0 only.