Commit Graph

502 Commits

Author SHA1 Message Date
moiseev-signal
6c06d83618 Remove svr3 2025-03-11 13:06:37 -07:00
Alex Bakon
24d2870b60 Use separate error types for chat connect vs. send (#1431) 2025-03-10 15:42:42 -04:00
Jordan Rose
835611fc7b Expose preconnectChat() to Swift and Java
Also added a JUnit Rule for initializing the libsignal logger to
print to stderr.
2025-03-07 10:35:07 -08:00
Jordan Rose
a60414972f net: Treat X-Signal-Alert as a comma-separated list
As described by RFC 9110, this should be equivalent to sending the
header multiple times when possible, and here it is.
2025-03-07 09:50:40 -08:00
Jordan Rose
7ac3ce5d68 Implement preconnecting and expose it to Node 2025-03-06 10:56:56 -08:00
Jordan Rose
5b4bb54748 Reset for version v0.67.4 2025-03-04 17:20:57 -08:00
Jordan Rose
c6bb75a872 Node: don't strip net/ submodules out of package 2025-03-04 17:19:42 -08:00
Jordan Rose
5b90cf23e6 Reset for version v0.67.3 2025-03-04 16:06:39 -08:00
Jordan Rose
2ebd7cd2b3 Check for X-Signal-Alert header, and report it in a callback
This on-connect header will be used for lightweight "alerts" from the
server to an authenticated client. For now, it's only threaded through
to the Node implementation; the iOS and Android ones will come later.
2025-03-04 15:07:23 -08:00
adel-signal
83810ddbe0 Extract Endorsement keys from Server(Public/Private)Params 2025-03-01 21:10:04 -08:00
Alex Bakon
2d988c7865 Reorganize chat and CDSI node code 2025-02-27 16:22:07 -05:00
Alex Bakon
fd5728c88f Reset for version v0.67.2 2025-02-26 13:55:20 -05:00
Jordan Rose
37efd6f235 Reset for version v0.67.1 2025-02-21 16:42:54 -08:00
Alex Bakon
ffdb35f59f Improve error handling for ChatConnection 2025-02-21 16:06:37 -05:00
Alex Bakon
2ba84ac051 Bridge chat response sending as synchronous 2025-02-21 15:29:20 -05:00
Alex Bakon
efd6ef2424 Expose both CDSI connect methods 2025-02-19 14:19:56 -05:00
Jordan Rose
4215bdb1b6 Reset for version v0.66.3 2025-02-13 15:03:40 -08:00
Andrew
719772a0fe Reset for version v0.66.2 2025-02-11 16:13:22 -05:00
Andrew
c1ba7d54f1 Reset for version v0.66.1 2025-02-11 15:05:28 -05:00
Alex Bakon
b34d84575f Remove chat service from bridge 2025-02-07 15:30:38 -05:00
Alex Bakon
23005551f2 Test chat connection send path
Add a test for the request send path and response receive path using the fake 
chat connection. This would have caught the bug fixed by bf680b09.
2025-02-05 15:15:34 -05:00
Andrew
a071849ae5 Reset for version v0.65.7 2025-02-04 17:05:54 -05:00
Andrew
5522925a07 Reset for version v0.65.6 2025-02-03 17:51:54 -05:00
Jordan Rose
bd9a11f943 bridge: Separate proxy validation from proxy setting
And expose an explicit setInvalidProxy, both for testing and in case
apps want to do their own connection-poisoning.

This makes it easier to be consistent about "if you try to set a proxy
that turns out not to be valid, the ConnectionManager should end up in
the invalid state until explicitly cleared", whether the validation is
done on the Rust side of the bridge or the app language side.
2025-02-03 14:09:56 -08:00
Jordan Rose
029b867b52 bridge: Add round-trip tests for u64 as well 2025-01-31 14:03:53 -08:00
Jordan Rose
9f496569ff Node: use JavaScript's URL class to provide Net.setProxyFromUrl
Also improves tests around proxies for all three languages.
2025-01-31 13:24:24 -08:00
Alex Bakon
c42963cfdf Write listener bridging tests for chat connection 2025-01-31 14:03:52 -05:00
Jordan Rose
c49145fe3d bridge: Fix negative integer values coming from Node being rejected
And add tests for round-tripping integers to Java and Node, since the
types don't always match up as nicely as with C.
2025-01-31 10:55:17 -08:00
Jordan Rose
c1ad890487 Expose a more complete Net.setProxy(...) to apps
This takes a full set of components describing the connection to a
proxy: a scheme, a host, and optionally a port and auth information.
The previous `setProxy(String, u16)` signature is still available for
Signal TLS proxies in particular, but now we have the flexibility to
support other kinds of proxies as well.
2025-01-27 17:53:09 -08:00
Jordan Rose
3bd5a0a73b Reset for version v0.65.5 2025-01-27 13:00:01 -08:00
Jordan Rose
527222cf1f Revert "Implement and expose Net.setProxyFromUrl()"
This adds more code size than expected.
2025-01-22 11:49:14 -08:00
Jordan Rose
7e1be4700d Implement and expose Net.setProxyFromUrl()
This takes a full URL (as a string) to use as a proxy. The previous
`setProxy(String, int)` signature is still available for Signal TLS
proxies in particular, but now we have the flexibility to support
other kinds of proxies as well.
2025-01-22 11:42:00 -08:00
Alex Bakon
4ffb1320ea Add test for ChatConnection with local mock server 2025-01-22 14:09:30 -05:00
andrew-signal
37da5d806e Update release notes to running methodology 2025-01-21 15:05:06 -10:00
Andrew
10dcf92058 Bump to version v0.65.3 2025-01-21 10:16:23 -10:00
Jordan Rose
864a1a1a87 Bump to version v0.65.2 2025-01-15 15:44:44 -08:00
Alex Bakon
908fa98ee4 Bump to version v0.65.1 2025-01-15 11:51:42 -05:00
Jordan Rose
0b9a142268 Make Desktop Linux build reproducible, like the Java/Android build
These docker settings have been copied over from how Signal-Desktop
itself builds reproducibly.
2025-01-14 12:19:17 -08:00
Jordan Rose
701895d541 Bump to version v0.65.0 2025-01-07 14:38:17 -08:00
Alex Konradi
46ed44cd5e Upgrade Rust version to 2024-12-17 nightly 2024-12-20 13:59:31 -05:00
Alex Konradi
ea4aee159b Make AccountEntropyPool usable as bridge fn arg 2024-12-19 16:11:03 -05:00
Alex Konradi
a060aa6f74 Add fn to check that an AccountEntropyPool string is valid 2024-12-19 15:39:15 -05:00
Alex Konradi
e28081415e Remove support for deprecated auth credential format 2024-12-16 16:28:47 -05:00
Alex Konradi
8414cbf1c3 Expose loggable information about chat connection, and log more 2024-12-13 13:08:41 -05:00
moiseev-signal
cf98c1a054 Remove SVR3 bridge from all platforms 2024-12-12 17:11:26 -08:00
Alex Konradi
02b727b393 Gate node chat connect test on HERMETIC env var 2024-12-12 09:12:11 -05:00
Jordan Rose
4b78ebfeea Bump to version v0.64.1 2024-12-06 13:05:30 -08:00
Alex Konradi
1e62c19346 Bump to version v0.64.0 2024-12-06 11:21:49 -05:00
Alex Konradi
975f9b31c7 Pass tokio runtime handle to ws2::Chat::new 2024-12-06 06:04:07 -05:00
Alex Konradi
e42af4d3da Split bridged chat connect function 2024-11-25 16:21:17 -05:00