Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
61829b0
meta: add device sessions, password change and revoke queries
Skyfuller1303 Nov 3, 2026
862b167
api, proto, server: add account, password change and device routes
Skyfuller1303 Nov 3, 2026
6c9454c
server: sign devices out on password reset, add device revoke-all
Skyfuller1303 Nov 3, 2026
afc44ff
docs: describe device sessions, password change and migration 0007
Skyfuller1303 Nov 3, 2026
6811ec7
server: answer 401 to the long-poll and live socket of a signed-out d…
Skyfuller1303 Nov 3, 2026
8c891b3
meta, server: keep a password change atomic against revokes and races
Skyfuller1303 Nov 3, 2026
00f31da
server: look a long-polling device up again after the change set is read
Skyfuller1303 Nov 3, 2026
62e9151
meta: take the user's row first in every transaction that revokes or …
Skyfuller1303 Nov 3, 2026
3dd9f28
meta tests: let the failure test's check run more than once
Skyfuller1303 Nov 4, 2026
f69dab0
meta, server: lock the account first when a join, a pairing or a sign…
Skyfuller1303 Nov 4, 2026
31d92fd
meta: consume a join code only for the account it was found for
Skyfuller1303 Nov 4, 2026
e516a77
store: say what kind of storage a backend is
Skyfuller1303 Nov 4, 2026
876b181
proto: add the admin API's bodies and error codes
Skyfuller1303 Nov 4, 2026
4586bad
meta: add admin changes, reset codes, removal marks and quotas
Skyfuller1303 Nov 4, 2026
37b8be8
server: enforce the admin role and add the HTTP admin API
Skyfuller1303 Nov 4, 2026
282d04d
server: do not count a try the limiter refuses
Skyfuller1303 Nov 4, 2026
32e8d08
meta: refuse a sign-in checked before a disable and an enable
Skyfuller1303 Nov 4, 2026
39b8e35
proto: add the audit log's bodies
Skyfuller1303 Nov 4, 2026
be81aba
meta: write the security audit log, one event with each change
Skyfuller1303 Nov 4, 2026
d5485ef
server: add the audit routes, the [audit] config and the audit command
Skyfuller1303 Nov 4, 2026
7d80a6f
docs: describe the security audit log
Skyfuller1303 Nov 4, 2026
833e56a
server, docs: hide others' details in own activity, honour before_ms …
Skyfuller1303 Nov 4, 2026
7450523
deps: add aes-gcm, hmac, sha1, subtle and zeroize for two-factor sign-in
Skyfuller1303 Nov 4, 2026
9190657
meta: add two-factor sign-in, sign-in challenges and the lock
Skyfuller1303 Nov 4, 2026
cb19c05
proto, api: add the two-factor bodies, the challenge and the error codes
Skyfuller1303 Nov 4, 2026
7716e43
meta: show sealed secrets by length only in Debug output
Skyfuller1303 Nov 4, 2026
3f8ab9f
server: add two-factor sign-in, the key file and the admin integration
Skyfuller1303 Nov 4, 2026
2f47fb7
docs: describe two-factor sign-in, its key file and the admin confirm…
Skyfuller1303 Nov 4, 2026
b11af72
meta: count wrong proofs under the lock that checked them, and rewrit…
Skyfuller1303 Nov 4, 2026
6f57f99
server: rekey every secret fresh per account and check again, let a l…
Skyfuller1303 Nov 4, 2026
758b625
docs: rotate the key with every instance restarted first, and what th…
Skyfuller1303 Nov 4, 2026
1cbbecf
server, meta: answer every refused join alike, and force the rekey ra…
Skyfuller1303 Nov 4, 2026
ccabbe9
api, proto, app: add the local API's two-factor calls, the typed chal…
Skyfuller1303 Nov 4, 2026
a3b11af
agent: add the second step of a sign-in, a code for join and the acco…
Skyfuller1303 Nov 4, 2026
6ed1260
desktop: add the Security page and the code a join asks for
Skyfuller1303 Nov 4, 2026
a7c24cb
docs: two-factor sign-in at the agent and its local API
Skyfuller1303 Nov 4, 2026
2cc5d1a
app: test that the challenge is hidden by its value, not its field name
Skyfuller1303 Nov 4, 2026
e5ffda0
desktop, app: forget typed secrets in egui's undo history; keep the R…
Skyfuller1303 Nov 4, 2026
a35b6c7
meta, proto: write the audit events of two-factor sign-in
Skyfuller1303 Nov 4, 2026
75153fb
server: audit a sign-in's challenge that is not good, test the two-fa…
Skyfuller1303 Nov 4, 2026
d288a50
docs: describe what two-factor sign-in writes to the audit log
Skyfuller1303 Nov 4, 2026
14e95c4
meta: add browser sessions for the web admin
Skyfuller1303 Nov 4, 2026
79914b8
server: add the admin pages with browser sessions
Skyfuller1303 Nov 4, 2026
e354075
docs: describe the admin pages, browser sessions and web-sessions prune
Skyfuller1303 Nov 4, 2026
c7b3874
agent: send client kind, platform and version on sign-in and join
Skyfuller1303 Nov 6, 2026
2b63673
Merge device-sessions: the agent sends its device details
Skyfuller1303 Nov 6, 2026
b2da75a
Merge admin-api: the agent sends its device details
Skyfuller1303 Nov 6, 2026
0d0cb78
Merge audit-log: the agent sends its device details
Skyfuller1303 Nov 6, 2026
0cf61b4
Merge two-factor: the agent sends its device details
Skyfuller1303 Nov 6, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ crates/
egui craft-cloud-egui Craft Cloud's piece of an app's window: the account line, the shared recents, a live document's badge, and `CloudWatch` that keeps them current
app craft-cloud-app what apps link: a blocking client of the agent's local API (status, sign-in, joining, computers, pause, autostart, recents, live documents at the level of bytes: `live.rs`)
apps/
craft-cloud-server HTTP API (`/api/v1`), the live service (`/api/v1/live`, `live.rs`: logs, documents by import, snapshots and compaction, presence), join codes (`join.rs`: pairings, join, the `/join/{code}` page), auth, admin CLI (`init`, `serve`, `user` with `invite`, `device`, `reset-epoch`, `live`)
craft-cloud-server HTTP API (`/api/v1`), the live service (`/api/v1/live`, `live.rs`: logs, documents by import, snapshots and compaction, presence), join codes (`join.rs`: pairings, join, the `/join/{code}` page), auth, the admin pages (`web/`: server-rendered HTML with browser sessions, off unless `[web_admin]` is on), admin CLI (`init`, `serve`, `user` with `invite`, `device`, `reset-epoch`, `live`, `web-sessions`)
craft-cloud-agent the sync agent: real disk `Fs`, HTTP `Transport` over a `Connection`, saved account and state, root marker, CLI (`login`, `join`, `run`, `sync`, `status`, `logout`, `recents`, `doc` (`doc.rs`), `add-computer`, `devices`, `pause`, `resume`, `quit`, `autostart`), the `run` loop, the local API (`local_api.rs`), the live hub (`live/`: a document's Loro copy, recents document, replica (recents and documents of files), store (with the documents' journals), link, hub, the local API's docs socket), start at login (`autostart/`: Windows, macOS, Linux), the background build (`src/bin/bg.rs`, logging to `runlog.rs`)
tests/network/ the simulation over a simulated network (turmoil): `main.rs` histories and scenarios, `harness.rs` server and agent hosts, `live.rs` live documents over WebSockets on it
tests/recents_sim.rs the recents convergence simulation: replicas against the server's live sessions
Expand Down
1 change: 1 addition & 0 deletions ATTRIBUTION.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ next to them.
| `apps/craft-cloud-desktop/assets/tray-*.png` | Craft Cloud's tray icon in each state (synced, syncing, offline, needs attention, paused): a cloud with a badge | Craft Cloud contributors | Drawn by `cargo xtask icons` (`xtask/src/icons.rs`) for this repository | MIT OR Apache-2.0 |
| `apps/craft-cloud-desktop/tests/autostart/*` | Expected start-at-login entries of the app per OS (golden files) | Craft Cloud contributors | Written for this repository | MIT OR Apache-2.0 |
| `apps/craft-cloud-desktop/tests/snapshots/*.png` | The Craft Cloud app's screens as its snapshot tests expect them (the text in egui's default fonts, see `epaint_default_fonts`) | Craft Cloud contributors | Rendered by the tests (`UPDATE_SNAPSHOTS=1`) | MIT OR Apache-2.0 |
| `apps/craft-cloud-server/src/web/style.css` | The admin pages' stylesheet: system fonts, no images, no external files | Craft Cloud contributors | Written for this repository | MIT OR Apache-2.0 |
116 changes: 116 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@ craft-cloud-agent = { path = "apps/craft-cloud-agent" }
craft-cloud-app = { path = "crates/app" }
craft-cloud-kit = { path = "crates/kit" }
craft-cloud-egui = { path = "crates/egui" }
# Two-factor sign-in: AES-256-GCM for the stored TOTP secrets (RustCrypto, pure Rust), and HMAC-SHA-1 for the codes
# themselves (authenticator apps speak SHA-1). `subtle` compares codes in constant time, `zeroize` wipes secrets.
aes-gcm = "0.10.3"
hmac = "0.13"
sha1 = "0.11"
subtle = "2.6"
zeroize = "1.9"
argon2 = "0.6"
async-trait = "0.1.89"
# `ws`: the server's live service and the agent's local API are WebSockets (tokio-tungstenite, MIT).
Expand Down
Loading