diff --git a/CLAUDE.md b/CLAUDE.md index dff64d5..eae7613 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -1,7 +1,8 @@ # CLAUDE.md — Ianitor Domi Ianitor is a reverse proxy built on Cloudflare's Pingora, with a small Domi CA, a web UI and an API. -NixOS-native, with Caddy as a tested fallback. MPL-2.0. Plan, decisions and status: docs/ROADMAP.md — read it first. +NixOS-native, with Caddy as a tested fallback. CPAL-1.0 (from 2026-11-23; 0.2.0 and earlier MPL-2.0); the web UI shows the +Exhibit B credit (apps/web/src/lib/credit.ts). Plan, decisions and status: docs/ROADMAP.md — read it first. ## Layout crates/core config model, schema, compilers (Pingora runtime + Caddy JSON), CA (Ianitor's view of the shared diff --git a/README.md b/README.md index 7aa9aff..7b9d041 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ *Ianitor* is Latin for the doorkeeper: it decides who comes through the door (routing, TLS) and checks credentials (certificates). Ianitor Domi is a reverse proxy for a home server, built on Cloudflare's [Pingora](https://github.com/cloudflare/pingora), with a small certificate authority for your own devices, a web -UI, an API, and a NixOS module. MPL-2.0. +UI, an API, and a NixOS module. CPAL-1.0. - **Routes in git.** One TOML file per host in a repository (`hosts/wiki.example.toml`), schema-checked. Every change is a commit, applied live without `nixos-rebuild`, watched for 60 seconds, and reverted by itself if the @@ -92,4 +92,13 @@ receipt published. How it works and where it stands: [docs/support.md](docs/supp ## Licence -[MPL-2.0](LICENSE). Pingora is Apache-2.0; Caddy, used only as a separate fallback process, Apache-2.0. +[CPAL-1.0](LICENSE), the Common Public Attribution License 1.0, from 2026-11-23. Ianitor 0.2.0 and earlier stay +available under MPL-2.0 to those who received them; from this change on, the code is under CPAL-1.0. + +CPAL-1.0 is MPL 1.1 with an attribution clause and a network clause. Whoever runs Ianitor, or a work built on it, +for users (over a network too) shows the credit of LICENSE Exhibit B where those users reach it: + +> **Built on Domi** · Copyright (c) 2026 Marek Novák · https://aula.marek-novak.cz + +Ianitor's web UI shows it on every screen (in the sidebar, or at the foot of the page on a phone) and in Settings, +About. Pingora is Apache-2.0; Caddy, used only as a separate fallback process, Apache-2.0. diff --git a/docs/ROADMAP.md b/docs/ROADMAP.md index 92c3e9d..83f5dbd 100644 --- a/docs/ROADMAP.md +++ b/docs/ROADMAP.md @@ -12,7 +12,7 @@ Legend: [S] sourced · [J] judgment · [M] decided by Mark. 6. Routes live in a git repo (private: ianitor-routes), one TOML file per host, schema-validated. Every change is a commit, applied live without nixos-rebuild. Rebuild only for service-level changes (ports, version). The engine is switched at runtime by control (§3, §4); decided 2026-11-07, replacing "engine" in the rebuild list. [M] 7. Two processes: ianitor-edge (data plane) and ianitor-control (API + UI). Traffic keeps flowing if control crashes. [M] 8. Own small CA in crates/core using rcgen. No internal ACME server in v1. [M] -9. One public MPL-2.0 monorepo on Gitea; read-only GitHub mirror for discovery. Mark's server deployment stays in his NixOS flake. [M] +9. One public monorepo on Gitea, CPAL-1.0 (Mark, 2026-11-23; MPL-2.0 up to 0.2.0); read-only GitHub mirror for discovery. Mark's server deployment stays in his NixOS flake. [M] 10. Branding: "Ianitor Domi", with "Built, tested and signed by Fabrica Domi" on the repo and release page. [M] 11. Support: free source; "Adopt a red panda" — 80% developer, 20% Red Panda Network, remitted yearly with a published receipt. [M] 12. Cut-over: only after all five test layers are green and two weeks beside Caddy on low-risk hosts. [M] @@ -170,6 +170,17 @@ Identity gate, tunnel, Domi templates, ACME server, HTTP/3, migrating public sit ## 10. Handover (Rewritten at the end of every session: what changed, what was not verified, which build is deployed, the next step.) +**2026-11-23: Ianitor is CPAL-1.0 (Mark's decision for every public Domi repo; F:Akcedomi-licence).** +- **Changed:** LICENSE is the kit's template with only `{ORIGINAL_CODE}` = Ianitor. Every header (166 files) is an + `SPDX-License-Identifier: CPAL-1.0` notice; Cargo.toml, the fuzz crate, the three package.json, the Nix package + meta (`lib.licenses.cpal10`), the OpenAPI document, README, CLAUDE.md, decision 9 and the docs say CPAL-1.0. + 0.2.0 and earlier stay MPL-2.0. The web UI shows the Exhibit B credit (Built on Domi · Copyright (c) 2026 Marek + Novák · https://aula.marek-novak.cz) on every screen and in Settings, About (`apps/web/src/lib/credit.ts`); the + e2e real-data check leaves out exactly that credit. +- **Tests:** vitest 22; svelte-check clean; Playwright web 6/6, aula 5/5; `cargo check -p ianitor-control --tests` + and control's API tests 5/5 in WSL. The rest of the Rust suites were not rerun (headers only). +- **Deployed:** nothing. **Not verified:** the phone layout of the credit by eye; the Nix build (`cpal10`). + **2026-11-22: Phase 4, hardening and release.** - **Changed:** - Edge: a 60 s header deadline (slowloris), lookups on its own bounded resolver threads with one lookup per name, pipelining on both listeners, a proxy socket (`/run/ianitor-proxy/edge.sock`, sticky 3770) on which edge trusts Caddy's X-Forwarded-For, and `unix:` upstreams with a strict charset. diff --git a/docs/launch/blog-post.md b/docs/launch/blog-post.md index 9425ffb..edb2dd0 100644 --- a/docs/launch/blog-post.md +++ b/docs/launch/blog-post.md @@ -50,7 +50,7 @@ pipeline on every push to main. ## Adopt a red panda -The source is free (MPL-2.0). If it helps you, there is a support model: a fifth of anything the project receives +The source is free (CPAL-1.0). If it helps you, there is a support model: a fifth of anything the project receives goes to the Red Panda Network once a year, and the receipt is published. [Link to docs/support.md once the route is confirmed.] diff --git a/docs/launch/short-posts.md b/docs/launch/short-posts.md index 458c49f..d7c05eb 100644 --- a/docs/launch/short-posts.md +++ b/docs/launch/short-posts.md @@ -7,7 +7,7 @@ Ianitor Domi 1.0: a reverse proxy for a home server, on Cloudflare's Pingora. Routes are git commits that roll themselves back when a host stops answering; a small CA for your devices (mTLS); share links; Authelia forward-auth; and Caddy as a one-click fallback, kept honest by differential tests. Reproducible Nix build, signed release. -MPL-2.0. [link] #selfhosted #rust #nixos +CPAL-1.0. [link] #selfhosted #rust #nixos ## Show HN / Lobsters title and first comment @@ -26,4 +26,4 @@ about Pingora as a library, rustls, or the rollback design. Ianitor Domi 1.0: reverzní proxy pro domácí server postavená na Pingora od Cloudflare. Každá změna rout je commit, nasadí se za běhu a když služba do minuty neodpovídá, sama se vrátí. K tomu malá certifikační autorita pro vlastní zařízení, sdílené odkazy a Caddy jako záložní engine na jedno kliknutí. Reprodukovatelný Nix build, podepsané -vydání. MPL-2.0. [odkaz] +vydání. CPAL-1.0. [odkaz] diff --git a/docs/support.md b/docs/support.md index 8242ee3..6cc075b 100644 --- a/docs/support.md +++ b/docs/support.md @@ -1,6 +1,6 @@ # Support: adopt a red panda -Ianitor's source is free (MPL-2.0) and stays free. If it is useful to you and you want to give something back, +Ianitor's source is free (CPAL-1.0, which asks for the Built on Domi credit) and stays free. If it is useful to you and you want to give something back, the model is the one decided at the start (ROADMAP §1.11): - **80%** of what the project receives goes to its developer, for the time Ianitor takes. diff --git a/docs/ui-handoff.md b/docs/ui-handoff.md index fa1e53d..f214264 100644 --- a/docs/ui-handoff.md +++ b/docs/ui-handoff.md @@ -962,7 +962,7 @@ While Caddy serves, a notice at the top: "Caddy is serving, so these links do no work again after switching back to Pingora." Empty: book h3 "No share links" / "Make one from a host's menu (⋯), Share link." -**About**: "Ianitor Domi {version}", "Build {commit_short}", "MPL-2.0", "Built, tested and signed by +**About**: "Ianitor Domi {version}", "Build {commit_short}", "CPAL-1.0" with the Built on Domi credit (LICENSE Exhibit B; was "MPL-2.0"), "Built, tested and signed by Fabrica Domi", link "Source on Gitea". ---