aiwaf 1.0.2 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE CHANGED
@@ -1,22 +1,93 @@
1
- MIT License
2
-
3
- Copyright (c) 2025 Aayush Gauba
4
- Copyright (c) 2026 AIWAF
5
-
6
- Permission is hereby granted, free of charge, to any person obtaining a copy
7
- of this software and associated documentation files (the "Software"), to deal
8
- in the Software without restriction, including without limitation the rights
9
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
- copies of the Software, and to permit persons to whom the Software is
11
- furnished to do so, subject to the following conditions:
12
-
13
- The above copyright notice and this permission notice shall be included in all
14
- copies or substantial portions of the Software.
15
-
16
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
- SOFTWARE.
1
+ Elastic License 2.0
2
+
3
+ URL: https://www.elastic.co/licensing/elastic-license
4
+
5
+ ## Acceptance
6
+
7
+ By using the software, you agree to all of the terms and conditions below.
8
+
9
+ ## Copyright License
10
+
11
+ The licensor grants you a non-exclusive, royalty-free, worldwide,
12
+ non-sublicensable, non-transferable license to use, copy, distribute, make
13
+ available, and prepare derivative works of the software, in each case subject to
14
+ the limitations and conditions below.
15
+
16
+ ## Limitations
17
+
18
+ You may not provide the software to third parties as a hosted or managed
19
+ service, where the service provides users with access to any substantial set of
20
+ the features or functionality of the software.
21
+
22
+ You may not move, change, disable, or circumvent the license key functionality
23
+ in the software, and you may not remove or obscure any functionality in the
24
+ software that is protected by the license key.
25
+
26
+ You may not alter, remove, or obscure any licensing, copyright, or other notices
27
+ of the licensor in the software. Any use of the licensor’s trademarks is subject
28
+ to applicable law.
29
+
30
+ ## Patents
31
+
32
+ The licensor grants you a license, under any patent claims the licensor can
33
+ license, or becomes able to license, to make, have made, use, sell, offer for
34
+ sale, import and have imported the software, in each case subject to the
35
+ limitations and conditions in this license. This license does not cover any
36
+ patent claims that you cause to be infringed by modifications or additions to
37
+ the software. If you or your company make any written claim that the software
38
+ infringes or contributes to infringement of any patent, your patent license for
39
+ the software granted under these terms ends immediately. If your company makes
40
+ such a claim, your patent license ends immediately for work on behalf of your
41
+ company.
42
+
43
+ ## Notices
44
+
45
+ You must ensure that anyone who gets a copy of any part of the software from you
46
+ also gets a copy of these terms.
47
+
48
+ If you modify the software, you must include in any modified copies of the
49
+ software prominent notices stating that you have modified the software.
50
+
51
+ ## No Other Rights
52
+
53
+ These terms do not imply any licenses other than those expressly granted in
54
+ these terms.
55
+
56
+ ## Termination
57
+
58
+ If you use the software in violation of these terms, such use is not licensed,
59
+ and your licenses will automatically terminate. If the licensor provides you
60
+ with a notice of your violation, and you cease all violation of this license no
61
+ later than 30 days after you receive that notice, your licenses will be
62
+ reinstated retroactively. However, if you violate these terms after such
63
+ reinstatement, any additional violation of these terms will cause your licenses
64
+ to terminate automatically and permanently.
65
+
66
+ ## No Liability
67
+
68
+ *As far as the law allows, the software comes as is, without any warranty or
69
+ condition, and the licensor will not be liable to you for any damages arising
70
+ out of these terms or the use or nature of the software, under any kind of
71
+ legal claim.*
72
+
73
+ ## Definitions
74
+
75
+ The **licensor** is the entity offering these terms, and the **software** is the
76
+ software the licensor makes available under these terms, including any portion
77
+ of it.
78
+
79
+ **you** refers to the individual or entity agreeing to these terms.
80
+
81
+ **your company** is any legal entity, sole proprietorship, or other kind of
82
+ organization that you work for, plus all organizations that have control over,
83
+ are under the control of, or are under common control with that
84
+ organization. **control** means ownership of substantially all the assets of an
85
+ entity, or the power to direct its management and policies by vote, contract, or
86
+ otherwise. Control can be direct or indirect.
87
+
88
+ **your licenses** are all the licenses granted to you for the software under
89
+ these terms.
90
+
91
+ **use** means anything you do with the software requiring one of your licenses.
92
+
93
+ **trademark** means trademarks, service marks, and similar rights.
package/NOTICE ADDED
@@ -0,0 +1,58 @@
1
+ AIWAF licensing and third-party notices
2
+
3
+ Copyright (c) 2025 Aayush Gauba
4
+ Copyright (c) 2026 AIWAF
5
+
6
+ AIWAF offers original project material in this checkout under the unmodified
7
+ Elastic License 2.0 in LICENSE (SPDX: Elastic-2.0), with the separate licenses
8
+ below. AIWAF is the business name; these terms license only rights held by or
9
+ licensed to its operator.
10
+
11
+ Historical MIT rights
12
+ ---------------------
13
+ Previously distributed MIT copies retain their MIT permissions. This change
14
+ does not retroactively change existing releases. The previous copyright and
15
+ MIT text is preserved in licenses/MIT.txt. Its inclusion preserves historical
16
+ rights and the contributions below, rather than offering all new material
17
+ under MIT. Use a previously unpublished version for any ELv2 package release.
18
+
19
+ Retained MIT contributions
20
+ -------------------------
21
+ Retained portions of contributions originally supplied under MIT remain MIT
22
+ licensed. Copyright in those contributions remains with their authors.
23
+ William Touzalin (also credited as Skel - William Touzalin) contributed:
24
+ * Django list command: commits 715d5d26fcf3b85b4603238445c1d2a7f950745a and
25
+ f67fa2995fb472a25e420e342aae1c4d59836e57, retained in
26
+ py/aiwaf/django/management/commands/aiwaf_list.py.
27
+ * IPv6 log parsing: commit 76f5b191598487d79f4d4db81a9373bac0d7477e,
28
+ retained in py/aiwaf/core/logs.py.
29
+ * Django RequestLog persistence: commit
30
+ 2e866c1b701409ed5f729b3a7c225f667a57e8c5, retained in
31
+ py/aiwaf/django/middleware.py.
32
+ Brady Endres contributed test organization (1a9c16b) and .gitignore changes
33
+ (766d252). Any retained copyrightable portions retain MIT permissions. Moving
34
+ a file does not transfer its copyright. The MIT text in licenses/MIT.txt
35
+ accompanies these portions. ELv2 does not restrict independent MIT rights.
36
+
37
+ IPinfo Lite database
38
+ --------------------
39
+ This product includes IPinfo Lite data provided by IPinfo (https://ipinfo.io/).
40
+ Source: https://ipinfo.io/developers/ipinfo-lite
41
+ License: Creative Commons Attribution-ShareAlike 4.0 International
42
+ (SPDX: CC-BY-SA-4.0).
43
+ Terms: https://creativecommons.org/licenses/by-sa/4.0/legalcode
44
+ The database is py/aiwaf/core/geolock/ipinfo_lite.mmdb in the repository and
45
+ geolock/ipinfo_lite.mmdb in JavaScript and Java artifacts. AIWAF copies it
46
+ without modifying its data. ELv2 restrictions do not apply to this separately
47
+ licensed database. Preserve attribution and the applicable terms when
48
+ redistributing it; adaptations remain subject to ShareAlike requirements.
49
+
50
+ Other third-party material
51
+ --------------------------
52
+ Dependencies retain their licenses and notices and are not relicensed by
53
+ LICENSE. Bundled distributions must preserve their notices and satisfy the
54
+ conditions of the actual versions included, including native libraries.
55
+ CODE_OF_CONDUCT.md is adapted from Contributor Covenant 2.1 and retains its
56
+ attribution and separate CC-BY-4.0 license:
57
+ https://www.contributor-covenant.org/version/2/1/code_of_conduct/
58
+ https://creativecommons.org/licenses/by/4.0/