Commit Graph

363 Commits

Author SHA1 Message Date
Alex Konradi
b064ec78c5 Upgrade rustc to latest nightly 2024-06-25 11:31:59 -04:00
Jordan Rose
2a2ef524d2 Update to Node 20.11.1 2024-06-21 14:35:17 -07:00
Jordan Rose
db18a102f2 Use Docker's ADD command for remote resources 2024-06-21 11:35:08 -07:00
Jordan Rose
2e2896fc23 Bump to version v0.51.1 2024-06-20 17:02:58 -07:00
Fedor Indutny
4f4669ed23 node: update prebuildify to 6.0.1 2024-06-20 15:41:43 -07:00
Jordan Rose
95bf4e7715 Bump to version v0.51.0 2024-06-13 16:42:29 -07:00
Jordan Rose
4e2a7de574 Expose the 'Stopped' event to Swift and Node
Swift: ChatListener.chatServiceConnectionWasInterrupted(_:)
Node: ChatServiceListener.onConnectionInterrupted()
2024-06-13 15:54:21 -07:00
Jordan Rose
b79637ddc2 node: Add doc comments around ChatListener 2024-06-13 15:54:21 -07:00
Jordan Rose
1364e4812c node: Add yarn build-with-debug-level-logs
Similar to the previous commit, but for Node.
2024-06-13 12:08:31 -07:00
Sergey Skrobotov
b3ec2cc7f2 net: chat listener bridging to node 2024-06-13 11:20:08 -07:00
Jordan Rose
e968ab4b62 Bump to version v0.50.0 2024-06-07 09:32:25 -07:00
Max Moiseev
347791c88c Bump to version 0.49.0 2024-05-31 12:27:59 -07:00
Jordan Rose
8313a2cfbd Remove app-layer tests that rely on connection timeouts
This was previously done for Node in 62f347e866, while the Java and
Swift tests *did* pass but...very...slowly. Make them all consistent.
2024-05-30 13:28:07 -07:00
Alex Konradi
31d6015522 backups: add shared message backup test cases 2024-05-24 15:59:44 -04:00
Alex Konradi
e925c5d9d9 Bump to version 0.48.0 2024-05-24 15:06:29 -04:00
Jordan Rose
9a8429da46 net: Add AppExpired and DeviceDeregistered errors for ChatService
And check bridging for every high-level ChatServiceError like we do
with CdsiLookupErrors.
2024-05-23 10:27:28 -07:00
Sergey Skrobotov
62f347e866 net: consolidating timeout constants 2024-05-22 16:50:53 -07:00
Jordan Rose
770dd1bbc2 node: Add cancellation support via AbortController 2024-05-22 13:11:09 -07:00
Max Moiseev
1086531d79 Bump to version 0.47.0 2024-05-21 14:40:12 -07:00
Jordan Rose
a5fa231a1c bridge: Expose ChatService_InjectRawServerRequest for testing 2024-05-21 13:04:18 -07:00
Jordan Rose
a513d61a09 bridge: Expose ChatListener to Swift
(and lay groundwork for the other bridges)
2024-05-21 13:04:18 -07:00
moiseev-signal
70ba17491c SVR3: Implement remove API 2024-05-21 10:33:33 -07:00
moiseev-signal
c55aa17a9f SVR3: Propagate tries_remaining on restore failure 2024-05-20 15:49:59 -07:00
moiseev-signal
bc5875b225 SVR3: Propagate tries_remaining upon successful restore 2024-05-20 08:54:46 -07:00
Jordan Rose
7dc63b99af ffi: Expose cancellation to Swift 2024-05-17 11:30:24 -07:00
Jordan Rose
1aedf124cd Bump version to v0.46.2 2024-05-16 16:02:06 -07:00
Jordan Rose
9b9bd7cead Bump to version v0.46.1 2024-05-15 16:23:07 -07:00
Jordan Rose
99e337f552 bridge: Expose authenticated sends on ChatService 2024-05-15 15:48:47 -07:00
Jordan Rose
a09eb567f0 net: "Poison" the TCP connector if an invalid proxy is set
This ensures that if there's an error setting a proxy, the previous
settings won't continue to be used for new connections.

This only applies to the Java, Swift, and TypeScript layers; the Rust
layer's set_proxy isn't a fallible API in the first place today. The
Java API now explicitly throws a checked IOException instead of
IllegalArgumentException.
2024-05-08 16:18:03 -07:00
Jordan Rose
0ac953032e Bump to version v0.46.0 2024-05-02 15:45:30 -07:00
Sergey Skrobotov
ab733bf00a libsignal-net: support for User-Agent header 2024-05-01 20:02:08 -07:00
Jordan Rose
b1eee0a551 Put the type name in ZkGroupDeserializationFailure
This is a compromise between not revealing what *specifically* is
invalid when a zkgroup type fails to deserialize, and not knowing what
failed at all when several deserializations are attempted in a row.
2024-05-01 15:16:37 -07:00
Jordan Rose
cc12c6f3c8 Make ServiceId Ord/Comparable
ACIs are sorted before PNIs, then the UUIDs are sorted by their
(unsigned) bytes. This provides a total order, if a relatively
arbitrary one.
2024-05-01 10:34:21 -07:00
Max Moiseev
46780fb8c5 Bump to version 0.45.1 2024-04-26 13:47:42 -07:00
Jordan Rose
060284ccec node: Add an integration test for connecting via proxy 2024-04-24 13:14:05 -07:00
Jordan Rose
ada822434e Bump to version v0.45.0 2024-04-19 15:15:20 -07:00
Sergey Skrobotov
eb3929f1bf libsignal-net: expose ipv6_enabled DnsResolver option to Node 2024-04-19 14:14:45 -07:00
Jordan Rose
9f53f3d1e7 BackupAuthCredential: verify the redemption time on receive
This is passed both within the credential response and outside it, so
it's important to make sure the two times match.
2024-04-19 13:41:59 -07:00
ravi-signal
9204831745 Use an enum for BackupAuthCredential's level 2024-04-19 11:46:49 -07:00
Jordan Rose
3d2471cc8b Make LIBSIGNAL_TESTING_ env vars available to Android and iOS tests
And adjust the existing ENCLAVE_SECRET tests and examples to use this
(including Rust and Node's).

This also requires adding an AndroidManifest.xml that notes the tests
might use the network.
2024-04-17 16:06:46 -07:00
Jordan Rose
505408ab22 test: Add missing raised timeout to SVR3 integration test 2024-04-16 11:32:08 -07:00
Sergey Skrobotov
3864f33b4d libsignal-net: dropping DebugInfo.connectionReused field 2024-04-16 10:20:00 -07:00
Alex Konradi
f72f33d3ee Remove code that handles auth cred with ACI as PNI
These functions are unused in client and server code.
2024-04-11 17:08:18 -04:00
Alex Konradi
06c1780a14 Hold server zkparams as pointers 2024-04-09 16:13:22 -04:00
Sergey Skrobotov
02e03ee057 Bump to version v0.44.0 2024-04-02 17:27:23 -07:00
Alex Konradi
79bab1ce78 Expose TLS proxy in app libraries
Co-authored-by: Sergey Skrobotov <sergey@signal.org>
2024-04-02 16:22:18 -04:00
Sergey Skrobotov
a829c8f2e3 libsignal-net: introducing a separate ChatService class for Node 2024-04-01 16:25:23 -07:00
Alex Konradi
3ace227578 Bump to version v0.43.0 2024-04-01 15:05:31 -04:00
Jordan Rose
96fce497db Bridge unauthenticated connection to Swift
- Remove From<http::header::ToStrError> for ChatServiceError
- bridge: Response -> ChatResponse, DebugInfo -> ChatServiceDebugInfo
2024-04-01 09:24:46 -07:00
Alex Konradi
10a6d8b744 Remove enclave operation timeout arguments
The enclave interactions have internal progress monitoring in the form of 
websocket PING/PONG frames, so the timeout parameters aren't necessary for 
broken connection detection.
2024-03-29 18:13:40 -04:00