Commit 946919a
committed
Add per-user entries store and entry endpoints
Introduce a file-backed EntriesStore for per-user signed encrypted-bucketsIndex entries and wire it into the server surface. Adds: EntriesStore implementation (crates/fula-cli/src/entries_store.rs) with atomic JSON persistence and TOFU/sequence checks; handlers for pinning encrypted bucketsIndex blobs and fetching latest entry (encrypted_user_index), a handler to submit signed user entries (user_entry_submit), and a GET /buckets/list owner endpoint (list_buckets_for_owner). Update users_index_publisher to emit a backward-compatible users_enc map (with verification) and provide helper builders for Phase 3 publishing. Add config option entries_store_path and default wiring, update handlers mod and internal test state to account for the new store. Also bump workspace version in Cargo.toml to 0.6.0 and include supporting client/crypto changes and tests. These changes are additive and designed for backward compatibility: when entries_store is not configured or users_enc is empty, behavior and published CBOR remain byte-identical to prior releases.1 parent 1bddc67 commit 946919a
32 files changed
Lines changed: 4605 additions & 16 deletions
File tree
- crates
- fula-client
- src
- tests
- fula-cli/src
- handlers
- fula-crypto/src
- fula-flutter/src/api
- fula-js
- src
- packages/fula_client
- ios
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
| 82 | + | |
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
76 | 85 | | |
77 | 86 | | |
78 | 87 | | |
| |||
112 | 121 | | |
113 | 122 | | |
114 | 123 | | |
| 124 | + | |
115 | 125 | | |
116 | 126 | | |
117 | 127 | | |
| |||
0 commit comments