From bedd324f3cd503ae78375a3631a1b42907dd8498 Mon Sep 17 00:00:00 2001 From: clawbot <35+clawbot@noreply.example.org> Date: Sun, 4 Oct 2026 03:07:52 +0200 Subject: [PATCH] Add the MIT licence (closes #15) LICENSE with the MIT text, the README naming MIT in its opening line and a License section, and the licence field in package.json. Model: opus-5-5 --- LICENSE | 21 +++++++++++++++++++++ README.md | 24 ++++++++++++++---------- package.json | 1 + 3 files changed, 36 insertions(+), 10 deletions(-) create mode 100644 LICENSE diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..34edefe --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2026 sneak + +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. diff --git a/README.md b/README.md index f715224..8fd4941 100644 --- a/README.md +++ b/README.md @@ -1,14 +1,15 @@ # smallwebwaf -`smallwebwaf` is a simple, fast, logging web application firewall, written in Go -by [@sneak](https://sneak.berlin), for people who host their own services. It -runs inside the container of the one application it protects, between your -reverse proxy (traefik) and the app: the app's Dockerfile builds `FROM` the -`smallwebwaf` image, traefik sends the app's requests to `smallwebwaf` on port -8080, and `smallwebwaf` passes them on to the app on `127.0.0.1:8081`. It needs -no setting, and protects the app from the first request with defaults chosen for -a service on the open internet. It keeps its state in memory and in JSON files -you can read and edit, and writes a detailed JSON log line for every request. +`smallwebwaf` is a simple, fast, logging web application firewall, MIT-licensed +and written in Go by [@sneak](https://sneak.berlin), for people who host their +own services. It runs inside the container of the one application it protects, +between your reverse proxy (traefik) and the app: the app's Dockerfile builds +`FROM` the `smallwebwaf` image, traefik sends the app's requests to +`smallwebwaf` on port 8080, and `smallwebwaf` passes them on to the app on +`127.0.0.1:8081`. It needs no setting, and protects the app from the first +request with defaults chosen for a service on the open internet. It keeps its +state in memory and in JSON files you can read and edit, and writes a detailed +JSON log line for every request. Status: the first milestone is built (https://git.eeqj.de/sneak/smallwebwaf/issues/13). `smallwebwaf` passes each @@ -431,7 +432,6 @@ so that they run in minimal containers. - Milestone 2: rate limits per client, the country lists and the image an app builds on (https://git.eeqj.de/sneak/smallwebwaf/issues/14). -- The licence (https://git.eeqj.de/sneak/smallwebwaf/issues/15). - The rest of the design, in the order of the build order in [`SPEC.md`](SPEC.md). @@ -442,6 +442,10 @@ so that they run in minimal containers. and misses, and why none was adopted. - [`REPO_POLICIES.md`](REPO_POLICIES.md): the policies this repository follows. +## License + +MIT. See [`LICENSE`](LICENSE). + ## Author [@sneak](https://sneak.berlin) diff --git a/package.json b/package.json index dc05cde..d846c06 100644 --- a/package.json +++ b/package.json @@ -1,4 +1,5 @@ { + "license": "MIT", "devDependencies": { "prettier": "3.8.1" }