Dustin J. Mitchell
17f5521ea4
add an app_id to the encryption AAD
2021-10-17 18:06:16 -04:00
Dustin J. Mitchell
4300f7bdda
use CHACHA20_POLY1305 instead of AES_256_GCM
2021-10-17 17:37:32 -04:00
Dustin J. Mitchell
97d1366b66
move taskchampion::server::remote::crypto to taskchampion::server::crypto
2021-10-16 22:37:28 +00:00
Dustin J. Mitchell
0f39a3f3b2
[BREAKING CHANGE] drop use of tindercrypt, and use ring directly
2021-10-16 22:34:33 +00:00
Dustin J. Mitchell
ddfb327292
WIP
2021-10-15 02:56:46 +00:00
Dustin J. Mitchell
b97f6dc4d5
Send snapshots to server
2021-10-11 21:00:07 -04:00
Dustin J. Mitchell
bde19d7f07
Return SnapshotUrgency from AddVersion
2021-10-11 20:58:34 -04:00
Dustin J. Mitchell
4d19ca7bdb
add server-side config --snapshot-{days,versions}
2021-10-10 01:28:05 +00:00
Dustin J. Mitchell
bcef6bf392
remove redundant {..}
2021-10-01 22:18:24 -04:00
Dustin J. Mitchell
a143660124
Switch to pretty_assertions
2021-10-02 01:08:26 +00:00
dbr
5db04ee1af
Tidying
2021-09-04 13:05:10 +10:00
dbr
1d62799437
Deduplicate StoredUuid wrapper
2021-09-04 12:53:37 +10:00
dbr
7c665c9a77
Clippy things
2021-05-28 20:41:03 +10:00
dbr
aa2340965e
Merge branch 'main' into sqlstore
2021-05-28 12:17:09 +10:00
dbr
f91f797244
Implement storage for local server
2021-05-28 11:38:46 +10:00
dbr
991b29da6c
WIP
2021-05-21 15:52:07 +10:00
Dustin J. Mitchell
373cef9d33
[breaking] Include /v1/ in the sync-server paths
...
This is an incompatible change to the sync-server protocol.
2021-05-14 12:51:24 -04:00
Dustin J. Mitchell
c8d6619d71
Replace tempfile with tempdir
2021-04-16 19:29:27 -04:00
Dustin J. Mitchell
0f02b38fd8
Modify ureq usage for new version
2021-03-28 17:48:31 -04:00
dbr
6d77b9a319
cargo fmt
2021-03-25 17:10:11 +11:00
dbr
4d9755c43b
Replace 'failure' crate with anyhow+thiserror
...
Closes #148
2021-03-25 16:33:35 +11:00
Dustin J. Mitchell
ae4cee1ac3
add docs for the 'server' and 'storage' modules
2021-01-10 22:22:18 -05:00
Dustin J. Mitchell
b004b6cb93
use ServerConfig::into_server instead of server::from_config
2021-01-10 22:22:18 -05:00
Dustin J. Mitchell
31378cb8d4
Include client key in a header, not the URL
...
Since this value is used both for identification and authentication, it
shouldn't be in the URL where it might be logged or otherwise
discovered.
2020-12-28 23:08:42 +00:00
Dustin J. Mitchell
92d629522b
rename client id -> client key
2020-12-28 21:32:59 +00:00
Dustin J. Mitchell
a8d45c67c6
Encrypt content sent to the server
...
This implements client-side encryption, so that users' task information
is not availble to the server (or to anyone who does not have the
`encryption_secret`).
2020-12-27 18:51:41 +00:00
Dustin J. Mitchell
de03209285
bits of docs
2020-11-29 21:26:39 -05:00
Dustin J. Mitchell
42d988d601
fix clippy warnings
2020-11-29 14:05:51 -05:00
Dustin J. Mitchell
8af7ba286d
Factor replica and sync configuration into simple owned structs
2020-11-28 16:57:32 -05:00
Dustin J. Mitchell
2a37f090a5
Add RemoteServer to the taskchampion crate
2020-11-27 20:15:17 -05:00
Dustin J. Mitchell
d46f20e75a
adjust visibility, comment
2020-11-27 18:16:42 -05:00
Dustin J. Mitchell
2064057688
fix clippy warnings
...
I don't know why these are "intermittent"
2020-11-26 22:36:31 -05:00
Dustin J. Mitchell
26b17c6dbc
Revert "add signing support"
...
It turns out we don't need this.
This reverts commit e92fc0628b .
2020-11-26 22:34:20 -05:00
Dustin J. Mitchell
3537db9bbe
implement a local sync server
2020-11-25 19:13:32 -05:00
Dustin J. Mitchell
8f7e2e2790
add a 'task sync' command using a copy of the test server
2020-11-25 18:07:04 -05:00
Dustin J. Mitchell
a81c84d7c7
refactor sync to new model
2020-11-25 17:58:03 -05:00
Dustin J. Mitchell
e92fc0628b
add signing support
2020-11-25 17:58:02 -05:00
Dustin J. Mitchell
75edd2773f
make server operations fallible
2020-11-25 17:53:23 -05:00
Dustin J. Mitchell
549d3b9f6d
refactor taskchampion::server into a module with submodules
2020-11-25 17:53:23 -05:00