diff --git a/CHANGELOG.md b/CHANGELOG.md index 422548b..0755992 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,17 @@ follow [Semantic Versioning](https://semver.org/). Release process: ## [Unreleased] +## [0.1.0-alpha.4] – 2026-10-23 + +Fourth pre-release, for testing only – not for production use (open points: +[docs/produktionsreife.md](docs/produktionsreife.md)). New: sharing of +calendars and address books between users (on by default, acceptance +required; Apple Calendar "Share" supported) and public read-only links +(off by default). Upgrading applies the database migration `0013_sharing` +(a pre-migration backup is taken by default). New configuration sections +`[sharing]` (`enabled = true`) and `[publish]` (`enabled = false`, needs +`base_url`). + ### Added - Sharing of calendars and address books with other users of the server diff --git a/Cargo.lock b/Cargo.lock index a86d508..2d494ac 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -341,7 +341,7 @@ checksum = "fc652a48c352aef3ea3aed32080501cf3ef6ed5da78602a020c991775b0aff04" [[package]] name = "calcraft-core" -version = "0.1.0-alpha.3" +version = "0.1.0-alpha.4" dependencies = [ "serde", "serde_json", @@ -350,7 +350,7 @@ dependencies = [ [[package]] name = "calcraft-dav" -version = "0.1.0-alpha.3" +version = "0.1.0-alpha.4" dependencies = [ "calcraft-ical", "quick-xml", @@ -359,7 +359,7 @@ dependencies = [ [[package]] name = "calcraft-ical" -version = "0.1.0-alpha.3" +version = "0.1.0-alpha.4" dependencies = [ "quick-xml", "serde", @@ -369,7 +369,7 @@ dependencies = [ [[package]] name = "calcraft-server" -version = "0.1.0-alpha.3" +version = "0.1.0-alpha.4" dependencies = [ "anyhow", "argon2", @@ -408,7 +408,7 @@ dependencies = [ [[package]] name = "calcraft-store" -version = "0.1.0-alpha.3" +version = "0.1.0-alpha.4" dependencies = [ "calcraft-core", "log", @@ -420,7 +420,7 @@ dependencies = [ [[package]] name = "calcraft-ui" -version = "0.1.0-alpha.3" +version = "0.1.0-alpha.4" dependencies = [ "calcraft-core", "js-sys", @@ -434,7 +434,7 @@ dependencies = [ [[package]] name = "calcraft-web" -version = "0.1.0-alpha.3" +version = "0.1.0-alpha.4" dependencies = [ "axum", "calcraft-core", diff --git a/Cargo.toml b/Cargo.toml index e19358a..8969985 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,7 +4,7 @@ members = ["crates/*"] default-members = ["crates/calcraft-server"] [workspace.package] -version = "0.1.0-alpha.3" +version = "0.1.0-alpha.4" edition = "2024" rust-version = "1.94" license = "AGPL-3.0-or-later" @@ -13,11 +13,11 @@ homepage = "https://github.com/Zeitgleich/CalCraft" authors = ["CalCraft contributors"] [workspace.dependencies] -calcraft-core = { path = "crates/calcraft-core", version = "0.1.0-alpha.3" } -calcraft-ical = { path = "crates/calcraft-ical", version = "0.1.0-alpha.3" } -calcraft-dav = { path = "crates/calcraft-dav", version = "0.1.0-alpha.3" } -calcraft-store = { path = "crates/calcraft-store", version = "0.1.0-alpha.3" } -calcraft-web = { path = "crates/calcraft-web", version = "0.1.0-alpha.3" } +calcraft-core = { path = "crates/calcraft-core", version = "0.1.0-alpha.4" } +calcraft-ical = { path = "crates/calcraft-ical", version = "0.1.0-alpha.4" } +calcraft-dav = { path = "crates/calcraft-dav", version = "0.1.0-alpha.4" } +calcraft-store = { path = "crates/calcraft-store", version = "0.1.0-alpha.4" } +calcraft-web = { path = "crates/calcraft-web", version = "0.1.0-alpha.4" } anyhow = "1.0.104" argon2 = { version = "0.6.0", features = ["zeroize"] } diff --git a/PLAN.md b/PLAN.md index 0765ce4..6eb7758 100644 --- a/PLAN.md +++ b/PLAN.md @@ -6,12 +6,12 @@ Alternative zu Radicale und Baïkal. Lizenz: **AGPL-3.0-or-later**. **Freigabe:** Anforderungen, Ist-Stand und Fahrplan bis zur stabilen Version stehen in [docs/produktionsreife.md](docs/produktionsreife.md) und haben Vorrang vor neuen Funktionen. -**Stand 23.10.2026:** Vorabversion **0.1.0-alpha.3** (CalDAV-Scheduling zwischen lokalen Nutzern +**Stand 23.10.2026:** Vorabversion **0.1.0-alpha.4** (M5b Freigaben an Benutzer und öffentliche +Nur-Lese-Links, `docs/sharing.md`; CalDAV-Scheduling zwischen lokalen Nutzern (RFC 6638, Stufe A), Managed Attachments (RFC 8607), M0–M4b, M5a, M6 mit Webcal-Abos und `calcraft migrate`, Phase 2 und aus Phase 3 Papierkorb, `MOVE`/`COPY`, CardDAV-Fotos/-Gruppen, RRULE-Expansion mit Zeitzonen, Kalender-Reihenfolge und Dead Properties; dazu systemd-Dienst, -`/readyz` mit Schreibzustand und SSO-Status in der Web-UI). Seit 0.1.0-alpha.3 im Hauptzweig: M5b -(Freigaben an Benutzer, öffentliche Nur-Lese-Links, `docs/sharing.md`). +`/readyz` mit Schreibzustand und SSO-Status in der Web-UI). Nicht für den Produktivbetrieb. ## 1. Ziele diff --git a/README.md b/README.md index b85c0d6..f627b6f 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ Self-hosted CalDAV/CardDAV server written in Rust, with an optional web interface. -> **Status:** pre-release, 0.1.0-alpha.3. Not ready for production use; +> **Status:** pre-release, 0.1.0-alpha.4. Not ready for production use; > what is still missing is tracked in [docs/produktionsreife.md](docs/produktionsreife.md) (German). ## Goals @@ -585,20 +585,20 @@ e.g. `CALCRAFT_SERVER__BIND=0.0.0.0:5232`. ## Tests -Numbers as of 2026-10-23 (version 0.1.0-alpha.3); they are not updated +Numbers as of 2026-10-23 (version 0.1.0-alpha.4); they are not updated automatically. -`cargo test --workspace --all-features` runs **655 tests** (1 of them -ignored by default, see below): 427 unit tests in the crates' `src/` and -228 integration tests in `tests/` directories. There are no doc tests. +`cargo test --workspace --all-features` runs **701 tests** (1 of them +ignored by default, see below): 456 unit tests in the crates' `src/` and +245 integration tests in `tests/` directories. There are no doc tests. | Crate | Unit | Integration | |---|---:|---:| | calcraft-core | 6 | – | -| calcraft-dav | 34 | – | +| calcraft-dav | 38 | – | | calcraft-ical | 106 | 12 | -| calcraft-server | 155 | 216 | -| calcraft-store | 103 | – | +| calcraft-server | 165 | 233 | +| calcraft-store | 118 | – | | calcraft-ui (host tests) | 21 | – | | calcraft-web | 2 | – | @@ -611,7 +611,7 @@ Integration suites of `calcraft-server` (`crates/calcraft-server/tests/`): from `api::ROUTES`. It checks exact status codes, byte-identical answers for foreign and nonexistent resources, that marker strings from the other user's data never leak, and that the other user's data is unchanged after - every write. One run sends about 69 400 requests and makes over 267 000 + every write. One run sends about 84 600 requests and makes over 326 000 counted assertions. A DAV method or REST route without a matrix entry makes it fail. - **Protocols:** `dav.rs`, `caldav.rs`, `carddav_sync.rs`, diff --git a/docs/compat/apple-calendar.md b/docs/compat/apple-calendar.md new file mode 100644 index 0000000..a37f5c6 --- /dev/null +++ b/docs/compat/apple-calendar.md @@ -0,0 +1,64 @@ +# Testprotokoll: Apple Kalender, Erinnerungen und Kontakte + +Manueller Test mit echten Apple-Geräten (Punkt „Reale Clients“ in +[produktionsreife.md](../produktionsreife.md)). Pro Fall Ergebnis eintragen: +✅ funktioniert · ⚠️ funktioniert mit Einschränkung (Notiz) · ❌ Fehler (Notiz, +möglichst mit Uhrzeit für die Server-Logs) · – nicht getestet. + +| Feld | Wert | +|---|---| +| CalCraft-Version | | +| Geräte und Systemversionen | z. B. macOS 26.1 (Kalender 15), iOS 26.1 | +| Einrichtung | Konto „CalDAV“, manuell / automatisch (`.well-known`), App-Passwort ja/nein | +| Server-Konfiguration | `[scheduling]`, `[attachments]`, `[subscriptions]`, `[sharing]`, `[publish]` an/aus | +| Getestet von, am | | + +## Grundfunktionen + +| # | Fall | macOS | iOS | Notiz | +|---|---|---|---|---| +| 1 | Konto einrichten (Discovery über `.well-known`, Principal, Home-Sets) | | | | +| 2 | Kalender anlegen, umbenennen, Farbe ändern, löschen | | | | +| 3 | Reihenfolge der Kalender ändern, bleibt nach Neustart erhalten | | | | +| 4 | Termin anlegen, ändern, verschieben, löschen | | | | +| 5 | Ganztägiger und mehrtägiger Termin | | | | +| 6 | Termin mit Erinnerung (Hinweis), Erinnerung erscheint | | | | +| 7 | Änderung auf Gerät A erscheint auf Gerät B (Sync) | | | | +| 8 | Gelöschter Termin im Papierkorb der Web-UI, Wiederherstellen erscheint wieder | | | | +| 9 | Erinnerungen-App: Aufgabe anlegen, erledigen, löschen (VTODO) | | | | +| 10 | Kontakte: Kontakt mit Foto anlegen, ändern, Gruppe anlegen | | | | + +## Serien und Zeitzonen + +| # | Fall | macOS | iOS | Notiz | +|---|---|---|---|---| +| 11 | Wöchentliche Serie, einzelne Instanz verschieben | | | | +| 12 | Einzelne Instanz löschen (EXDATE), „dieses und alle zukünftigen“ ändern | | | | +| 13 | Termin in anderer Zeitzone, Anzeige nach Sommerzeitwechsel | | | | +| 14 | Monatliche Serie „letzter Freitag“ | | | | + +## Konflikte und Offlinebetrieb + +| # | Fall | macOS | iOS | Notiz | +|---|---|---|---|---| +| 15 | Offline ändern, danach online: Änderung kommt an | | | | +| 16 | Gleichzeitig auf zwei Geräten ändern: Konflikt sichtbar, keine Daten verloren | | | | + +## Neue Funktionen (nur wenn eingeschaltet) + +| # | Fall | macOS | iOS | Notiz | +|---|---|---|---|---| +| 17 | Abo (webcal) über die Web-UI anlegen, erscheint schreibgeschützt | | | | +| 18 | Einladung an zweiten Nutzer, Annahme auf dessen Gerät, Status beim Organisator | | | | +| 19 | Absage durch den Organisator kommt beim Teilnehmer an | | | | +| 20 | Verfügbarkeit (Frei/Belegt) des anderen Nutzers beim Planen | | | | +| 21 | Anhang an Termin hinzufügen, beim Teilnehmer herunterladen | | | | +| 22 | Kalender teilen („Teilen“), Einladung annehmen, lesend/schreibend | | | | +| 23 | Freigabe entfernen: Kalender verschwindet beim Empfänger | | | | +| 24 | Öffentlichen Link (`webcal://`) abonnieren | | | | + +## Gefundene Probleme + +| Datum | Fall | Beschreibung | Issue/PR | +|---|---|---|---| +| | | | | diff --git a/docs/produktionsreife.md b/docs/produktionsreife.md index 2c4fea6..6864b93 100644 --- a/docs/produktionsreife.md +++ b/docs/produktionsreife.md @@ -1,6 +1,6 @@ # Produktionsreife – Anforderungen, Ist-Stand und Fahrplan -Stand: 23.10.2026, Vorabversion 0.1.0-alpha.3: `main` mit M5a (OIDC), M6 (Import/Export, Webcal-Abos mit SSRF-Schutz, `calcraft migrate`), Phase-2-Limits und -Robustheit, Release-Pipeline, Update-Hinweis, CodeQL/Coverage, neuer Web-UI und den Phase-3-Punkten Papierkorb, `MOVE`/`COPY`, CardDAV-Fotos/-Gruppen sowie RRULE-Expansion mit Zeitzonen, Kalender-Reihenfolge/Dead Properties, systemd-Dienst (`Type=notify`), `/readyz` mit Schreibzustand sowie CalDAV-Scheduling zwischen lokalen Nutzern (RFC 6638, Stufe A) und Managed Attachments (RFC 8607), beide standardmäßig aus. +Stand: 23.10.2026, Vorabversion 0.1.0-alpha.4: `main` mit M5a (OIDC), M6 (Import/Export, Webcal-Abos mit SSRF-Schutz, `calcraft migrate`), Phase-2-Limits und -Robustheit, Release-Pipeline, Update-Hinweis, CodeQL/Coverage, neuer Web-UI und den Phase-3-Punkten Papierkorb, `MOVE`/`COPY`, CardDAV-Fotos/-Gruppen sowie RRULE-Expansion mit Zeitzonen, Kalender-Reihenfolge/Dead Properties, systemd-Dienst (`Type=notify`), `/readyz` mit Schreibzustand sowie CalDAV-Scheduling zwischen lokalen Nutzern (RFC 6638, Stufe A) und Managed Attachments (RFC 8607), beide standardmäßig aus, und M5b-Freigaben (an Benutzer, öffentliche Nur-Lese-Links). Dieses Dokument ist die Grundlage für die Freigabe einer stabilen Version. Ein Punkt gilt erst als **erledigt**, wenn es einen automatisierten Test (oder einen dokumentierten, wiederholbaren manuellen Nachweis) dafür gibt. @@ -89,8 +89,8 @@ laufen parallel, weil sie für den Pilotbetrieb gebraucht werden. - [ ] `CALDAV:expand`/`limit-recurrence-set`, Floating-Zeiten über `calendar-timezone`, Zeitzonen-Datenbank für `TZID`s ohne VTIMEZONE - [x] Papierkorb (Soft-Delete mit Wiederherstellung, `tests/trash.rs`) - [x] CardDAV: Fotos (Limit konfigurierbar), Apple- und vCard-4.0-Gruppen, Tests (`tests/carddav_photos.rs`) -- [ ] Freigaben/ACL (M5b) -- [ ] 👤 Reale Clients: Apple Kalender/Kontakte (macOS, iOS), Thunderbird, DAVx⁵, GNOME – Testprotokoll in `docs/compat/` +- [x] Freigaben an Benutzer und öffentliche Links (M5b, `docs/sharing.md`); Gruppen offen +- [ ] 👤 Reale Clients: Apple Kalender/Kontakte (macOS, iOS), Thunderbird, DAVx⁵, GNOME – Testprotokoll in `docs/compat/` (Apple Kalender: [`docs/compat/apple-calendar.md`](compat/apple-calendar.md), läuft) - [ ] Serientermine, Offlinebetrieb und Konflikte mit realen Clients - [ ] Langzeit-/Lasttest: mehrere Benutzer, große Kalender (≥ 50 000 Objekte)