mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-13 22:52:22 +00:00
5a4aa5f252b54b06d76f23af2cdd0ca5c1f6036c
RustiCal
a CalDAV/CardDAV server
Caution
RustiCal is not production-ready! There can be changes to the database without migrations and there's no guarantee that all endpoints are secured yet. If you still want to play around with it in its current state, absolutely feel free to do so but know that not even I use it productively yet.
Installation
Manual
cargo install --git https://github.com/lennart-k/rustical
Docker
docker run -p 4000:4000 -v YOUR_CONFIG_TOML:/etc/rustical/config.toml -v YOUR_DATA_DIRECTORY:YOUR_DATA_DIRECTORY ghcr.io/lennart-k/rustical
Configuration
You can generate a default config.toml with
rustical gen-config
There, you can customize your username, password, and app tokens. Password hashes can be generated with
rustical pwhash
Password vs app tokens
The password is meant as a password you use to log in to the frontend.
Since it's sensitive information, the secure but slow hash algorithm argon2 is chosen.
I recommend to generate random app tokens for each CalDAV/CardDAV client.
These can use the faster pbkdf2 algorithm.
Todo
- Auth
- current state: RustiCal should be safe against unauthenticated request, however many routes are not checked for authorization yet
- static authentication
- Access control
- preparation for different principal types (groups)
- WebDAV sync extension RFC 6578
- implement getctag see
- implement WebDAV If header
- Onboarding
- config generation
- usable documentation
- usable frontend
Relevant RFCs
- Versioning Extensions to WebDAV: RFC 3253
- provides the REPORT method
- Calendaring Extensions to WebDAV (CalDAV): RFC 4791
- Scheduling Extensions to CalDAV: RFC 6638
- not sure yet whether to implement this
- Collection Synchronization WebDAV RFC 6578
- We need to implement sync-token, etc.
- This is important for more efficient synchronisation
- iCalendar RFC 2445
Languages
Rust
91.4%
TypeScript
4.7%
HTML
2.1%
CSS
1.2%
Handlebars
0.3%
Other
0.3%