Efim Poberezkin
7a611bed5a
configure systemd service restart and increase file descriptors limit for Linode script ( #320 )
2022-02-26 18:42:16 +04:00
Efim Poberezkin
a406159ed4
1.0.3
2022-02-26 18:11:07 +04:00
Efim Poberezkin
14780a47d6
prepare v1.0.3 ( #324 )
2022-02-26 18:07:11 +04:00
Efim Poberezkin
229e2607d7
remove redundant asynchronous connection code ( #317 )
2022-02-14 21:00:14 +04:00
Efim Poberezkin and Evgeny Poberezkin
c380c79560
make new smp client attempt to reconnect on network error ( #315 )
...
* make new smp client attempt to reconnect on network error
* reconnect async wip
* remove comments
* trigger tryReconnectClient
* add subscription before trying to take smp client
* move atomically modify asyncClients
* remove logs
* corrections
* don't put error into new smp client TMVar
* UnliftIO async
* re-work
* test for connection to the server that was initially down
* fix tests
* additionally test that bob receives the message after re-connect
* make test independent of event order
Co-authored-by: Evgeny Poberezkin <[email protected] >
2022-02-10 14:48:11 +00:00
Efim Poberezkin
c9994c3a2c
add "yes to migrations" option ( #316 )
2022-02-07 11:51:39 +04:00
Efim Poberezkin
e15a25d92e
update Linode stackscript, amendments
2022-01-21 14:21:07 +04:00
Efim Poberezkin
1cd68f4159
update Linode stackscript ( #309 )
2022-01-21 12:36:42 +04:00
Efim Poberezkin
495439adf5
1.0.2
2022-01-21 11:40:49 +04:00
Efim Poberezkin
98fac579c0
switch tls from fork to original repo ( #307 )
2022-01-21 11:26:16 +04:00
Efim Poberezkin and Evgeny Poberezkin
305ae94cce
move TLS handshake to a separate thread per-connection ( #306 )
...
* move handshake to a separate thread
* 1.0.2-rc04
* refactor TLS thread
* hide EOF exception
Co-authored-by: Evgeny Poberezkin <[email protected] >
2022-01-20 18:32:09 +00:00
Efim Poberezkin
502ee39eb3
publish release as prerelease if tag contains 'rc'; update ghc version in build ( #303 )
2022-01-20 11:38:02 +04:00
Efim Poberezkin
ac899a67c4
support TLS 1.3 ( #300 )
2022-01-18 18:59:02 +04:00
Efim Poberezkin
6e7089284e
cease attempts to send HELLO after timeout ( #298 )
2022-01-18 13:50:43 +04:00
Efim Poberezkin
40efdf97de
bootstrap script to download latest SMP server release for DigitalOcean droplet ( #295 )
2022-01-17 12:32:10 +04:00
Efim Poberezkin
7e0bcc7aa0
v1.0.1 ( #294 )
2022-01-15 18:39:57 +04:00
Efim Poberezkin
56fea79097
add not up to date warning for DO ( #293 )
2022-01-15 12:51:23 +04:00
Efim Poberezkin
9c3962bbe3
update readme on initialization, fix servers list ( #288 )
2022-01-13 10:39:02 +04:00
Efim Poberezkin
d1eba1ef2f
update README instructions on server fingerprint and address ( #285 )
2022-01-12 11:28:16 +04:00
Efim Poberezkin
2f342d3914
clarify wording in Linode script comment on server address
2022-01-11 21:58:40 +04:00
Efim Poberezkin
70823b899f
remove Linode referral link ( #283 )
2022-01-11 21:11:27 +04:00
Efim Poberezkin
b6aa0c886a
link to smp-server by simplexchat StackScript ( #282 )
2022-01-11 20:57:47 +04:00
Efim Poberezkin
3909c7b10e
remove Subject Alternative Names from server certificate ( #281 )
2022-01-11 20:48:27 +04:00
Efim Poberezkin
5306489d72
initialize server with IP and FQDN; specify FQDN as address if provided ( #279 )
2022-01-11 20:24:39 +04:00
Efim Poberezkin
d48da40f7e
add IP and FQDN to online certificate ( #278 )
2022-01-11 16:35:06 +04:00
Efim Poberezkin
14afa24a0a
disable websockets by default ( #277 )
2022-01-11 11:21:02 +04:00
Efim Poberezkin
0bfac998a5
update Linode and DigitalOcean server recipes ( #274 )
2022-01-11 10:41:02 +04:00
Efim Poberezkin
db5ae65f3c
Merge branch 'stable'
2022-01-10 22:17:33 +04:00
Efim Poberezkin
92b3137b79
non interactive apt commands in server recipes ( #272 )
2022-01-10 22:08:38 +04:00
Efim Poberezkin
4d68042884
change initial migration date (migrations merged) ( #267 )
2022-01-07 17:03:00 +04:00
Efim Poberezkin
5e57c5dfd7
rename remaining occurrences of connection alias into connection id ( #265 )
2022-01-07 15:37:40 +04:00
Efim Poberezkin
d87ff42cf5
start with internal message id 1; fix id ordering in tests ( #264 )
2022-01-07 14:52:37 +04:00
Efim Poberezkin
e452c6ebff
delete received messages after sending ACK to server ( #256 )
2022-01-05 16:52:28 +04:00
Efim Poberezkin
19edf09ae2
add deleteMsg to agent store interface ( #255 )
2022-01-05 16:11:52 +04:00
Efim Poberezkin
4727e568d5
fix x509 call to be compatible with openssl version 1.1.1 ( #253 )
2022-01-03 20:59:53 +04:00
Efim Poberezkin
33bb38299b
refactor server Main.hs ( #248 )
2022-01-02 21:49:40 +04:00
Efim Poberezkin
14954df6b9
print version on server initialization & start-up ( #240 )
2021-12-24 15:44:40 +04:00
Efim Poberezkin
388e4d2bcc
update server recipes - Linode & DigitalOcean ( #239 )
2021-12-24 15:34:09 +04:00
Efim Poberezkin
0c866105d2
chain of two certificates - offline (identity) and online; switch certificates to v3 ( #238 )
2021-12-23 21:20:41 +04:00
Efim Poberezkin
96cf4d288c
base64url encode fingerprint in agent test ( #237 )
2021-12-23 13:04:56 +04:00
Efim Poberezkin and Evgeny Poberezkin
e2cd370513
certificate validation on client side; check stored fingerprint on server start-up; non-optional fingerprint parsing ( #234 , closes #155 )
...
Co-authored-by: Evgeny Poberezkin <[email protected] >
2021-12-22 23:24:58 +04:00
Efim Poberezkin and Evgeny Poberezkin
129246c9e6
unencrypted SMP transport over TLS; simplified handshake ( #229 )
...
Co-authored-by: Evgeny Poberezkin <[email protected] >
2021-12-19 13:04:44 +04:00
Efim Poberezkin
de01692ffd
enable WebSockets over TLS ( #225 )
2021-12-15 22:58:47 +04:00
Efim Poberezkin
bcf5e25cab
create TLS ServerParams once per server run; remove tlsServerParams from agent env (fixes functional agent client for chat) ( #223 )
2021-12-15 19:03:34 +04:00
Efim Poberezkin
6bdf4f3ff3
change ports for tests (fix for ports now in use on macOS) ( #217 )
2021-12-06 18:56:07 +04:00
Efim Poberezkin
ab875198ed
SMP protocol typo
2021-11-27 02:31:15 +10:00
Efim Poberezkin
bfcbe4bcd8
remove build matrix and create release in the end of build to avoid downtime in binary availability ( #196 )
2021-10-02 18:49:24 +10:00
Efim Poberezkin
862f25500d
v4 ( #192 )
2021-09-09 01:30:39 +10:00
Efim Poberezkin
da071a0abf
Merge pull request #160 from simplex-chat/v4
...
v4
2021-09-09 01:19:01 +10:00
Efim Poberezkin
51491d9cd5
Merge branch 'master' into v4
2021-09-09 01:10:41 +10:00
Efim Poberezkin and Evgeny Poberezkin
8a4bced569
decrease initial delay for HELLO retries on online activation ( #174 )
...
* decrease initial delay for HELLO retries on online activation
* move retry interval to config
Co-authored-by: Evgeny Poberezkin <[email protected] >
2021-08-01 13:51:40 +01:00
Efim Poberezkin
5e380e1d47
add tests for establishing connection asynchronously; retrieve correct key for activation on restart ( #169 )
2021-07-10 20:02:48 +10:00
Efim Poberezkin
9f945492dd
fix markdown error in crypto rfc ( #167 )
2021-07-09 04:27:07 +10:00
Efim Poberezkin and Evgeny Poberezkin
3d9ceff691
ask client for confirmation of sender; make establishment of connection asynchronous ( #163 )
...
Co-authored-by: Evgeny Poberezkin <[email protected] >
2021-07-04 04:48:24 +10:00
Efim Poberezkin
8bd42035aa
reorganize sqlite store test suite ( #138 )
2021-05-10 15:10:32 +04:00
Efim Poberezkin
f7f419224f
reduce transaction retry back-off factor to 1.125 ( #137 )
2021-05-10 14:24:08 +04:00
Efim Poberezkin and Evgeny Poberezkin
fa5a8cb5cd
agent: change sqlite busy retry handling; set journal_mode = WAL ( #132 )
...
* agent: change sqlite busy retry handling; set journal_mode = WAL
* fix accumulation
* add exponential back-off (*1.5) to transaction retries
Co-authored-by: Evgeny Poberezkin <[email protected] >
2021-05-09 10:24:02 +01:00
Efim Poberezkin and Evgeny Poberezkin
ad87442811
sqlite busy stress test ( #131 )
...
* sqlite busy stress test
* refactor withStore2
* refactor withStore2
* pragmas
* swith to IMMEDIATE sqlite transactions and add retry on ErrorBusy
* refactor
* increase timeout, print errors and results
* remove logging errors/results
Co-authored-by: Evgeny Poberezkin <[email protected] >
2021-05-08 16:30:40 +01:00
Efim Poberezkin
f09c77cd31
docs: correct agent protocol abnf ( #128 )
2021-05-04 21:48:54 +04:00
Efim Poberezkin
28ddef2d9c
docs, smp: align with implementation ( #43 )
...
* adjust out-of-band message abnf
* define hostname and encoded using prose-val
* elaborate on base64
* corrections up to SMP procedure
* fix CONN -> NEW
* update SMP protocol to align with the implementation
* remove Possible extensions from TOC
* lists
* corrections
Co-authored-by: Efim Poberezkin <[email protected] >
2021-05-02 19:15:40 +01:00
Efim Poberezkin and Evgeny Poberezkin
b7902ee4c8
agent sqlite: store msg hashes and integrity ( #118 , #119 , #120 )
...
Co-authored-by: Evgeny Poberezkin <[email protected] >
2021-05-02 10:48:31 +04:00
Efim Poberezkin and Evgeny Poberezkin
6be4839703
agent: verify msg integrity based on previous msg hash and id ( #110 )
...
Co-authored-by: Evgeny Poberezkin <[email protected] >
2021-05-02 00:38:32 +04:00
Efim Poberezkin
65ad2eb6a8
docs, smp, chore: remove multiline sentences line breaks; uniform lists ( #42 )
2021-04-19 23:14:40 +04:00
Efim Poberezkin and Evgeny Poberezkin
40ad6db51a
return error on creation of duplicate connection ( #102 )
...
Co-authored-by: Evgeny Poberezkin <[email protected] >
2021-04-19 00:46:01 +04:00
Efim Poberezkin and Evgeny Poberezkin
2eb5ce24ec
tests: block on tcp server creation ( #99 )
...
Co-authored-by: Evgeny Poberezkin <[email protected] >
2021-04-14 02:25:57 +04:00
Efim Poberezkin
6c7e013007
0.2.1
2021-04-10 16:49:40 +04:00
Efim Poberezkin
d0b047d197
automate changelogs ( #84 )
2021-04-09 18:20:09 +04:00
Efim Poberezkin
16eb560dbc
automate releases ( #76 )
2021-04-03 23:17:51 +04:00
Efim Poberezkin
bd753dbe47
agent sqlite: enable FKs in *all* db connections ( #75 )
2021-03-29 19:27:05 +04:00
Efim Poberezkin
08171e987d
agent sqlite: initialize database in home directory by default ( #74 )
2021-03-29 19:18:54 +04:00