about summary refs log tree commit diff
path: root/flake.nix
Commit message (Collapse)AuthorAgeFilesLines
* Add a module for IndieAuth bearer token authVika2022-02-211-3/+7
| | | | | | | | | | | | | require_token() uses a token endpoint URI and an HTTP client to query the token endpoint and return a User object if the user was authorized, or rejecting with IndieAuthError if not. It is recommended to use recover() and catch the IndieAuthError at the application level to show a "not authorized" error message to the user. This function is more intended for API consumption, but is general enough to permit using in other scenarios. TODO: make a variant that returns Option<User> instead of rejecting
* flake: fix e2e testsVika2021-12-311-5/+3
|
* Added support for IndieAuth client sign inVika2021-12-061-0/+11
| | | | | | | This will allow readers to view private posts intended just for them. Additionally fixed bugs in patterns due to which webmentions might not have been sent.
* Added rust-analyzer to the dev environmentVika2021-12-051-3/+2
|
* Modified the module to use BACKEND_URIVika2021-09-281-34/+28
|
* Added RUST_LOG variable to NixOS moduleVika2021-08-061-0/+1
|
* Nulls are VERY evilVika2021-08-041-0/+3
|
* Turns out nulls are evilVika2021-08-041-3/+5
|
* Fixed lack of default for internalTokenFileVika2021-08-041-0/+1
|
* Added some options to the module, they don't work yet thoVika2021-08-041-0/+31
|
* Added an internal token mechanismVika Shleina2021-07-271-1/+12
| | | | | | | | The internal token is a shared secret that can update and delete any posts stored in the database. It is intended for use in webmention endpoints to update posts with latest webmentions. Please keep it safe.
* Fixed flake-utils?Vika Shleina2021-07-191-2/+6
|
* Added a NixOS test for onboarding workflowVika2021-07-191-1/+28
|
* Renamed main executable to kittybox, added toolsVika Shleina2021-07-191-8/+8
| | | | | | | | | The new tools are: - kittybox-bulk-import, a bare-bones Micropub client that reads a JSON list of posts and then sends them one by one to the Micropub endpoint - pyindieblog-export, my personal tool which directly connects to Pyindieblog's redis instance and extracts data from it in JSON format suitable for use with kittybox-bulk-import.
* Added a NixOS module and a smoke test for itVika2021-05-111-1/+119
|
* Removed openssl dependency - now the code is pure RustVika2021-05-101-7/+1
|
* Switched to naersk for building crates with Nix... that requires unstable Cargo!Vika2021-05-051-9/+16
|
* Refactored the database module and its testsVika2021-05-041-1/+2
|
* Initial commitVika2021-05-041-0/+66
Working features: - Sending posts from the database - Reading posts from the database - Responding with MF2-JSON (only in debug mode!) - Not locking the database when not needed - All database actions are atomic (except for a small race where UIDs can clash, but that's not gonna happen often) TODOs: - Send webmentions - Send syndication requests - Send WebSub notifications - Make tombstones for deleted posts (update adding dt-deleted) - Rich reply contexts (possibly on the frontend part?) - Frontend? - Fix UID race Code maintenance TODOs: - Split the database module - Finish implementing the in-memory test database - Make RedisDatabase unit tests launch their own Redis instances (see redis-rs/tests/support/mod.rs for more info) - Write more unit-tests!!!