Commit Graph
31 Commits
Author SHA1 Message Date
Ravi Khadiwala 59f704b6cc Add omnibus H2 server and update to dropwizard 5.0.1 2026-05-18 11:27:17 -05:00
Ravi Khadiwalaandravi-signal 0f7d5d7fa4 normalize header combination, special-case user-agent header 2026-05-18 11:25:48 -05:00
Ravi Khadiwalaandravi-signal 2c9676a1ef Revert omnibus H2 server and dropwizard 5.0.1 2026-05-15 12:13:54 -05:00
Ravi Khadiwalaandravi-signal 4c4282162f Update to dropwizard 5.0.1 2026-05-15 09:44:38 -05:00
ravi-signalandGitHub 7e9da6d7ce Add a request tag for listen port 2026-02-05 16:18:09 -06:00
Ravi Khadiwalaandravi-signal faa74469ea Revert "Update to Dropwizard 5"
This reverts commit 4dbd564442.
2025-11-06 17:20:41 -06:00
4dbd564442 Update to Dropwizard 5
Co-authored-by: Chris Eager <chris@signal.org>
2025-11-04 12:18:56 -06:00
Jon ChambersandGitHub c952baa672 Don't cache authenticated accounts in memory 2025-06-23 09:40:05 -04:00
Jon ChambersandJon Chambers 4f1cab407f Simplify WebSocket authentication failure handling 2025-06-17 10:41:29 -04:00
Jon ChambersandJon Chambers 552079d3c2 Add an interceptor interface for WebSocket authentication 2025-03-04 08:35:01 -05:00
Chris EagerandGitHub dd4bc23e4f Update to Dropwizard 4 2024-11-11 16:32:24 -06:00
Ravi Khadiwalaandravi-signal 9e510a678c disable response buffering on the websocket
Jersey buffers responses (by default up to 8192 bytes) just so it can
add a content length to responses. We already buffer our responses to
serialize them as protos, so we can compute the content length
ourselves. Setting the buffer to zero disables buffering.
2024-03-08 13:46:00 -06:00
Ravi Khadiwalaandravi-signal 26ffa19f36 Lifecycle management for Account objects reused accross websocket requests 2024-02-22 12:05:32 -06:00
Chris EagerandChris Eager 2ab14ca59e Refactor remote address/X-Forwarded-For handling 2024-02-05 13:37:06 -06:00
Chris EagerandGitHub 84b56ae1b2 Upgrade to dropwizard 3.0 2023-11-16 17:57:48 -06:00
Jon ChambersandJon Chambers e078161e2f Consistently use HttpHeaders.X_FORWARDED_FOR 2023-11-15 17:09:36 -05:00
Sergey Skrobotov c32067759c refactoring: use constants for header names 2022-11-15 11:16:49 -08:00
erik-signalandErik Osheim 966c3a8f47 Add routing for stories. 2022-10-05 10:44:50 -04:00
Chris EagerandChris Eager bd820e6d2e Migrate websocket-resources test to JUnit 5 and .editorconfig 2021-08-19 14:09:57 -05:00
Chris EagerandChris Eager 19f7b207b7 Extract configuration for WebSocket max message sizes 2021-08-19 14:09:57 -05:00
Chris EagerandChris Eager 095fc8140e Increase from default binary message size 2021-08-06 12:56:34 -05:00
Sophiah HoandGitHub 1fd1207bf6 Prevent unit tests from failing for machines with a non-US default Locale 2021-07-27 13:01:48 -04:00
Chris EagerandChris Eager f98dd80941 Reorganize and expand dependency declarations to fix mvn verify failures 2021-05-20 14:12:37 -05:00
Jon ChambersandJon Chambers 3cdc58200a Copy headers from the initial websocket upgrade request into subsequent resource requests. 2021-03-10 14:54:11 -05:00
Ehren Kret d09b36b1d5 Fix deprecated imports for Java6Assertions and Matchers 2021-02-08 09:45:33 -06:00
Ehren Kret 2f7bb3499d Make copyright notices consistent
Use SPDX-License-Identifier copyright notices and apply consistently
to source throughout the repo. This covers all modules except
service. That one will be updated in a subsequent commit.
2020-10-23 10:16:02 -05:00
Jeff HodgesandJon Chambers e3af0a13da allow "+" before a timezone in request log tests
GitHub Actions runs in UTC where the timezone starts with a "+" instead
of our local dev machines (in PT or ET) which start with a "-" in
numeric form. So, we expand the regex to allow for those in
WebSocketRequestLogTest.

Along the way, we change from calling `matches` directly on the strings
to calling it on the `assertThat` to get better test output.
2020-06-25 17:14:53 -04:00
Jon Chambers 0ca123f4bc Fix a missing mock. 2020-06-17 15:43:28 -04:00
Jon ChambersandJon Chambers eb8b5e5c01 Always copy HTTP response headers to websocket responses. 2020-05-22 15:13:39 -04:00
Moxie Marlinspike 009f81a9a6 Update to dropwizard 2.x 2020-03-14 16:30:13 -07:00
Moxie Marlinspike 9220f4d829 Add websocket-resources as a module 2019-05-01 13:19:15 -07:00