Compare commits

..
Author SHA1 Message Date
Jon Chambers ff642c1ae5 Retire an old metric tag for debugging desktop clients 2026-10-13 13:37:12 -04:00
Chris Eager b6685b5140 Stop subscribing to un-namespaced provisioning pub-sub 2026-10-13 13:36:34 -04:00
Chris Eager e3b303e2c8 Add expiration to TUS JWT 2026-10-13 12:45:39 -04:00
Chris Eager 1f77698420 Remove conflicting opentelemetry-bom dependency 2026-10-13 12:45:23 -04:00
Chris Eager 03b4f16ac3 Stop publishing to un-namespaced provisioning pub-sub 2026-10-13 12:05:27 -04:00
Chris Eager 01eb99d281 Update to the latest version of the spam filter 2026-10-13 11:35:51 -04:00
dependabot[bot] 73d3c88ef4 Bump the minor-java-dependencies group across 4 directories with 11 updates
Bumps the minor-java-dependencies group with 8 updates in the /api-doc directory:

| Package | From | To |
| --- | --- | --- |
| [com.google.cloud:libraries-bom](https://github.com/googleapis/google-cloud-java) | `26.89.0` | `26.90.0` |
| software.amazon.awssdk:bom | `2.55.6` | `2.55.14` |
| [io.opentelemetry:opentelemetry-bom](https://github.com/open-telemetry/opentelemetry-java) | `1.66.0` | `1.67.0` |
| [io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom](https://github.com/open-telemetry/opentelemetry-java-instrumentation) | `2.31.1` | `2.32.0` |
| [org.jetbrains.kotlin:kotlin-bom](https://github.com/JetBrains/kotlin) | `2.4.20` | `2.4.21` |
| [com.googlecode.libphonenumber:libphonenumber](https://github.com/google/libphonenumber) | `9.0.40` | `9.0.41` |
| [com.google.guava:guava](https://github.com/google/guava) | `33.7.1-jre` | `33.7.2-jre` |
| [org.signal:libsignal-server](https://github.com/signalapp/libsignal) | `0.103.0` | `0.105.0` |

Bumps the minor-java-dependencies group with 8 updates in the /integration-tests directory:

| Package | From | To |
| --- | --- | --- |
| [com.google.cloud:libraries-bom](https://github.com/googleapis/google-cloud-java) | `26.89.0` | `26.90.0` |
| software.amazon.awssdk:bom | `2.55.6` | `2.55.14` |
| [io.opentelemetry:opentelemetry-bom](https://github.com/open-telemetry/opentelemetry-java) | `1.66.0` | `1.67.0` |
| [io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom](https://github.com/open-telemetry/opentelemetry-java-instrumentation) | `2.31.1` | `2.32.0` |
| [org.jetbrains.kotlin:kotlin-bom](https://github.com/JetBrains/kotlin) | `2.4.20` | `2.4.21` |
| [com.googlecode.libphonenumber:libphonenumber](https://github.com/google/libphonenumber) | `9.0.40` | `9.0.41` |
| [com.google.guava:guava](https://github.com/google/guava) | `33.7.1-jre` | `33.7.2-jre` |
| [org.signal:libsignal-server](https://github.com/signalapp/libsignal) | `0.103.0` | `0.105.0` |

Bumps the minor-java-dependencies group with 11 updates in the /service directory:

| Package | From | To |
| --- | --- | --- |
| [com.google.cloud:libraries-bom](https://github.com/googleapis/google-cloud-java) | `26.89.0` | `26.90.0` |
| software.amazon.awssdk:bom | `2.55.6` | `2.55.14` |
| [io.opentelemetry:opentelemetry-bom](https://github.com/open-telemetry/opentelemetry-java) | `1.66.0` | `1.67.0` |
| [io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom](https://github.com/open-telemetry/opentelemetry-java-instrumentation) | `2.31.1` | `2.32.0` |
| [org.jetbrains.kotlin:kotlin-bom](https://github.com/JetBrains/kotlin) | `2.4.20` | `2.4.21` |
| [com.googlecode.libphonenumber:libphonenumber](https://github.com/google/libphonenumber) | `9.0.40` | `9.0.41` |
| [com.google.guava:guava](https://github.com/google/guava) | `33.7.1-jre` | `33.7.2-jre` |
| [org.signal:libsignal-server](https://github.com/signalapp/libsignal) | `0.103.0` | `0.105.0` |
| [io.opentelemetry.instrumentation:opentelemetry-logback-appender-1.0](https://github.com/open-telemetry/opentelemetry-java-instrumentation) | `2.31.1-alpha` | `2.32.0-alpha` |
| [org.codehaus.woodstox:stax2-api](https://github.com/FasterXML/stax2-api) | `4.3.1` | `4.3.2` |
| [com.googlecode.libphonenumber:geocoder](https://github.com/google/libphonenumber) | `3.40` | `3.41` |

Bumps the minor-java-dependencies group with 8 updates in the /websocket-resources directory:

| Package | From | To |
| --- | --- | --- |
| [com.google.cloud:libraries-bom](https://github.com/googleapis/google-cloud-java) | `26.89.0` | `26.90.0` |
| software.amazon.awssdk:bom | `2.55.6` | `2.55.14` |
| [io.opentelemetry:opentelemetry-bom](https://github.com/open-telemetry/opentelemetry-java) | `1.66.0` | `1.67.0` |
| [io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom](https://github.com/open-telemetry/opentelemetry-java-instrumentation) | `2.31.1` | `2.32.0` |
| [org.jetbrains.kotlin:kotlin-bom](https://github.com/JetBrains/kotlin) | `2.4.20` | `2.4.21` |
| [com.googlecode.libphonenumber:libphonenumber](https://github.com/google/libphonenumber) | `9.0.40` | `9.0.41` |
| [com.google.guava:guava](https://github.com/google/guava) | `33.7.1-jre` | `33.7.2-jre` |
| [org.signal:libsignal-server](https://github.com/signalapp/libsignal) | `0.103.0` | `0.105.0` |



Updates `com.google.cloud:libraries-bom` from 26.89.0 to 26.90.0
- [Release notes](https://github.com/googleapis/google-cloud-java/releases)
- [Changelog](https://github.com/googleapis/google-cloud-java/blob/main/CHANGELOG.md)
- [Commits](https://github.com/googleapis/google-cloud-java/compare/libraries-bom/v26.89.0...libraries-bom/v26.90.0)

Updates `software.amazon.awssdk:bom` from 2.55.6 to 2.55.14

Updates `io.opentelemetry:opentelemetry-bom` from 1.66.0 to 1.67.0
- [Release notes](https://github.com/open-telemetry/opentelemetry-java/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-java/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-java/compare/v1.66.0...v1.67.0)

Updates `io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom` from 2.31.1 to 2.32.0
- [Release notes](https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-java-instrumentation/compare/v2.31.1...v2.32.0)

Updates `org.jetbrains.kotlin:kotlin-bom` from 2.4.20 to 2.4.21
- [Release notes](https://github.com/JetBrains/kotlin/releases)
- [Changelog](https://github.com/JetBrains/kotlin/blob/master/ChangeLog.md)
- [Commits](https://github.com/JetBrains/kotlin/compare/v2.4.20...v2.4.21)

Updates `com.googlecode.libphonenumber:libphonenumber` from 9.0.40 to 9.0.41
- [Release notes](https://github.com/google/libphonenumber/releases)
- [Changelog](https://github.com/google/libphonenumber/blob/master/release_notes.txt)
- [Commits](https://github.com/google/libphonenumber/compare/v9.0.40...v9.0.41)

Updates `com.google.guava:guava` from 33.7.1-jre to 33.7.2-jre
- [Release notes](https://github.com/google/guava/releases)
- [Commits](https://github.com/google/guava/commits)

Updates `org.signal:libsignal-server` from 0.103.0 to 0.105.0
- [Release notes](https://github.com/signalapp/libsignal/releases)
- [Changelog](https://github.com/signalapp/libsignal/blob/main/RELEASE_NOTES.md)
- [Commits](https://github.com/signalapp/libsignal/compare/v0.103.0...v0.105.0)

Updates `com.google.cloud:libraries-bom` from 26.89.0 to 26.90.0
- [Release notes](https://github.com/googleapis/google-cloud-java/releases)
- [Changelog](https://github.com/googleapis/google-cloud-java/blob/main/CHANGELOG.md)
- [Commits](https://github.com/googleapis/google-cloud-java/compare/libraries-bom/v26.89.0...libraries-bom/v26.90.0)

Updates `software.amazon.awssdk:bom` from 2.55.6 to 2.55.14

Updates `io.opentelemetry:opentelemetry-bom` from 1.66.0 to 1.67.0
- [Release notes](https://github.com/open-telemetry/opentelemetry-java/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-java/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-java/compare/v1.66.0...v1.67.0)

Updates `io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom` from 2.31.1 to 2.32.0
- [Release notes](https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-java-instrumentation/compare/v2.31.1...v2.32.0)

Updates `org.jetbrains.kotlin:kotlin-bom` from 2.4.20 to 2.4.21
- [Release notes](https://github.com/JetBrains/kotlin/releases)
- [Changelog](https://github.com/JetBrains/kotlin/blob/master/ChangeLog.md)
- [Commits](https://github.com/JetBrains/kotlin/compare/v2.4.20...v2.4.21)

Updates `com.googlecode.libphonenumber:libphonenumber` from 9.0.40 to 9.0.41
- [Release notes](https://github.com/google/libphonenumber/releases)
- [Changelog](https://github.com/google/libphonenumber/blob/master/release_notes.txt)
- [Commits](https://github.com/google/libphonenumber/compare/v9.0.40...v9.0.41)

Updates `com.google.guava:guava` from 33.7.1-jre to 33.7.2-jre
- [Release notes](https://github.com/google/guava/releases)
- [Commits](https://github.com/google/guava/commits)

Updates `org.signal:libsignal-server` from 0.103.0 to 0.105.0
- [Release notes](https://github.com/signalapp/libsignal/releases)
- [Changelog](https://github.com/signalapp/libsignal/blob/main/RELEASE_NOTES.md)
- [Commits](https://github.com/signalapp/libsignal/compare/v0.103.0...v0.105.0)

Updates `com.google.cloud:libraries-bom` from 26.89.0 to 26.90.0
- [Release notes](https://github.com/googleapis/google-cloud-java/releases)
- [Changelog](https://github.com/googleapis/google-cloud-java/blob/main/CHANGELOG.md)
- [Commits](https://github.com/googleapis/google-cloud-java/compare/libraries-bom/v26.89.0...libraries-bom/v26.90.0)

Updates `software.amazon.awssdk:bom` from 2.55.6 to 2.55.14

Updates `io.opentelemetry:opentelemetry-bom` from 1.66.0 to 1.67.0
- [Release notes](https://github.com/open-telemetry/opentelemetry-java/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-java/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-java/compare/v1.66.0...v1.67.0)

Updates `io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom` from 2.31.1 to 2.32.0
- [Release notes](https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-java-instrumentation/compare/v2.31.1...v2.32.0)

Updates `org.jetbrains.kotlin:kotlin-bom` from 2.4.20 to 2.4.21
- [Release notes](https://github.com/JetBrains/kotlin/releases)
- [Changelog](https://github.com/JetBrains/kotlin/blob/master/ChangeLog.md)
- [Commits](https://github.com/JetBrains/kotlin/compare/v2.4.20...v2.4.21)

Updates `com.googlecode.libphonenumber:libphonenumber` from 9.0.40 to 9.0.41
- [Release notes](https://github.com/google/libphonenumber/releases)
- [Changelog](https://github.com/google/libphonenumber/blob/master/release_notes.txt)
- [Commits](https://github.com/google/libphonenumber/compare/v9.0.40...v9.0.41)

Updates `com.google.guava:guava` from 33.7.1-jre to 33.7.2-jre
- [Release notes](https://github.com/google/guava/releases)
- [Commits](https://github.com/google/guava/commits)

Updates `org.signal:libsignal-server` from 0.103.0 to 0.105.0
- [Release notes](https://github.com/signalapp/libsignal/releases)
- [Changelog](https://github.com/signalapp/libsignal/blob/main/RELEASE_NOTES.md)
- [Commits](https://github.com/signalapp/libsignal/compare/v0.103.0...v0.105.0)

Updates `io.opentelemetry.instrumentation:opentelemetry-logback-appender-1.0` from 2.31.1-alpha to 2.32.0-alpha
- [Release notes](https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-java-instrumentation/commits)

Updates `org.codehaus.woodstox:stax2-api` from 4.3.1 to 4.3.2
- [Commits](https://github.com/FasterXML/stax2-api/compare/stax2-api-4.3.1...stax2-api-4.3.2)

Updates `com.googlecode.libphonenumber:geocoder` from 3.40 to 3.41
- [Release notes](https://github.com/google/libphonenumber/releases)
- [Changelog](https://github.com/google/libphonenumber/blob/master/release_notes.txt)
- [Commits](https://github.com/google/libphonenumber/commits)

Updates `com.google.cloud:libraries-bom` from 26.89.0 to 26.90.0
- [Release notes](https://github.com/googleapis/google-cloud-java/releases)
- [Changelog](https://github.com/googleapis/google-cloud-java/blob/main/CHANGELOG.md)
- [Commits](https://github.com/googleapis/google-cloud-java/compare/libraries-bom/v26.89.0...libraries-bom/v26.90.0)

Updates `software.amazon.awssdk:bom` from 2.55.6 to 2.55.14

Updates `io.opentelemetry:opentelemetry-bom` from 1.66.0 to 1.67.0
- [Release notes](https://github.com/open-telemetry/opentelemetry-java/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-java/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-java/compare/v1.66.0...v1.67.0)

Updates `io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom` from 2.31.1 to 2.32.0
- [Release notes](https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-java-instrumentation/compare/v2.31.1...v2.32.0)

Updates `org.jetbrains.kotlin:kotlin-bom` from 2.4.20 to 2.4.21
- [Release notes](https://github.com/JetBrains/kotlin/releases)
- [Changelog](https://github.com/JetBrains/kotlin/blob/master/ChangeLog.md)
- [Commits](https://github.com/JetBrains/kotlin/compare/v2.4.20...v2.4.21)

Updates `com.googlecode.libphonenumber:libphonenumber` from 9.0.40 to 9.0.41
- [Release notes](https://github.com/google/libphonenumber/releases)
- [Changelog](https://github.com/google/libphonenumber/blob/master/release_notes.txt)
- [Commits](https://github.com/google/libphonenumber/compare/v9.0.40...v9.0.41)

Updates `com.google.guava:guava` from 33.7.1-jre to 33.7.2-jre
- [Release notes](https://github.com/google/guava/releases)
- [Commits](https://github.com/google/guava/commits)

Updates `org.signal:libsignal-server` from 0.103.0 to 0.105.0
- [Release notes](https://github.com/signalapp/libsignal/releases)
- [Changelog](https://github.com/signalapp/libsignal/blob/main/RELEASE_NOTES.md)
- [Commits](https://github.com/signalapp/libsignal/compare/v0.103.0...v0.105.0)

---
updated-dependencies:
- dependency-name: com.google.cloud:libraries-bom
  dependency-version: 26.90.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: software.amazon.awssdk:bom
  dependency-version: 2.55.14
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: io.opentelemetry:opentelemetry-bom
  dependency-version: 1.67.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom
  dependency-version: 2.32.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: org.jetbrains.kotlin:kotlin-bom
  dependency-version: 2.4.21
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: com.googlecode.libphonenumber:libphonenumber
  dependency-version: 9.0.41
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: com.google.guava:guava
  dependency-version: 33.7.2-jre
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: org.signal:libsignal-server
  dependency-version: 0.105.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: com.google.cloud:libraries-bom
  dependency-version: 26.90.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: software.amazon.awssdk:bom
  dependency-version: 2.55.14
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: io.opentelemetry:opentelemetry-bom
  dependency-version: 1.67.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom
  dependency-version: 2.32.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: org.jetbrains.kotlin:kotlin-bom
  dependency-version: 2.4.21
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: com.googlecode.libphonenumber:libphonenumber
  dependency-version: 9.0.41
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: com.google.guava:guava
  dependency-version: 33.7.2-jre
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: org.signal:libsignal-server
  dependency-version: 0.105.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: com.google.cloud:libraries-bom
  dependency-version: 26.90.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: software.amazon.awssdk:bom
  dependency-version: 2.55.14
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: io.opentelemetry:opentelemetry-bom
  dependency-version: 1.67.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom
  dependency-version: 2.32.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: org.jetbrains.kotlin:kotlin-bom
  dependency-version: 2.4.21
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: com.googlecode.libphonenumber:libphonenumber
  dependency-version: 9.0.41
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: com.google.guava:guava
  dependency-version: 33.7.2-jre
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: org.signal:libsignal-server
  dependency-version: 0.105.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: io.opentelemetry.instrumentation:opentelemetry-logback-appender-1.0
  dependency-version: 2.32.0-alpha
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: org.codehaus.woodstox:stax2-api
  dependency-version: 4.3.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: com.googlecode.libphonenumber:geocoder
  dependency-version: '3.41'
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: com.google.cloud:libraries-bom
  dependency-version: 26.90.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: software.amazon.awssdk:bom
  dependency-version: 2.55.14
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: io.opentelemetry:opentelemetry-bom
  dependency-version: 1.67.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom
  dependency-version: 2.32.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: org.jetbrains.kotlin:kotlin-bom
  dependency-version: 2.4.21
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: com.googlecode.libphonenumber:libphonenumber
  dependency-version: 9.0.41
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: com.google.guava:guava
  dependency-version: 33.7.2-jre
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: org.signal:libsignal-server
  dependency-version: 0.105.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-10-13 11:34:43 -04:00
Chris Eager 5fde1d8f7b Add namespace to provisioning pub-sub 2026-10-13 10:56:47 -04:00
Chris Eager 367854ea14 Refine BoringSslServerKeyManager 2026-10-13 10:55:28 -04:00
Chris Eager f46d6c566b Update to netty 4.2.19.Final 2026-10-13 10:55:28 -04:00
Chris Eager 9d4280938e Update webauthn4j to 0.31.11.RELEASE 2026-10-13 10:55:04 -04:00
Chris Eager b898880a0d Revert to jetty 12.1.9 2026-10-13 10:55:04 -04:00
Chris Eager 7857f85710 Updates for dependency convergence 2026-10-13 10:55:04 -04:00
dependabot[bot] 635350d66a Bump the minor-java-dependencies group across 2 directories with 30 updates
Bumps the minor-java-dependencies group with 22 updates in the /integration-tests directory:

| Package | From | To |
| --- | --- | --- |
| [com.webauthn4j:webauthn4j-test](https://github.com/webauthn4j/webauthn4j) | `0.31.9.RELEASE` | `0.31.10.RELEASE` |
| [org.apache.maven.plugins:maven-surefire-plugin](https://github.com/apache/maven-surefire) | `3.5.6` | `3.6.0` |
| [org.apache.maven.plugins:maven-failsafe-plugin](https://github.com/apache/maven-surefire) | `3.5.6` | `3.6.0` |
| [com.fasterxml.jackson:jackson-bom](https://github.com/FasterXML/jackson-bom) | `2.22.2` | `2.22.3` |
| [org.eclipse.jetty:jetty-bom](https://github.com/jetty/jetty.project) | `12.1.9` | `12.1.13` |
| [org.eclipse.jetty.ee10:jetty-ee10-bom](https://github.com/jetty/jetty.project) | `12.1.9` | `12.1.13` |
| [org.eclipse.jetty.ee10:jetty-ee10-bom](https://github.com/jetty/jetty.project) | `12.1.9` | `12.1.13` |
| [com.google.protobuf:protobuf-bom](https://github.com/protocolbuffers/protobuf) | `4.36.0` | `4.36.2` |
| [com.google.cloud:libraries-bom](https://github.com/googleapis/google-cloud-java) | `26.87.0` | `26.89.0` |
| software.amazon.awssdk:bom | `2.54.7` | `2.55.6` |
| [io.opentelemetry:opentelemetry-bom](https://github.com/open-telemetry/opentelemetry-java) | `1.65.0` | `1.66.0` |
| [org.jetbrains.kotlin:kotlin-bom](https://github.com/JetBrains/kotlin) | `2.4.10` | `2.4.20` |
| [com.googlecode.libphonenumber:libphonenumber](https://github.com/google/libphonenumber) | `9.0.38` | `9.0.40` |
| org.slf4j:slf4j-api | `2.0.18` | `2.0.20` |
| org.slf4j:slf4j-nop | `2.0.18` | `2.0.20` |
| org.slf4j:slf4j-nop | `2.0.18` | `2.0.20` |
| [com.stripe:stripe-java](https://github.com/stripe/stripe-java) | `33.4.0` | `33.4.2` |
| [com.braintreepayments.gateway:braintree-java](https://github.com/braintree/braintree_java) | `3.53.0` | `3.54.0` |
| [org.signal:libsignal-server](https://github.com/signalapp/libsignal) | `0.101.2` | `0.103.0` |
| [org.codehaus.mojo:exec-maven-plugin](https://github.com/mojohaus/exec-maven-plugin) | `3.6.3` | `3.6.4` |
| [org.codehaus.mojo:properties-maven-plugin](https://github.com/mojohaus/properties-maven-plugin) | `1.3.0` | `1.3.1` |
| [org.apache.maven.plugins:maven-compiler-plugin](https://github.com/apache/maven-compiler-plugin) | `3.15.0` | `3.16.0` |
| [org.apache.maven.plugins:maven-install-plugin](https://github.com/apache/maven-install-plugin) | `3.1.4` | `3.2.0` |
| [org.apache.maven.plugins:maven-deploy-plugin](https://github.com/apache/maven-deploy-plugin) | `3.1.4` | `3.2.0` |
| [org.signal:libsignal-server](https://github.com/signalapp/libsignal) | `0.101.2` | `0.103.0` |
| org.slf4j:slf4j-api | `2.0.18` | `2.0.20` |
| [com.googlecode.libphonenumber:libphonenumber](https://github.com/google/libphonenumber) | `9.0.38` | `9.0.40` |
| [com.webauthn4j:webauthn4j-test](https://github.com/webauthn4j/webauthn4j) | `0.31.9.RELEASE` | `0.31.10.RELEASE` |
| [com.stripe:stripe-java](https://github.com/stripe/stripe-java) | `33.4.0` | `33.4.2` |
| [com.braintreepayments.gateway:braintree-java](https://github.com/braintree/braintree_java) | `3.53.0` | `3.54.0` |
| [org.codehaus.mojo:properties-maven-plugin](https://github.com/mojohaus/properties-maven-plugin) | `1.3.0` | `1.3.1` |
| [org.codehaus.mojo:exec-maven-plugin](https://github.com/mojohaus/exec-maven-plugin) | `3.6.3` | `3.6.4` |
| [org.apache.maven.plugins:maven-surefire-plugin](https://github.com/apache/maven-surefire) | `3.5.6` | `3.6.0` |
| [com.fasterxml.jackson:jackson-bom](https://github.com/FasterXML/jackson-bom) | `2.22.2` | `2.22.3` |
| [org.eclipse.jetty:jetty-bom](https://github.com/jetty/jetty.project) | `12.1.9` | `12.1.13` |
| [org.eclipse.jetty.ee10:jetty-ee10-bom](https://github.com/jetty/jetty.project) | `12.1.9` | `12.1.13` |
| [com.google.protobuf:protobuf-bom](https://github.com/protocolbuffers/protobuf) | `4.36.0` | `4.36.2` |
| [com.google.cloud:libraries-bom](https://github.com/googleapis/google-cloud-java) | `26.87.0` | `26.89.0` |
| software.amazon.awssdk:bom | `2.54.7` | `2.55.6` |
| [io.opentelemetry:opentelemetry-bom](https://github.com/open-telemetry/opentelemetry-java) | `1.65.0` | `1.66.0` |
| [org.jetbrains.kotlin:kotlin-bom](https://github.com/JetBrains/kotlin) | `2.4.10` | `2.4.20` |
| org.slf4j:slf4j-nop | `2.0.18` | `2.0.20` |
| [org.apache.maven.plugins:maven-failsafe-plugin](https://github.com/apache/maven-surefire) | `3.5.6` | `3.6.0` |
| [org.apache.maven.plugins:maven-compiler-plugin](https://github.com/apache/maven-compiler-plugin) | `3.15.0` | `3.16.0` |
| [org.apache.maven.plugins:maven-install-plugin](https://github.com/apache/maven-install-plugin) | `3.1.4` | `3.2.0` |
| [org.apache.maven.plugins:maven-deploy-plugin](https://github.com/apache/maven-deploy-plugin) | `3.1.4` | `3.2.0` |

Bumps the minor-java-dependencies group with 30 updates in the /service directory:

| Package | From | To |
| --- | --- | --- |
| [com.webauthn4j:webauthn4j-test](https://github.com/webauthn4j/webauthn4j) | `0.31.9.RELEASE` | `0.31.10.RELEASE` |
| [org.apache.maven.plugins:maven-surefire-plugin](https://github.com/apache/maven-surefire) | `3.5.6` | `3.6.0` |
| [org.apache.maven.plugins:maven-failsafe-plugin](https://github.com/apache/maven-surefire) | `3.5.6` | `3.6.0` |
| [com.fasterxml.jackson:jackson-bom](https://github.com/FasterXML/jackson-bom) | `2.22.2` | `2.22.3` |
| [org.eclipse.jetty:jetty-bom](https://github.com/jetty/jetty.project) | `12.1.9` | `12.1.13` |
| [org.eclipse.jetty.ee10:jetty-ee10-bom](https://github.com/jetty/jetty.project) | `12.1.9` | `12.1.13` |
| [com.google.protobuf:protobuf-bom](https://github.com/protocolbuffers/protobuf) | `4.36.0` | `4.36.2` |
| [com.google.cloud:libraries-bom](https://github.com/googleapis/google-cloud-java) | `26.87.0` | `26.89.0` |
| software.amazon.awssdk:bom | `2.54.7` | `2.55.6` |
| [io.opentelemetry:opentelemetry-bom](https://github.com/open-telemetry/opentelemetry-java) | `1.65.0` | `1.66.0` |
| [org.jetbrains.kotlin:kotlin-bom](https://github.com/JetBrains/kotlin) | `2.4.10` | `2.4.20` |
| [com.googlecode.libphonenumber:libphonenumber](https://github.com/google/libphonenumber) | `9.0.38` | `9.0.40` |
| org.slf4j:slf4j-api | `2.0.18` | `2.0.20` |
| org.slf4j:slf4j-nop | `2.0.18` | `2.0.20` |
| [com.stripe:stripe-java](https://github.com/stripe/stripe-java) | `33.4.0` | `33.4.2` |
| [com.braintreepayments.gateway:braintree-java](https://github.com/braintree/braintree_java) | `3.53.0` | `3.54.0` |
| [org.signal:libsignal-server](https://github.com/signalapp/libsignal) | `0.101.2` | `0.103.0` |
| [org.codehaus.mojo:exec-maven-plugin](https://github.com/mojohaus/exec-maven-plugin) | `3.6.3` | `3.6.4` |
| [org.codehaus.mojo:properties-maven-plugin](https://github.com/mojohaus/properties-maven-plugin) | `1.3.0` | `1.3.1` |
| [org.apache.maven.plugins:maven-compiler-plugin](https://github.com/apache/maven-compiler-plugin) | `3.15.0` | `3.16.0` |
| [org.apache.maven.plugins:maven-install-plugin](https://github.com/apache/maven-install-plugin) | `3.1.4` | `3.2.0` |
| [org.apache.maven.plugins:maven-deploy-plugin](https://github.com/apache/maven-deploy-plugin) | `3.1.4` | `3.2.0` |
| [com.auth0:java-jwt](https://github.com/auth0/java-jwt) | `4.6.0` | `4.6.1` |
| [com.webauthn4j:webauthn4j-appattest](https://github.com/webauthn4j/webauthn4j) | `0.31.9.RELEASE` | `0.31.10.RELEASE` |
| [com.webauthn4j:webauthn4j-core](https://github.com/webauthn4j/webauthn4j) | `0.31.9.RELEASE` | `0.31.10.RELEASE` |
| io.swagger.core.v3:swagger-jaxrs2-jakarta | `2.2.54` | `2.2.55` |
| [org.signal:libsignal-server](https://github.com/signalapp/libsignal) | `0.101.2` | `0.103.0` |
| org.slf4j:slf4j-api | `2.0.18` | `2.0.20` |
| [com.google.firebase:firebase-admin](https://github.com/firebase/firebase-admin-java) | `9.10.0` | `9.11.0` |
| [org.codehaus.woodstox:stax2-api](https://github.com/FasterXML/stax2-api) | `4.3.0` | `4.3.1` |
| [com.googlecode.libphonenumber:libphonenumber](https://github.com/google/libphonenumber) | `9.0.38` | `9.0.40` |
| [com.googlecode.libphonenumber:geocoder](https://github.com/google/libphonenumber) | `3.38` | `3.40` |
| [com.webauthn4j:webauthn4j-test](https://github.com/webauthn4j/webauthn4j) | `0.31.9.RELEASE` | `0.31.10.RELEASE` |
| [com.stripe:stripe-java](https://github.com/stripe/stripe-java) | `33.4.0` | `33.4.2` |
| [com.braintreepayments.gateway:braintree-java](https://github.com/braintree/braintree_java) | `3.53.0` | `3.54.0` |
| [org.codehaus.mojo:properties-maven-plugin](https://github.com/mojohaus/properties-maven-plugin) | `1.3.0` | `1.3.1` |
| [org.codehaus.mojo:exec-maven-plugin](https://github.com/mojohaus/exec-maven-plugin) | `3.6.3` | `3.6.4` |
| [org.codehaus.mojo:templating-maven-plugin](https://github.com/mojohaus/templating-maven-plugin) | `3.1.0` | `3.1.1` |
| [org.apache.maven.plugins:maven-surefire-plugin](https://github.com/apache/maven-surefire) | `3.5.6` | `3.6.0` |
| [com.fasterxml.jackson:jackson-bom](https://github.com/FasterXML/jackson-bom) | `2.22.2` | `2.22.3` |
| [org.eclipse.jetty:jetty-bom](https://github.com/jetty/jetty.project) | `12.1.9` | `12.1.13` |
| [org.eclipse.jetty.ee10:jetty-ee10-bom](https://github.com/jetty/jetty.project) | `12.1.9` | `12.1.13` |
| [com.google.protobuf:protobuf-bom](https://github.com/protocolbuffers/protobuf) | `4.36.0` | `4.36.2` |
| [com.google.cloud:libraries-bom](https://github.com/googleapis/google-cloud-java) | `26.87.0` | `26.89.0` |
| software.amazon.awssdk:bom | `2.54.7` | `2.55.6` |
| [io.opentelemetry:opentelemetry-bom](https://github.com/open-telemetry/opentelemetry-java) | `1.65.0` | `1.66.0` |
| [org.jetbrains.kotlin:kotlin-bom](https://github.com/JetBrains/kotlin) | `2.4.10` | `2.4.20` |
| org.slf4j:slf4j-nop | `2.0.18` | `2.0.20` |
| [org.apache.maven.plugins:maven-failsafe-plugin](https://github.com/apache/maven-surefire) | `3.5.6` | `3.6.0` |
| [org.apache.maven.plugins:maven-compiler-plugin](https://github.com/apache/maven-compiler-plugin) | `3.15.0` | `3.16.0` |
| [org.apache.maven.plugins:maven-install-plugin](https://github.com/apache/maven-install-plugin) | `3.1.4` | `3.2.0` |
| [org.apache.maven.plugins:maven-deploy-plugin](https://github.com/apache/maven-deploy-plugin) | `3.1.4` | `3.2.0` |



Updates `com.webauthn4j:webauthn4j-test` from 0.31.9.RELEASE to 0.31.10.RELEASE
- [Release notes](https://github.com/webauthn4j/webauthn4j/releases)
- [Commits](https://github.com/webauthn4j/webauthn4j/compare/0.31.9.RELEASE...0.31.10.RELEASE)

Updates `org.apache.maven.plugins:maven-surefire-plugin` from 3.5.6 to 3.6.0
- [Release notes](https://github.com/apache/maven-surefire/releases)
- [Commits](https://github.com/apache/maven-surefire/compare/surefire-3.5.6...surefire-3.6.0)

Updates `org.apache.maven.plugins:maven-failsafe-plugin` from 3.5.6 to 3.6.0
- [Release notes](https://github.com/apache/maven-surefire/releases)
- [Commits](https://github.com/apache/maven-surefire/compare/surefire-3.5.6...surefire-3.6.0)

Updates `com.fasterxml.jackson:jackson-bom` from 2.22.2 to 2.22.3
- [Commits](https://github.com/FasterXML/jackson-bom/compare/jackson-bom-2.22.2...jackson-bom-2.22.3)

Updates `org.eclipse.jetty:jetty-bom` from 12.1.9 to 12.1.13
- [Release notes](https://github.com/jetty/jetty.project/releases)
- [Commits](https://github.com/jetty/jetty.project/compare/jetty-12.1.9...jetty-12.1.13)

Updates `org.eclipse.jetty.ee10:jetty-ee10-bom` from 12.1.9 to 12.1.13
- [Release notes](https://github.com/jetty/jetty.project/releases)
- [Commits](https://github.com/jetty/jetty.project/compare/jetty-12.1.9...jetty-12.1.13)

Updates `org.eclipse.jetty.ee10:jetty-ee10-bom` from 12.1.9 to 12.1.13
- [Release notes](https://github.com/jetty/jetty.project/releases)
- [Commits](https://github.com/jetty/jetty.project/compare/jetty-12.1.9...jetty-12.1.13)

Updates `com.google.protobuf:protobuf-bom` from 4.36.0 to 4.36.2
- [Release notes](https://github.com/protocolbuffers/protobuf/releases)
- [Commits](https://github.com/protocolbuffers/protobuf/commits)

Updates `com.google.cloud:libraries-bom` from 26.87.0 to 26.89.0
- [Release notes](https://github.com/googleapis/google-cloud-java/releases)
- [Changelog](https://github.com/googleapis/google-cloud-java/blob/main/CHANGELOG.md)
- [Commits](https://github.com/googleapis/google-cloud-java/compare/libraries-bom/v26.87.0...libraries-bom/v26.89.0)

Updates `software.amazon.awssdk:bom` from 2.54.7 to 2.55.6

Updates `io.opentelemetry:opentelemetry-bom` from 1.65.0 to 1.66.0
- [Release notes](https://github.com/open-telemetry/opentelemetry-java/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-java/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-java/compare/v1.65.0...v1.66.0)

Updates `org.jetbrains.kotlin:kotlin-bom` from 2.4.10 to 2.4.20
- [Release notes](https://github.com/JetBrains/kotlin/releases)
- [Changelog](https://github.com/JetBrains/kotlin/blob/master/ChangeLog.md)
- [Commits](https://github.com/JetBrains/kotlin/compare/v2.4.10...v2.4.20)

Updates `com.googlecode.libphonenumber:libphonenumber` from 9.0.38 to 9.0.40
- [Release notes](https://github.com/google/libphonenumber/releases)
- [Changelog](https://github.com/google/libphonenumber/blob/master/release_notes.txt)
- [Commits](https://github.com/google/libphonenumber/compare/v9.0.38...v9.0.40)

Updates `org.slf4j:slf4j-api` from 2.0.18 to 2.0.20

Updates `org.slf4j:slf4j-nop` from 2.0.18 to 2.0.20

Updates `org.slf4j:slf4j-nop` from 2.0.18 to 2.0.20

Updates `com.stripe:stripe-java` from 33.4.0 to 33.4.2
- [Release notes](https://github.com/stripe/stripe-java/releases)
- [Changelog](https://github.com/stripe/stripe-java/blob/master/CHANGELOG.md)
- [Commits](https://github.com/stripe/stripe-java/compare/v33.4.0...v33.4.2)

Updates `com.braintreepayments.gateway:braintree-java` from 3.53.0 to 3.54.0
- [Changelog](https://github.com/braintree/braintree_java/blob/master/CHANGELOG.md)
- [Commits](https://github.com/braintree/braintree_java/compare/3.53.0...3.54.0)

Updates `org.signal:libsignal-server` from 0.101.2 to 0.103.0
- [Release notes](https://github.com/signalapp/libsignal/releases)
- [Changelog](https://github.com/signalapp/libsignal/blob/v0.103.0/RELEASE_NOTES.md)
- [Commits](https://github.com/signalapp/libsignal/compare/v0.101.2...v0.103.0)

Updates `org.codehaus.mojo:exec-maven-plugin` from 3.6.3 to 3.6.4
- [Release notes](https://github.com/mojohaus/exec-maven-plugin/releases)
- [Commits](https://github.com/mojohaus/exec-maven-plugin/compare/3.6.3...3.6.4)

Updates `org.codehaus.mojo:properties-maven-plugin` from 1.3.0 to 1.3.1
- [Release notes](https://github.com/mojohaus/properties-maven-plugin/releases)
- [Commits](https://github.com/mojohaus/properties-maven-plugin/compare/properties-maven-plugin-1.3.0...properties-maven-plugin-1.3.1)

Updates `org.apache.maven.plugins:maven-compiler-plugin` from 3.15.0 to 3.16.0
- [Release notes](https://github.com/apache/maven-compiler-plugin/releases)
- [Commits](https://github.com/apache/maven-compiler-plugin/compare/maven-compiler-plugin-3.15.0...maven-compiler-plugin-3.16.0)

Updates `org.apache.maven.plugins:maven-install-plugin` from 3.1.4 to 3.2.0
- [Release notes](https://github.com/apache/maven-install-plugin/releases)
- [Commits](https://github.com/apache/maven-install-plugin/compare/maven-install-plugin-3.1.4...maven-install-plugin-3.2.0)

Updates `org.apache.maven.plugins:maven-deploy-plugin` from 3.1.4 to 3.2.0
- [Release notes](https://github.com/apache/maven-deploy-plugin/releases)
- [Commits](https://github.com/apache/maven-deploy-plugin/compare/maven-deploy-plugin-3.1.4...maven-deploy-plugin-3.2.0)

Updates `org.signal:libsignal-server` from 0.101.2 to 0.103.0
- [Release notes](https://github.com/signalapp/libsignal/releases)
- [Changelog](https://github.com/signalapp/libsignal/blob/v0.103.0/RELEASE_NOTES.md)
- [Commits](https://github.com/signalapp/libsignal/compare/v0.101.2...v0.103.0)

Updates `org.slf4j:slf4j-api` from 2.0.18 to 2.0.20

Updates `com.googlecode.libphonenumber:libphonenumber` from 9.0.38 to 9.0.40
- [Release notes](https://github.com/google/libphonenumber/releases)
- [Changelog](https://github.com/google/libphonenumber/blob/master/release_notes.txt)
- [Commits](https://github.com/google/libphonenumber/compare/v9.0.38...v9.0.40)

Updates `com.webauthn4j:webauthn4j-test` from 0.31.9.RELEASE to 0.31.10.RELEASE
- [Release notes](https://github.com/webauthn4j/webauthn4j/releases)
- [Commits](https://github.com/webauthn4j/webauthn4j/compare/0.31.9.RELEASE...0.31.10.RELEASE)

Updates `com.stripe:stripe-java` from 33.4.0 to 33.4.2
- [Release notes](https://github.com/stripe/stripe-java/releases)
- [Changelog](https://github.com/stripe/stripe-java/blob/master/CHANGELOG.md)
- [Commits](https://github.com/stripe/stripe-java/compare/v33.4.0...v33.4.2)

Updates `com.braintreepayments.gateway:braintree-java` from 3.53.0 to 3.54.0
- [Changelog](https://github.com/braintree/braintree_java/blob/master/CHANGELOG.md)
- [Commits](https://github.com/braintree/braintree_java/compare/3.53.0...3.54.0)

Updates `org.codehaus.mojo:properties-maven-plugin` from 1.3.0 to 1.3.1
- [Release notes](https://github.com/mojohaus/properties-maven-plugin/releases)
- [Commits](https://github.com/mojohaus/properties-maven-plugin/compare/properties-maven-plugin-1.3.0...properties-maven-plugin-1.3.1)

Updates `org.codehaus.mojo:exec-maven-plugin` from 3.6.3 to 3.6.4
- [Release notes](https://github.com/mojohaus/exec-maven-plugin/releases)
- [Commits](https://github.com/mojohaus/exec-maven-plugin/compare/3.6.3...3.6.4)

Updates `org.apache.maven.plugins:maven-surefire-plugin` from 3.5.6 to 3.6.0
- [Release notes](https://github.com/apache/maven-surefire/releases)
- [Commits](https://github.com/apache/maven-surefire/compare/surefire-3.5.6...surefire-3.6.0)

Updates `com.fasterxml.jackson:jackson-bom` from 2.22.2 to 2.22.3
- [Commits](https://github.com/FasterXML/jackson-bom/compare/jackson-bom-2.22.2...jackson-bom-2.22.3)

Updates `org.eclipse.jetty:jetty-bom` from 12.1.9 to 12.1.13
- [Release notes](https://github.com/jetty/jetty.project/releases)
- [Commits](https://github.com/jetty/jetty.project/compare/jetty-12.1.9...jetty-12.1.13)

Updates `org.eclipse.jetty.ee10:jetty-ee10-bom` from 12.1.9 to 12.1.13
- [Release notes](https://github.com/jetty/jetty.project/releases)
- [Commits](https://github.com/jetty/jetty.project/compare/jetty-12.1.9...jetty-12.1.13)

Updates `com.google.protobuf:protobuf-bom` from 4.36.0 to 4.36.2
- [Release notes](https://github.com/protocolbuffers/protobuf/releases)
- [Commits](https://github.com/protocolbuffers/protobuf/commits)

Updates `com.google.cloud:libraries-bom` from 26.87.0 to 26.89.0
- [Release notes](https://github.com/googleapis/google-cloud-java/releases)
- [Changelog](https://github.com/googleapis/google-cloud-java/blob/main/CHANGELOG.md)
- [Commits](https://github.com/googleapis/google-cloud-java/compare/libraries-bom/v26.87.0...libraries-bom/v26.89.0)

Updates `software.amazon.awssdk:bom` from 2.54.7 to 2.55.6

Updates `io.opentelemetry:opentelemetry-bom` from 1.65.0 to 1.66.0
- [Release notes](https://github.com/open-telemetry/opentelemetry-java/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-java/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-java/compare/v1.65.0...v1.66.0)

Updates `org.jetbrains.kotlin:kotlin-bom` from 2.4.10 to 2.4.20
- [Release notes](https://github.com/JetBrains/kotlin/releases)
- [Changelog](https://github.com/JetBrains/kotlin/blob/master/ChangeLog.md)
- [Commits](https://github.com/JetBrains/kotlin/compare/v2.4.10...v2.4.20)

Updates `org.slf4j:slf4j-nop` from 2.0.18 to 2.0.20

Updates `org.apache.maven.plugins:maven-failsafe-plugin` from 3.5.6 to 3.6.0
- [Release notes](https://github.com/apache/maven-surefire/releases)
- [Commits](https://github.com/apache/maven-surefire/compare/surefire-3.5.6...surefire-3.6.0)

Updates `org.apache.maven.plugins:maven-compiler-plugin` from 3.15.0 to 3.16.0
- [Release notes](https://github.com/apache/maven-compiler-plugin/releases)
- [Commits](https://github.com/apache/maven-compiler-plugin/compare/maven-compiler-plugin-3.15.0...maven-compiler-plugin-3.16.0)

Updates `org.apache.maven.plugins:maven-install-plugin` from 3.1.4 to 3.2.0
- [Release notes](https://github.com/apache/maven-install-plugin/releases)
- [Commits](https://github.com/apache/maven-install-plugin/compare/maven-install-plugin-3.1.4...maven-install-plugin-3.2.0)

Updates `org.apache.maven.plugins:maven-deploy-plugin` from 3.1.4 to 3.2.0
- [Release notes](https://github.com/apache/maven-deploy-plugin/releases)
- [Commits](https://github.com/apache/maven-deploy-plugin/compare/maven-deploy-plugin-3.1.4...maven-deploy-plugin-3.2.0)

Updates `com.webauthn4j:webauthn4j-test` from 0.31.9.RELEASE to 0.31.10.RELEASE
- [Release notes](https://github.com/webauthn4j/webauthn4j/releases)
- [Commits](https://github.com/webauthn4j/webauthn4j/compare/0.31.9.RELEASE...0.31.10.RELEASE)

Updates `org.apache.maven.plugins:maven-surefire-plugin` from 3.5.6 to 3.6.0
- [Release notes](https://github.com/apache/maven-surefire/releases)
- [Commits](https://github.com/apache/maven-surefire/compare/surefire-3.5.6...surefire-3.6.0)

Updates `org.apache.maven.plugins:maven-failsafe-plugin` from 3.5.6 to 3.6.0
- [Release notes](https://github.com/apache/maven-surefire/releases)
- [Commits](https://github.com/apache/maven-surefire/compare/surefire-3.5.6...surefire-3.6.0)

Updates `com.fasterxml.jackson:jackson-bom` from 2.22.2 to 2.22.3
- [Commits](https://github.com/FasterXML/jackson-bom/compare/jackson-bom-2.22.2...jackson-bom-2.22.3)

Updates `org.eclipse.jetty:jetty-bom` from 12.1.9 to 12.1.13
- [Release notes](https://github.com/jetty/jetty.project/releases)
- [Commits](https://github.com/jetty/jetty.project/compare/jetty-12.1.9...jetty-12.1.13)

Updates `org.eclipse.jetty.ee10:jetty-ee10-bom` from 12.1.9 to 12.1.13
- [Release notes](https://github.com/jetty/jetty.project/releases)
- [Commits](https://github.com/jetty/jetty.project/compare/jetty-12.1.9...jetty-12.1.13)

Updates `com.google.protobuf:protobuf-bom` from 4.36.0 to 4.36.2
- [Release notes](https://github.com/protocolbuffers/protobuf/releases)
- [Commits](https://github.com/protocolbuffers/protobuf/commits)

Updates `com.google.cloud:libraries-bom` from 26.87.0 to 26.89.0
- [Release notes](https://github.com/googleapis/google-cloud-java/releases)
- [Changelog](https://github.com/googleapis/google-cloud-java/blob/main/CHANGELOG.md)
- [Commits](https://github.com/googleapis/google-cloud-java/compare/libraries-bom/v26.87.0...libraries-bom/v26.89.0)

Updates `software.amazon.awssdk:bom` from 2.54.7 to 2.55.6

Updates `io.opentelemetry:opentelemetry-bom` from 1.65.0 to 1.66.0
- [Release notes](https://github.com/open-telemetry/opentelemetry-java/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-java/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-java/compare/v1.65.0...v1.66.0)

Updates `org.jetbrains.kotlin:kotlin-bom` from 2.4.10 to 2.4.20
- [Release notes](https://github.com/JetBrains/kotlin/releases)
- [Changelog](https://github.com/JetBrains/kotlin/blob/master/ChangeLog.md)
- [Commits](https://github.com/JetBrains/kotlin/compare/v2.4.10...v2.4.20)

Updates `com.googlecode.libphonenumber:libphonenumber` from 9.0.38 to 9.0.40
- [Release notes](https://github.com/google/libphonenumber/releases)
- [Changelog](https://github.com/google/libphonenumber/blob/master/release_notes.txt)
- [Commits](https://github.com/google/libphonenumber/compare/v9.0.38...v9.0.40)

Updates `org.slf4j:slf4j-api` from 2.0.18 to 2.0.20

Updates `org.slf4j:slf4j-nop` from 2.0.18 to 2.0.20

Updates `com.stripe:stripe-java` from 33.4.0 to 33.4.2
- [Release notes](https://github.com/stripe/stripe-java/releases)
- [Changelog](https://github.com/stripe/stripe-java/blob/master/CHANGELOG.md)
- [Commits](https://github.com/stripe/stripe-java/compare/v33.4.0...v33.4.2)

Updates `com.braintreepayments.gateway:braintree-java` from 3.53.0 to 3.54.0
- [Changelog](https://github.com/braintree/braintree_java/blob/master/CHANGELOG.md)
- [Commits](https://github.com/braintree/braintree_java/compare/3.53.0...3.54.0)

Updates `org.signal:libsignal-server` from 0.101.2 to 0.103.0
- [Release notes](https://github.com/signalapp/libsignal/releases)
- [Changelog](https://github.com/signalapp/libsignal/blob/v0.103.0/RELEASE_NOTES.md)
- [Commits](https://github.com/signalapp/libsignal/compare/v0.101.2...v0.103.0)

Updates `org.codehaus.mojo:exec-maven-plugin` from 3.6.3 to 3.6.4
- [Release notes](https://github.com/mojohaus/exec-maven-plugin/releases)
- [Commits](https://github.com/mojohaus/exec-maven-plugin/compare/3.6.3...3.6.4)

Updates `org.codehaus.mojo:properties-maven-plugin` from 1.3.0 to 1.3.1
- [Release notes](https://github.com/mojohaus/properties-maven-plugin/releases)
- [Commits](https://github.com/mojohaus/properties-maven-plugin/compare/properties-maven-plugin-1.3.0...properties-maven-plugin-1.3.1)

Updates `org.apache.maven.plugins:maven-compiler-plugin` from 3.15.0 to 3.16.0
- [Release notes](https://github.com/apache/maven-compiler-plugin/releases)
- [Commits](https://github.com/apache/maven-compiler-plugin/compare/maven-compiler-plugin-3.15.0...maven-compiler-plugin-3.16.0)

Updates `org.apache.maven.plugins:maven-install-plugin` from 3.1.4 to 3.2.0
- [Release notes](https://github.com/apache/maven-install-plugin/releases)
- [Commits](https://github.com/apache/maven-install-plugin/compare/maven-install-plugin-3.1.4...maven-install-plugin-3.2.0)

Updates `org.apache.maven.plugins:maven-deploy-plugin` from 3.1.4 to 3.2.0
- [Release notes](https://github.com/apache/maven-deploy-plugin/releases)
- [Commits](https://github.com/apache/maven-deploy-plugin/compare/maven-deploy-plugin-3.1.4...maven-deploy-plugin-3.2.0)

Updates `com.auth0:java-jwt` from 4.6.0 to 4.6.1
- [Release notes](https://github.com/auth0/java-jwt/releases)
- [Changelog](https://github.com/auth0/java-jwt/blob/master/CHANGELOG.md)
- [Commits](https://github.com/auth0/java-jwt/compare/4.6.0...4.6.1)

Updates `com.webauthn4j:webauthn4j-appattest` from 0.31.9.RELEASE to 0.31.10.RELEASE
- [Release notes](https://github.com/webauthn4j/webauthn4j/releases)
- [Commits](https://github.com/webauthn4j/webauthn4j/compare/0.31.9.RELEASE...0.31.10.RELEASE)

Updates `com.webauthn4j:webauthn4j-core` from 0.31.9.RELEASE to 0.31.10.RELEASE
- [Release notes](https://github.com/webauthn4j/webauthn4j/releases)
- [Commits](https://github.com/webauthn4j/webauthn4j/compare/0.31.9.RELEASE...0.31.10.RELEASE)

Updates `io.swagger.core.v3:swagger-jaxrs2-jakarta` from 2.2.54 to 2.2.55

Updates `org.signal:libsignal-server` from 0.101.2 to 0.103.0
- [Release notes](https://github.com/signalapp/libsignal/releases)
- [Changelog](https://github.com/signalapp/libsignal/blob/v0.103.0/RELEASE_NOTES.md)
- [Commits](https://github.com/signalapp/libsignal/compare/v0.101.2...v0.103.0)

Updates `org.slf4j:slf4j-api` from 2.0.18 to 2.0.20

Updates `com.google.firebase:firebase-admin` from 9.10.0 to 9.11.0
- [Release notes](https://github.com/firebase/firebase-admin-java/releases)
- [Commits](https://github.com/firebase/firebase-admin-java/compare/v9.10.0...v9.11.0)

Updates `org.codehaus.woodstox:stax2-api` from 4.3.0 to 4.3.1
- [Commits](https://github.com/FasterXML/stax2-api/compare/stax2-api-4.3.0...stax2-api-4.3.1)

Updates `com.googlecode.libphonenumber:libphonenumber` from 9.0.38 to 9.0.40
- [Release notes](https://github.com/google/libphonenumber/releases)
- [Changelog](https://github.com/google/libphonenumber/blob/master/release_notes.txt)
- [Commits](https://github.com/google/libphonenumber/compare/v9.0.38...v9.0.40)

Updates `com.googlecode.libphonenumber:geocoder` from 3.38 to 3.40
- [Release notes](https://github.com/google/libphonenumber/releases)
- [Changelog](https://github.com/google/libphonenumber/blob/master/release_notes.txt)
- [Commits](https://github.com/google/libphonenumber/commits)

Updates `com.webauthn4j:webauthn4j-test` from 0.31.9.RELEASE to 0.31.10.RELEASE
- [Release notes](https://github.com/webauthn4j/webauthn4j/releases)
- [Commits](https://github.com/webauthn4j/webauthn4j/compare/0.31.9.RELEASE...0.31.10.RELEASE)

Updates `com.stripe:stripe-java` from 33.4.0 to 33.4.2
- [Release notes](https://github.com/stripe/stripe-java/releases)
- [Changelog](https://github.com/stripe/stripe-java/blob/master/CHANGELOG.md)
- [Commits](https://github.com/stripe/stripe-java/compare/v33.4.0...v33.4.2)

Updates `com.braintreepayments.gateway:braintree-java` from 3.53.0 to 3.54.0
- [Changelog](https://github.com/braintree/braintree_java/blob/master/CHANGELOG.md)
- [Commits](https://github.com/braintree/braintree_java/compare/3.53.0...3.54.0)

Updates `org.codehaus.mojo:properties-maven-plugin` from 1.3.0 to 1.3.1
- [Release notes](https://github.com/mojohaus/properties-maven-plugin/releases)
- [Commits](https://github.com/mojohaus/properties-maven-plugin/compare/properties-maven-plugin-1.3.0...properties-maven-plugin-1.3.1)

Updates `org.codehaus.mojo:exec-maven-plugin` from 3.6.3 to 3.6.4
- [Release notes](https://github.com/mojohaus/exec-maven-plugin/releases)
- [Commits](https://github.com/mojohaus/exec-maven-plugin/compare/3.6.3...3.6.4)

Updates `org.codehaus.mojo:templating-maven-plugin` from 3.1.0 to 3.1.1
- [Release notes](https://github.com/mojohaus/templating-maven-plugin/releases)
- [Commits](https://github.com/mojohaus/templating-maven-plugin/compare/templating-maven-plugin-3.1.0...templating-maven-plugin-3.1.1)

Updates `org.apache.maven.plugins:maven-surefire-plugin` from 3.5.6 to 3.6.0
- [Release notes](https://github.com/apache/maven-surefire/releases)
- [Commits](https://github.com/apache/maven-surefire/compare/surefire-3.5.6...surefire-3.6.0)

Updates `com.fasterxml.jackson:jackson-bom` from 2.22.2 to 2.22.3
- [Commits](https://github.com/FasterXML/jackson-bom/compare/jackson-bom-2.22.2...jackson-bom-2.22.3)

Updates `org.eclipse.jetty:jetty-bom` from 12.1.9 to 12.1.13
- [Release notes](https://github.com/jetty/jetty.project/releases)
- [Commits](https://github.com/jetty/jetty.project/compare/jetty-12.1.9...jetty-12.1.13)

Updates `org.eclipse.jetty.ee10:jetty-ee10-bom` from 12.1.9 to 12.1.13
- [Release notes](https://github.com/jetty/jetty.project/releases)
- [Commits](https://github.com/jetty/jetty.project/compare/jetty-12.1.9...jetty-12.1.13)

Updates `com.google.protobuf:protobuf-bom` from 4.36.0 to 4.36.2
- [Release notes](https://github.com/protocolbuffers/protobuf/releases)
- [Commits](https://github.com/protocolbuffers/protobuf/commits)

Updates `com.google.cloud:libraries-bom` from 26.87.0 to 26.89.0
- [Release notes](https://github.com/googleapis/google-cloud-java/releases)
- [Changelog](https://github.com/googleapis/google-cloud-java/blob/main/CHANGELOG.md)
- [Commits](https://github.com/googleapis/google-cloud-java/compare/libraries-bom/v26.87.0...libraries-bom/v26.89.0)

Updates `software.amazon.awssdk:bom` from 2.54.7 to 2.55.6

Updates `io.opentelemetry:opentelemetry-bom` from 1.65.0 to 1.66.0
- [Release notes](https://github.com/open-telemetry/opentelemetry-java/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-java/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-java/compare/v1.65.0...v1.66.0)

Updates `org.jetbrains.kotlin:kotlin-bom` from 2.4.10 to 2.4.20
- [Release notes](https://github.com/JetBrains/kotlin/releases)
- [Changelog](https://github.com/JetBrains/kotlin/blob/master/ChangeLog.md)
- [Commits](https://github.com/JetBrains/kotlin/compare/v2.4.10...v2.4.20)

Updates `org.slf4j:slf4j-nop` from 2.0.18 to 2.0.20

Updates `org.apache.maven.plugins:maven-failsafe-plugin` from 3.5.6 to 3.6.0
- [Release notes](https://github.com/apache/maven-surefire/releases)
- [Commits](https://github.com/apache/maven-surefire/compare/surefire-3.5.6...surefire-3.6.0)

Updates `org.apache.maven.plugins:maven-compiler-plugin` from 3.15.0 to 3.16.0
- [Release notes](https://github.com/apache/maven-compiler-plugin/releases)
- [Commits](https://github.com/apache/maven-compiler-plugin/compare/maven-compiler-plugin-3.15.0...maven-compiler-plugin-3.16.0)

Updates `org.apache.maven.plugins:maven-install-plugin` from 3.1.4 to 3.2.0
- [Release notes](https://github.com/apache/maven-install-plugin/releases)
- [Commits](https://github.com/apache/maven-install-plugin/compare/maven-install-plugin-3.1.4...maven-install-plugin-3.2.0)

Updates `org.apache.maven.plugins:maven-deploy-plugin` from 3.1.4 to 3.2.0
- [Release notes](https://github.com/apache/maven-deploy-plugin/releases)
- [Commits](https://github.com/apache/maven-deploy-plugin/compare/maven-deploy-plugin-3.1.4...maven-deploy-plugin-3.2.0)

---
updated-dependencies:
- dependency-name: com.webauthn4j:webauthn4j-test
  dependency-version: 0.31.10.RELEASE
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: org.apache.maven.plugins:maven-surefire-plugin
  dependency-version: 3.6.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: org.apache.maven.plugins:maven-failsafe-plugin
  dependency-version: 3.6.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: com.fasterxml.jackson:jackson-bom
  dependency-version: 2.22.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: org.eclipse.jetty:jetty-bom
  dependency-version: 12.1.13
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: org.eclipse.jetty.ee10:jetty-ee10-bom
  dependency-version: 12.1.13
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: org.eclipse.jetty.ee10:jetty-ee10-bom
  dependency-version: 12.1.13
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: com.google.protobuf:protobuf-bom
  dependency-version: 4.36.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: com.google.cloud:libraries-bom
  dependency-version: 26.89.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: software.amazon.awssdk:bom
  dependency-version: 2.55.6
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: io.opentelemetry:opentelemetry-bom
  dependency-version: 1.66.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: org.jetbrains.kotlin:kotlin-bom
  dependency-version: 2.4.20
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: com.googlecode.libphonenumber:libphonenumber
  dependency-version: 9.0.40
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: org.slf4j:slf4j-api
  dependency-version: 2.0.20
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: org.slf4j:slf4j-nop
  dependency-version: 2.0.20
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: org.slf4j:slf4j-nop
  dependency-version: 2.0.20
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: com.stripe:stripe-java
  dependency-version: 33.4.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: com.braintreepayments.gateway:braintree-java
  dependency-version: 3.54.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: org.signal:libsignal-server
  dependency-version: 0.103.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: org.codehaus.mojo:exec-maven-plugin
  dependency-version: 3.6.4
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: org.codehaus.mojo:properties-maven-plugin
  dependency-version: 1.3.1
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: org.apache.maven.plugins:maven-compiler-plugin
  dependency-version: 3.16.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: org.apache.maven.plugins:maven-install-plugin
  dependency-version: 3.2.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: org.apache.maven.plugins:maven-deploy-plugin
  dependency-version: 3.2.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: org.signal:libsignal-server
  dependency-version: 0.103.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: org.slf4j:slf4j-api
  dependency-version: 2.0.20
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: com.googlecode.libphonenumber:libphonenumber
  dependency-version: 9.0.40
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: com.webauthn4j:webauthn4j-test
  dependency-version: 0.31.10.RELEASE
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: com.stripe:stripe-java
  dependency-version: 33.4.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: com.braintreepayments.gateway:braintree-java
  dependency-version: 3.54.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: org.codehaus.mojo:properties-maven-plugin
  dependency-version: 1.3.1
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: org.codehaus.mojo:exec-maven-plugin
  dependency-version: 3.6.4
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: org.apache.maven.plugins:maven-surefire-plugin
  dependency-version: 3.6.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: com.fasterxml.jackson:jackson-bom
  dependency-version: 2.22.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: org.eclipse.jetty:jetty-bom
  dependency-version: 12.1.13
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: org.eclipse.jetty.ee10:jetty-ee10-bom
  dependency-version: 12.1.13
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: com.google.protobuf:protobuf-bom
  dependency-version: 4.36.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: com.google.cloud:libraries-bom
  dependency-version: 26.89.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: software.amazon.awssdk:bom
  dependency-version: 2.55.6
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: io.opentelemetry:opentelemetry-bom
  dependency-version: 1.66.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: org.jetbrains.kotlin:kotlin-bom
  dependency-version: 2.4.20
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: org.slf4j:slf4j-nop
  dependency-version: 2.0.20
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: org.apache.maven.plugins:maven-failsafe-plugin
  dependency-version: 3.6.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: org.apache.maven.plugins:maven-compiler-plugin
  dependency-version: 3.16.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: org.apache.maven.plugins:maven-install-plugin
  dependency-version: 3.2.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: org.apache.maven.plugins:maven-deploy-plugin
  dependency-version: 3.2.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: com.webauthn4j:webauthn4j-test
  dependency-version: 0.31.10.RELEASE
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: org.apache.maven.plugins:maven-surefire-plugin
  dependency-version: 3.6.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: org.apache.maven.plugins:maven-failsafe-plugin
  dependency-version: 3.6.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: com.fasterxml.jackson:jackson-bom
  dependency-version: 2.22.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: org.eclipse.jetty:jetty-bom
  dependency-version: 12.1.13
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: org.eclipse.jetty.ee10:jetty-ee10-bom
  dependency-version: 12.1.13
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: com.google.protobuf:protobuf-bom
  dependency-version: 4.36.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: com.google.cloud:libraries-bom
  dependency-version: 26.89.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: software.amazon.awssdk:bom
  dependency-version: 2.55.6
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: io.opentelemetry:opentelemetry-bom
  dependency-version: 1.66.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: org.jetbrains.kotlin:kotlin-bom
  dependency-version: 2.4.20
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: com.googlecode.libphonenumber:libphonenumber
  dependency-version: 9.0.40
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: org.slf4j:slf4j-api
  dependency-version: 2.0.20
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: org.slf4j:slf4j-nop
  dependency-version: 2.0.20
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: com.stripe:stripe-java
  dependency-version: 33.4.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: com.braintreepayments.gateway:braintree-java
  dependency-version: 3.54.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: org.signal:libsignal-server
  dependency-version: 0.103.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: org.codehaus.mojo:exec-maven-plugin
  dependency-version: 3.6.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: org.codehaus.mojo:properties-maven-plugin
  dependency-version: 1.3.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: org.apache.maven.plugins:maven-compiler-plugin
  dependency-version: 3.16.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: org.apache.maven.plugins:maven-install-plugin
  dependency-version: 3.2.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: org.apache.maven.plugins:maven-deploy-plugin
  dependency-version: 3.2.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: com.auth0:java-jwt
  dependency-version: 4.6.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: com.webauthn4j:webauthn4j-appattest
  dependency-version: 0.31.10.RELEASE
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: com.webauthn4j:webauthn4j-core
  dependency-version: 0.31.10.RELEASE
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: io.swagger.core.v3:swagger-jaxrs2-jakarta
  dependency-version: 2.2.55
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: org.signal:libsignal-server
  dependency-version: 0.103.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: org.slf4j:slf4j-api
  dependency-version: 2.0.20
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: com.google.firebase:firebase-admin
  dependency-version: 9.11.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: org.codehaus.woodstox:stax2-api
  dependency-version: 4.3.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: com.googlecode.libphonenumber:libphonenumber
  dependency-version: 9.0.40
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: com.googlecode.libphonenumber:geocoder
  dependency-version: '3.40'
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: com.webauthn4j:webauthn4j-test
  dependency-version: 0.31.10.RELEASE
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: com.stripe:stripe-java
  dependency-version: 33.4.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: com.braintreepayments.gateway:braintree-java
  dependency-version: 3.54.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: org.codehaus.mojo:properties-maven-plugin
  dependency-version: 1.3.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: org.codehaus.mojo:exec-maven-plugin
  dependency-version: 3.6.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: org.codehaus.mojo:templating-maven-plugin
  dependency-version: 3.1.1
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: org.apache.maven.plugins:maven-surefire-plugin
  dependency-version: 3.6.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: com.fasterxml.jackson:jackson-bom
  dependency-version: 2.22.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: org.eclipse.jetty:jetty-bom
  dependency-version: 12.1.13
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: org.eclipse.jetty.ee10:jetty-ee10-bom
  dependency-version: 12.1.13
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: com.google.protobuf:protobuf-bom
  dependency-version: 4.36.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: com.google.cloud:libraries-bom
  dependency-version: 26.89.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: software.amazon.awssdk:bom
  dependency-version: 2.55.6
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: io.opentelemetry:opentelemetry-bom
  dependency-version: 1.66.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: org.jetbrains.kotlin:kotlin-bom
  dependency-version: 2.4.20
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: org.slf4j:slf4j-nop
  dependency-version: 2.0.20
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: org.apache.maven.plugins:maven-failsafe-plugin
  dependency-version: 3.6.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: org.apache.maven.plugins:maven-compiler-plugin
  dependency-version: 3.16.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: org.apache.maven.plugins:maven-install-plugin
  dependency-version: 3.2.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: org.apache.maven.plugins:maven-deploy-plugin
  dependency-version: 3.2.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-10-13 10:55:04 -04:00
Chris Eager 1f0bf83fef Update to the latest version of the spam filter 2026-10-13 10:54:19 -04:00
Chris Eager 8f394663b0 Add backup-auth-check rate limiter to CredentialsAnonymousGrpcService 2026-10-13 10:38:17 -04:00
Ravi Khadiwala 55abc73cac Only update the badges etag map if we didn't have an entry 2026-10-13 10:38:06 -04:00
Ravi Khadiwala 031beed7e4 Improve assertion failure error message in recoverNumberlessUserWithWebAuthn 2026-10-13 10:37:33 -04:00
Chris Eager ef4c46941c Update GetEntitlementsResponse.BadgeEntitlement doc 2026-10-13 10:21:48 -04:00
Chris Eager ddb8c02e40 Narrow Download and install FoundationDB client to just the download 2026-10-09 19:33:59 -04:00
Ravi Khadiwala a15d5cdbb9 Add SandboxAccountPoolCommand 2026-10-07 14:55:33 -05:00
Ravi Khadiwala a0c321557f Add RemoveExpiredSandboxAccountsCommand 2026-10-07 14:55:33 -05:00
Ravi Khadiwala 4765492415 Make sandbox sourced receipts create resricted accounts 2026-10-07 14:55:33 -05:00
Chris Eager e6aef34398 Require canonical base64 URL encoding for device-linking tokens 2026-10-07 14:53:58 -05:00
Ravi Khadiwala e7916302ba Remove impossible set-level response case 2026-10-07 14:53:28 -05:00
Ravi Khadiwala db00752f3d Drop level from SetSubscriptionLevelResponse 2026-10-07 14:52:47 -05:00
Max Moiseev 92b903c639 Use plural 'permits' in donations.proto 2026-10-07 14:51:59 -05:00
Jon Chambers 92fdac8d76 Enforce rate limits when sending multi-recipient stories via gRPC 2026-10-07 14:50:31 -05:00
Jon Chambers 3bac6e5fd3 Add a (failing!) test for rate-limiting multi-recipient story sends via gRPC 2026-10-07 14:50:31 -05:00
Chris Eager ef9df20be4 Use parsed action for metrics tags 2026-10-07 14:48:14 -05:00
Jon Chambers 11741a5048 Calculate total content length as a long 2026-10-07 14:46:47 -05:00
Chris Eager b2c638a635 Check max device limit inside lock scope 2026-10-07 14:45:53 -05:00
Chris Eager 12d7157a4e Remove REST deprecation blocked request counter 2026-10-07 14:44:22 -05:00
Chris Eager 5026242122 Add positive constraint for uploadLength parameter in ArchiveController 2026-10-07 14:43:51 -05:00
Chris Eager fe39fcdb12 gRPC: require group send token for unidentified individual messages to PNIs 2026-10-07 14:43:22 -05:00
Chris Eager 51af17e3b8 gRPC: require group send token for unidentified PNI pre-key requests 2026-10-07 14:43:22 -05:00
Ameya Lokare 1389de1e0c Support multiple roots in trust store for integration tests 2026-10-02 14:25:23 -07:00
Jon Chambers 669e955cd2 Update to the latest version of the spam filter 2026-10-02 13:11:44 -04:00
Chris Eager dec95043fa Exclude delivery receipts from ReportMessageManager#store 2026-10-02 12:17:10 -04:00
Chris Eager 4be8e0bfc8 Update FixerClient exception message 2026-10-02 12:16:52 -04:00
Chris Eager 99d492c61c Add Javadoc to OneTimeDonationUtil#validateOneTimeDonationRequest 2026-10-01 18:43:02 -04:00
Chris Eager 2d22cc4420 Fix link in comment 2026-09-30 17:29:51 -04:00
Chris Eager 894ec17169 Update to the latest version of the spam filter 2026-09-30 17:20:42 -04:00
dependabot[bot] 59ea29ab61 Bump the minor-actions-dependencies group with 2 updates
Bumps the minor-actions-dependencies group with 2 updates: [actions/setup-java](https://github.com/actions/setup-java) and [aws-actions/configure-aws-credentials](https://github.com/aws-actions/configure-aws-credentials).


Updates `actions/setup-java` from 6.0.0 to 6.0.1
- [Release notes](https://github.com/actions/setup-java/releases)
- [Commits](https://github.com/actions/setup-java/compare/dd06d9cba3e5552c54d9f8ea23572deb30010f7c...de7274f081f381c8f8158605e0321c36c376e2e6)

Updates `aws-actions/configure-aws-credentials` from 6.2.3 to 6.3.0
- [Release notes](https://github.com/aws-actions/configure-aws-credentials/releases)
- [Changelog](https://github.com/aws-actions/configure-aws-credentials/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws-actions/configure-aws-credentials/compare/e6de054238d6b7531b4efff3b6587d9aade6a06c...e1253824e5c10ff9df46874f81ed3ec929e19cfd)

---
updated-dependencies:
- dependency-name: actions/setup-java
  dependency-version: 6.0.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-actions-dependencies
- dependency-name: aws-actions/configure-aws-credentials
  dependency-version: 6.3.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-actions-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-09-30 16:38:53 -04:00
Ravi Khadiwala 69fb42ef82 Use exceptions instead of status when getting PaymentDetails 2026-09-30 15:30:18 -05:00
Chris Eager 9ce8f75d76 Update to the latest version of the spam filter 2026-09-30 16:23:00 -04:00
Chris Eager e90c8685f8 Add support for BoringSSL provider via netty-tcnative 2026-09-30 16:22:07 -04:00
Chris Eager 60738acd17 Update to Lettuce 7.8.0
Also, adapt to Lettuce 7.7.0 behavior change (redis/lettuce#3782) with respect to
command rejection in pending connections by eagerly connecting to upstreams in
`FaultTolerantRedisClusterClient` construction.
2026-09-30 16:21:45 -04:00
Chris Eager f618da855f Complete future with exception if message availability subscriptions fail 2026-09-30 16:21:45 -04:00
Jon Chambers 54807b22a3 Limit APNs/FCM token sizes 2026-09-30 16:21:28 -04:00
Jonathan Klabunde Tomer bdf3e1aea1 accept multiple webauthn origins 2026-09-25 11:41:18 -07:00
Chris Eager 416dee5762 Simplify gRPC ProfileKeyCredential issuance 2026-09-25 11:02:35 -04:00
Chris Eager e4c0649cbd Add metrics for TLS handshakes handled by Netty 2026-09-25 10:51:07 -04:00
Chris Eager 87ca4578b3 Use singular “credential” when appropriate 2026-09-25 10:49:14 -04:00
Jon Chambers 740116e1fd Don't insert shared MRM payloads for unresolved recipients 2026-09-25 10:48:59 -04:00
Ravi Khadiwala 438ad9fb8f Retry 441s in MFA integration test 2026-09-24 10:04:13 -05:00
Ameya Lokare eaa5b96079 Use a virtual thread executor for gRPC service callbacks 2026-09-23 11:36:29 -07:00
Chris Eager 3f7012dba4 Fix large gRPC response truncation 2026-09-23 13:32:17 -05:00
Chris Eager 9bbd04afaa Add tests for response backpressure and concurrent, large, responses
The latter is a regression test for hangs (fixed in Netty 4.2.18,
https://github.com/netty/netty/pull/17279) and response truncation.
2026-09-23 13:32:17 -05:00
Ravi Khadiwala 9b8502bb6e Forbid reuse of TOTPs 2026-09-23 13:31:22 -05:00
Ravi Khadiwala 7866ad18fa Unnest GetExpiringProfileKeyCredentialRequest 2026-09-23 13:30:56 -05:00
Chris Eager 4101914040 Add ProfileAnonymous#getProfile response case metric 2026-09-23 13:30:28 -05:00
Chris Eager 40889a1337 Don’t require PROFILES_V2 capability to call setProfile rpc 2026-09-23 13:30:28 -05:00
Jon Chambers 26426dda7f Shorten TTL for shared MRM payloads 2026-09-23 13:29:41 -05:00
Chris Eager d045c45baa Update GooglePlayBillingManager#executeTokenOperation doc 2026-09-23 11:58:58 -04:00
Jon Chambers a409b8e044 Revert "Disable flaky `ClearOrphanedFoundationDbQueuesCommandTest#aciReusedAf…"
This reverts commit acbf1d828c.
2026-09-22 14:32:53 -04:00
Jon Chambers 4289d454f3 Resolve ExtensionContext.Store.CloseableResource deprecation warnings 2026-09-22 14:18:19 -04:00
Jon Chambers 2df897ab0b Clear FoundationDB databases before each test 2026-09-22 14:18:19 -04:00
Katherine 4443c31ee0 Augment FoundationDB metrics to help debug epoch drill mystery 2026-09-21 16:09:03 -04:00
Katherine acbf1d828c Disable flaky ClearOrphanedFoundationDbQueuesCommandTest#aciReusedAfterExistenceCheck 2026-09-21 15:49:02 -04:00
Chris Eager 9379af28fd Add resilience configuration to CommandDependencies 2026-09-21 15:42:44 -04:00
Jonathan Klabunde Tomer de5ae9f7e7 Retire message delivery-loop monitor 2026-09-21 15:24:45 -04:00
Chris Eager c171a89f03 Update BulkheadConfiguration.maxWaitDuration validation 2026-09-21 12:46:40 -04:00
Chris Eager 4bc550320b Update to the latest version of the spam filter 2026-09-21 12:23:13 -04:00
Jon Chambers 361b982357 Use FoundationDB as the source of presence when reading "live" messages from FoundationDB 2026-09-21 12:06:45 -04:00
Ravi Khadiwala 534825fb68 Use stripe-style currency minor-units in donations/configuration 2026-09-21 12:05:20 -04:00
Jon Chambers 9e3d10a6e8 Add bulkheads to FaultTolerantDatabase 2026-09-21 12:04:39 -04:00
Ravi Khadiwala ddb4b5d5dd Adjust default MFA rate-limit 2026-09-21 12:04:17 -04:00
Jon Chambers ca34692cbb Retire the verificationCodePushNotification experiment (now permanently on) 2026-09-21 12:02:16 -04:00
Katherine 2bffd909a5 Allow up to MAX_SHARDS FoundationDB shards 2026-09-21 11:55:47 -04:00
Chris Eager d400e700ac Add comment regarding when a one-time donation record might not be found 2026-09-18 17:38:13 -04:00
Ravi Khadiwala 755a87c74d Clear receipt state before integration tests 2026-09-17 12:50:28 -05:00
Ravi Khadiwala b30fc7aa8b Add a metric for duplicate receipt redemption 2026-09-16 12:43:22 -05:00
Jonathan Klabunde Tomer 4f4bd431f5 gRPC endpoints to verify existing MFA tokens 2026-09-16 10:37:50 -07:00
Jon Chambers 79757458d6 Introduce an experiment to use FoundationDB as the primary source for "live" messages 2026-09-16 10:46:35 -04:00
Jon Chambers c09aab080f Rename the "answer challenge" method and normalize "not permitted" responses 2026-09-16 10:27:38 -04:00
Jon Chambers 580960d958 Add a gRPC endpoint for requesting push challenges 2026-09-16 10:27:38 -04:00
Ravi Khadiwala c21475e3e7 Add an 'impossible' marker to mismatched number logs 2026-09-16 10:17:52 -04:00
Jon Chambers 09b5289d83 Add a gRPC endpoint for reporting spam 2026-09-16 10:16:40 -04:00
Jon Chambers f66bd0858d Introduce ReportMessageHelper 2026-09-16 10:16:40 -04:00
Jon Chambers ce8cc80f66 Retire unused "report spam via e164" pathway 2026-09-16 10:16:40 -04:00
Chris Eager 66b5412103 Update netty to 4.2.18 2026-09-16 10:06:13 -04:00
Chris Eager 11b6894dae Add backend tag to H2FrameProxyHandler writability changed metric 2026-09-16 10:05:55 -04:00
moiseev-signal 02b86d67ad Override domain in KT gRPC errors with chat domain 2026-09-16 09:56:41 -04:00
Jon Chambers f55c3c22fe Clarify naming and reduce duplication in CredentialsGrpcService 2026-09-16 09:20:48 -04:00
Jonathan Klabunde Tomer eb601cd51e Add WebAuthn MFA key support 2026-09-14 10:48:37 -04:00
Jon Chambers 2ee739dbe1 Add a dynamic configuration flag to fail open in the event of upstream captcha errors 2026-09-14 10:35:04 -04:00
Jon Chambers a15b70476d Add a gauge for concurrent FoundationDB transactions 2026-09-14 10:34:58 -04:00
Ameya Lokare 5f124cc812 Port /v1/archives/backupid/limits to gRPC 2026-09-14 10:34:51 -04:00
Chris Eager ce3378354d Address various deprecations 2026-09-14 10:30:24 -04:00
Ravi Khadiwala cb02200a24 Delete updated user at end of testRecoverWithTotp 2026-09-11 16:55:41 -04:00
Ameya Lokare fd36a8909c Improve handling of FoundationDB errors in reactive streams 2026-09-10 10:49:45 -07:00
Ravi Khadiwala 78c15d2a9a Only enable setting MFA from numberless accounts 2026-09-10 10:48:19 -07:00
Ameya Lokare 5815bb8e3f Measure missing mirrored messages' age 2026-09-10 10:47:45 -07:00
Katherine d366cdbcb0 Instrument more FoundationDB calls 2026-09-10 13:46:00 -04:00
Jon Chambers 52b32ce2d4 Add a slightly more descriptive error message if something goes wrong starting FoundationDB 2026-09-10 10:42:13 -07:00
Ameya Lokare e976c4fbb5 Add method to check for account existence by ACI 2026-09-10 10:41:21 -07:00
Ameya Lokare 81f38c1db7 Configure multiple FoundationDB client threads 2026-09-10 10:29:37 -07:00
Ravi Khadiwala 5221b3fb84 Add an integration test for recovering with a TOTP 2026-09-09 16:31:03 -05:00
Jon Chambers 53bd7a5587 Update to Java 26 2026-09-09 11:21:20 -04:00
Katherine 100ab61c82 Add circuit breakers to FoundationDB operations 2026-09-08 14:36:52 -04:00
Ameya Lokare 4d48c40ce1 Add timer to measure warmup time 2026-09-08 10:35:20 -04:00
Ameya Lokare 93ade07c57 Read status key at startup to warm up FoundationDB connections 2026-09-08 10:35:20 -04:00
Jon Chambers c1d8ca3c14 Update to the latest version of the spam filter 2026-09-08 10:34:02 -04:00
Jon Chambers 38707313d7 Retire UpdateGambiaPniMappingsCommand 2026-09-03 12:29:56 -04:00
ameya-signal 8eb2f5cec6 Use content hash to compare message envelopes 2026-09-03 09:28:06 -07:00
ameya-signal a7d66cb8e6 Add ephemeral tag to missing messages counter 2026-09-03 09:28:02 -07:00
ameya-signal 9db804f7c0 Add metrics to measure stream agreement between Redis/Dynamo and FoundationDB 2026-09-03 09:27:57 -07:00
Jon Chambers e93395e334 Retire PopulateAccountRecoveryPasswordsCommand 2026-09-03 12:12:05 -04:00
ameya-signal c9b8645469 Instrument FoundationDB transaction errors in a central place 2026-09-03 12:09:46 -04:00
Katherine f92681dbae Don't fall back to v4 UUIDs if FoundationDB insert fails 2026-09-03 12:09:28 -04:00
Ravi Khadiwala 7489c62fb7 Avoid attribute modification errors on numberless accounts 2026-09-02 16:17:26 -05:00
Ravi Khadiwala 23932b1087 Update constructors in UpdateGambiaPniMappingsCommandTest 2026-09-02 16:15:37 -05:00
Ravi Khadiwala 6b3f66ddc1 Forbid idempotent numberless registration retries if MFA keys are present 2026-09-02 16:56:11 -04:00
Jon Chambers 77e3675fc9 Add a command to map alternate forms of existing Gambian phone numbers to the same PNI 2026-09-02 16:55:49 -04:00
Jon Chambers 2f712b3f93 Add an alternate number form generator for Gambia 2026-09-02 16:55:49 -04:00
Jon Chambers 9b5ad238cf Introduce the AlternatePhoneNumberFormGenerator interface 2026-09-02 16:55:49 -04:00
Ravi Khadiwala 8c62a7f819 Add delay to TOTP confirmation validation 2026-09-02 16:55:35 -04:00
Jonathan Klabunde Tomer 3a75f705c2 Simplify list-MFA-keys RPC
Turns out clients only actually want the metadata, repeating the crypto
parameters is useless
2026-09-02 16:55:26 -04:00
Ameya Lokare d79e37230e Return 401 if receipt credential fails verification, is expired or is
already redeemed
2026-09-02 16:54:12 -04:00
Ameya Lokare 7bc8b93c18 Remove use of account lock executor in
ClearOrphanedFoundationDbQueuesCommand
2026-09-02 16:53:51 -04:00
Ravi Khadiwala b6bed9d772 Remove confusing subscriber_id_mismatch response 2026-09-02 16:34:48 -04:00
Ravi Khadiwala 18e58dd21f Improve error response documentation in subscription.proto 2026-09-02 16:34:48 -04:00
Ravi Khadiwala 6ab0acadfd Document RPCs that require an Accept-Language header 2026-09-02 16:34:48 -04:00
Ravi Khadiwala 6209466d1d Fix accidental renumbering in login_purchase.proto 2026-09-02 16:34:17 -04:00
Ameya Lokare 9483f358cd Remove executor for acquiring locks in AccountLockManager 2026-09-02 16:33:49 -04:00
Ameya Lokare 1c28620b65 Re-use ACI / clear account queues under a pessimistic ACI lock 2026-09-02 16:33:29 -04:00
dependabot[bot] cc50ff7074 Bump the minor-java-dependencies group across 4 directories with 6 updates
Bumps the minor-java-dependencies group with 5 updates in the /api-doc directory:

| Package | From | To |
| --- | --- | --- |
| [com.google.cloud:libraries-bom](https://github.com/googleapis/google-cloud-java) | `26.86.0` | `26.87.0` |
| software.amazon.awssdk:bom | `2.54.5` | `2.54.7` |
| [com.googlecode.libphonenumber:libphonenumber](https://github.com/google/libphonenumber) | `9.0.37` | `9.0.38` |
| [com.stripe:stripe-java](https://github.com/stripe/stripe-java) | `33.3.0` | `33.4.0` |
| [org.signal:libsignal-server](https://github.com/signalapp/libsignal) | `0.101.0` | `0.101.2` |

Bumps the minor-java-dependencies group with 5 updates in the /integration-tests directory:

| Package | From | To |
| --- | --- | --- |
| [com.google.cloud:libraries-bom](https://github.com/googleapis/google-cloud-java) | `26.86.0` | `26.87.0` |
| software.amazon.awssdk:bom | `2.54.5` | `2.54.7` |
| [com.googlecode.libphonenumber:libphonenumber](https://github.com/google/libphonenumber) | `9.0.37` | `9.0.38` |
| [com.stripe:stripe-java](https://github.com/stripe/stripe-java) | `33.3.0` | `33.4.0` |
| [org.signal:libsignal-server](https://github.com/signalapp/libsignal) | `0.101.0` | `0.101.2` |

Bumps the minor-java-dependencies group with 6 updates in the /service directory:

| Package | From | To |
| --- | --- | --- |
| [com.google.cloud:libraries-bom](https://github.com/googleapis/google-cloud-java) | `26.86.0` | `26.87.0` |
| software.amazon.awssdk:bom | `2.54.5` | `2.54.7` |
| [com.googlecode.libphonenumber:libphonenumber](https://github.com/google/libphonenumber) | `9.0.37` | `9.0.38` |
| [com.stripe:stripe-java](https://github.com/stripe/stripe-java) | `33.3.0` | `33.4.0` |
| [org.signal:libsignal-server](https://github.com/signalapp/libsignal) | `0.101.0` | `0.101.2` |
| [com.googlecode.libphonenumber:geocoder](https://github.com/google/libphonenumber) | `3.37` | `3.38` |

Bumps the minor-java-dependencies group with 5 updates in the /websocket-resources directory:

| Package | From | To |
| --- | --- | --- |
| [com.google.cloud:libraries-bom](https://github.com/googleapis/google-cloud-java) | `26.86.0` | `26.87.0` |
| software.amazon.awssdk:bom | `2.54.5` | `2.54.7` |
| [com.googlecode.libphonenumber:libphonenumber](https://github.com/google/libphonenumber) | `9.0.37` | `9.0.38` |
| [com.stripe:stripe-java](https://github.com/stripe/stripe-java) | `33.3.0` | `33.4.0` |
| [org.signal:libsignal-server](https://github.com/signalapp/libsignal) | `0.101.0` | `0.101.2` |



Updates `com.google.cloud:libraries-bom` from 26.86.0 to 26.87.0
- [Release notes](https://github.com/googleapis/google-cloud-java/releases)
- [Changelog](https://github.com/googleapis/google-cloud-java/blob/main/CHANGELOG.md)
- [Commits](https://github.com/googleapis/google-cloud-java/compare/libraries-bom/v26.86.0...libraries-bom/v26.87.0)

Updates `software.amazon.awssdk:bom` from 2.54.5 to 2.54.7

Updates `com.googlecode.libphonenumber:libphonenumber` from 9.0.37 to 9.0.38
- [Release notes](https://github.com/google/libphonenumber/releases)
- [Changelog](https://github.com/google/libphonenumber/blob/master/release_notes.txt)
- [Commits](https://github.com/google/libphonenumber/compare/v9.0.37...v9.0.38)

Updates `com.stripe:stripe-java` from 33.3.0 to 33.4.0
- [Release notes](https://github.com/stripe/stripe-java/releases)
- [Changelog](https://github.com/stripe/stripe-java/blob/master/CHANGELOG.md)
- [Commits](https://github.com/stripe/stripe-java/compare/v33.3.0...v33.4.0)

Updates `org.signal:libsignal-server` from 0.101.0 to 0.101.2
- [Release notes](https://github.com/signalapp/libsignal/releases)
- [Changelog](https://github.com/signalapp/libsignal/blob/main/RELEASE_NOTES.md)
- [Commits](https://github.com/signalapp/libsignal/compare/v0.101.0...v0.101.2)

Updates `com.google.cloud:libraries-bom` from 26.86.0 to 26.87.0
- [Release notes](https://github.com/googleapis/google-cloud-java/releases)
- [Changelog](https://github.com/googleapis/google-cloud-java/blob/main/CHANGELOG.md)
- [Commits](https://github.com/googleapis/google-cloud-java/compare/libraries-bom/v26.86.0...libraries-bom/v26.87.0)

Updates `software.amazon.awssdk:bom` from 2.54.5 to 2.54.7

Updates `com.googlecode.libphonenumber:libphonenumber` from 9.0.37 to 9.0.38
- [Release notes](https://github.com/google/libphonenumber/releases)
- [Changelog](https://github.com/google/libphonenumber/blob/master/release_notes.txt)
- [Commits](https://github.com/google/libphonenumber/compare/v9.0.37...v9.0.38)

Updates `com.stripe:stripe-java` from 33.3.0 to 33.4.0
- [Release notes](https://github.com/stripe/stripe-java/releases)
- [Changelog](https://github.com/stripe/stripe-java/blob/master/CHANGELOG.md)
- [Commits](https://github.com/stripe/stripe-java/compare/v33.3.0...v33.4.0)

Updates `org.signal:libsignal-server` from 0.101.0 to 0.101.2
- [Release notes](https://github.com/signalapp/libsignal/releases)
- [Changelog](https://github.com/signalapp/libsignal/blob/main/RELEASE_NOTES.md)
- [Commits](https://github.com/signalapp/libsignal/compare/v0.101.0...v0.101.2)

Updates `com.google.cloud:libraries-bom` from 26.86.0 to 26.87.0
- [Release notes](https://github.com/googleapis/google-cloud-java/releases)
- [Changelog](https://github.com/googleapis/google-cloud-java/blob/main/CHANGELOG.md)
- [Commits](https://github.com/googleapis/google-cloud-java/compare/libraries-bom/v26.86.0...libraries-bom/v26.87.0)

Updates `software.amazon.awssdk:bom` from 2.54.5 to 2.54.7

Updates `com.googlecode.libphonenumber:libphonenumber` from 9.0.37 to 9.0.38
- [Release notes](https://github.com/google/libphonenumber/releases)
- [Changelog](https://github.com/google/libphonenumber/blob/master/release_notes.txt)
- [Commits](https://github.com/google/libphonenumber/compare/v9.0.37...v9.0.38)

Updates `com.stripe:stripe-java` from 33.3.0 to 33.4.0
- [Release notes](https://github.com/stripe/stripe-java/releases)
- [Changelog](https://github.com/stripe/stripe-java/blob/master/CHANGELOG.md)
- [Commits](https://github.com/stripe/stripe-java/compare/v33.3.0...v33.4.0)

Updates `org.signal:libsignal-server` from 0.101.0 to 0.101.2
- [Release notes](https://github.com/signalapp/libsignal/releases)
- [Changelog](https://github.com/signalapp/libsignal/blob/main/RELEASE_NOTES.md)
- [Commits](https://github.com/signalapp/libsignal/compare/v0.101.0...v0.101.2)

Updates `com.googlecode.libphonenumber:geocoder` from 3.37 to 3.38
- [Release notes](https://github.com/google/libphonenumber/releases)
- [Changelog](https://github.com/google/libphonenumber/blob/master/release_notes.txt)
- [Commits](https://github.com/google/libphonenumber/commits)

Updates `com.google.cloud:libraries-bom` from 26.86.0 to 26.87.0
- [Release notes](https://github.com/googleapis/google-cloud-java/releases)
- [Changelog](https://github.com/googleapis/google-cloud-java/blob/main/CHANGELOG.md)
- [Commits](https://github.com/googleapis/google-cloud-java/compare/libraries-bom/v26.86.0...libraries-bom/v26.87.0)

Updates `software.amazon.awssdk:bom` from 2.54.5 to 2.54.7

Updates `com.googlecode.libphonenumber:libphonenumber` from 9.0.37 to 9.0.38
- [Release notes](https://github.com/google/libphonenumber/releases)
- [Changelog](https://github.com/google/libphonenumber/blob/master/release_notes.txt)
- [Commits](https://github.com/google/libphonenumber/compare/v9.0.37...v9.0.38)

Updates `com.stripe:stripe-java` from 33.3.0 to 33.4.0
- [Release notes](https://github.com/stripe/stripe-java/releases)
- [Changelog](https://github.com/stripe/stripe-java/blob/master/CHANGELOG.md)
- [Commits](https://github.com/stripe/stripe-java/compare/v33.3.0...v33.4.0)

Updates `org.signal:libsignal-server` from 0.101.0 to 0.101.2
- [Release notes](https://github.com/signalapp/libsignal/releases)
- [Changelog](https://github.com/signalapp/libsignal/blob/main/RELEASE_NOTES.md)
- [Commits](https://github.com/signalapp/libsignal/compare/v0.101.0...v0.101.2)

---
updated-dependencies:
- dependency-name: com.google.cloud:libraries-bom
  dependency-version: 26.87.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: software.amazon.awssdk:bom
  dependency-version: 2.54.7
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: com.googlecode.libphonenumber:libphonenumber
  dependency-version: 9.0.38
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: com.stripe:stripe-java
  dependency-version: 33.4.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: org.signal:libsignal-server
  dependency-version: 0.101.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: com.google.cloud:libraries-bom
  dependency-version: 26.87.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: software.amazon.awssdk:bom
  dependency-version: 2.54.7
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: com.googlecode.libphonenumber:libphonenumber
  dependency-version: 9.0.38
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: com.stripe:stripe-java
  dependency-version: 33.4.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: org.signal:libsignal-server
  dependency-version: 0.101.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: com.google.cloud:libraries-bom
  dependency-version: 26.87.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: software.amazon.awssdk:bom
  dependency-version: 2.54.7
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: com.googlecode.libphonenumber:libphonenumber
  dependency-version: 9.0.38
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: com.stripe:stripe-java
  dependency-version: 33.4.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: org.signal:libsignal-server
  dependency-version: 0.101.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: com.googlecode.libphonenumber:geocoder
  dependency-version: '3.38'
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: com.google.cloud:libraries-bom
  dependency-version: 26.87.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: software.amazon.awssdk:bom
  dependency-version: 2.54.7
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: com.googlecode.libphonenumber:libphonenumber
  dependency-version: 9.0.38
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: com.stripe:stripe-java
  dependency-version: 33.4.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: org.signal:libsignal-server
  dependency-version: 0.101.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-09-02 16:29:21 -04:00
Katherine Yen c60ba6677a Lower queue sizes to 3 MB total 2026-09-02 16:26:37 -04:00
Jon Chambers 32fc76fd47 Install gpg with sudo for integration tests 2026-09-01 17:02:56 -04:00
dependabot[bot] 370c3a9992 Bump actions/setup-java from 5.7.0 to 6.0.0
Bumps [actions/setup-java](https://github.com/actions/setup-java) from 5.7.0 to 6.0.0.
- [Release notes](https://github.com/actions/setup-java/releases)
- [Commits](https://github.com/actions/setup-java/compare/b6effb05e454b25005698d916606bdc6ffcbf961...dd06d9cba3e5552c54d9f8ea23572deb30010f7c)

---
updated-dependencies:
- dependency-name: actions/setup-java
  dependency-version: 6.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-08-31 16:58:10 -04:00
Jon Chambers b3506b186d Install gpg before running setup-java 2026-08-31 16:58:10 -04:00
Ameya Lokare a91585d3c0 Unwrap exception on FoundationDB insert 2026-08-31 13:28:59 -05:00
Jonathan Klabunde Tomer 5469341fd6 make some TOTP-specific RPCs generic to any MFA factor 2026-08-31 11:27:11 -07:00
Ravi Khadiwala 9ee081ef28 Add playOptionId to login configuration 2026-08-31 12:59:56 -05:00
Chris Eager 33bf9ccae5 Update sample configuration 2026-08-27 18:45:43 -04:00
Ameya Lokare 2321f42e20 Verify that FoundationDbMessageStore#clearAll clears the entire account
subspace
2026-08-27 17:39:41 -04:00
Chris Eager 355d95c6c6 Add support for issuing libsignal v0.101.0+ call link credentials 2026-08-27 17:39:03 -04:00
Chris Eager 3dde05de8a Revert to Lettuce 7.6.0 2026-08-27 17:36:45 -04:00
dependabot[bot] 1ed282a790 Bump the minor-java-dependencies group across 4 directories with 10 updates
Bumps the minor-java-dependencies group with 8 updates in the /api-doc directory:

| Package | From | To |
| --- | --- | --- |
| io.swagger.core.v3:swagger-maven-plugin-jakarta | `2.2.53` | `2.2.54` |
| [com.google.protobuf:protobuf-bom](https://github.com/protocolbuffers/protobuf) | `4.35.1` | `4.36.0` |
| software.amazon.awssdk:bom | `2.51.4` | `2.54.5` |
| [io.micrometer:micrometer-bom](https://github.com/micrometer-metrics/micrometer-commercial) | `1.17.0` | `1.17.1` |
| [io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom](https://github.com/open-telemetry/opentelemetry-java-instrumentation) | `2.30.0` | `2.31.1` |
| [io.projectreactor:reactor-bom](https://github.com/reactor/reactor) | `2025.0.6` | `2025.0.7` |
| [io.lettuce:lettuce-core](https://github.com/redis/lettuce) | `7.6.0.RELEASE` | `7.7.0.RELEASE` |
| [com.google.guava:guava](https://github.com/google/guava) | `33.7.0-jre` | `33.7.1-jre` |

Bumps the minor-java-dependencies group with 7 updates in the /integration-tests directory:

| Package | From | To |
| --- | --- | --- |
| [com.google.protobuf:protobuf-bom](https://github.com/protocolbuffers/protobuf) | `4.35.1` | `4.36.0` |
| software.amazon.awssdk:bom | `2.51.4` | `2.54.5` |
| [io.micrometer:micrometer-bom](https://github.com/micrometer-metrics/micrometer-commercial) | `1.17.0` | `1.17.1` |
| [io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom](https://github.com/open-telemetry/opentelemetry-java-instrumentation) | `2.30.0` | `2.31.1` |
| [io.projectreactor:reactor-bom](https://github.com/reactor/reactor) | `2025.0.6` | `2025.0.7` |
| [io.lettuce:lettuce-core](https://github.com/redis/lettuce) | `7.6.0.RELEASE` | `7.7.0.RELEASE` |
| [com.google.guava:guava](https://github.com/google/guava) | `33.7.0-jre` | `33.7.1-jre` |

Bumps the minor-java-dependencies group with 9 updates in the /service directory:

| Package | From | To |
| --- | --- | --- |
| [com.google.protobuf:protobuf-bom](https://github.com/protocolbuffers/protobuf) | `4.35.1` | `4.36.0` |
| software.amazon.awssdk:bom | `2.51.4` | `2.54.5` |
| [io.micrometer:micrometer-bom](https://github.com/micrometer-metrics/micrometer-commercial) | `1.17.0` | `1.17.1` |
| [io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom](https://github.com/open-telemetry/opentelemetry-java-instrumentation) | `2.30.0` | `2.31.1` |
| [io.projectreactor:reactor-bom](https://github.com/reactor/reactor) | `2025.0.6` | `2025.0.7` |
| [io.lettuce:lettuce-core](https://github.com/redis/lettuce) | `7.6.0.RELEASE` | `7.7.0.RELEASE` |
| [com.google.guava:guava](https://github.com/google/guava) | `33.7.0-jre` | `33.7.1-jre` |
| io.swagger.core.v3:swagger-jaxrs2-jakarta | `2.2.53` | `2.2.54` |
| [io.opentelemetry.instrumentation:opentelemetry-logback-appender-1.0](https://github.com/open-telemetry/opentelemetry-java-instrumentation) | `2.30.0-alpha` | `2.31.1-alpha` |

Bumps the minor-java-dependencies group with 7 updates in the /websocket-resources directory:

| Package | From | To |
| --- | --- | --- |
| [com.google.protobuf:protobuf-bom](https://github.com/protocolbuffers/protobuf) | `4.35.1` | `4.36.0` |
| software.amazon.awssdk:bom | `2.51.4` | `2.54.5` |
| [io.micrometer:micrometer-bom](https://github.com/micrometer-metrics/micrometer-commercial) | `1.17.0` | `1.17.1` |
| [io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom](https://github.com/open-telemetry/opentelemetry-java-instrumentation) | `2.30.0` | `2.31.1` |
| [io.projectreactor:reactor-bom](https://github.com/reactor/reactor) | `2025.0.6` | `2025.0.7` |
| [io.lettuce:lettuce-core](https://github.com/redis/lettuce) | `7.6.0.RELEASE` | `7.7.0.RELEASE` |
| [com.google.guava:guava](https://github.com/google/guava) | `33.7.0-jre` | `33.7.1-jre` |

Updates `io.swagger.core.v3:swagger-maven-plugin-jakarta` from 2.2.53 to 2.2.54

Updates `com.google.protobuf:protobuf-bom` from 4.35.1 to 4.36.0
- [Release notes](https://github.com/protocolbuffers/protobuf/releases)
- [Commits](https://github.com/protocolbuffers/protobuf/commits)

Updates `software.amazon.awssdk:bom` from 2.51.4 to 2.54.5

Updates `io.micrometer:micrometer-bom` from 1.17.0 to 1.17.1
- [Commits](https://github.com/micrometer-metrics/micrometer-commercial/commits)

Updates `io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom` from 2.30.0 to 2.31.1
- [Release notes](https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-java-instrumentation/compare/v2.30.0...v2.31.1)

Updates `io.projectreactor:reactor-bom` from 2025.0.6 to 2025.0.7
- [Release notes](https://github.com/reactor/reactor/releases)
- [Commits](https://github.com/reactor/reactor/compare/2025.0.6...2025.0.7)

Updates `io.lettuce:lettuce-core` from 7.6.0.RELEASE to 7.7.0.RELEASE
- [Release notes](https://github.com/redis/lettuce/releases)
- [Changelog](https://github.com/redis/lettuce/blob/main/RELEASE-NOTES.md)
- [Commits](https://github.com/redis/lettuce/compare/7.6.0.RELEASE...7.7.0.RELEASE)

Updates `com.google.guava:guava` from 33.7.0-jre to 33.7.1-jre
- [Release notes](https://github.com/google/guava/releases)
- [Commits](https://github.com/google/guava/commits)

Updates `com.google.protobuf:protobuf-bom` from 4.35.1 to 4.36.0
- [Release notes](https://github.com/protocolbuffers/protobuf/releases)
- [Commits](https://github.com/protocolbuffers/protobuf/commits)

Updates `software.amazon.awssdk:bom` from 2.51.4 to 2.54.5

Updates `io.micrometer:micrometer-bom` from 1.17.0 to 1.17.1
- [Commits](https://github.com/micrometer-metrics/micrometer-commercial/commits)

Updates `io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom` from 2.30.0 to 2.31.1
- [Release notes](https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-java-instrumentation/compare/v2.30.0...v2.31.1)

Updates `io.projectreactor:reactor-bom` from 2025.0.6 to 2025.0.7
- [Release notes](https://github.com/reactor/reactor/releases)
- [Commits](https://github.com/reactor/reactor/compare/2025.0.6...2025.0.7)

Updates `io.lettuce:lettuce-core` from 7.6.0.RELEASE to 7.7.0.RELEASE
- [Release notes](https://github.com/redis/lettuce/releases)
- [Changelog](https://github.com/redis/lettuce/blob/main/RELEASE-NOTES.md)
- [Commits](https://github.com/redis/lettuce/compare/7.6.0.RELEASE...7.7.0.RELEASE)

Updates `com.google.guava:guava` from 33.7.0-jre to 33.7.1-jre
- [Release notes](https://github.com/google/guava/releases)
- [Commits](https://github.com/google/guava/commits)

Updates `io.lettuce:lettuce-core` from 7.6.0.RELEASE to 7.7.0.RELEASE
- [Release notes](https://github.com/redis/lettuce/releases)
- [Changelog](https://github.com/redis/lettuce/blob/main/RELEASE-NOTES.md)
- [Commits](https://github.com/redis/lettuce/compare/7.6.0.RELEASE...7.7.0.RELEASE)

Updates `com.google.guava:guava` from 33.7.0-jre to 33.7.1-jre
- [Release notes](https://github.com/google/guava/releases)
- [Commits](https://github.com/google/guava/commits)

Updates `com.google.protobuf:protobuf-bom` from 4.35.1 to 4.36.0
- [Release notes](https://github.com/protocolbuffers/protobuf/releases)
- [Commits](https://github.com/protocolbuffers/protobuf/commits)

Updates `software.amazon.awssdk:bom` from 2.51.4 to 2.54.5

Updates `io.micrometer:micrometer-bom` from 1.17.0 to 1.17.1
- [Commits](https://github.com/micrometer-metrics/micrometer-commercial/commits)

Updates `io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom` from 2.30.0 to 2.31.1
- [Release notes](https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-java-instrumentation/compare/v2.30.0...v2.31.1)

Updates `io.projectreactor:reactor-bom` from 2025.0.6 to 2025.0.7
- [Release notes](https://github.com/reactor/reactor/releases)
- [Commits](https://github.com/reactor/reactor/compare/2025.0.6...2025.0.7)

Updates `com.google.guava:guava` from 33.7.0-jre to 33.7.1-jre
- [Release notes](https://github.com/google/guava/releases)
- [Commits](https://github.com/google/guava/commits)

Updates `com.google.protobuf:protobuf-bom` from 4.35.1 to 4.36.0
- [Release notes](https://github.com/protocolbuffers/protobuf/releases)
- [Commits](https://github.com/protocolbuffers/protobuf/commits)

Updates `software.amazon.awssdk:bom` from 2.51.4 to 2.54.5

Updates `io.micrometer:micrometer-bom` from 1.17.0 to 1.17.1
- [Commits](https://github.com/micrometer-metrics/micrometer-commercial/commits)

Updates `io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom` from 2.30.0 to 2.31.1
- [Release notes](https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-java-instrumentation/compare/v2.30.0...v2.31.1)

Updates `io.projectreactor:reactor-bom` from 2025.0.6 to 2025.0.7
- [Release notes](https://github.com/reactor/reactor/releases)
- [Commits](https://github.com/reactor/reactor/compare/2025.0.6...2025.0.7)

Updates `io.lettuce:lettuce-core` from 7.6.0.RELEASE to 7.7.0.RELEASE
- [Release notes](https://github.com/redis/lettuce/releases)
- [Changelog](https://github.com/redis/lettuce/blob/main/RELEASE-NOTES.md)
- [Commits](https://github.com/redis/lettuce/compare/7.6.0.RELEASE...7.7.0.RELEASE)

Updates `com.google.protobuf:protobuf-bom` from 4.35.1 to 4.36.0
- [Release notes](https://github.com/protocolbuffers/protobuf/releases)
- [Commits](https://github.com/protocolbuffers/protobuf/commits)

Updates `software.amazon.awssdk:bom` from 2.51.4 to 2.54.5

Updates `io.micrometer:micrometer-bom` from 1.17.0 to 1.17.1
- [Commits](https://github.com/micrometer-metrics/micrometer-commercial/commits)

Updates `io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom` from 2.30.0 to 2.31.1
- [Release notes](https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-java-instrumentation/compare/v2.30.0...v2.31.1)

Updates `io.projectreactor:reactor-bom` from 2025.0.6 to 2025.0.7
- [Release notes](https://github.com/reactor/reactor/releases)
- [Commits](https://github.com/reactor/reactor/compare/2025.0.6...2025.0.7)

Updates `io.lettuce:lettuce-core` from 7.6.0.RELEASE to 7.7.0.RELEASE
- [Release notes](https://github.com/redis/lettuce/releases)
- [Changelog](https://github.com/redis/lettuce/blob/main/RELEASE-NOTES.md)
- [Commits](https://github.com/redis/lettuce/compare/7.6.0.RELEASE...7.7.0.RELEASE)

Updates `com.google.guava:guava` from 33.7.0-jre to 33.7.1-jre
- [Release notes](https://github.com/google/guava/releases)
- [Commits](https://github.com/google/guava/commits)

Updates `com.google.protobuf:protobuf-bom` from 4.35.1 to 4.36.0
- [Release notes](https://github.com/protocolbuffers/protobuf/releases)
- [Commits](https://github.com/protocolbuffers/protobuf/commits)

Updates `software.amazon.awssdk:bom` from 2.51.4 to 2.54.5

Updates `io.micrometer:micrometer-bom` from 1.17.0 to 1.17.1
- [Commits](https://github.com/micrometer-metrics/micrometer-commercial/commits)

Updates `io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom` from 2.30.0 to 2.31.1
- [Release notes](https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-java-instrumentation/compare/v2.30.0...v2.31.1)

Updates `io.projectreactor:reactor-bom` from 2025.0.6 to 2025.0.7
- [Release notes](https://github.com/reactor/reactor/releases)
- [Commits](https://github.com/reactor/reactor/compare/2025.0.6...2025.0.7)

Updates `io.lettuce:lettuce-core` from 7.6.0.RELEASE to 7.7.0.RELEASE
- [Release notes](https://github.com/redis/lettuce/releases)
- [Changelog](https://github.com/redis/lettuce/blob/main/RELEASE-NOTES.md)
- [Commits](https://github.com/redis/lettuce/compare/7.6.0.RELEASE...7.7.0.RELEASE)

Updates `com.google.guava:guava` from 33.7.0-jre to 33.7.1-jre
- [Release notes](https://github.com/google/guava/releases)
- [Commits](https://github.com/google/guava/commits)

Updates `io.lettuce:lettuce-core` from 7.6.0.RELEASE to 7.7.0.RELEASE
- [Release notes](https://github.com/redis/lettuce/releases)
- [Changelog](https://github.com/redis/lettuce/blob/main/RELEASE-NOTES.md)
- [Commits](https://github.com/redis/lettuce/compare/7.6.0.RELEASE...7.7.0.RELEASE)

Updates `com.google.guava:guava` from 33.7.0-jre to 33.7.1-jre
- [Release notes](https://github.com/google/guava/releases)
- [Commits](https://github.com/google/guava/commits)

Updates `com.google.protobuf:protobuf-bom` from 4.35.1 to 4.36.0
- [Release notes](https://github.com/protocolbuffers/protobuf/releases)
- [Commits](https://github.com/protocolbuffers/protobuf/commits)

Updates `software.amazon.awssdk:bom` from 2.51.4 to 2.54.5

Updates `io.micrometer:micrometer-bom` from 1.17.0 to 1.17.1
- [Commits](https://github.com/micrometer-metrics/micrometer-commercial/commits)

Updates `io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom` from 2.30.0 to 2.31.1
- [Release notes](https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-java-instrumentation/compare/v2.30.0...v2.31.1)

Updates `io.projectreactor:reactor-bom` from 2025.0.6 to 2025.0.7
- [Release notes](https://github.com/reactor/reactor/releases)
- [Commits](https://github.com/reactor/reactor/compare/2025.0.6...2025.0.7)

Updates `com.google.guava:guava` from 33.7.0-jre to 33.7.1-jre
- [Release notes](https://github.com/google/guava/releases)
- [Commits](https://github.com/google/guava/commits)

Updates `com.google.protobuf:protobuf-bom` from 4.35.1 to 4.36.0
- [Release notes](https://github.com/protocolbuffers/protobuf/releases)
- [Commits](https://github.com/protocolbuffers/protobuf/commits)

Updates `software.amazon.awssdk:bom` from 2.51.4 to 2.54.5

Updates `io.micrometer:micrometer-bom` from 1.17.0 to 1.17.1
- [Commits](https://github.com/micrometer-metrics/micrometer-commercial/commits)

Updates `io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom` from 2.30.0 to 2.31.1
- [Release notes](https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-java-instrumentation/compare/v2.30.0...v2.31.1)

Updates `io.projectreactor:reactor-bom` from 2025.0.6 to 2025.0.7
- [Release notes](https://github.com/reactor/reactor/releases)
- [Commits](https://github.com/reactor/reactor/compare/2025.0.6...2025.0.7)

Updates `io.lettuce:lettuce-core` from 7.6.0.RELEASE to 7.7.0.RELEASE
- [Release notes](https://github.com/redis/lettuce/releases)
- [Changelog](https://github.com/redis/lettuce/blob/main/RELEASE-NOTES.md)
- [Commits](https://github.com/redis/lettuce/compare/7.6.0.RELEASE...7.7.0.RELEASE)

Updates `com.google.protobuf:protobuf-bom` from 4.35.1 to 4.36.0
- [Release notes](https://github.com/protocolbuffers/protobuf/releases)
- [Commits](https://github.com/protocolbuffers/protobuf/commits)

Updates `software.amazon.awssdk:bom` from 2.51.4 to 2.54.5

Updates `io.micrometer:micrometer-bom` from 1.17.0 to 1.17.1
- [Commits](https://github.com/micrometer-metrics/micrometer-commercial/commits)

Updates `io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom` from 2.30.0 to 2.31.1
- [Release notes](https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-java-instrumentation/compare/v2.30.0...v2.31.1)

Updates `io.projectreactor:reactor-bom` from 2025.0.6 to 2025.0.7
- [Release notes](https://github.com/reactor/reactor/releases)
- [Commits](https://github.com/reactor/reactor/compare/2025.0.6...2025.0.7)

Updates `io.lettuce:lettuce-core` from 7.6.0.RELEASE to 7.7.0.RELEASE
- [Release notes](https://github.com/redis/lettuce/releases)
- [Changelog](https://github.com/redis/lettuce/blob/main/RELEASE-NOTES.md)
- [Commits](https://github.com/redis/lettuce/compare/7.6.0.RELEASE...7.7.0.RELEASE)

Updates `com.google.guava:guava` from 33.7.0-jre to 33.7.1-jre
- [Release notes](https://github.com/google/guava/releases)
- [Commits](https://github.com/google/guava/commits)

Updates `com.google.protobuf:protobuf-bom` from 4.35.1 to 4.36.0
- [Release notes](https://github.com/protocolbuffers/protobuf/releases)
- [Commits](https://github.com/protocolbuffers/protobuf/commits)

Updates `software.amazon.awssdk:bom` from 2.51.4 to 2.54.5

Updates `io.micrometer:micrometer-bom` from 1.17.0 to 1.17.1
- [Commits](https://github.com/micrometer-metrics/micrometer-commercial/commits)

Updates `io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom` from 2.30.0 to 2.31.1
- [Release notes](https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-java-instrumentation/compare/v2.30.0...v2.31.1)

Updates `io.projectreactor:reactor-bom` from 2025.0.6 to 2025.0.7
- [Release notes](https://github.com/reactor/reactor/releases)
- [Commits](https://github.com/reactor/reactor/compare/2025.0.6...2025.0.7)

Updates `io.lettuce:lettuce-core` from 7.6.0.RELEASE to 7.7.0.RELEASE
- [Release notes](https://github.com/redis/lettuce/releases)
- [Changelog](https://github.com/redis/lettuce/blob/main/RELEASE-NOTES.md)
- [Commits](https://github.com/redis/lettuce/compare/7.6.0.RELEASE...7.7.0.RELEASE)

Updates `com.google.guava:guava` from 33.7.0-jre to 33.7.1-jre
- [Release notes](https://github.com/google/guava/releases)
- [Commits](https://github.com/google/guava/commits)

Updates `io.swagger.core.v3:swagger-jaxrs2-jakarta` from 2.2.53 to 2.2.54

Updates `io.opentelemetry.instrumentation:opentelemetry-logback-appender-1.0` from 2.30.0-alpha to 2.31.1-alpha
- [Release notes](https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-java-instrumentation/commits)

Updates `io.lettuce:lettuce-core` from 7.6.0.RELEASE to 7.7.0.RELEASE
- [Release notes](https://github.com/redis/lettuce/releases)
- [Changelog](https://github.com/redis/lettuce/blob/main/RELEASE-NOTES.md)
- [Commits](https://github.com/redis/lettuce/compare/7.6.0.RELEASE...7.7.0.RELEASE)

Updates `com.google.guava:guava` from 33.7.0-jre to 33.7.1-jre
- [Release notes](https://github.com/google/guava/releases)
- [Commits](https://github.com/google/guava/commits)

Updates `com.google.protobuf:protobuf-bom` from 4.35.1 to 4.36.0
- [Release notes](https://github.com/protocolbuffers/protobuf/releases)
- [Commits](https://github.com/protocolbuffers/protobuf/commits)

Updates `software.amazon.awssdk:bom` from 2.51.4 to 2.54.5

Updates `io.micrometer:micrometer-bom` from 1.17.0 to 1.17.1
- [Commits](https://github.com/micrometer-metrics/micrometer-commercial/commits)

Updates `io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom` from 2.30.0 to 2.31.1
- [Release notes](https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-java-instrumentation/compare/v2.30.0...v2.31.1)

Updates `io.projectreactor:reactor-bom` from 2025.0.6 to 2025.0.7
- [Release notes](https://github.com/reactor/reactor/releases)
- [Commits](https://github.com/reactor/reactor/compare/2025.0.6...2025.0.7)

Updates `com.google.guava:guava` from 33.7.0-jre to 33.7.1-jre
- [Release notes](https://github.com/google/guava/releases)
- [Commits](https://github.com/google/guava/commits)

Updates `com.google.protobuf:protobuf-bom` from 4.35.1 to 4.36.0
- [Release notes](https://github.com/protocolbuffers/protobuf/releases)
- [Commits](https://github.com/protocolbuffers/protobuf/commits)

Updates `software.amazon.awssdk:bom` from 2.51.4 to 2.54.5

Updates `io.micrometer:micrometer-bom` from 1.17.0 to 1.17.1
- [Commits](https://github.com/micrometer-metrics/micrometer-commercial/commits)

Updates `io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom` from 2.30.0 to 2.31.1
- [Release notes](https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-java-instrumentation/compare/v2.30.0...v2.31.1)

Updates `io.projectreactor:reactor-bom` from 2025.0.6 to 2025.0.7
- [Release notes](https://github.com/reactor/reactor/releases)
- [Commits](https://github.com/reactor/reactor/compare/2025.0.6...2025.0.7)

Updates `io.lettuce:lettuce-core` from 7.6.0.RELEASE to 7.7.0.RELEASE
- [Release notes](https://github.com/redis/lettuce/releases)
- [Changelog](https://github.com/redis/lettuce/blob/main/RELEASE-NOTES.md)
- [Commits](https://github.com/redis/lettuce/compare/7.6.0.RELEASE...7.7.0.RELEASE)

Updates `com.google.protobuf:protobuf-bom` from 4.35.1 to 4.36.0
- [Release notes](https://github.com/protocolbuffers/protobuf/releases)
- [Commits](https://github.com/protocolbuffers/protobuf/commits)

Updates `software.amazon.awssdk:bom` from 2.51.4 to 2.54.5

Updates `io.micrometer:micrometer-bom` from 1.17.0 to 1.17.1
- [Commits](https://github.com/micrometer-metrics/micrometer-commercial/commits)

Updates `io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom` from 2.30.0 to 2.31.1
- [Release notes](https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-java-instrumentation/compare/v2.30.0...v2.31.1)

Updates `io.projectreactor:reactor-bom` from 2025.0.6 to 2025.0.7
- [Release notes](https://github.com/reactor/reactor/releases)
- [Commits](https://github.com/reactor/reactor/compare/2025.0.6...2025.0.7)

Updates `io.lettuce:lettuce-core` from 7.6.0.RELEASE to 7.7.0.RELEASE
- [Release notes](https://github.com/redis/lettuce/releases)
- [Changelog](https://github.com/redis/lettuce/blob/main/RELEASE-NOTES.md)
- [Commits](https://github.com/redis/lettuce/compare/7.6.0.RELEASE...7.7.0.RELEASE)

Updates `com.google.guava:guava` from 33.7.0-jre to 33.7.1-jre
- [Release notes](https://github.com/google/guava/releases)
- [Commits](https://github.com/google/guava/commits)

Updates `com.google.protobuf:protobuf-bom` from 4.35.1 to 4.36.0
- [Release notes](https://github.com/protocolbuffers/protobuf/releases)
- [Commits](https://github.com/protocolbuffers/protobuf/commits)

Updates `software.amazon.awssdk:bom` from 2.51.4 to 2.54.5

Updates `io.micrometer:micrometer-bom` from 1.17.0 to 1.17.1
- [Commits](https://github.com/micrometer-metrics/micrometer-commercial/commits)

Updates `io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom` from 2.30.0 to 2.31.1
- [Release notes](https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-java-instrumentation/compare/v2.30.0...v2.31.1)

Updates `io.projectreactor:reactor-bom` from 2025.0.6 to 2025.0.7
- [Release notes](https://github.com/reactor/reactor/releases)
- [Commits](https://github.com/reactor/reactor/compare/2025.0.6...2025.0.7)

Updates `io.lettuce:lettuce-core` from 7.6.0.RELEASE to 7.7.0.RELEASE
- [Release notes](https://github.com/redis/lettuce/releases)
- [Changelog](https://github.com/redis/lettuce/blob/main/RELEASE-NOTES.md)
- [Commits](https://github.com/redis/lettuce/compare/7.6.0.RELEASE...7.7.0.RELEASE)

Updates `com.google.guava:guava` from 33.7.0-jre to 33.7.1-jre
- [Release notes](https://github.com/google/guava/releases)
- [Commits](https://github.com/google/guava/commits)

Updates `io.lettuce:lettuce-core` from 7.6.0.RELEASE to 7.7.0.RELEASE
- [Release notes](https://github.com/redis/lettuce/releases)
- [Changelog](https://github.com/redis/lettuce/blob/main/RELEASE-NOTES.md)
- [Commits](https://github.com/redis/lettuce/compare/7.6.0.RELEASE...7.7.0.RELEASE)

Updates `com.google.guava:guava` from 33.7.0-jre to 33.7.1-jre
- [Release notes](https://github.com/google/guava/releases)
- [Commits](https://github.com/google/guava/commits)

Updates `com.google.protobuf:protobuf-bom` from 4.35.1 to 4.36.0
- [Release notes](https://github.com/protocolbuffers/protobuf/releases)
- [Commits](https://github.com/protocolbuffers/protobuf/commits)

Updates `software.amazon.awssdk:bom` from 2.51.4 to 2.54.5

Updates `io.micrometer:micrometer-bom` from 1.17.0 to 1.17.1
- [Commits](https://github.com/micrometer-metrics/micrometer-commercial/commits)

Updates `io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom` from 2.30.0 to 2.31.1
- [Release notes](https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-java-instrumentation/compare/v2.30.0...v2.31.1)

Updates `io.projectreactor:reactor-bom` from 2025.0.6 to 2025.0.7
- [Release notes](https://github.com/reactor/reactor/releases)
- [Commits](https://github.com/reactor/reactor/compare/2025.0.6...2025.0.7)

Updates `com.google.guava:guava` from 33.7.0-jre to 33.7.1-jre
- [Release notes](https://github.com/google/guava/releases)
- [Commits](https://github.com/google/guava/commits)

Updates `com.google.protobuf:protobuf-bom` from 4.35.1 to 4.36.0
- [Release notes](https://github.com/protocolbuffers/protobuf/releases)
- [Commits](https://github.com/protocolbuffers/protobuf/commits)

Updates `software.amazon.awssdk:bom` from 2.51.4 to 2.54.5

Updates `io.micrometer:micrometer-bom` from 1.17.0 to 1.17.1
- [Commits](https://github.com/micrometer-metrics/micrometer-commercial/commits)

Updates `io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom` from 2.30.0 to 2.31.1
- [Release notes](https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-java-instrumentation/compare/v2.30.0...v2.31.1)

Updates `io.projectreactor:reactor-bom` from 2025.0.6 to 2025.0.7
- [Release notes](https://github.com/reactor/reactor/releases)
- [Commits](https://github.com/reactor/reactor/compare/2025.0.6...2025.0.7)

Updates `io.lettuce:lettuce-core` from 7.6.0.RELEASE to 7.7.0.RELEASE
- [Release notes](https://github.com/redis/lettuce/releases)
- [Changelog](https://github.com/redis/lettuce/blob/main/RELEASE-NOTES.md)
- [Commits](https://github.com/redis/lettuce/compare/7.6.0.RELEASE...7.7.0.RELEASE)

---
updated-dependencies:
- dependency-name: io.swagger.core.v3:swagger-maven-plugin-jakarta
  dependency-version: 2.2.54
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: com.google.protobuf:protobuf-bom
  dependency-version: 4.36.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: software.amazon.awssdk:bom
  dependency-version: 2.54.5
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: io.micrometer:micrometer-bom
  dependency-version: 1.17.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom
  dependency-version: 2.31.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: io.projectreactor:reactor-bom
  dependency-version: 2025.0.7
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: io.lettuce:lettuce-core
  dependency-version: 7.7.0.RELEASE
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: com.google.guava:guava
  dependency-version: 33.7.1-jre
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: com.google.protobuf:protobuf-bom
  dependency-version: 4.36.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: software.amazon.awssdk:bom
  dependency-version: 2.54.5
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: io.micrometer:micrometer-bom
  dependency-version: 1.17.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom
  dependency-version: 2.31.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: io.projectreactor:reactor-bom
  dependency-version: 2025.0.7
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: io.lettuce:lettuce-core
  dependency-version: 7.7.0.RELEASE
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: com.google.guava:guava
  dependency-version: 33.7.1-jre
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: io.lettuce:lettuce-core
  dependency-version: 7.7.0.RELEASE
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: com.google.guava:guava
  dependency-version: 33.7.1-jre
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: com.google.protobuf:protobuf-bom
  dependency-version: 4.36.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: software.amazon.awssdk:bom
  dependency-version: 2.54.5
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: io.micrometer:micrometer-bom
  dependency-version: 1.17.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom
  dependency-version: 2.31.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: io.projectreactor:reactor-bom
  dependency-version: 2025.0.7
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: com.google.guava:guava
  dependency-version: 33.7.1-jre
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: com.google.protobuf:protobuf-bom
  dependency-version: 4.36.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: software.amazon.awssdk:bom
  dependency-version: 2.54.5
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: io.micrometer:micrometer-bom
  dependency-version: 1.17.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom
  dependency-version: 2.31.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: io.projectreactor:reactor-bom
  dependency-version: 2025.0.7
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: io.lettuce:lettuce-core
  dependency-version: 7.7.0.RELEASE
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: com.google.protobuf:protobuf-bom
  dependency-version: 4.36.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: software.amazon.awssdk:bom
  dependency-version: 2.54.5
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: io.micrometer:micrometer-bom
  dependency-version: 1.17.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom
  dependency-version: 2.31.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: io.projectreactor:reactor-bom
  dependency-version: 2025.0.7
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: io.lettuce:lettuce-core
  dependency-version: 7.7.0.RELEASE
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: com.google.guava:guava
  dependency-version: 33.7.1-jre
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: com.google.protobuf:protobuf-bom
  dependency-version: 4.36.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: software.amazon.awssdk:bom
  dependency-version: 2.54.5
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: io.micrometer:micrometer-bom
  dependency-version: 1.17.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom
  dependency-version: 2.31.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: io.projectreactor:reactor-bom
  dependency-version: 2025.0.7
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: io.lettuce:lettuce-core
  dependency-version: 7.7.0.RELEASE
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: com.google.guava:guava
  dependency-version: 33.7.1-jre
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: io.lettuce:lettuce-core
  dependency-version: 7.7.0.RELEASE
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: com.google.guava:guava
  dependency-version: 33.7.1-jre
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: com.google.protobuf:protobuf-bom
  dependency-version: 4.36.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: software.amazon.awssdk:bom
  dependency-version: 2.54.5
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: io.micrometer:micrometer-bom
  dependency-version: 1.17.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom
  dependency-version: 2.31.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: io.projectreactor:reactor-bom
  dependency-version: 2025.0.7
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: com.google.guava:guava
  dependency-version: 33.7.1-jre
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: com.google.protobuf:protobuf-bom
  dependency-version: 4.36.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: software.amazon.awssdk:bom
  dependency-version: 2.54.5
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: io.micrometer:micrometer-bom
  dependency-version: 1.17.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom
  dependency-version: 2.31.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: io.projectreactor:reactor-bom
  dependency-version: 2025.0.7
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: io.lettuce:lettuce-core
  dependency-version: 7.7.0.RELEASE
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: com.google.protobuf:protobuf-bom
  dependency-version: 4.36.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: software.amazon.awssdk:bom
  dependency-version: 2.54.5
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: io.micrometer:micrometer-bom
  dependency-version: 1.17.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom
  dependency-version: 2.31.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: io.projectreactor:reactor-bom
  dependency-version: 2025.0.7
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: io.lettuce:lettuce-core
  dependency-version: 7.7.0.RELEASE
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: com.google.guava:guava
  dependency-version: 33.7.1-jre
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: com.google.protobuf:protobuf-bom
  dependency-version: 4.36.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: software.amazon.awssdk:bom
  dependency-version: 2.54.5
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: io.micrometer:micrometer-bom
  dependency-version: 1.17.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom
  dependency-version: 2.31.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: io.projectreactor:reactor-bom
  dependency-version: 2025.0.7
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: io.lettuce:lettuce-core
  dependency-version: 7.7.0.RELEASE
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: com.google.guava:guava
  dependency-version: 33.7.1-jre
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: io.swagger.core.v3:swagger-jaxrs2-jakarta
  dependency-version: 2.2.54
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: io.opentelemetry.instrumentation:opentelemetry-logback-appender-1.0
  dependency-version: 2.31.1-alpha
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: io.lettuce:lettuce-core
  dependency-version: 7.7.0.RELEASE
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: com.google.guava:guava
  dependency-version: 33.7.1-jre
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: com.google.protobuf:protobuf-bom
  dependency-version: 4.36.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: software.amazon.awssdk:bom
  dependency-version: 2.54.5
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: io.micrometer:micrometer-bom
  dependency-version: 1.17.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom
  dependency-version: 2.31.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: io.projectreactor:reactor-bom
  dependency-version: 2025.0.7
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: com.google.guava:guava
  dependency-version: 33.7.1-jre
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: com.google.protobuf:protobuf-bom
  dependency-version: 4.36.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: software.amazon.awssdk:bom
  dependency-version: 2.54.5
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: io.micrometer:micrometer-bom
  dependency-version: 1.17.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom
  dependency-version: 2.31.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: io.projectreactor:reactor-bom
  dependency-version: 2025.0.7
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: io.lettuce:lettuce-core
  dependency-version: 7.7.0.RELEASE
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: com.google.protobuf:protobuf-bom
  dependency-version: 4.36.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: software.amazon.awssdk:bom
  dependency-version: 2.54.5
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: io.micrometer:micrometer-bom
  dependency-version: 1.17.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom
  dependency-version: 2.31.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: io.projectreactor:reactor-bom
  dependency-version: 2025.0.7
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: io.lettuce:lettuce-core
  dependency-version: 7.7.0.RELEASE
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: com.google.guava:guava
  dependency-version: 33.7.1-jre
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: com.google.protobuf:protobuf-bom
  dependency-version: 4.36.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: software.amazon.awssdk:bom
  dependency-version: 2.54.5
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: io.micrometer:micrometer-bom
  dependency-version: 1.17.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom
  dependency-version: 2.31.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: io.projectreactor:reactor-bom
  dependency-version: 2025.0.7
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: io.lettuce:lettuce-core
  dependency-version: 7.7.0.RELEASE
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: com.google.guava:guava
  dependency-version: 33.7.1-jre
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: io.lettuce:lettuce-core
  dependency-version: 7.7.0.RELEASE
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: com.google.guava:guava
  dependency-version: 33.7.1-jre
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: com.google.protobuf:protobuf-bom
  dependency-version: 4.36.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: software.amazon.awssdk:bom
  dependency-version: 2.54.5
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: io.micrometer:micrometer-bom
  dependency-version: 1.17.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom
  dependency-version: 2.31.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: io.projectreactor:reactor-bom
  dependency-version: 2025.0.7
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: com.google.guava:guava
  dependency-version: 33.7.1-jre
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: com.google.protobuf:protobuf-bom
  dependency-version: 4.36.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: software.amazon.awssdk:bom
  dependency-version: 2.54.5
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: io.micrometer:micrometer-bom
  dependency-version: 1.17.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom
  dependency-version: 2.31.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: io.projectreactor:reactor-bom
  dependency-version: 2025.0.7
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: io.lettuce:lettuce-core
  dependency-version: 7.7.0.RELEASE
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-08-27 17:36:45 -04:00
Jon Chambers d1ec5d7d9c More explicitly link TOTP key length with the TOTP HMAC algorithm 2026-08-27 17:35:05 -04:00
Ravi Khadiwala c09e167f3f Don't forward exception messages in unavailable statuses 2026-08-26 15:03:45 -05:00
Ravi Khadiwala eaa3c5f20f Remove GrpcExceptionMapper 2026-08-26 15:03:45 -05:00
Jon Chambers eb0ffb0c4d Preserve TOTP keys when reclaiming accounts 2026-08-26 16:01:00 -04:00
Jon Chambers 31b34ed06f Add a missing @Test annotation 2026-08-26 15:58:13 -04:00
Jon Chambers b247fc24c1 Use a TOTP algorithm supported by a wider range of authenticator apps 2026-08-26 15:57:41 -04:00
Ravi Khadiwala 56a91f104e Use exact path matchers in the omnibus 2026-08-26 14:56:59 -05:00
Ravi Khadiwala 461fce800a Remove test-only Subscriptions method 2026-08-26 14:56:36 -05:00
Ameya Lokare 7f08e8bf4e Fix overflow when calculating chunk size in ClearOrphanedFoundationDbQueuesCommand 2026-08-26 09:37:57 -07:00
Ameya Lokare 08ca97ba00 Register clear orphaned FoundationDB queues command 2026-08-25 16:01:28 -07:00
Chris Eager 4577a4aa9b Also ignore org.eclipse.jetty.ee10:* <=12.1.12 2026-08-25 13:29:52 -07:00
Chris Eager 8fac5de9af Update fdb-java to 7.3.76 2026-08-25 13:29:52 -07:00
Ravi Khadiwala 1dd7383af0 Avoid DNS lookups when parsing PPv2 headers
PPv2 headers should only come from trusted sources, but use a less
error-prone IP parsing mechanism anyways
2026-08-25 13:28:34 -07:00
Ravi Khadiwala 5f66f1c51d Only support X-Forwarded-For header for setting remote address 2026-08-25 13:27:16 -07:00
Ameya Lokare 867ec4a3df Increase queue empty timeout in MessagingTest 2026-08-25 13:26:14 -07:00
Ravi Khadiwala a5f2f7f3e5 Move number rate-limiting after verification 2026-08-25 13:25:28 -07:00
Ameya Lokare 4c2cd0c999 Add command to clear orphaned queues in FoundationDB 2026-08-25 13:13:18 -07:00
Chris Eager 14fb2fb29d Update base image to 25.0.4_7 2026-08-25 11:27:50 -04:00
Jon Chambers c612bd4b73 Use single bytes to represent TOTP key IDs and limit key IDs to [0, 127] 2026-08-25 11:27:38 -04:00
Jon Chambers 4157cadf44 Correct type for TOTP key IDs 2026-08-25 11:27:38 -04:00
Chris Eager 0cabb53aed Reorganize ignore in dependabot.yml 2026-08-25 11:27:31 -04:00
Chris Eager f04e716347 Clean up WhisperServerServiceTest 2026-08-25 11:27:31 -04:00
Chris Eager 558649ba65 Fix jetty-bom in dependency management 2026-08-25 11:27:31 -04:00
Chris Eager 43dc9d11fd Revert fdb-java to 7.3.68
7.3.79 is a pre-release
2026-08-25 11:27:31 -04:00
Chris Eager 9547655a9c Pin jackson-databind to 3.2.1 2026-08-25 11:27:31 -04:00
Chris Eager 547bde4869 Pin okio-jvm to 3.17.0 2026-08-25 11:27:31 -04:00
Chris Eager fe1082d8ba Ignore AWS SDK 2.52.0+
https://github.com/aws/aws-sdk-java-v2/issues/7313
2026-08-25 11:27:31 -04:00
Chris Eager 7c77dd20bc Re-pin logback to 1.5.38 2026-08-25 11:27:31 -04:00
dependabot[bot] f0370b75af Bump the minor-java-dependencies group across 4 directories with 9 updates
Bumps the minor-java-dependencies group with 6 updates in the /api-doc directory:

| Package | From | To |
| --- | --- | --- |
| io.swagger.core.v3:swagger-maven-plugin-jakarta | `2.2.46` | `2.2.53` |
| software.amazon.awssdk:bom | `2.51.4` | `2.53.1` |
| [org.foundationdb:fdb-java](https://github.com/apple/foundationdb) | `7.3.68` | `7.3.79` |
| [com.google.guava:guava](https://github.com/google/guava) | `33.6.0-jre` | `33.7.0-jre` |
| [ch.qos.logback:logback-core](https://github.com/qos-ch/logback) | `1.5.38` | `1.6.3` |
| [ch.qos.logback:logback-classic](https://github.com/qos-ch/logback) | `1.5.38` | `1.6.3` |

Bumps the minor-java-dependencies group with 5 updates in the /integration-tests directory:

| Package | From | To |
| --- | --- | --- |
| software.amazon.awssdk:bom | `2.51.4` | `2.53.1` |
| [org.foundationdb:fdb-java](https://github.com/apple/foundationdb) | `7.3.68` | `7.3.79` |
| [com.google.guava:guava](https://github.com/google/guava) | `33.6.0-jre` | `33.7.0-jre` |
| [ch.qos.logback:logback-core](https://github.com/qos-ch/logback) | `1.5.38` | `1.6.3` |
| [ch.qos.logback:logback-classic](https://github.com/qos-ch/logback) | `1.5.38` | `1.6.3` |

Bumps the minor-java-dependencies group with 8 updates in the /service directory:

| Package | From | To |
| --- | --- | --- |
| software.amazon.awssdk:bom | `2.51.4` | `2.53.1` |
| [org.foundationdb:fdb-java](https://github.com/apple/foundationdb) | `7.3.68` | `7.3.79` |
| [com.google.guava:guava](https://github.com/google/guava) | `33.6.0-jre` | `33.7.0-jre` |
| [ch.qos.logback:logback-core](https://github.com/qos-ch/logback) | `1.5.38` | `1.6.3` |
| [ch.qos.logback:logback-classic](https://github.com/qos-ch/logback) | `1.5.38` | `1.6.3` |
| io.swagger.core.v3:swagger-jaxrs2-jakarta | `2.2.46` | `2.2.53` |
| [tools.jackson.core:jackson-databind](https://github.com/FasterXML/jackson) | `3.2.1` | `3.2.2` |
| [com.squareup.okio:okio-jvm](https://github.com/lysine-dev/okio) | `3.17.0` | `3.18.1` |

Bumps the minor-java-dependencies group with 5 updates in the /websocket-resources directory:

| Package | From | To |
| --- | --- | --- |
| software.amazon.awssdk:bom | `2.51.4` | `2.53.1` |
| [org.foundationdb:fdb-java](https://github.com/apple/foundationdb) | `7.3.68` | `7.3.79` |
| [com.google.guava:guava](https://github.com/google/guava) | `33.6.0-jre` | `33.7.0-jre` |
| [ch.qos.logback:logback-core](https://github.com/qos-ch/logback) | `1.5.38` | `1.6.3` |
| [ch.qos.logback:logback-classic](https://github.com/qos-ch/logback) | `1.5.38` | `1.6.3` |



Updates `io.swagger.core.v3:swagger-maven-plugin-jakarta` from 2.2.46 to 2.2.53

Updates `software.amazon.awssdk:bom` from 2.51.4 to 2.53.1

Updates `org.foundationdb:fdb-java` from 7.3.68 to 7.3.79
- [Release notes](https://github.com/apple/foundationdb/releases)
- [Commits](https://github.com/apple/foundationdb/compare/7.3.68...7.3.79)

Updates `com.google.guava:guava` from 33.6.0-jre to 33.7.0-jre
- [Release notes](https://github.com/google/guava/releases)
- [Commits](https://github.com/google/guava/commits)

Updates `ch.qos.logback:logback-core` from 1.5.38 to 1.6.3
- [Release notes](https://github.com/qos-ch/logback/releases)
- [Commits](https://github.com/qos-ch/logback/compare/v_1.5.38...v_1.6.3)

Updates `ch.qos.logback:logback-classic` from 1.5.38 to 1.6.3
- [Release notes](https://github.com/qos-ch/logback/releases)
- [Commits](https://github.com/qos-ch/logback/compare/v_1.5.38...v_1.6.3)

Updates `ch.qos.logback:logback-classic` from 1.5.38 to 1.6.3
- [Release notes](https://github.com/qos-ch/logback/releases)
- [Commits](https://github.com/qos-ch/logback/compare/v_1.5.38...v_1.6.3)

Updates `software.amazon.awssdk:bom` from 2.51.4 to 2.53.1

Updates `org.foundationdb:fdb-java` from 7.3.68 to 7.3.79
- [Release notes](https://github.com/apple/foundationdb/releases)
- [Commits](https://github.com/apple/foundationdb/compare/7.3.68...7.3.79)

Updates `com.google.guava:guava` from 33.6.0-jre to 33.7.0-jre
- [Release notes](https://github.com/google/guava/releases)
- [Commits](https://github.com/google/guava/commits)

Updates `ch.qos.logback:logback-core` from 1.5.38 to 1.6.3
- [Release notes](https://github.com/qos-ch/logback/releases)
- [Commits](https://github.com/qos-ch/logback/compare/v_1.5.38...v_1.6.3)

Updates `ch.qos.logback:logback-classic` from 1.5.38 to 1.6.3
- [Release notes](https://github.com/qos-ch/logback/releases)
- [Commits](https://github.com/qos-ch/logback/compare/v_1.5.38...v_1.6.3)

Updates `ch.qos.logback:logback-core` from 1.5.38 to 1.6.3
- [Release notes](https://github.com/qos-ch/logback/releases)
- [Commits](https://github.com/qos-ch/logback/compare/v_1.5.38...v_1.6.3)

Updates `ch.qos.logback:logback-classic` from 1.5.38 to 1.6.3
- [Release notes](https://github.com/qos-ch/logback/releases)
- [Commits](https://github.com/qos-ch/logback/compare/v_1.5.38...v_1.6.3)

Updates `org.foundationdb:fdb-java` from 7.3.68 to 7.3.79
- [Release notes](https://github.com/apple/foundationdb/releases)
- [Commits](https://github.com/apple/foundationdb/compare/7.3.68...7.3.79)

Updates `com.google.guava:guava` from 33.6.0-jre to 33.7.0-jre
- [Release notes](https://github.com/google/guava/releases)
- [Commits](https://github.com/google/guava/commits)

Updates `software.amazon.awssdk:bom` from 2.51.4 to 2.53.1

Updates `ch.qos.logback:logback-core` from 1.5.38 to 1.6.3
- [Release notes](https://github.com/qos-ch/logback/releases)
- [Commits](https://github.com/qos-ch/logback/compare/v_1.5.38...v_1.6.3)

Updates `ch.qos.logback:logback-classic` from 1.5.38 to 1.6.3
- [Release notes](https://github.com/qos-ch/logback/releases)
- [Commits](https://github.com/qos-ch/logback/compare/v_1.5.38...v_1.6.3)

Updates `com.google.guava:guava` from 33.6.0-jre to 33.7.0-jre
- [Release notes](https://github.com/google/guava/releases)
- [Commits](https://github.com/google/guava/commits)

Updates `software.amazon.awssdk:bom` from 2.51.4 to 2.53.1

Updates `org.foundationdb:fdb-java` from 7.3.68 to 7.3.79
- [Release notes](https://github.com/apple/foundationdb/releases)
- [Commits](https://github.com/apple/foundationdb/compare/7.3.68...7.3.79)

Updates `software.amazon.awssdk:bom` from 2.51.4 to 2.53.1

Updates `org.foundationdb:fdb-java` from 7.3.68 to 7.3.79
- [Release notes](https://github.com/apple/foundationdb/releases)
- [Commits](https://github.com/apple/foundationdb/compare/7.3.68...7.3.79)

Updates `com.google.guava:guava` from 33.6.0-jre to 33.7.0-jre
- [Release notes](https://github.com/google/guava/releases)
- [Commits](https://github.com/google/guava/commits)

Updates `ch.qos.logback:logback-core` from 1.5.38 to 1.6.3
- [Release notes](https://github.com/qos-ch/logback/releases)
- [Commits](https://github.com/qos-ch/logback/compare/v_1.5.38...v_1.6.3)

Updates `ch.qos.logback:logback-classic` from 1.5.38 to 1.6.3
- [Release notes](https://github.com/qos-ch/logback/releases)
- [Commits](https://github.com/qos-ch/logback/compare/v_1.5.38...v_1.6.3)

Updates `ch.qos.logback:logback-classic` from 1.5.38 to 1.6.3
- [Release notes](https://github.com/qos-ch/logback/releases)
- [Commits](https://github.com/qos-ch/logback/compare/v_1.5.38...v_1.6.3)

Updates `software.amazon.awssdk:bom` from 2.51.4 to 2.53.1

Updates `org.foundationdb:fdb-java` from 7.3.68 to 7.3.79
- [Release notes](https://github.com/apple/foundationdb/releases)
- [Commits](https://github.com/apple/foundationdb/compare/7.3.68...7.3.79)

Updates `com.google.guava:guava` from 33.6.0-jre to 33.7.0-jre
- [Release notes](https://github.com/google/guava/releases)
- [Commits](https://github.com/google/guava/commits)

Updates `ch.qos.logback:logback-core` from 1.5.38 to 1.6.3
- [Release notes](https://github.com/qos-ch/logback/releases)
- [Commits](https://github.com/qos-ch/logback/compare/v_1.5.38...v_1.6.3)

Updates `ch.qos.logback:logback-classic` from 1.5.38 to 1.6.3
- [Release notes](https://github.com/qos-ch/logback/releases)
- [Commits](https://github.com/qos-ch/logback/compare/v_1.5.38...v_1.6.3)

Updates `ch.qos.logback:logback-core` from 1.5.38 to 1.6.3
- [Release notes](https://github.com/qos-ch/logback/releases)
- [Commits](https://github.com/qos-ch/logback/compare/v_1.5.38...v_1.6.3)

Updates `ch.qos.logback:logback-classic` from 1.5.38 to 1.6.3
- [Release notes](https://github.com/qos-ch/logback/releases)
- [Commits](https://github.com/qos-ch/logback/compare/v_1.5.38...v_1.6.3)

Updates `org.foundationdb:fdb-java` from 7.3.68 to 7.3.79
- [Release notes](https://github.com/apple/foundationdb/releases)
- [Commits](https://github.com/apple/foundationdb/compare/7.3.68...7.3.79)

Updates `com.google.guava:guava` from 33.6.0-jre to 33.7.0-jre
- [Release notes](https://github.com/google/guava/releases)
- [Commits](https://github.com/google/guava/commits)

Updates `software.amazon.awssdk:bom` from 2.51.4 to 2.53.1

Updates `ch.qos.logback:logback-core` from 1.5.38 to 1.6.3
- [Release notes](https://github.com/qos-ch/logback/releases)
- [Commits](https://github.com/qos-ch/logback/compare/v_1.5.38...v_1.6.3)

Updates `ch.qos.logback:logback-classic` from 1.5.38 to 1.6.3
- [Release notes](https://github.com/qos-ch/logback/releases)
- [Commits](https://github.com/qos-ch/logback/compare/v_1.5.38...v_1.6.3)

Updates `com.google.guava:guava` from 33.6.0-jre to 33.7.0-jre
- [Release notes](https://github.com/google/guava/releases)
- [Commits](https://github.com/google/guava/commits)

Updates `software.amazon.awssdk:bom` from 2.51.4 to 2.53.1

Updates `org.foundationdb:fdb-java` from 7.3.68 to 7.3.79
- [Release notes](https://github.com/apple/foundationdb/releases)
- [Commits](https://github.com/apple/foundationdb/compare/7.3.68...7.3.79)

Updates `software.amazon.awssdk:bom` from 2.51.4 to 2.53.1

Updates `org.foundationdb:fdb-java` from 7.3.68 to 7.3.79
- [Release notes](https://github.com/apple/foundationdb/releases)
- [Commits](https://github.com/apple/foundationdb/compare/7.3.68...7.3.79)

Updates `com.google.guava:guava` from 33.6.0-jre to 33.7.0-jre
- [Release notes](https://github.com/google/guava/releases)
- [Commits](https://github.com/google/guava/commits)

Updates `ch.qos.logback:logback-core` from 1.5.38 to 1.6.3
- [Release notes](https://github.com/qos-ch/logback/releases)
- [Commits](https://github.com/qos-ch/logback/compare/v_1.5.38...v_1.6.3)

Updates `ch.qos.logback:logback-classic` from 1.5.38 to 1.6.3
- [Release notes](https://github.com/qos-ch/logback/releases)
- [Commits](https://github.com/qos-ch/logback/compare/v_1.5.38...v_1.6.3)

Updates `ch.qos.logback:logback-classic` from 1.5.38 to 1.6.3
- [Release notes](https://github.com/qos-ch/logback/releases)
- [Commits](https://github.com/qos-ch/logback/compare/v_1.5.38...v_1.6.3)

Updates `software.amazon.awssdk:bom` from 2.51.4 to 2.53.1

Updates `org.foundationdb:fdb-java` from 7.3.68 to 7.3.79
- [Release notes](https://github.com/apple/foundationdb/releases)
- [Commits](https://github.com/apple/foundationdb/compare/7.3.68...7.3.79)

Updates `com.google.guava:guava` from 33.6.0-jre to 33.7.0-jre
- [Release notes](https://github.com/google/guava/releases)
- [Commits](https://github.com/google/guava/commits)

Updates `ch.qos.logback:logback-core` from 1.5.38 to 1.6.3
- [Release notes](https://github.com/qos-ch/logback/releases)
- [Commits](https://github.com/qos-ch/logback/compare/v_1.5.38...v_1.6.3)

Updates `ch.qos.logback:logback-classic` from 1.5.38 to 1.6.3
- [Release notes](https://github.com/qos-ch/logback/releases)
- [Commits](https://github.com/qos-ch/logback/compare/v_1.5.38...v_1.6.3)

Updates `io.swagger.core.v3:swagger-jaxrs2-jakarta` from 2.2.46 to 2.2.53

Updates `ch.qos.logback:logback-core` from 1.5.38 to 1.6.3
- [Release notes](https://github.com/qos-ch/logback/releases)
- [Commits](https://github.com/qos-ch/logback/compare/v_1.5.38...v_1.6.3)

Updates `ch.qos.logback:logback-classic` from 1.5.38 to 1.6.3
- [Release notes](https://github.com/qos-ch/logback/releases)
- [Commits](https://github.com/qos-ch/logback/compare/v_1.5.38...v_1.6.3)

Updates `tools.jackson.core:jackson-databind` from 3.2.1 to 3.2.2
- [Commits](https://github.com/FasterXML/jackson/commits)

Updates `org.foundationdb:fdb-java` from 7.3.68 to 7.3.79
- [Release notes](https://github.com/apple/foundationdb/releases)
- [Commits](https://github.com/apple/foundationdb/compare/7.3.68...7.3.79)

Updates `com.google.guava:guava` from 33.6.0-jre to 33.7.0-jre
- [Release notes](https://github.com/google/guava/releases)
- [Commits](https://github.com/google/guava/commits)

Updates `com.squareup.okio:okio-jvm` from 3.17.0 to 3.18.1
- [Changelog](https://github.com/lysine-dev/okio/blob/main/CHANGELOG.md)
- [Commits](https://github.com/lysine-dev/okio/compare/parent-3.17.0...parent-3.18.1)

Updates `software.amazon.awssdk:bom` from 2.51.4 to 2.53.1

Updates `ch.qos.logback:logback-core` from 1.5.38 to 1.6.3
- [Release notes](https://github.com/qos-ch/logback/releases)
- [Commits](https://github.com/qos-ch/logback/compare/v_1.5.38...v_1.6.3)

Updates `ch.qos.logback:logback-classic` from 1.5.38 to 1.6.3
- [Release notes](https://github.com/qos-ch/logback/releases)
- [Commits](https://github.com/qos-ch/logback/compare/v_1.5.38...v_1.6.3)

Updates `com.google.guava:guava` from 33.6.0-jre to 33.7.0-jre
- [Release notes](https://github.com/google/guava/releases)
- [Commits](https://github.com/google/guava/commits)

Updates `software.amazon.awssdk:bom` from 2.51.4 to 2.53.1

Updates `org.foundationdb:fdb-java` from 7.3.68 to 7.3.79
- [Release notes](https://github.com/apple/foundationdb/releases)
- [Commits](https://github.com/apple/foundationdb/compare/7.3.68...7.3.79)

Updates `software.amazon.awssdk:bom` from 2.51.4 to 2.53.1

Updates `org.foundationdb:fdb-java` from 7.3.68 to 7.3.79
- [Release notes](https://github.com/apple/foundationdb/releases)
- [Commits](https://github.com/apple/foundationdb/compare/7.3.68...7.3.79)

Updates `com.google.guava:guava` from 33.6.0-jre to 33.7.0-jre
- [Release notes](https://github.com/google/guava/releases)
- [Commits](https://github.com/google/guava/commits)

Updates `ch.qos.logback:logback-core` from 1.5.38 to 1.6.3
- [Release notes](https://github.com/qos-ch/logback/releases)
- [Commits](https://github.com/qos-ch/logback/compare/v_1.5.38...v_1.6.3)

Updates `ch.qos.logback:logback-classic` from 1.5.38 to 1.6.3
- [Release notes](https://github.com/qos-ch/logback/releases)
- [Commits](https://github.com/qos-ch/logback/compare/v_1.5.38...v_1.6.3)

Updates `ch.qos.logback:logback-classic` from 1.5.38 to 1.6.3
- [Release notes](https://github.com/qos-ch/logback/releases)
- [Commits](https://github.com/qos-ch/logback/compare/v_1.5.38...v_1.6.3)

Updates `software.amazon.awssdk:bom` from 2.51.4 to 2.53.1

Updates `org.foundationdb:fdb-java` from 7.3.68 to 7.3.79
- [Release notes](https://github.com/apple/foundationdb/releases)
- [Commits](https://github.com/apple/foundationdb/compare/7.3.68...7.3.79)

Updates `com.google.guava:guava` from 33.6.0-jre to 33.7.0-jre
- [Release notes](https://github.com/google/guava/releases)
- [Commits](https://github.com/google/guava/commits)

Updates `ch.qos.logback:logback-core` from 1.5.38 to 1.6.3
- [Release notes](https://github.com/qos-ch/logback/releases)
- [Commits](https://github.com/qos-ch/logback/compare/v_1.5.38...v_1.6.3)

Updates `ch.qos.logback:logback-classic` from 1.5.38 to 1.6.3
- [Release notes](https://github.com/qos-ch/logback/releases)
- [Commits](https://github.com/qos-ch/logback/compare/v_1.5.38...v_1.6.3)

Updates `ch.qos.logback:logback-core` from 1.5.38 to 1.6.3
- [Release notes](https://github.com/qos-ch/logback/releases)
- [Commits](https://github.com/qos-ch/logback/compare/v_1.5.38...v_1.6.3)

Updates `ch.qos.logback:logback-classic` from 1.5.38 to 1.6.3
- [Release notes](https://github.com/qos-ch/logback/releases)
- [Commits](https://github.com/qos-ch/logback/compare/v_1.5.38...v_1.6.3)

Updates `org.foundationdb:fdb-java` from 7.3.68 to 7.3.79
- [Release notes](https://github.com/apple/foundationdb/releases)
- [Commits](https://github.com/apple/foundationdb/compare/7.3.68...7.3.79)

Updates `com.google.guava:guava` from 33.6.0-jre to 33.7.0-jre
- [Release notes](https://github.com/google/guava/releases)
- [Commits](https://github.com/google/guava/commits)

Updates `software.amazon.awssdk:bom` from 2.51.4 to 2.53.1

Updates `ch.qos.logback:logback-core` from 1.5.38 to 1.6.3
- [Release notes](https://github.com/qos-ch/logback/releases)
- [Commits](https://github.com/qos-ch/logback/compare/v_1.5.38...v_1.6.3)

Updates `ch.qos.logback:logback-classic` from 1.5.38 to 1.6.3
- [Release notes](https://github.com/qos-ch/logback/releases)
- [Commits](https://github.com/qos-ch/logback/compare/v_1.5.38...v_1.6.3)

Updates `com.google.guava:guava` from 33.6.0-jre to 33.7.0-jre
- [Release notes](https://github.com/google/guava/releases)
- [Commits](https://github.com/google/guava/commits)

Updates `software.amazon.awssdk:bom` from 2.51.4 to 2.53.1

Updates `org.foundationdb:fdb-java` from 7.3.68 to 7.3.79
- [Release notes](https://github.com/apple/foundationdb/releases)
- [Commits](https://github.com/apple/foundationdb/compare/7.3.68...7.3.79)

---
updated-dependencies:
- dependency-name: io.swagger.core.v3:swagger-maven-plugin-jakarta
  dependency-version: 2.2.53
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: software.amazon.awssdk:bom
  dependency-version: 2.53.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: org.foundationdb:fdb-java
  dependency-version: 7.3.79
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: com.google.guava:guava
  dependency-version: 33.7.0-jre
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: ch.qos.logback:logback-core
  dependency-version: 1.6.3
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: ch.qos.logback:logback-classic
  dependency-version: 1.6.3
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: ch.qos.logback:logback-classic
  dependency-version: 1.6.3
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: software.amazon.awssdk:bom
  dependency-version: 2.53.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: org.foundationdb:fdb-java
  dependency-version: 7.3.79
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: com.google.guava:guava
  dependency-version: 33.7.0-jre
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: ch.qos.logback:logback-core
  dependency-version: 1.6.3
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: ch.qos.logback:logback-classic
  dependency-version: 1.6.3
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: ch.qos.logback:logback-core
  dependency-version: 1.6.3
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: ch.qos.logback:logback-classic
  dependency-version: 1.6.3
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: org.foundationdb:fdb-java
  dependency-version: 7.3.79
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: com.google.guava:guava
  dependency-version: 33.7.0-jre
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: software.amazon.awssdk:bom
  dependency-version: 2.53.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: ch.qos.logback:logback-core
  dependency-version: 1.6.3
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: ch.qos.logback:logback-classic
  dependency-version: 1.6.3
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: com.google.guava:guava
  dependency-version: 33.7.0-jre
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: software.amazon.awssdk:bom
  dependency-version: 2.53.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: org.foundationdb:fdb-java
  dependency-version: 7.3.79
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: software.amazon.awssdk:bom
  dependency-version: 2.53.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: org.foundationdb:fdb-java
  dependency-version: 7.3.79
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: com.google.guava:guava
  dependency-version: 33.7.0-jre
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: ch.qos.logback:logback-core
  dependency-version: 1.6.3
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: ch.qos.logback:logback-classic
  dependency-version: 1.6.3
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: ch.qos.logback:logback-classic
  dependency-version: 1.6.3
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: software.amazon.awssdk:bom
  dependency-version: 2.53.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: org.foundationdb:fdb-java
  dependency-version: 7.3.79
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: com.google.guava:guava
  dependency-version: 33.7.0-jre
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: ch.qos.logback:logback-core
  dependency-version: 1.6.3
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: ch.qos.logback:logback-classic
  dependency-version: 1.6.3
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: ch.qos.logback:logback-core
  dependency-version: 1.6.3
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: ch.qos.logback:logback-classic
  dependency-version: 1.6.3
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: org.foundationdb:fdb-java
  dependency-version: 7.3.79
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: com.google.guava:guava
  dependency-version: 33.7.0-jre
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: software.amazon.awssdk:bom
  dependency-version: 2.53.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: ch.qos.logback:logback-core
  dependency-version: 1.6.3
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: ch.qos.logback:logback-classic
  dependency-version: 1.6.3
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: com.google.guava:guava
  dependency-version: 33.7.0-jre
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: software.amazon.awssdk:bom
  dependency-version: 2.53.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: org.foundationdb:fdb-java
  dependency-version: 7.3.79
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: software.amazon.awssdk:bom
  dependency-version: 2.53.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: org.foundationdb:fdb-java
  dependency-version: 7.3.79
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: com.google.guava:guava
  dependency-version: 33.7.0-jre
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: ch.qos.logback:logback-core
  dependency-version: 1.6.3
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: ch.qos.logback:logback-classic
  dependency-version: 1.6.3
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: ch.qos.logback:logback-classic
  dependency-version: 1.6.3
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: software.amazon.awssdk:bom
  dependency-version: 2.53.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: org.foundationdb:fdb-java
  dependency-version: 7.3.79
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: com.google.guava:guava
  dependency-version: 33.7.0-jre
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: ch.qos.logback:logback-core
  dependency-version: 1.6.3
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: ch.qos.logback:logback-classic
  dependency-version: 1.6.3
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: io.swagger.core.v3:swagger-jaxrs2-jakarta
  dependency-version: 2.2.53
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: ch.qos.logback:logback-core
  dependency-version: 1.6.3
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: ch.qos.logback:logback-classic
  dependency-version: 1.6.3
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: tools.jackson.core:jackson-databind
  dependency-version: 3.2.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: org.foundationdb:fdb-java
  dependency-version: 7.3.79
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: com.google.guava:guava
  dependency-version: 33.7.0-jre
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: com.squareup.okio:okio-jvm
  dependency-version: 3.18.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: software.amazon.awssdk:bom
  dependency-version: 2.53.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: ch.qos.logback:logback-core
  dependency-version: 1.6.3
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: ch.qos.logback:logback-classic
  dependency-version: 1.6.3
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: com.google.guava:guava
  dependency-version: 33.7.0-jre
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: software.amazon.awssdk:bom
  dependency-version: 2.53.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: org.foundationdb:fdb-java
  dependency-version: 7.3.79
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: software.amazon.awssdk:bom
  dependency-version: 2.53.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: org.foundationdb:fdb-java
  dependency-version: 7.3.79
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: com.google.guava:guava
  dependency-version: 33.7.0-jre
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: ch.qos.logback:logback-core
  dependency-version: 1.6.3
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: ch.qos.logback:logback-classic
  dependency-version: 1.6.3
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: ch.qos.logback:logback-classic
  dependency-version: 1.6.3
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: software.amazon.awssdk:bom
  dependency-version: 2.53.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: org.foundationdb:fdb-java
  dependency-version: 7.3.79
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: com.google.guava:guava
  dependency-version: 33.7.0-jre
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: ch.qos.logback:logback-core
  dependency-version: 1.6.3
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: ch.qos.logback:logback-classic
  dependency-version: 1.6.3
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: ch.qos.logback:logback-core
  dependency-version: 1.6.3
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: ch.qos.logback:logback-classic
  dependency-version: 1.6.3
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: org.foundationdb:fdb-java
  dependency-version: 7.3.79
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: com.google.guava:guava
  dependency-version: 33.7.0-jre
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: software.amazon.awssdk:bom
  dependency-version: 2.53.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: ch.qos.logback:logback-core
  dependency-version: 1.6.3
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: ch.qos.logback:logback-classic
  dependency-version: 1.6.3
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: com.google.guava:guava
  dependency-version: 33.7.0-jre
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: software.amazon.awssdk:bom
  dependency-version: 2.53.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: org.foundationdb:fdb-java
  dependency-version: 7.3.79
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-08-25 11:27:31 -04:00
Ravi Khadiwala ed08d1dc23 Handle empty RRPs gracefully 2026-08-25 11:27:26 -04:00
Chris Eager 369ca0b514 Add OpenTelemetryConfiguration.publishMaxGaugeForHistograms 2026-08-21 17:44:47 -04:00
Chris Eager 218a1cd75f Update to the latest version of the spam filter 2026-08-20 17:40:08 -04:00
Chris Eager b04e41803a Reorder a few more dependencyManagement items 2026-08-20 17:38:49 -04:00
Chris Eager e92c3bb8aa Resolve conscrypt version conflict by moving libraries-bom before dropwizard-dependencies 2026-08-20 17:38:49 -04:00
moiseev-signal 2bcecc7f7d Return 422 rather than 500 for an empty account recovery password 2026-08-20 15:55:16 -04:00
Chris Eager e8979082a7 ProfileGrpcHelper: handle potentially null v1 fields 2026-08-20 15:49:58 -04:00
Chris Eager 5c99b03eb2 Add ProfileGrpcService.SetV1Avatar 2026-08-20 15:49:58 -04:00
Chris Eager 9814fee556 Update to the latest version of the spam filter 2026-08-20 15:48:32 -04:00
Chris Eager 5b18ecafaa Add conscrypt dependency to resolve gax conflict 2026-08-20 15:48:08 -04:00
Chris Eager f31fb14667 Add protobuf-bom and protobuf 4.35.1 2026-08-20 13:00:15 -04:00
Chris Eager c6d6469008 Add MetricsUtilTest#initOpenTelemetry 2026-08-20 13:00:15 -04:00
Jon Chambers 863057d659 Check TOTP at registration time 2026-08-20 11:38:09 -04:00
Jon Chambers 2b3a6e1aa5 Add gRPC endpoints for working with TOTP keys 2026-08-20 11:35:48 -04:00
Jon Chambers 38ca4e6b27 Add support for generating, storing, and managing TOTP keys 2026-08-20 11:16:23 -04:00
Ameya Lokare 65bc5e3257 Use the correct shared secret for minting storage service credentials in
gRPC
2026-08-20 11:02:30 -04:00
Chris Eager ec5613b92a Update jackson-bom to 2.22.2 2026-08-20 10:59:51 -04:00
dependabot[bot] e77d3cb9cb Bump com.apple.itunes.storekit:app-store-server-library in /service
Bumps [com.apple.itunes.storekit:app-store-server-library](https://github.com/apple/app-store-server-library-java) from 4.0.0 to 5.2.0.
- [Release notes](https://github.com/apple/app-store-server-library-java/releases)
- [Changelog](https://github.com/apple/app-store-server-library-java/blob/main/CHANGELOG.md)
- [Commits](https://github.com/apple/app-store-server-library-java/compare/v4.0.0...v5.2.0)

---
updated-dependencies:
- dependency-name: com.apple.itunes.storekit:app-store-server-library
  dependency-version: 5.2.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-08-20 10:48:20 -04:00
Chris Eager 02e6fb0ecf Downgrade to aws sdk 2.51.4
2.52.0+ causes timeouts in MessagesDynamoDbTest.testLimitedLoad
2026-08-20 10:16:14 -04:00
Chris Eager fbf53cd3e8 Update Jetty.VERSION check in StripContentLengthOnConnectFilterTest 2026-08-20 10:16:14 -04:00
Chris Eager 4bcf33d666 Update dynamodb-local to 3.3.1 2026-08-20 10:16:14 -04:00
Chris Eager 31b0a096f4 Update example number in SchedulingUtilTest.zoneIdSelectionMultipleOffsets 2026-08-20 10:16:14 -04:00
Chris Eager 1b303cbf01 Revert to FoundationDB 7.3.68 2026-08-20 10:16:14 -04:00
Chris Eager bb76feff71 Use internal ByteArrayAdapter.Deserializing 2026-08-20 10:16:14 -04:00
Chris Eager c155696488 Resolve dependency convergence 2026-08-20 10:16:14 -04:00
Chris Eager 446c4b2553 Downgrade to logback 1.5.38
Dropwizard references a constant removed in 1.6.

dropwizard/dropwizard#11273
2026-08-20 10:16:14 -04:00
dependabot[bot] 662c040bd0 Bump the minor-java-dependencies group across 4 directories with 53 updates
Bumps the minor-java-dependencies group with 41 updates in the /api-doc directory:

| Package | From | To |
| --- | --- | --- |
| io.swagger.core.v3:swagger-maven-plugin-jakarta | `2.2.46` | `2.2.53` |
| [com.google.cloud.tools:jib-maven-plugin](https://github.com/GoogleContainerTools/jib) | `3.4.6` | `3.5.2` |
| [com.fasterxml.jackson:jackson-bom](https://github.com/FasterXML/jackson-bom) | `2.21.2` | `2.22.1` |
| io.dropwizard:dropwizard-dependencies | `5.0.1` | `5.0.2` |
| [io.netty:netty-bom](https://github.com/netty/netty) | `4.2.13.Final` | `4.2.17.Final` |
| software.amazon.awssdk:bom | `2.42.27` | `2.53.1` |
| [com.google.cloud:libraries-bom](https://github.com/googleapis/google-cloud-java) | `26.79.0` | `26.86.0` |
| [io.micrometer:micrometer-bom](https://github.com/micrometer-metrics/micrometer) | `1.16.4` | `1.17.0` |
| [io.opentelemetry:opentelemetry-bom](https://github.com/open-telemetry/opentelemetry-java) | `1.60.1` | `1.65.0` |
| [io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom](https://github.com/open-telemetry/opentelemetry-java-instrumentation) | `2.26.1` | `2.30.0` |
| [io.projectreactor:reactor-bom](https://github.com/reactor/reactor) | `2025.0.4` | `2025.0.6` |
| [org.jetbrains.kotlin:kotlin-bom](https://github.com/JetBrains/kotlin) | `2.3.20` | `2.4.10` |
| [com.eatthepath:pushy](https://github.com/jchambers/pushy) | `0.15.4` | `0.15.6` |
| [com.eatthepath:pushy-dropwizard-metrics-listener](https://github.com/jchambers/pushy) | `0.15.4` | `0.15.6` |
| [com.googlecode.libphonenumber:libphonenumber](https://github.com/google/libphonenumber) | `9.0.21` | `9.0.37` |
| commons-io:commons-io | `2.21.0` | `2.22.0` |
| [io.lettuce:lettuce-core](https://github.com/redis/lettuce) | `7.5.1.RELEASE` | `7.6.0.RELEASE` |
| [org.foundationdb:fdb-java](https://github.com/apple/foundationdb) | `7.3.68` | `7.4.6` |
| org.slf4j:slf4j-api | `2.0.17` | `2.0.18` |
| org.slf4j:slf4j-nop | `2.0.17` | `2.0.18` |
| [commons-logging:commons-logging](https://github.com/apache/commons-logging) | `1.3.6` | `1.4.0` |
| [com.stripe:stripe-java](https://github.com/stripe/stripe-java) | `33.1.0` | `33.3.0` |
| [com.braintreepayments.gateway:braintree-java](https://github.com/braintree/braintree_java) | `3.48.0` | `3.53.0` |
| [com.google.code.gson:gson](https://github.com/google/gson) | `2.13.2` | `2.14.0` |
| [com.google.guava:guava](https://github.com/google/guava) | `33.5.0-jre` | `33.6.0-jre` |
| [org.signal:libsignal-server](https://github.com/signalapp/libsignal) | `0.100.0` | `0.101.0` |
| [org.signal:simple-grpc-runtime](https://github.com/signalapp/simple-grpc) | `0.2.0` | `0.2.1` |
| [org.apache.logging.log4j:log4j-bom](https://github.com/apache/logging-log4j2) | `2.25.4` | `2.26.1` |
| [ch.qos.logback:logback-core](https://github.com/qos-ch/logback) | `1.5.38` | `1.6.3` |
| [ch.qos.logback:logback-classic](https://github.com/qos-ch/logback) | `1.5.38` | `1.6.3` |
| ch.qos.logback.access:logback-access-common | `2.0.12` | `2.0.15` |
| [org.testcontainers:testcontainers-bom](https://github.com/testcontainers/testcontainers-java) | `2.0.4` | `2.0.5` |
| [org.wiremock:wiremock-jetty12](https://github.com/wiremock/wiremock) | `3.13.1` | `3.13.2` |
| [org.apache.maven.plugins:maven-surefire-plugin](https://github.com/apache/maven-surefire) | `3.5.5` | `3.5.6` |
| [org.apache.maven.plugins:maven-failsafe-plugin](https://github.com/apache/maven-surefire) | `3.5.4` | `3.5.6` |
| [org.apache.maven.plugins:maven-jar-plugin](https://github.com/apache/maven-jar-plugin) | `3.5.0` | `3.5.1` |
| [org.apache.maven.plugins:maven-shade-plugin](https://github.com/apache/maven-shade-plugin) | `3.6.1` | `3.6.2` |
| [org.apache.maven.plugins:maven-assembly-plugin](https://github.com/apache/maven-assembly-plugin) | `3.7.1` | `3.8.0` |
| [org.codehaus.mojo:properties-maven-plugin](https://github.com/mojohaus/properties-maven-plugin) | `1.2.1` | `1.3.0` |
| [org.apache.maven.plugins:maven-dependency-plugin](https://github.com/apache/maven-dependency-plugin) | `3.10.0` | `3.11.0` |
| [org.apache.maven.plugins:maven-enforcer-plugin](https://github.com/apache/maven-enforcer) | `3.6.2` | `3.6.3` |

Bumps the minor-java-dependencies group with 41 updates in the /integration-tests directory:

| Package | From | To |
| --- | --- | --- |
| [com.google.cloud.tools:jib-maven-plugin](https://github.com/GoogleContainerTools/jib) | `3.4.6` | `3.5.2` |
| [com.fasterxml.jackson:jackson-bom](https://github.com/FasterXML/jackson-bom) | `2.21.2` | `2.22.1` |
| io.dropwizard:dropwizard-dependencies | `5.0.1` | `5.0.2` |
| [io.netty:netty-bom](https://github.com/netty/netty) | `4.2.13.Final` | `4.2.17.Final` |
| software.amazon.awssdk:bom | `2.42.27` | `2.53.1` |
| [com.google.cloud:libraries-bom](https://github.com/googleapis/google-cloud-java) | `26.79.0` | `26.86.0` |
| [io.micrometer:micrometer-bom](https://github.com/micrometer-metrics/micrometer) | `1.16.4` | `1.17.0` |
| [io.opentelemetry:opentelemetry-bom](https://github.com/open-telemetry/opentelemetry-java) | `1.60.1` | `1.65.0` |
| [io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom](https://github.com/open-telemetry/opentelemetry-java-instrumentation) | `2.26.1` | `2.30.0` |
| [io.projectreactor:reactor-bom](https://github.com/reactor/reactor) | `2025.0.4` | `2025.0.6` |
| [org.jetbrains.kotlin:kotlin-bom](https://github.com/JetBrains/kotlin) | `2.3.20` | `2.4.10` |
| [com.eatthepath:pushy](https://github.com/jchambers/pushy) | `0.15.4` | `0.15.6` |
| [com.eatthepath:pushy-dropwizard-metrics-listener](https://github.com/jchambers/pushy) | `0.15.4` | `0.15.6` |
| [com.googlecode.libphonenumber:libphonenumber](https://github.com/google/libphonenumber) | `9.0.21` | `9.0.37` |
| commons-io:commons-io | `2.21.0` | `2.22.0` |
| [io.lettuce:lettuce-core](https://github.com/redis/lettuce) | `7.5.1.RELEASE` | `7.6.0.RELEASE` |
| [org.foundationdb:fdb-java](https://github.com/apple/foundationdb) | `7.3.68` | `7.4.6` |
| org.slf4j:slf4j-api | `2.0.17` | `2.0.18` |
| org.slf4j:slf4j-nop | `2.0.17` | `2.0.18` |
| [commons-logging:commons-logging](https://github.com/apache/commons-logging) | `1.3.6` | `1.4.0` |
| [com.stripe:stripe-java](https://github.com/stripe/stripe-java) | `33.1.0` | `33.3.0` |
| [com.braintreepayments.gateway:braintree-java](https://github.com/braintree/braintree_java) | `3.48.0` | `3.53.0` |
| [com.google.code.gson:gson](https://github.com/google/gson) | `2.13.2` | `2.14.0` |
| [com.google.guava:guava](https://github.com/google/guava) | `33.5.0-jre` | `33.6.0-jre` |
| [org.signal:libsignal-server](https://github.com/signalapp/libsignal) | `0.100.0` | `0.101.0` |
| [org.signal:simple-grpc-runtime](https://github.com/signalapp/simple-grpc) | `0.2.0` | `0.2.1` |
| [org.apache.logging.log4j:log4j-bom](https://github.com/apache/logging-log4j2) | `2.25.4` | `2.26.1` |
| [ch.qos.logback:logback-core](https://github.com/qos-ch/logback) | `1.5.38` | `1.6.3` |
| [ch.qos.logback:logback-classic](https://github.com/qos-ch/logback) | `1.5.38` | `1.6.3` |
| ch.qos.logback.access:logback-access-common | `2.0.12` | `2.0.15` |
| [org.testcontainers:testcontainers-bom](https://github.com/testcontainers/testcontainers-java) | `2.0.4` | `2.0.5` |
| [org.wiremock:wiremock-jetty12](https://github.com/wiremock/wiremock) | `3.13.1` | `3.13.2` |
| [org.apache.maven.plugins:maven-surefire-plugin](https://github.com/apache/maven-surefire) | `3.5.5` | `3.5.6` |
| [org.apache.maven.plugins:maven-failsafe-plugin](https://github.com/apache/maven-surefire) | `3.5.4` | `3.5.6` |
| [org.apache.maven.plugins:maven-jar-plugin](https://github.com/apache/maven-jar-plugin) | `3.5.0` | `3.5.1` |
| [org.apache.maven.plugins:maven-shade-plugin](https://github.com/apache/maven-shade-plugin) | `3.6.1` | `3.6.2` |
| [org.apache.maven.plugins:maven-assembly-plugin](https://github.com/apache/maven-assembly-plugin) | `3.7.1` | `3.8.0` |
| [org.codehaus.mojo:properties-maven-plugin](https://github.com/mojohaus/properties-maven-plugin) | `1.2.1` | `1.3.0` |
| [org.apache.maven.plugins:maven-dependency-plugin](https://github.com/apache/maven-dependency-plugin) | `3.10.0` | `3.11.0` |
| [org.apache.maven.plugins:maven-enforcer-plugin](https://github.com/apache/maven-enforcer) | `3.6.2` | `3.6.3` |
| org.eclipse.jetty.http2:jetty-http2-client-transport | `12.1.5` | `12.1.12` |

Bumps the minor-java-dependencies group with 52 updates in the /service directory:

| Package | From | To |
| --- | --- | --- |
| [com.google.cloud.tools:jib-maven-plugin](https://github.com/GoogleContainerTools/jib) | `3.4.6` | `3.5.2` |
| [com.fasterxml.jackson:jackson-bom](https://github.com/FasterXML/jackson-bom) | `2.21.2` | `2.22.1` |
| io.dropwizard:dropwizard-dependencies | `5.0.1` | `5.0.2` |
| [io.netty:netty-testsuite-common](https://github.com/netty/netty) | `4.2.13.Final` | `4.2.17.Final` |
| [io.netty:netty-bom](https://github.com/netty/netty) | `4.2.13.Final` | `4.2.17.Final` |
| software.amazon.awssdk:bom | `2.42.27` | `2.53.1` |
| [com.google.cloud:libraries-bom](https://github.com/googleapis/google-cloud-java) | `26.79.0` | `26.86.0` |
| [io.micrometer:micrometer-bom](https://github.com/micrometer-metrics/micrometer) | `1.16.4` | `1.17.0` |
| [io.opentelemetry:opentelemetry-bom](https://github.com/open-telemetry/opentelemetry-java) | `1.60.1` | `1.65.0` |
| [io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom](https://github.com/open-telemetry/opentelemetry-java-instrumentation) | `2.26.1` | `2.30.0` |
| [io.projectreactor:reactor-bom](https://github.com/reactor/reactor) | `2025.0.4` | `2025.0.6` |
| [org.jetbrains.kotlin:kotlin-bom](https://github.com/JetBrains/kotlin) | `2.3.20` | `2.4.10` |
| [com.eatthepath:pushy](https://github.com/jchambers/pushy) | `0.15.4` | `0.15.6` |
| [com.eatthepath:pushy-dropwizard-metrics-listener](https://github.com/jchambers/pushy) | `0.15.4` | `0.15.6` |
| [com.googlecode.libphonenumber:libphonenumber](https://github.com/google/libphonenumber) | `9.0.21` | `9.0.37` |
| commons-io:commons-io | `2.21.0` | `2.22.0` |
| [io.lettuce:lettuce-core](https://github.com/redis/lettuce) | `7.5.1.RELEASE` | `7.6.0.RELEASE` |
| [org.foundationdb:fdb-java](https://github.com/apple/foundationdb) | `7.3.68` | `7.4.6` |
| org.slf4j:slf4j-api | `2.0.17` | `2.0.18` |
| org.slf4j:slf4j-nop | `2.0.17` | `2.0.18` |
| [commons-logging:commons-logging](https://github.com/apache/commons-logging) | `1.3.6` | `1.4.0` |
| [com.stripe:stripe-java](https://github.com/stripe/stripe-java) | `33.1.0` | `33.3.0` |
| [com.braintreepayments.gateway:braintree-java](https://github.com/braintree/braintree_java) | `3.48.0` | `3.53.0` |
| [com.google.code.gson:gson](https://github.com/google/gson) | `2.13.2` | `2.14.0` |
| [com.google.guava:guava](https://github.com/google/guava) | `33.5.0-jre` | `33.6.0-jre` |
| [org.signal:libsignal-server](https://github.com/signalapp/libsignal) | `0.100.0` | `0.101.0` |
| [org.signal:simple-grpc-runtime](https://github.com/signalapp/simple-grpc) | `0.2.0` | `0.2.1` |
| [org.apache.logging.log4j:log4j-bom](https://github.com/apache/logging-log4j2) | `2.25.4` | `2.26.1` |
| [ch.qos.logback:logback-core](https://github.com/qos-ch/logback) | `1.5.38` | `1.6.3` |
| [ch.qos.logback:logback-classic](https://github.com/qos-ch/logback) | `1.5.38` | `1.6.3` |
| ch.qos.logback.access:logback-access-common | `2.0.12` | `2.0.15` |
| [org.testcontainers:testcontainers-bom](https://github.com/testcontainers/testcontainers-java) | `2.0.4` | `2.0.5` |
| [org.wiremock:wiremock-jetty12](https://github.com/wiremock/wiremock) | `3.13.1` | `3.13.2` |
| [org.apache.maven.plugins:maven-surefire-plugin](https://github.com/apache/maven-surefire) | `3.5.5` | `3.5.6` |
| [org.apache.maven.plugins:maven-failsafe-plugin](https://github.com/apache/maven-surefire) | `3.5.4` | `3.5.6` |
| [org.apache.maven.plugins:maven-jar-plugin](https://github.com/apache/maven-jar-plugin) | `3.5.0` | `3.5.1` |
| [org.apache.maven.plugins:maven-shade-plugin](https://github.com/apache/maven-shade-plugin) | `3.6.1` | `3.6.2` |
| [org.apache.maven.plugins:maven-assembly-plugin](https://github.com/apache/maven-assembly-plugin) | `3.7.1` | `3.8.0` |
| [org.codehaus.mojo:properties-maven-plugin](https://github.com/mojohaus/properties-maven-plugin) | `1.2.1` | `1.3.0` |
| [org.apache.maven.plugins:maven-dependency-plugin](https://github.com/apache/maven-dependency-plugin) | `3.10.0` | `3.11.0` |
| [org.apache.maven.plugins:maven-enforcer-plugin](https://github.com/apache/maven-enforcer) | `3.6.2` | `3.6.3` |
| org.eclipse.jetty.http2:jetty-http2-client-transport | `12.1.5` | `12.1.12` |
| [com.auth0:java-jwt](https://github.com/auth0/java-jwt) | `4.5.0` | `4.6.0` |
| [com.webauthn4j:webauthn4j-appattest](https://github.com/webauthn4j/webauthn4j) | `0.30.2.RELEASE` | `0.31.9.RELEASE` |
| io.swagger.core.v3:swagger-jaxrs2-jakarta | `2.2.46` | `2.2.53` |
| [io.opentelemetry.instrumentation:opentelemetry-logback-appender-1.0](https://github.com/open-telemetry/opentelemetry-java-instrumentation) | `2.22.0-alpha` | `2.30.0-alpha` |
| [com.google.firebase:firebase-admin](https://github.com/firebase/firebase-admin-java) | `9.7.0` | `9.10.0` |
| [com.amazonaws:dynamodb-lock-client](https://github.com/awslabs/amazon-dynamodb-lock-client) | `1.4.0` | `1.5.0` |
| [com.googlecode.libphonenumber:geocoder](https://github.com/google/libphonenumber) | `3.23` | `3.37` |
| [com.apollographql.apollo3:apollo-api-jvm](https://github.com/apollographql/apollo-kotlin) | `3.8.5` | `3.8.6` |
| [com.squareup.okio:okio-jvm](https://github.com/lysine-dev/okio) | `3.16.4` | `3.18.1` |
| [org.codehaus.mojo:templating-maven-plugin](https://github.com/mojohaus/templating-maven-plugin) | `3.0.0` | `3.1.0` |

Bumps the minor-java-dependencies group with 40 updates in the /websocket-resources directory:

| Package | From | To |
| --- | --- | --- |
| [com.google.cloud.tools:jib-maven-plugin](https://github.com/GoogleContainerTools/jib) | `3.4.6` | `3.5.2` |
| [com.fasterxml.jackson:jackson-bom](https://github.com/FasterXML/jackson-bom) | `2.21.2` | `2.22.1` |
| io.dropwizard:dropwizard-dependencies | `5.0.1` | `5.0.2` |
| [io.netty:netty-bom](https://github.com/netty/netty) | `4.2.13.Final` | `4.2.17.Final` |
| software.amazon.awssdk:bom | `2.42.27` | `2.53.1` |
| [com.google.cloud:libraries-bom](https://github.com/googleapis/google-cloud-java) | `26.79.0` | `26.86.0` |
| [io.micrometer:micrometer-bom](https://github.com/micrometer-metrics/micrometer) | `1.16.4` | `1.17.0` |
| [io.opentelemetry:opentelemetry-bom](https://github.com/open-telemetry/opentelemetry-java) | `1.60.1` | `1.65.0` |
| [io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom](https://github.com/open-telemetry/opentelemetry-java-instrumentation) | `2.26.1` | `2.30.0` |
| [io.projectreactor:reactor-bom](https://github.com/reactor/reactor) | `2025.0.4` | `2025.0.6` |
| [org.jetbrains.kotlin:kotlin-bom](https://github.com/JetBrains/kotlin) | `2.3.20` | `2.4.10` |
| [com.eatthepath:pushy](https://github.com/jchambers/pushy) | `0.15.4` | `0.15.6` |
| [com.eatthepath:pushy-dropwizard-metrics-listener](https://github.com/jchambers/pushy) | `0.15.4` | `0.15.6` |
| [com.googlecode.libphonenumber:libphonenumber](https://github.com/google/libphonenumber) | `9.0.21` | `9.0.37` |
| commons-io:commons-io | `2.21.0` | `2.22.0` |
| [io.lettuce:lettuce-core](https://github.com/redis/lettuce) | `7.5.1.RELEASE` | `7.6.0.RELEASE` |
| [org.foundationdb:fdb-java](https://github.com/apple/foundationdb) | `7.3.68` | `7.4.6` |
| org.slf4j:slf4j-api | `2.0.17` | `2.0.18` |
| org.slf4j:slf4j-nop | `2.0.17` | `2.0.18` |
| [commons-logging:commons-logging](https://github.com/apache/commons-logging) | `1.3.6` | `1.4.0` |
| [com.stripe:stripe-java](https://github.com/stripe/stripe-java) | `33.1.0` | `33.3.0` |
| [com.braintreepayments.gateway:braintree-java](https://github.com/braintree/braintree_java) | `3.48.0` | `3.53.0` |
| [com.google.code.gson:gson](https://github.com/google/gson) | `2.13.2` | `2.14.0` |
| [com.google.guava:guava](https://github.com/google/guava) | `33.5.0-jre` | `33.6.0-jre` |
| [org.signal:libsignal-server](https://github.com/signalapp/libsignal) | `0.100.0` | `0.101.0` |
| [org.signal:simple-grpc-runtime](https://github.com/signalapp/simple-grpc) | `0.2.0` | `0.2.1` |
| [org.apache.logging.log4j:log4j-bom](https://github.com/apache/logging-log4j2) | `2.25.4` | `2.26.1` |
| [ch.qos.logback:logback-core](https://github.com/qos-ch/logback) | `1.5.38` | `1.6.3` |
| [ch.qos.logback:logback-classic](https://github.com/qos-ch/logback) | `1.5.38` | `1.6.3` |
| ch.qos.logback.access:logback-access-common | `2.0.12` | `2.0.15` |
| [org.testcontainers:testcontainers-bom](https://github.com/testcontainers/testcontainers-java) | `2.0.4` | `2.0.5` |
| [org.wiremock:wiremock-jetty12](https://github.com/wiremock/wiremock) | `3.13.1` | `3.13.2` |
| [org.apache.maven.plugins:maven-surefire-plugin](https://github.com/apache/maven-surefire) | `3.5.5` | `3.5.6` |
| [org.apache.maven.plugins:maven-failsafe-plugin](https://github.com/apache/maven-surefire) | `3.5.4` | `3.5.6` |
| [org.apache.maven.plugins:maven-jar-plugin](https://github.com/apache/maven-jar-plugin) | `3.5.0` | `3.5.1` |
| [org.apache.maven.plugins:maven-shade-plugin](https://github.com/apache/maven-shade-plugin) | `3.6.1` | `3.6.2` |
| [org.apache.maven.plugins:maven-assembly-plugin](https://github.com/apache/maven-assembly-plugin) | `3.7.1` | `3.8.0` |
| [org.codehaus.mojo:properties-maven-plugin](https://github.com/mojohaus/properties-maven-plugin) | `1.2.1` | `1.3.0` |
| [org.apache.maven.plugins:maven-dependency-plugin](https://github.com/apache/maven-dependency-plugin) | `3.10.0` | `3.11.0` |
| [org.apache.maven.plugins:maven-enforcer-plugin](https://github.com/apache/maven-enforcer) | `3.6.2` | `3.6.3` |

Updates `io.swagger.core.v3:swagger-maven-plugin-jakarta` from 2.2.46 to 2.2.53

Updates `com.google.cloud.tools:jib-maven-plugin` from 3.4.6 to 3.5.2
- [Release notes](https://github.com/GoogleContainerTools/jib/releases)
- [Commits](https://github.com/GoogleContainerTools/jib/commits)

Updates `com.fasterxml.jackson:jackson-bom` from 2.21.2 to 2.22.1
- [Commits](https://github.com/FasterXML/jackson-bom/compare/jackson-bom-2.21.2...jackson-bom-2.22.1)

Updates `io.dropwizard:dropwizard-dependencies` from 5.0.1 to 5.0.2

Updates `io.netty:netty-bom` from 4.2.13.Final to 4.2.17.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.2.13.Final...netty-4.2.17.Final)

Updates `software.amazon.awssdk:bom` from 2.42.27 to 2.53.1

Updates `com.google.cloud:libraries-bom` from 26.79.0 to 26.86.0
- [Release notes](https://github.com/googleapis/google-cloud-java/releases)
- [Changelog](https://github.com/googleapis/google-cloud-java/blob/main/CHANGELOG.md)
- [Commits](https://github.com/googleapis/google-cloud-java/commits/libraries-bom/v26.86.0)

Updates `io.micrometer:micrometer-bom` from 1.16.4 to 1.17.0
- [Release notes](https://github.com/micrometer-metrics/micrometer/releases)
- [Commits](https://github.com/micrometer-metrics/micrometer/compare/v1.16.4...v1.17.0)

Updates `io.opentelemetry:opentelemetry-bom` from 1.60.1 to 1.65.0
- [Release notes](https://github.com/open-telemetry/opentelemetry-java/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-java/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-java/compare/v1.60.1...v1.65.0)

Updates `io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom` from 2.26.1 to 2.30.0
- [Release notes](https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-java-instrumentation/compare/v2.26.1...v2.30.0)

Updates `io.projectreactor:reactor-bom` from 2025.0.4 to 2025.0.6
- [Release notes](https://github.com/reactor/reactor/releases)
- [Commits](https://github.com/reactor/reactor/compare/2025.0.4...2025.0.6)

Updates `org.jetbrains.kotlin:kotlin-bom` from 2.3.20 to 2.4.10
- [Release notes](https://github.com/JetBrains/kotlin/releases)
- [Changelog](https://github.com/JetBrains/kotlin/blob/master/ChangeLog.md)
- [Commits](https://github.com/JetBrains/kotlin/compare/v2.3.20...v2.4.10)

Updates `com.eatthepath:pushy` from 0.15.4 to 0.15.6
- [Release notes](https://github.com/jchambers/pushy/releases)
- [Commits](https://github.com/jchambers/pushy/compare/pushy-0.15.4...pushy-0.15.6)

Updates `com.eatthepath:pushy-dropwizard-metrics-listener` from 0.15.4 to 0.15.6
- [Release notes](https://github.com/jchambers/pushy/releases)
- [Commits](https://github.com/jchambers/pushy/compare/pushy-0.15.4...pushy-0.15.6)

Updates `com.eatthepath:pushy-dropwizard-metrics-listener` from 0.15.4 to 0.15.6
- [Release notes](https://github.com/jchambers/pushy/releases)
- [Commits](https://github.com/jchambers/pushy/compare/pushy-0.15.4...pushy-0.15.6)

Updates `com.googlecode.libphonenumber:libphonenumber` from 9.0.21 to 9.0.37
- [Release notes](https://github.com/google/libphonenumber/releases)
- [Changelog](https://github.com/google/libphonenumber/blob/master/release_notes.txt)
- [Commits](https://github.com/google/libphonenumber/compare/v9.0.21...v9.0.37)

Updates `commons-io:commons-io` from 2.21.0 to 2.22.0

Updates `io.lettuce:lettuce-core` from 7.5.1.RELEASE to 7.6.0.RELEASE
- [Release notes](https://github.com/redis/lettuce/releases)
- [Changelog](https://github.com/redis/lettuce/blob/main/RELEASE-NOTES.md)
- [Commits](https://github.com/redis/lettuce/compare/7.5.1.RELEASE...7.6.0.RELEASE)

Updates `org.foundationdb:fdb-java` from 7.3.68 to 7.4.6
- [Release notes](https://github.com/apple/foundationdb/releases)
- [Commits](https://github.com/apple/foundationdb/compare/7.3.68...7.4.6)

Updates `org.slf4j:slf4j-api` from 2.0.17 to 2.0.18

Updates `org.slf4j:slf4j-nop` from 2.0.17 to 2.0.18

Updates `org.slf4j:slf4j-nop` from 2.0.17 to 2.0.18

Updates `commons-logging:commons-logging` from 1.3.6 to 1.4.0
- [Changelog](https://github.com/apache/commons-logging/blob/master/RELEASE-NOTES.txt)
- [Commits](https://github.com/apache/commons-logging/compare/rel/commons-logging-1.3.6...rel/commons-logging-1.4.0)

Updates `com.stripe:stripe-java` from 33.1.0 to 33.3.0
- [Release notes](https://github.com/stripe/stripe-java/releases)
- [Changelog](https://github.com/stripe/stripe-java/blob/master/CHANGELOG.md)
- [Commits](https://github.com/stripe/stripe-java/compare/v33.1.0...v33.3.0)

Updates `com.braintreepayments.gateway:braintree-java` from 3.48.0 to 3.53.0
- [Changelog](https://github.com/braintree/braintree_java/blob/master/CHANGELOG.md)
- [Commits](https://github.com/braintree/braintree_java/compare/3.48.0...3.53.0)

Updates `com.google.code.gson:gson` from 2.13.2 to 2.14.0
- [Release notes](https://github.com/google/gson/releases)
- [Changelog](https://github.com/google/gson/blob/main/CHANGELOG.md)
- [Commits](https://github.com/google/gson/compare/gson-parent-2.13.2...gson-parent-2.14.0)

Updates `com.google.guava:guava` from 33.5.0-jre to 33.6.0-jre
- [Release notes](https://github.com/google/guava/releases)
- [Commits](https://github.com/google/guava/commits)

Updates `org.signal:libsignal-server` from 0.100.0 to 0.101.0
- [Release notes](https://github.com/signalapp/libsignal/releases)
- [Changelog](https://github.com/signalapp/libsignal/blob/main/RELEASE_NOTES.md)
- [Commits](https://github.com/signalapp/libsignal/compare/v0.100.0...v0.101.0)

Updates `org.signal:simple-grpc-runtime` from 0.2.0 to 0.2.1
- [Commits](https://github.com/signalapp/simple-grpc/compare/0.2.0...0.2.1)

Updates `org.apache.logging.log4j:log4j-bom` from 2.25.4 to 2.26.1
- [Release notes](https://github.com/apache/logging-log4j2/releases)
- [Changelog](https://github.com/apache/logging-log4j2/blob/2.x/RELEASE-NOTES.adoc)
- [Commits](https://github.com/apache/logging-log4j2/compare/rel/2.25.4...rel/2.26.1)

Updates `ch.qos.logback:logback-core` from 1.5.38 to 1.6.3
- [Release notes](https://github.com/qos-ch/logback/releases)
- [Commits](https://github.com/qos-ch/logback/compare/v_1.5.38...v_1.6.3)

Updates `ch.qos.logback:logback-classic` from 1.5.38 to 1.6.3
- [Release notes](https://github.com/qos-ch/logback/releases)
- [Commits](https://github.com/qos-ch/logback/compare/v_1.5.38...v_1.6.3)

Updates `ch.qos.logback:logback-classic` from 1.5.38 to 1.6.3
- [Release notes](https://github.com/qos-ch/logback/releases)
- [Commits](https://github.com/qos-ch/logback/compare/v_1.5.38...v_1.6.3)

Updates `ch.qos.logback.access:logback-access-common` from 2.0.12 to 2.0.15

Updates `org.testcontainers:testcontainers-bom` from 2.0.4 to 2.0.5
- [Release notes](https://github.com/testcontainers/testcontainers-java/releases)
- [Changelog](https://github.com/testcontainers/testcontainers-java/blob/main/CHANGELOG.md)
- [Commits](https://github.com/testcontainers/testcontainers-java/compare/2.0.4...2.0.5)

Updates `org.wiremock:wiremock-jetty12` from 3.13.1 to 3.13.2
- [Release notes](https://github.com/wiremock/wiremock/releases)
- [Commits](https://github.com/wiremock/wiremock/compare/3.13.1...3.13.2)

Updates `org.apache.maven.plugins:maven-surefire-plugin` from 3.5.5 to 3.5.6
- [Release notes](https://github.com/apache/maven-surefire/releases)
- [Commits](https://github.com/apache/maven-surefire/compare/surefire-3.5.5...surefire-3.5.6)

Updates `org.apache.maven.plugins:maven-failsafe-plugin` from 3.5.4 to 3.5.6
- [Release notes](https://github.com/apache/maven-surefire/releases)
- [Commits](https://github.com/apache/maven-surefire/compare/surefire-3.5.4...surefire-3.5.6)

Updates `org.apache.maven.plugins:maven-jar-plugin` from 3.5.0 to 3.5.1
- [Release notes](https://github.com/apache/maven-jar-plugin/releases)
- [Commits](https://github.com/apache/maven-jar-plugin/compare/maven-jar-plugin-3.5.0...maven-jar-plugin-3.5.1)

Updates `org.apache.maven.plugins:maven-shade-plugin` from 3.6.1 to 3.6.2
- [Release notes](https://github.com/apache/maven-shade-plugin/releases)
- [Commits](https://github.com/apache/maven-shade-plugin/compare/maven-shade-plugin-3.6.1...maven-shade-plugin-3.6.2)

Updates `org.apache.maven.plugins:maven-assembly-plugin` from 3.7.1 to 3.8.0
- [Release notes](https://github.com/apache/maven-assembly-plugin/releases)
- [Commits](https://github.com/apache/maven-assembly-plugin/compare/maven-assembly-plugin-3.7.1...v3.8.0)

Updates `org.codehaus.mojo:properties-maven-plugin` from 1.2.1 to 1.3.0
- [Release notes](https://github.com/mojohaus/properties-maven-plugin/releases)
- [Commits](https://github.com/mojohaus/properties-maven-plugin/compare/1.2.1...properties-maven-plugin-1.3.0)

Updates `org.apache.maven.plugins:maven-dependency-plugin` from 3.10.0 to 3.11.0
- [Release notes](https://github.com/apache/maven-dependency-plugin/releases)
- [Commits](https://github.com/apache/maven-dependency-plugin/compare/maven-dependency-plugin-3.10.0...maven-dependency-plugin-3.11.0)

Updates `org.apache.maven.plugins:maven-enforcer-plugin` from 3.6.2 to 3.6.3
- [Release notes](https://github.com/apache/maven-enforcer/releases)
- [Commits](https://github.com/apache/maven-enforcer/compare/enforcer-3.6.2...enforcer-3.6.3)

Updates `com.google.cloud.tools:jib-maven-plugin` from 3.4.6 to 3.5.2
- [Release notes](https://github.com/GoogleContainerTools/jib/releases)
- [Commits](https://github.com/GoogleContainerTools/jib/commits)

Updates `com.fasterxml.jackson:jackson-bom` from 2.21.2 to 2.22.1
- [Commits](https://github.com/FasterXML/jackson-bom/compare/jackson-bom-2.21.2...jackson-bom-2.22.1)

Updates `io.dropwizard:dropwizard-dependencies` from 5.0.1 to 5.0.2

Updates `io.netty:netty-bom` from 4.2.13.Final to 4.2.17.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.2.13.Final...netty-4.2.17.Final)

Updates `software.amazon.awssdk:bom` from 2.42.27 to 2.53.1

Updates `com.google.cloud:libraries-bom` from 26.79.0 to 26.86.0
- [Release notes](https://github.com/googleapis/google-cloud-java/releases)
- [Changelog](https://github.com/googleapis/google-cloud-java/blob/main/CHANGELOG.md)
- [Commits](https://github.com/googleapis/google-cloud-java/commits/libraries-bom/v26.86.0)

Updates `io.micrometer:micrometer-bom` from 1.16.4 to 1.17.0
- [Release notes](https://github.com/micrometer-metrics/micrometer/releases)
- [Commits](https://github.com/micrometer-metrics/micrometer/compare/v1.16.4...v1.17.0)

Updates `io.opentelemetry:opentelemetry-bom` from 1.60.1 to 1.65.0
- [Release notes](https://github.com/open-telemetry/opentelemetry-java/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-java/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-java/compare/v1.60.1...v1.65.0)

Updates `io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom` from 2.26.1 to 2.30.0
- [Release notes](https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-java-instrumentation/compare/v2.26.1...v2.30.0)

Updates `io.projectreactor:reactor-bom` from 2025.0.4 to 2025.0.6
- [Release notes](https://github.com/reactor/reactor/releases)
- [Commits](https://github.com/reactor/reactor/compare/2025.0.4...2025.0.6)

Updates `org.jetbrains.kotlin:kotlin-bom` from 2.3.20 to 2.4.10
- [Release notes](https://github.com/JetBrains/kotlin/releases)
- [Changelog](https://github.com/JetBrains/kotlin/blob/master/ChangeLog.md)
- [Commits](https://github.com/JetBrains/kotlin/compare/v2.3.20...v2.4.10)

Updates `com.eatthepath:pushy` from 0.15.4 to 0.15.6
- [Release notes](https://github.com/jchambers/pushy/releases)
- [Commits](https://github.com/jchambers/pushy/compare/pushy-0.15.4...pushy-0.15.6)

Updates `com.eatthepath:pushy-dropwizard-metrics-listener` from 0.15.4 to 0.15.6
- [Release notes](https://github.com/jchambers/pushy/releases)
- [Commits](https://github.com/jchambers/pushy/compare/pushy-0.15.4...pushy-0.15.6)

Updates `com.eatthepath:pushy-dropwizard-metrics-listener` from 0.15.4 to 0.15.6
- [Release notes](https://github.com/jchambers/pushy/releases)
- [Commits](https://github.com/jchambers/pushy/compare/pushy-0.15.4...pushy-0.15.6)

Updates `com.googlecode.libphonenumber:libphonenumber` from 9.0.21 to 9.0.37
- [Release notes](https://github.com/google/libphonenumber/releases)
- [Changelog](https://github.com/google/libphonenumber/blob/master/release_notes.txt)
- [Commits](https://github.com/google/libphonenumber/compare/v9.0.21...v9.0.37)

Updates `commons-io:commons-io` from 2.21.0 to 2.22.0

Updates `io.lettuce:lettuce-core` from 7.5.1.RELEASE to 7.6.0.RELEASE
- [Release notes](https://github.com/redis/lettuce/releases)
- [Changelog](https://github.com/redis/lettuce/blob/main/RELEASE-NOTES.md)
- [Commits](https://github.com/redis/lettuce/compare/7.5.1.RELEASE...7.6.0.RELEASE)

Updates `org.foundationdb:fdb-java` from 7.3.68 to 7.4.6
- [Release notes](https://github.com/apple/foundationdb/releases)
- [Commits](https://github.com/apple/foundationdb/compare/7.3.68...7.4.6)

Updates `org.slf4j:slf4j-api` from 2.0.17 to 2.0.18

Updates `org.slf4j:slf4j-nop` from 2.0.17 to 2.0.18

Updates `org.slf4j:slf4j-nop` from 2.0.17 to 2.0.18

Updates `commons-logging:commons-logging` from 1.3.6 to 1.4.0
- [Changelog](https://github.com/apache/commons-logging/blob/master/RELEASE-NOTES.txt)
- [Commits](https://github.com/apache/commons-logging/compare/rel/commons-logging-1.3.6...rel/commons-logging-1.4.0)

Updates `com.stripe:stripe-java` from 33.1.0 to 33.3.0
- [Release notes](https://github.com/stripe/stripe-java/releases)
- [Changelog](https://github.com/stripe/stripe-java/blob/master/CHANGELOG.md)
- [Commits](https://github.com/stripe/stripe-java/compare/v33.1.0...v33.3.0)

Updates `com.braintreepayments.gateway:braintree-java` from 3.48.0 to 3.53.0
- [Changelog](https://github.com/braintree/braintree_java/blob/master/CHANGELOG.md)
- [Commits](https://github.com/braintree/braintree_java/compare/3.48.0...3.53.0)

Updates `com.google.code.gson:gson` from 2.13.2 to 2.14.0
- [Release notes](https://github.com/google/gson/releases)
- [Changelog](https://github.com/google/gson/blob/main/CHANGELOG.md)
- [Commits](https://github.com/google/gson/compare/gson-parent-2.13.2...gson-parent-2.14.0)

Updates `com.google.guava:guava` from 33.5.0-jre to 33.6.0-jre
- [Release notes](https://github.com/google/guava/releases)
- [Commits](https://github.com/google/guava/commits)

Updates `org.signal:libsignal-server` from 0.100.0 to 0.101.0
- [Release notes](https://github.com/signalapp/libsignal/releases)
- [Changelog](https://github.com/signalapp/libsignal/blob/main/RELEASE_NOTES.md)
- [Commits](https://github.com/signalapp/libsignal/compare/v0.100.0...v0.101.0)

Updates `org.signal:simple-grpc-runtime` from 0.2.0 to 0.2.1
- [Commits](https://github.com/signalapp/simple-grpc/compare/0.2.0...0.2.1)

Updates `org.apache.logging.log4j:log4j-bom` from 2.25.4 to 2.26.1
- [Release notes](https://github.com/apache/logging-log4j2/releases)
- [Changelog](https://github.com/apache/logging-log4j2/blob/2.x/RELEASE-NOTES.adoc)
- [Commits](https://github.com/apache/logging-log4j2/compare/rel/2.25.4...rel/2.26.1)

Updates `ch.qos.logback:logback-core` from 1.5.38 to 1.6.3
- [Release notes](https://github.com/qos-ch/logback/releases)
- [Commits](https://github.com/qos-ch/logback/compare/v_1.5.38...v_1.6.3)

Updates `ch.qos.logback:logback-classic` from 1.5.38 to 1.6.3
- [Release notes](https://github.com/qos-ch/logback/releases)
- [Commits](https://github.com/qos-ch/logback/compare/v_1.5.38...v_1.6.3)

Updates `ch.qos.logback:logback-classic` from 1.5.38 to 1.6.3
- [Release notes](https://github.com/qos-ch/logback/releases)
- [Commits](https://github.com/qos-ch/logback/compare/v_1.5.38...v_1.6.3)

Updates `ch.qos.logback.access:logback-access-common` from 2.0.12 to 2.0.15

Updates `org.testcontainers:testcontainers-bom` from 2.0.4 to 2.0.5
- [Release notes](https://github.com/testcontainers/testcontainers-java/releases)
- [Changelog](https://github.com/testcontainers/testcontainers-java/blob/main/CHANGELOG.md)
- [Commits](https://github.com/testcontainers/testcontainers-java/compare/2.0.4...2.0.5)

Updates `org.wiremock:wiremock-jetty12` from 3.13.1 to 3.13.2
- [Release notes](https://github.com/wiremock/wiremock/releases)
- [Commits](https://github.com/wiremock/wiremock/compare/3.13.1...3.13.2)

Updates `org.apache.maven.plugins:maven-surefire-plugin` from 3.5.5 to 3.5.6
- [Release notes](https://github.com/apache/maven-surefire/releases)
- [Commits](https://github.com/apache/maven-surefire/compare/surefire-3.5.5...surefire-3.5.6)

Updates `org.apache.maven.plugins:maven-failsafe-plugin` from 3.5.4 to 3.5.6
- [Release notes](https://github.com/apache/maven-surefire/releases)
- [Commits](https://github.com/apache/maven-surefire/compare/surefire-3.5.4...surefire-3.5.6)

Updates `org.apache.maven.plugins:maven-jar-plugin` from 3.5.0 to 3.5.1
- [Release notes](https://github.com/apache/maven-jar-plugin/releases)
- [Commits](https://github.com/apache/maven-jar-plugin/compare/maven-jar-plugin-3.5.0...maven-jar-plugin-3.5.1)

Updates `org.apache.maven.plugins:maven-shade-plugin` from 3.6.1 to 3.6.2
- [Release notes](https://github.com/apache/maven-shade-plugin/releases)
- [Commits](https://github.com/apache/maven-shade-plugin/compare/maven-shade-plugin-3.6.1...maven-shade-plugin-3.6.2)

Updates `org.apache.maven.plugins:maven-assembly-plugin` from 3.7.1 to 3.8.0
- [Release notes](https://github.com/apache/maven-assembly-plugin/releases)
- [Commits](https://github.com/apache/maven-assembly-plugin/compare/maven-assembly-plugin-3.7.1...v3.8.0)

Updates `org.codehaus.mojo:properties-maven-plugin` from 1.2.1 to 1.3.0
- [Release notes](https://github.com/mojohaus/properties-maven-plugin/releases)
- [Commits](https://github.com/mojohaus/properties-maven-plugin/compare/1.2.1...properties-maven-plugin-1.3.0)

Updates `org.apache.maven.plugins:maven-dependency-plugin` from 3.10.0 to 3.11.0
- [Release notes](https://github.com/apache/maven-dependency-plugin/releases)
- [Commits](https://github.com/apache/maven-dependency-plugin/compare/maven-dependency-plugin-3.10.0...maven-dependency-plugin-3.11.0)

Updates `org.apache.maven.plugins:maven-enforcer-plugin` from 3.6.2 to 3.6.3
- [Release notes](https://github.com/apache/maven-enforcer/releases)
- [Commits](https://github.com/apache/maven-enforcer/compare/enforcer-3.6.2...enforcer-3.6.3)

Updates `org.eclipse.jetty.http2:jetty-http2-client-transport` from 12.1.5 to 12.1.12

Updates `com.google.cloud.tools:jib-maven-plugin` from 3.4.6 to 3.5.2
- [Release notes](https://github.com/GoogleContainerTools/jib/releases)
- [Commits](https://github.com/GoogleContainerTools/jib/commits)

Updates `com.fasterxml.jackson:jackson-bom` from 2.21.2 to 2.22.1
- [Commits](https://github.com/FasterXML/jackson-bom/compare/jackson-bom-2.21.2...jackson-bom-2.22.1)

Updates `io.dropwizard:dropwizard-dependencies` from 5.0.1 to 5.0.2

Updates `io.netty:netty-testsuite-common` from 4.2.13.Final to 4.2.17.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.2.13.Final...netty-4.2.17.Final)

Updates `io.netty:netty-bom` from 4.2.13.Final to 4.2.17.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.2.13.Final...netty-4.2.17.Final)

Updates `software.amazon.awssdk:bom` from 2.42.27 to 2.53.1

Updates `com.google.cloud:libraries-bom` from 26.79.0 to 26.86.0
- [Release notes](https://github.com/googleapis/google-cloud-java/releases)
- [Changelog](https://github.com/googleapis/google-cloud-java/blob/main/CHANGELOG.md)
- [Commits](https://github.com/googleapis/google-cloud-java/commits/libraries-bom/v26.86.0)

Updates `io.micrometer:micrometer-bom` from 1.16.4 to 1.17.0
- [Release notes](https://github.com/micrometer-metrics/micrometer/releases)
- [Commits](https://github.com/micrometer-metrics/micrometer/compare/v1.16.4...v1.17.0)

Updates `io.opentelemetry:opentelemetry-bom` from 1.60.1 to 1.65.0
- [Release notes](https://github.com/open-telemetry/opentelemetry-java/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-java/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-java/compare/v1.60.1...v1.65.0)

Updates `io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom` from 2.26.1 to 2.30.0
- [Release notes](https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-java-instrumentation/compare/v2.26.1...v2.30.0)

Updates `io.projectreactor:reactor-bom` from 2025.0.4 to 2025.0.6
- [Release notes](https://github.com/reactor/reactor/releases)
- [Commits](https://github.com/reactor/reactor/compare/2025.0.4...2025.0.6)

Updates `org.jetbrains.kotlin:kotlin-bom` from 2.3.20 to 2.4.10
- [Release notes](https://github.com/JetBrains/kotlin/releases)
- [Changelog](https://github.com/JetBrains/kotlin/blob/master/ChangeLog.md)
- [Commits](https://github.com/JetBrains/kotlin/compare/v2.3.20...v2.4.10)

Updates `com.eatthepath:pushy` from 0.15.4 to 0.15.6
- [Release notes](https://github.com/jchambers/pushy/releases)
- [Commits](https://github.com/jchambers/pushy/compare/pushy-0.15.4...pushy-0.15.6)

Updates `com.eatthepath:pushy-dropwizard-metrics-listener` from 0.15.4 to 0.15.6
- [Release notes](https://github.com/jchambers/pushy/releases)
- [Commits](https://github.com/jchambers/pushy/compare/pushy-0.15.4...pushy-0.15.6)

Updates `com.eatthepath:pushy-dropwizard-metrics-listener` from 0.15.4 to 0.15.6
- [Release notes](https://github.com/jchambers/pushy/releases)
- [Commits](https://github.com/jchambers/pushy/compare/pushy-0.15.4...pushy-0.15.6)

Updates `com.googlecode.libphonenumber:libphonenumber` from 9.0.21 to 9.0.37
- [Release notes](https://github.com/google/libphonenumber/releases)
- [Changelog](https://github.com/google/libphonenumber/blob/master/release_notes.txt)
- [Commits](https://github.com/google/libphonenumber/compare/v9.0.21...v9.0.37)

Updates `commons-io:commons-io` from 2.21.0 to 2.22.0

Updates `io.lettuce:lettuce-core` from 7.5.1.RELEASE to 7.6.0.RELEASE
- [Release notes](https://github.com/redis/lettuce/releases)
- [Changelog](https://github.com/redis/lettuce/blob/main/RELEASE-NOTES.md)
- [Commits](https://github.com/redis/lettuce/compare/7.5.1.RELEASE...7.6.0.RELEASE)

Updates `org.foundationdb:fdb-java` from 7.3.68 to 7.4.6
- [Release notes](https://github.com/apple/foundationdb/releases)
- [Commits](https://github.com/apple/foundationdb/compare/7.3.68...7.4.6)

Updates `org.slf4j:slf4j-api` from 2.0.17 to 2.0.18

Updates `org.slf4j:slf4j-nop` from 2.0.17 to 2.0.18

Updates `org.slf4j:slf4j-nop` from 2.0.17 to 2.0.18

Updates `commons-logging:commons-logging` from 1.3.6 to 1.4.0
- [Changelog](https://github.com/apache/commons-logging/blob/master/RELEASE-NOTES.txt)
- [Commits](https://github.com/apache/commons-logging/compare/rel/commons-logging-1.3.6...rel/commons-logging-1.4.0)

Updates `com.stripe:stripe-java` from 33.1.0 to 33.3.0
- [Release notes](https://github.com/stripe/stripe-java/releases)
- [Changelog](https://github.com/stripe/stripe-java/blob/master/CHANGELOG.md)
- [Commits](https://github.com/stripe/stripe-java/compare/v33.1.0...v33.3.0)

Updates `com.braintreepayments.gateway:braintree-java` from 3.48.0 to 3.53.0
- [Changelog](https://github.com/braintree/braintree_java/blob/master/CHANGELOG.md)
- [Commits](https://github.com/braintree/braintree_java/compare/3.48.0...3.53.0)

Updates `com.google.code.gson:gson` from 2.13.2 to 2.14.0
- [Release notes](https://github.com/google/gson/releases)
- [Changelog](https://github.com/google/gson/blob/main/CHANGELOG.md)
- [Commits](https://github.com/google/gson/compare/gson-parent-2.13.2...gson-parent-2.14.0)

Updates `com.google.guava:guava` from 33.5.0-jre to 33.6.0-jre
- [Release notes](https://github.com/google/guava/releases)
- [Commits](https://github.com/google/guava/commits)

Updates `org.signal:libsignal-server` from 0.100.0 to 0.101.0
- [Release notes](https://github.com/signalapp/libsignal/releases)
- [Changelog](https://github.com/signalapp/libsignal/blob/main/RELEASE_NOTES.md)
- [Commits](https://github.com/signalapp/libsignal/compare/v0.100.0...v0.101.0)

Updates `org.signal:simple-grpc-runtime` from 0.2.0 to 0.2.1
- [Commits](https://github.com/signalapp/simple-grpc/compare/0.2.0...0.2.1)

Updates `org.apache.logging.log4j:log4j-bom` from 2.25.4 to 2.26.1
- [Release notes](https://github.com/apache/logging-log4j2/releases)
- [Changelog](https://github.com/apache/logging-log4j2/blob/2.x/RELEASE-NOTES.adoc)
- [Commits](https://github.com/apache/logging-log4j2/compare/rel/2.25.4...rel/2.26.1)

Updates `ch.qos.logback:logback-core` from 1.5.38 to 1.6.3
- [Release notes](https://github.com/qos-ch/logback/releases)
- [Commits](https://github.com/qos-ch/logback/compare/v_1.5.38...v_1.6.3)

Updates `ch.qos.logback:logback-classic` from 1.5.38 to 1.6.3
- [Release notes](https://github.com/qos-ch/logback/releases)
- [Commits](https://github.com/qos-ch/logback/compare/v_1.5.38...v_1.6.3)

Updates `ch.qos.logback:logback-classic` from 1.5.38 to 1.6.3
- [Release notes](https://github.com/qos-ch/logback/releases)
- [Commits](https://github.com/qos-ch/logback/compare/v_1.5.38...v_1.6.3)

Updates `ch.qos.logback.access:logback-access-common` from 2.0.12 to 2.0.15

Updates `org.testcontainers:testcontainers-bom` from 2.0.4 to 2.0.5
- [Release notes](https://github.com/testcontainers/testcontainers-java/releases)
- [Changelog](https://github.com/testcontainers/testcontainers-java/blob/main/CHANGELOG.md)
- [Commits](https://github.com/testcontainers/testcontainers-java/compare/2.0.4...2.0.5)

Updates `org.wiremock:wiremock-jetty12` from 3.13.1 to 3.13.2
- [Release notes](https://github.com/wiremock/wiremock/releases)
- [Commits](https://github.com/wiremock/wiremock/compare/3.13.1...3.13.2)

Updates `org.apache.maven.plugins:maven-surefire-plugin` from 3.5.5 to 3.5.6
- [Release notes](https://github.com/apache/maven-surefire/releases)
- [Commits](https://github.com/apache/maven-surefire/compare/surefire-3.5.5...surefire-3.5.6)

Updates `org.apache.maven.plugins:maven-failsafe-plugin` from 3.5.4 to 3.5.6
- [Release notes](https://github.com/apache/maven-surefire/releases)
- [Commits](https://github.com/apache/maven-surefire/compare/surefire-3.5.4...surefire-3.5.6)

Updates `org.apache.maven.plugins:maven-jar-plugin` from 3.5.0 to 3.5.1
- [Release notes](https://github.com/apache/maven-jar-plugin/releases)
- [Commits](https://github.com/apache/maven-jar-plugin/compare/maven-jar-plugin-3.5.0...maven-jar-plugin-3.5.1)

Updates `org.apache.maven.plugins:maven-shade-plugin` from 3.6.1 to 3.6.2
- [Release notes](https://github.com/apache/maven-shade-plugin/releases)
- [Commits](https://github.com/apache/maven-shade-plugin/compare/maven-shade-plugin-3.6.1...maven-shade-plugin-3.6.2)

Updates `org.apache.maven.plugins:maven-assembly-plugin` from 3.7.1 to 3.8.0
- [Release notes](https://github.com/apache/maven-assembly-plugin/releases)
- [Commits](https://github.com/apache/maven-assembly-plugin/compare/maven-assembly-plugin-3.7.1...v3.8.0)

Updates `org.codehaus.mojo:properties-maven-plugin` from 1.2.1 to 1.3.0
- [Release notes](https://github.com/mojohaus/properties-maven-plugin/releases)
- [Commits](https://github.com/mojohaus/properties-maven-plugin/compare/1.2.1...properties-maven-plugin-1.3.0)

Updates `org.apache.maven.plugins:maven-dependency-plugin` from 3.10.0 to 3.11.0
- [Release notes](https://github.com/apache/maven-dependency-plugin/releases)
- [Commits](https://github.com/apache/maven-dependency-plugin/compare/maven-dependency-plugin-3.10.0...maven-dependency-plugin-3.11.0)

Updates `org.apache.maven.plugins:maven-enforcer-plugin` from 3.6.2 to 3.6.3
- [Release notes](https://github.com/apache/maven-enforcer/releases)
- [Commits](https://github.com/apache/maven-enforcer/compare/enforcer-3.6.2...enforcer-3.6.3)

Updates `org.eclipse.jetty.http2:jetty-http2-client-transport` from 12.1.5 to 12.1.12

Updates `com.auth0:java-jwt` from 4.5.0 to 4.6.0
- [Release notes](https://github.com/auth0/java-jwt/releases)
- [Changelog](https://github.com/auth0/java-jwt/blob/master/CHANGELOG.md)
- [Commits](https://github.com/auth0/java-jwt/compare/4.5.0...4.6.0)

Updates `com.webauthn4j:webauthn4j-appattest` from 0.30.2.RELEASE to 0.31.9.RELEASE
- [Release notes](https://github.com/webauthn4j/webauthn4j/releases)
- [Commits](https://github.com/webauthn4j/webauthn4j/compare/0.30.2.RELEASE...0.31.9.RELEASE)

Updates `io.swagger.core.v3:swagger-jaxrs2-jakarta` from 2.2.46 to 2.2.53

Updates `io.opentelemetry.instrumentation:opentelemetry-logback-appender-1.0` from 2.22.0-alpha to 2.30.0-alpha
- [Release notes](https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-java-instrumentation/commits)

Updates `com.google.firebase:firebase-admin` from 9.7.0 to 9.10.0
- [Release notes](https://github.com/firebase/firebase-admin-java/releases)
- [Commits](https://github.com/firebase/firebase-admin-java/compare/v9.7.0...v9.10.0)

Updates `com.amazonaws:dynamodb-lock-client` from 1.4.0 to 1.5.0
- [Commits](https://github.com/awslabs/amazon-dynamodb-lock-client/commits)

Updates `com.googlecode.libphonenumber:geocoder` from 3.23 to 3.37
- [Release notes](https://github.com/google/libphonenumber/releases)
- [Changelog](https://github.com/google/libphonenumber/blob/master/release_notes.txt)
- [Commits](https://github.com/google/libphonenumber/commits)

Updates `io.netty:netty-testsuite-common` from 4.2.13.Final to 4.2.17.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.2.13.Final...netty-4.2.17.Final)

Updates `com.apollographql.apollo3:apollo-api-jvm` from 3.8.5 to 3.8.6
- [Release notes](https://github.com/apollographql/apollo-kotlin/releases)
- [Changelog](https://github.com/apollographql/apollo-kotlin/blob/main/CHANGELOG.md)
- [Commits](https://github.com/apollographql/apollo-kotlin/compare/v3.8.5...v3.8.6)

Updates `com.squareup.okio:okio-jvm` from 3.16.4 to 3.18.1
- [Changelog](https://github.com/lysine-dev/okio/blob/main/CHANGELOG.md)
- [Commits](https://github.com/lysine-dev/okio/compare/parent-3.16.4...parent-3.18.1)

Updates `org.codehaus.mojo:templating-maven-plugin` from 3.0.0 to 3.1.0
- [Release notes](https://github.com/mojohaus/templating-maven-plugin/releases)
- [Commits](https://github.com/mojohaus/templating-maven-plugin/compare/3.0.0...templating-maven-plugin-3.1.0)

Updates `com.google.cloud.tools:jib-maven-plugin` from 3.4.6 to 3.5.2
- [Release notes](https://github.com/GoogleContainerTools/jib/releases)
- [Commits](https://github.com/GoogleContainerTools/jib/commits)

Updates `com.fasterxml.jackson:jackson-bom` from 2.21.2 to 2.22.1
- [Commits](https://github.com/FasterXML/jackson-bom/compare/jackson-bom-2.21.2...jackson-bom-2.22.1)

Updates `io.dropwizard:dropwizard-dependencies` from 5.0.1 to 5.0.2

Updates `io.netty:netty-bom` from 4.2.13.Final to 4.2.17.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](https://github.com/netty/netty/compare/netty-4.2.13.Final...netty-4.2.17.Final)

Updates `software.amazon.awssdk:bom` from 2.42.27 to 2.53.1

Updates `com.google.cloud:libraries-bom` from 26.79.0 to 26.86.0
- [Release notes](https://github.com/googleapis/google-cloud-java/releases)
- [Changelog](https://github.com/googleapis/google-cloud-java/blob/main/CHANGELOG.md)
- [Commits](https://github.com/googleapis/google-cloud-java/commits/libraries-bom/v26.86.0)

Updates `io.micrometer:micrometer-bom` from 1.16.4 to 1.17.0
- [Release notes](https://github.com/micrometer-metrics/micrometer/releases)
- [Commits](https://github.com/micrometer-metrics/micrometer/compare/v1.16.4...v1.17.0)

Updates `io.opentelemetry:opentelemetry-bom` from 1.60.1 to 1.65.0
- [Release notes](https://github.com/open-telemetry/opentelemetry-java/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-java/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-java/compare/v1.60.1...v1.65.0)

Updates `io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom` from 2.26.1 to 2.30.0
- [Release notes](https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-java-instrumentation/compare/v2.26.1...v2.30.0)

Updates `io.projectreactor:reactor-bom` from 2025.0.4 to 2025.0.6
- [Release notes](https://github.com/reactor/reactor/releases)
- [Commits](https://github.com/reactor/reactor/compare/2025.0.4...2025.0.6)

Updates `org.jetbrains.kotlin:kotlin-bom` from 2.3.20 to 2.4.10
- [Release notes](https://github.com/JetBrains/kotlin/releases)
- [Changelog](https://github.com/JetBrains/kotlin/blob/master/ChangeLog.md)
- [Commits](https://github.com/JetBrains/kotlin/compare/v2.3.20...v2.4.10)

Updates `com.eatthepath:pushy` from 0.15.4 to 0.15.6
- [Release notes](https://github.com/jchambers/pushy/releases)
- [Commits](https://github.com/jchambers/pushy/compare/pushy-0.15.4...pushy-0.15.6)

Updates `com.eatthepath:pushy-dropwizard-metrics-listener` from 0.15.4 to 0.15.6
- [Release notes](https://github.com/jchambers/pushy/releases)
- [Commits](https://github.com/jchambers/pushy/compare/pushy-0.15.4...pushy-0.15.6)

Updates `com.eatthepath:pushy-dropwizard-metrics-listener` from 0.15.4 to 0.15.6
- [Release notes](https://github.com/jchambers/pushy/releases)
- [Commits](https://github.com/jchambers/pushy/compare/pushy-0.15.4...pushy-0.15.6)

Updates `com.googlecode.libphonenumber:libphonenumber` from 9.0.21 to 9.0.37
- [Release notes](https://github.com/google/libphonenumber/releases)
- [Changelog](https://github.com/google/libphonenumber/blob/master/release_notes.txt)
- [Commits](https://github.com/google/libphonenumber/compare/v9.0.21...v9.0.37)

Updates `commons-io:commons-io` from 2.21.0 to 2.22.0

Updates `io.lettuce:lettuce-core` from 7.5.1.RELEASE to 7.6.0.RELEASE
- [Release notes](https://github.com/redis/lettuce/releases)
- [Changelog](https://github.com/redis/lettuce/blob/main/RELEASE-NOTES.md)
- [Commits](https://github.com/redis/lettuce/compare/7.5.1.RELEASE...7.6.0.RELEASE)

Updates `org.foundationdb:fdb-java` from 7.3.68 to 7.4.6
- [Release notes](https://github.com/apple/foundationdb/releases)
- [Commits](https://github.com/apple/foundationdb/compare/7.3.68...7.4.6)

Updates `org.slf4j:slf4j-api` from 2.0.17 to 2.0.18

Updates `org.slf4j:slf4j-nop` from 2.0.17 to 2.0.18

Updates `org.slf4j:slf4j-nop` from 2.0.17 to 2.0.18

Updates `commons-logging:commons-logging` from 1.3.6 to 1.4.0
- [Changelog](https://github.com/apache/commons-logging/blob/master/RELEASE-NOTES.txt)
- [Commits](https://github.com/apache/commons-logging/compare/rel/commons-logging-1.3.6...rel/commons-logging-1.4.0)

Updates `com.stripe:stripe-java` from 33.1.0 to 33.3.0
- [Release notes](https://github.com/stripe/stripe-java/releases)
- [Changelog](https://github.com/stripe/stripe-java/blob/master/CHANGELOG.md)
- [Commits](https://github.com/stripe/stripe-java/compare/v33.1.0...v33.3.0)

Updates `com.braintreepayments.gateway:braintree-java` from 3.48.0 to 3.53.0
- [Changelog](https://github.com/braintree/braintree_java/blob/master/CHANGELOG.md)
- [Commits](https://github.com/braintree/braintree_java/compare/3.48.0...3.53.0)

Updates `com.google.code.gson:gson` from 2.13.2 to 2.14.0
- [Release notes](https://github.com/google/gson/releases)
- [Changelog](https://github.com/google/gson/blob/main/CHANGELOG.md)
- [Commits](https://github.com/google/gson/compare/gson-parent-2.13.2...gson-parent-2.14.0)

Updates `com.google.guava:guava` from 33.5.0-jre to 33.6.0-jre
- [Release notes](https://github.com/google/guava/releases)
- [Commits](https://github.com/google/guava/commits)

Updates `org.signal:libsignal-server` from 0.100.0 to 0.101.0
- [Release notes](https://github.com/signalapp/libsignal/releases)
- [Changelog](https://github.com/signalapp/libsignal/blob/main/RELEASE_NOTES.md)
- [Commits](https://github.com/signalapp/libsignal/compare/v0.100.0...v0.101.0)

Updates `org.signal:simple-grpc-runtime` from 0.2.0 to 0.2.1
- [Commits](https://github.com/signalapp/simple-grpc/compare/0.2.0...0.2.1)

Updates `org.apache.logging.log4j:log4j-bom` from 2.25.4 to 2.26.1
- [Release notes](https://github.com/apache/logging-log4j2/releases)
- [Changelog](https://github.com/apache/logging-log4j2/blob/2.x/RELEASE-NOTES.adoc)
- [Commits](https://github.com/apache/logging-log4j2/compare/rel/2.25.4...rel/2.26.1)

Updates `ch.qos.logback:logback-core` from 1.5.38 to 1.6.3
- [Release notes](https://github.com/qos-ch/logback/releases)
- [Commits](https://github.com/qos-ch/logback/compare/v_1.5.38...v_1.6.3)

Updates `ch.qos.logback:logback-classic` from 1.5.38 to 1.6.3
- [Release notes](https://github.com/qos-ch/logback/releases)
- [Commits](https://github.com/qos-ch/logback/compare/v_1.5.38...v_1.6.3)

Updates `ch.qos.logback:logback-classic` from 1.5.38 to 1.6.3
- [Release notes](https://github.com/qos-ch/logback/releases)
- [Commits](https://github.com/qos-ch/logback/compare/v_1.5.38...v_1.6.3)

Updates `ch.qos.logback.access:logback-access-common` from 2.0.12 to 2.0.15

Updates `org.testcontainers:testcontainers-bom` from 2.0.4 to 2.0.5
- [Release notes](https://github.com/testcontainers/testcontainers-java/releases)
- [Changelog](https://github.com/testcontainers/testcontainers-java/blob/main/CHANGELOG.md)
- [Commits](https://github.com/testcontainers/testcontainers-java/compare/2.0.4...2.0.5)

Updates `org.wiremock:wiremock-jetty12` from 3.13.1 to 3.13.2
- [Release notes](https://github.com/wiremock/wiremock/releases)
- [Commits](https://github.com/wiremock/wiremock/compare/3.13.1...3.13.2)

Updates `org.apache.maven.plugins:maven-surefire-plugin` from 3.5.5 to 3.5.6
- [Release notes](https://github.com/apache/maven-surefire/releases)
- [Commits](https://github.com/apache/maven-surefire/compare/surefire-3.5.5...surefire-3.5.6)

Updates `org.apache.maven.plugins:maven-failsafe-plugin` from 3.5.4 to 3.5.6
- [Release notes](https://github.com/apache/maven-surefire/releases)
- [Commits](https://github.com/apache/maven-surefire/compare/surefire-3.5.4...surefire-3.5.6)

Updates `org.apache.maven.plugins:maven-jar-plugin` from 3.5.0 to 3.5.1
- [Release notes](https://github.com/apache/maven-jar-plugin/releases)
- [Commits](https://github.com/apache/maven-jar-plugin/compare/maven-jar-plugin-3.5.0...maven-jar-plugin-3.5.1)

Updates `org.apache.maven.plugins:maven-shade-plugin` from 3.6.1 to 3.6.2
- [Release notes](https://github.com/apache/maven-shade-plugin/releases)
- [Commits](https://github.com/apache/maven-shade-plugin/compare/maven-shade-plugin-3.6.1...maven-shade-plugin-3.6.2)

Updates `org.apache.maven.plugins:maven-assembly-plugin` from 3.7.1 to 3.8.0
- [Release notes](https://github.com/apache/maven-assembly-plugin/releases)
- [Commits](https://github.com/apache/maven-assembly-plugin/compare/maven-assembly-plugin-3.7.1...v3.8.0)

Updates `org.codehaus.mojo:properties-maven-plugin` from 1.2.1 to 1.3.0
- [Release notes](https://github.com/mojohaus/properties-maven-plugin/releases)
- [Commits](https://github.com/mojohaus/properties-maven-plugin/compare/1.2.1...properties-maven-plugin-1.3.0)

Updates `org.apache.maven.plugins:maven-dependency-plugin` from 3.10.0 to 3.11.0
- [Release notes](https://github.com/apache/maven-dependency-plugin/releases)
- [Commits](https://github.com/apache/maven-dependency-plugin/compare/maven-dependency-plugin-3.10.0...maven-dependency-plugin-3.11.0)

Updates `org.apache.maven.plugins:maven-enforcer-plugin` from 3.6.2 to 3.6.3
- [Release notes](https://github.com/apache/maven-enforcer/releases)
- [Commits](https://github.com/apache/maven-enforcer/compare/enforcer-3.6.2...enforcer-3.6.3)

---
updated-dependencies:
- dependency-name: io.swagger.core.v3:swagger-maven-plugin-jakarta
  dependency-version: 2.2.53
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: com.google.cloud.tools:jib-maven-plugin
  dependency-version: 3.5.2
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: com.fasterxml.jackson:jackson-bom
  dependency-version: 2.22.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: io.dropwizard:dropwizard-dependencies
  dependency-version: 5.0.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: io.netty:netty-bom
  dependency-version: 4.2.17.Final
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: software.amazon.awssdk:bom
  dependency-version: 2.53.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: com.google.cloud:libraries-bom
  dependency-version: 26.86.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: io.micrometer:micrometer-bom
  dependency-version: 1.17.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: io.opentelemetry:opentelemetry-bom
  dependency-version: 1.65.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom
  dependency-version: 2.30.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: io.projectreactor:reactor-bom
  dependency-version: 2025.0.6
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: org.jetbrains.kotlin:kotlin-bom
  dependency-version: 2.4.10
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: com.eatthepath:pushy
  dependency-version: 0.15.6
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: com.eatthepath:pushy-dropwizard-metrics-listener
  dependency-version: 0.15.6
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: com.eatthepath:pushy-dropwizard-metrics-listener
  dependency-version: 0.15.6
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: com.googlecode.libphonenumber:libphonenumber
  dependency-version: 9.0.37
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: commons-io:commons-io
  dependency-version: 2.22.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: io.lettuce:lettuce-core
  dependency-version: 7.6.0.RELEASE
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: org.foundationdb:fdb-java
  dependency-version: 7.4.6
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: org.slf4j:slf4j-api
  dependency-version: 2.0.18
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: org.slf4j:slf4j-nop
  dependency-version: 2.0.18
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: org.slf4j:slf4j-nop
  dependency-version: 2.0.18
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: commons-logging:commons-logging
  dependency-version: 1.4.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: com.stripe:stripe-java
  dependency-version: 33.3.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: com.braintreepayments.gateway:braintree-java
  dependency-version: 3.53.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: com.google.code.gson:gson
  dependency-version: 2.14.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: com.google.guava:guava
  dependency-version: 33.6.0-jre
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: org.signal:libsignal-server
  dependency-version: 0.101.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: org.signal:simple-grpc-runtime
  dependency-version: 0.2.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-java-dependencies
- dependency-name: org.apache.logging.log4j:log4j-bom
  dependency-version: 2.26.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: ch.qos.logback:logback-core
  dependency-version: 1.6.3
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: ch.qos.logback:logback-classic
  dependency-version: 1.6.3
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-java-dependencies
- dependency-name: ch.qos.logback:logback-classic
  dependency-version: 1.6.3
  dependency-type: direct:production
  update-type: version-update:semver-mi...

Signed-off-by: dependabot[bot] <support@github.com>
2026-08-20 10:16:14 -04:00
Chris Eager 8a48910d6c Revert "Update jetty to 12.1.12"
This reverts commit b2a450b264.
2026-08-19 18:25:03 -04:00
Chris Eager 7375db1c7a Remove obsolete LogstashTcpSocketAppenderFactory 2026-08-19 12:06:53 -04:00
dependabot[bot] 93083f2ca9 Bump net.logstash.logback:logstash-logback-encoder in /integration-tests
Bumps [net.logstash.logback:logstash-logback-encoder](https://github.com/logfellow/logstash-logback-encoder) from 8.1 to 9.0.
- [Release notes](https://github.com/logfellow/logstash-logback-encoder/releases)
- [Commits](https://github.com/logfellow/logstash-logback-encoder/compare/logstash-logback-encoder-8.1...logstash-logback-encoder-9.0)

---
updated-dependencies:
- dependency-name: net.logstash.logback:logstash-logback-encoder
  dependency-version: '9.0'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-08-19 12:06:53 -04:00
Chris Eager 8d37c148d6 Adapt to luajava API changes 2026-08-19 11:55:13 -04:00
dependabot[bot] 3ca228c0e3 Bump luajava.version from 3.5.0 to 4.1.0 in /service
Bumps `luajava.version` from 3.5.0 to 4.1.0.

Updates `party.iroiro.luajava:luajava` from 3.5.0 to 4.1.0
- [Release notes](https://github.com/gudzpoz/luajava/releases)
- [Commits](https://github.com/gudzpoz/luajava/compare/v3.5.0...v4.1.0)

Updates `party.iroiro.luajava:lua51` from 3.5.0 to 4.1.0
- [Release notes](https://github.com/gudzpoz/luajava/releases)
- [Commits](https://github.com/gudzpoz/luajava/compare/v3.5.0...v4.1.0)

Updates `party.iroiro.luajava:lua51-platform` from 3.5.0 to 4.1.0
- [Release notes](https://github.com/gudzpoz/luajava/releases)
- [Commits](https://github.com/gudzpoz/luajava/compare/v3.5.0...v4.1.0)

---
updated-dependencies:
- dependency-name: party.iroiro.luajava:luajava
  dependency-version: 4.1.0
  dependency-type: direct:development
  update-type: version-update:semver-major
- dependency-name: party.iroiro.luajava:lua51
  dependency-version: 4.1.0
  dependency-type: direct:development
  update-type: version-update:semver-major
- dependency-name: party.iroiro.luajava:lua51-platform
  dependency-version: 4.1.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-08-19 11:55:13 -04:00
dependabot[bot] 85d81271ce Bump actions/setup-java in the minor-actions-dependencies group
Bumps the minor-actions-dependencies group with 1 update: [actions/setup-java](https://github.com/actions/setup-java).


Updates `actions/setup-java` from 5.6.0 to 5.7.0
- [Release notes](https://github.com/actions/setup-java/releases)
- [Commits](https://github.com/actions/setup-java/compare/03ad4de0992f5dab5e18fcb136590ce7c4a0ac95...b6effb05e454b25005698d916606bdc6ffcbf961)

---
updated-dependencies:
- dependency-name: actions/setup-java
  dependency-version: 5.7.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-actions-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-08-19 10:20:12 -04:00
Chris Eager b2a450b264 Update jetty to 12.1.12 2026-08-19 10:03:06 -04:00
Chris Eager 7946caa817 Update dependabot directories 2026-08-19 10:03:06 -04:00
Katherine 3ac7a2f356 Add an integration test for registering a numberless account using a static credential 2026-08-18 19:04:30 -04:00
Jon Chambers 2f482f68f7 Accept an Optional number in AccountsTest#verifyStoredState 2026-08-18 13:14:01 -04:00
Jon Chambers 0786627bef Use more appropriate exception types when catching accounts without phone numbers 2026-08-18 13:14:01 -04:00
Jon Chambers bc7cd0cc95 Update to the latest version of the spam filter 2026-08-18 12:23:35 -04:00
Jon Chambers 48954c9f62 Scuttle deprecated phone number getters 2026-08-18 12:05:17 -04:00
Max Moiseev 336e0472f6 Fix the authCredentialSalt field description 2026-08-18 11:24:30 -04:00
Ravi Khadiwala df026777c4 Acknowledge unacknowledged play tokens at receipt generation 2026-08-18 11:23:11 -04:00
Chris Eager c7bcaac310 Check outstanding demand on internal trigger in FoundationDb publisher 2026-08-18 11:19:45 -04:00
Jon Chambers 1366fbba8a Allow account recovery with ACI and recovery password 2026-08-18 11:08:10 -04:00
Chris Eager 40601b8297 Update to the latest version of the spam filter 2026-08-13 15:54:21 -04:00
Katherine Yen 3aed88d8cf Parameterize on file name instead of numberless 2026-08-13 15:52:53 -04:00
Katherine Yen 15129c4ec9 Add numberless variant to AccountsManagerTest#testJsonRoundTripSerialization 2026-08-13 15:52:53 -04:00
Katherine Yen af0565c9ad Add numberless variant to AccountsManager#updateCurrentProfileVersion 2026-08-13 15:52:24 -04:00
Katherine Yen 341fe88853 Move test parameters for updateCurrentProfileVersion right after the test 2026-08-13 15:52:24 -04:00
Katherine Yen a5457f81b9 Parameterize AccountsManagerTest#testUpdate_optimisticLockingFailure with numberless variant 2026-08-13 15:52:24 -04:00
Katherine Yen e09a9c1707 Parameterize AccountsManagerTest#testUpdateDevice with numberless variant 2026-08-13 15:52:24 -04:00
Chris Eager 178f6452bb Update to the latest version of the spam filter 2026-08-12 18:02:23 -04:00
Ameya Lokare a8a4a70a68 Unify TTL handling of redeemed receipts 2026-08-12 14:49:38 -07:00
Chris Eager ae04fae1b9 Update to the latest version of the spam filter 2026-08-12 16:49:19 -04:00
Ravi Khadiwala 150a4952a1 Add LoginPurchase grpc service 2026-08-12 15:36:47 -05:00
Chris Eager 17a824954e Add dynamoDbClient to CommandDependencies 2026-08-12 16:09:01 -04:00
Jonathan Klabunde Tomer 48fd25f01e Support linking devices to accounts without phone numbers 2026-08-12 12:18:27 -04:00
Chris Eager 2c18e4aa1f Ensure AuthHelper mocks are Strictness.LENIENT 2026-08-12 11:31:46 -04:00
Chris Eager f8e049bb6c Replace unnecessary use of AuthHelper.VALID_UUID 2026-08-12 11:31:46 -04:00
Jon Chambers 8ba7da0568 Move responsibility for copying badges on account reclamation to AccountsManager 2026-08-12 09:37:30 -04:00
Katherine 30c642324a Clear PNI single use prekeys on device removal 2026-08-12 09:23:08 -04:00
Jon Chambers 647b25b87c Set phone number recovery password transactionally when creating accounts 2026-08-12 09:11:43 -04:00
Ravi Khadiwala e7ec47aa25 Increase DeviceCheck key limit 2026-08-12 09:10:04 -04:00
Jon Chambers 7d39f2952b Update AccountControllerTest for accounts that may not have phone numbers 2026-08-12 09:09:29 -04:00
Chris Eager 7ec1f78406 Add numberless case to AccountsManagerConcurrentModificationIntegrationTest 2026-08-12 09:08:51 -04:00
Ravi Khadiwala 9d601047c8 Add numberless variants to username tests 2026-08-12 09:07:42 -04:00
Ravi Khadiwala d99515e31e Avoid calling method when mocking a stub from another class 2026-08-11 15:56:28 -05:00
Jon Chambers edce40958b Update to the latest version of the spam filter 2026-08-11 12:13:34 -04:00
Jon Chambers 4d431fbdbf Update AccountsManagerChangeNumberIntegrationTest for accounts that may not have phone numbers 2026-08-11 12:11:41 -04:00
Chris Eager fcf12face8 Add explicit check for recovery password in AccountsManger#create 2026-08-11 09:10:57 -07:00
Jon Chambers e36e740bc0 Update AccountTest for cases where accounts may not have phone numbers 2026-08-11 09:08:13 -07:00
Katherine Yen 10c98c5f87 Update Redis account retrieval tests in AccountsManager 2026-08-11 09:03:18 -07:00
Katherine Yen 8d0ea9f67a Don't assume phone number identifier presence in parsing account JSON or writing accounts to Redis 2026-08-11 09:03:18 -07:00
Chris Eager 9870accbae Use AccountLockManager#withSingleAccountLock when appropriate 2026-08-11 09:00:20 -07:00
Ameya Lokare 6610c37fea Pass missing argument to AccounstTest#createNumberless 2026-08-11 08:52:47 -07:00
Jon Chambers 2d705a23f5 Update number discoverability tests/behavior for accounts without numbers in AccountControllerV2 2026-08-11 08:44:21 -07:00
Ravi Khadiwala 5c29072212 Paramterize some username tests on e164 presence 2026-08-11 10:43:06 -05:00
Ravi Khadiwala af6e2c2f2b Don't assume presence of phone numbers in account deletion 2026-08-11 10:40:19 -05:00
Ameya Lokare 713ab0314e Allow registration of Signal Logins 2026-08-11 08:28:34 -07:00
Katherine 3201ab324e Don't assume the presence of phone number-related fields in account creation or reclamation 2026-08-11 11:24:18 -04:00
Jon Chambers 5eb1a76e99 Update AccountIdentityResponseBuilderTest for accounts that may not have phone numbers 2026-08-11 09:16:46 -04:00
Jon Chambers 132c9531e1 Update account gRPC tests for accounts that may not have phone numbers 2026-08-11 09:16:46 -04:00
Jon Chambers a86cd5dcf5 Update AccountChangeValidator and tests for accounts that may not have phone numbers 2026-08-11 09:14:43 -04:00
Chris Eager 65175c16d0 Use getAccountIdentifier in AccountAuthenticator 2026-08-11 09:12:36 -04:00
Chris Eager f6ea81cf5e Use UUIDs in WebSocketAccountAuthenticatorTest 2026-08-11 09:12:36 -04:00
Chris Eager 1c12a9a258 Use getAccountIdentifier in RemoveExpiredAccountsCommand 2026-08-11 09:12:36 -04:00
Chris Eager b63f176ad7 Use getAccountIdentifier in device transfer context 2026-08-11 09:12:36 -04:00
Jon Chambers d69a5f1f33 Actually use the deviceId parameter in AccountsGrpcServiceTest#clearRegistrationLock 2026-08-11 09:11:50 -04:00
Jon Chambers 101fa4010d Avoid duplicate alternate forms of Benin phone numbers 2026-08-11 09:10:28 -04:00
Jon Chambers fba6037e3a Add a (failing!) test for Benin numbers that have ten-digit national significant numbers 2026-08-11 09:10:28 -04:00
Ravi Khadiwala 7e863e9dba Add some details to unexpectedly unacked purchaseTokens 2026-08-07 14:39:44 -05:00
Ravi Khadiwala 1ebb4177fe Move some level configuration to an enum 2026-08-07 14:39:13 -05:00
Ravi Khadiwala 3e5ccb82de Calculate the IssuedReceipt TTL from the receipt expiration 2026-08-07 14:39:13 -05:00
Ravi Khadiwala 6e3106297b Scope multi-attempt configuration in IssuedReceiptsManager to subscriptions only 2026-08-07 14:39:13 -05:00
Ravi Khadiwala d6b80dfd16 Add LoginPurchaseController 2026-08-07 14:39:13 -05:00
Ravi Khadiwala 7a34493d53 Add LoginPurchaseManager 2026-08-07 14:39:13 -05:00
Ravi Khadiwala 894cd8e0a3 Implement claimOneTimePurchase in IAP processors 2026-08-07 14:18:00 -05:00
Chris Eager 674d03ef0c Add issueAuthCredentialZkcWithoutPni to GroupCredentials issuance 2026-08-07 14:36:58 -04:00
Chris Eager f8a5e59a30 Update to libsignal 0.100.0 2026-08-07 14:36:58 -04:00
Jon Chambers 5f465a9f32 Replace trivial update with a ConditionCheck for recovery password migration 2026-08-07 14:36:33 -04:00
Jon Chambers 4e329ae48f Fix inverted argument order for account recovery passwords 2026-08-07 14:36:22 -04:00
Jon Chambers 2dd46b3b85 Add temporary plumbing and a command to migrate account recovery passwords 2026-08-05 15:10:19 -04:00
Jon Chambers 57c3fe949e Update to the latest version of the spam filter 2026-08-05 15:07:58 -04:00
Jon Chambers 453222ba17 Set/remove account recovery passwords alongside phone number recovery passwords 2026-08-05 14:50:00 -04:00
Jon Chambers c64aeec36a Add a public "update account with additional write items" method 2026-08-05 14:50:00 -04:00
Jon Chambers 8cbc8b0ce6 Add accountRecoveryPassword to accounts 2026-08-05 14:50:00 -04:00
Jon Chambers f4f2ffff21 Reframe "registration recovery passwords" as "phone number recovery passwords" 2026-08-05 14:50:00 -04:00
Ravi Khadiwala 5b6d6f28c9 Add an interface for one-time purchase retrieval 2026-08-05 13:24:14 -05:00
Ravi Khadiwala e4b09112f1 Make grpc ListMedia limit optional 2026-08-05 13:20:09 -05:00
Ravi Khadiwala cbc89f541c Tag OneTimeDonationsManager metric with provider 2026-08-05 13:19:46 -05:00
Jon Chambers 8c86e2e5ef Update to the latest version of the spam filter 2026-08-03 10:35:56 -04:00
dependabot[bot] 376f3b22d7 Bump the minor-actions-dependencies group with 3 updates
Bumps the minor-actions-dependencies group with 3 updates: [actions/checkout](https://github.com/actions/checkout), [actions/setup-java](https://github.com/actions/setup-java) and [aws-actions/configure-aws-credentials](https://github.com/aws-actions/configure-aws-credentials).


Updates `actions/checkout` from 7.0.0 to 7.0.1
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0...3d3c42e5aac5ba805825da76410c181273ba90b1)

Updates `actions/setup-java` from 5.4.0 to 5.6.0
- [Release notes](https://github.com/actions/setup-java/releases)
- [Commits](https://github.com/actions/setup-java/compare/1bcf9fb12cf4aa7d266a90ae39939e61372fe520...03ad4de0992f5dab5e18fcb136590ce7c4a0ac95)

Updates `aws-actions/configure-aws-credentials` from 6.2.1 to 6.2.3
- [Release notes](https://github.com/aws-actions/configure-aws-credentials/releases)
- [Changelog](https://github.com/aws-actions/configure-aws-credentials/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws-actions/configure-aws-credentials/compare/254c19bd240aabef8777f48595e9d2d7b972184b...e6de054238d6b7531b4efff3b6587d9aade6a06c)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: 7.0.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-actions-dependencies
- dependency-name: actions/setup-java
  dependency-version: 5.6.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-actions-dependencies
- dependency-name: aws-actions/configure-aws-credentials
  dependency-version: 6.2.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-actions-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-08-03 10:35:00 -04:00
Ravi Khadiwala 1e2a873753 Remove test subscriber-id 2026-08-03 10:01:12 -04:00
Jon Chambers e60daa75a8 Don't assume presence of phone numbers for spam reports 2026-08-03 09:39:44 -04:00
Ameya Lokare a3d01a94d4 Update metrics for spam reports from numberless accounts 2026-08-03 09:16:59 -04:00
Katherine Yen 0117ed1a0b Register KeyTransparencyGrpcService 2026-08-03 09:16:37 -04:00
Jonathan Klabunde Tomer f3194cf45b Update to the latest version of the spam filter 2026-07-29 16:15:34 -07:00
ravi-signal 29c5f8b218 Do not allow accounts without phone numbers to perform PNI key operations 2026-07-29 16:13:16 -07:00
Jonathan Klabunde Tomer d7447b111d Add support for pessimistic locking of phone-number-less accounts 2026-07-29 15:44:31 -07:00
Jon Chambers 850286dbfc Don't assume presence of phone numbers when regenerating secondary tables 2026-07-29 15:42:13 -07:00
ravi-signal f55a0af55e Add deprecation annotation to getIdentityKey 2026-07-29 15:42:02 -07:00
Jon Chambers 2f1843d5d2 Don't assume presence of phone numbers when checking for prohibited payment regions 2026-07-29 15:41:51 -07:00
Jon Chambers 78e7e992da Add utility methods for getting country/region codes for accounts that may not have phone numbers 2026-07-29 15:41:40 -07:00
ameya-signal ef2d25704e Don't allow or set registration lock on accounts with no phone number 2026-07-29 15:41:22 -07:00
Jon Chambers fc44fb1235 Fix a comparison between incompatible types 2026-07-29 17:09:16 -04:00
Jon Chambers 20dc6390b9 Don't set phone number identity keys in tests unless a phone number is also present 2026-07-29 15:06:37 -04:00
Jon Chambers 262f7de742 Update to the latest version of the spam filter 2026-07-29 14:46:40 -04:00
Jon Chambers fad055aa44 Reject attempts to change phone numbers if the account doesn't have a number in the first place 2026-07-29 14:44:58 -04:00
Jon Chambers 9426d0bd9e Revert "Reject attempts to change phone numbers if the account doesn't have a number in the first place"
This reverts commit 87cdc6f84a8323c4dce6a85e3f8337cf8e1d94cd.
2026-07-29 14:44:58 -04:00
Jon Chambers e1d2b3aac7 Reject attempts to change phone numbers if the account doesn't have a number in the first place 2026-07-29 14:44:58 -04:00
Jonathan Klabunde Tomer d415a3365a add optional getter for PNI identity key 2026-07-29 14:42:43 -04:00
Jon Chambers 8fc63dd4d6 Don't generate "includes e164" delivery certificates for accounts without phone numbers 2026-07-29 14:42:04 -04:00
Jon Chambers ac4d61978b Don't assume presence of phone numbers when generating account identity responses 2026-07-29 14:41:26 -04:00
Jon Chambers 79935ea22a Don't assume presence of phone numbers in integration tests 2026-07-29 14:41:26 -04:00
Jon Chambers 478a4bda7d Don't assume presence of phone numbers in account data reports 2026-07-29 14:40:08 -04:00
Jon Chambers 70d0bda779 Make "discoverable by phone number" contingent upon having a phone number in the first place 2026-07-29 14:40:08 -04:00
Ameya Lokare 4f4284d1cc Don't assume destination account phone number exists when updating spam report metrics 2026-07-29 14:39:37 -04:00
Ameya Lokare c12206ace0 Only update parsed time zone metric if the phone number was present 2026-07-29 14:38:39 -04:00
Ameya Lokare d46818e465 Default to preferred server-local time if account has no phone number 2026-07-29 14:38:39 -04:00
Jon Chambers 4440022796 Update to the latest version of the spam filter 2026-07-28 17:45:43 -04:00
Jon Chambers f1d2ce2814 Add methods for getting phone numbers and phone number identifiers that do not assume presence 2026-07-28 17:30:06 -04:00
Jon Chambers 1072d9d39b Convert Account documentation to Markdown 2026-07-28 17:30:06 -04:00
Jon Chambers 20cf3d7429 Rename Account#getUUID() to Account#getAccountIdentifier() 2026-07-28 17:30:06 -04:00
Jon Chambers 7b472afbcb Remove an ancient test 2026-07-28 17:30:06 -04:00
Katherine Yen c6619c7488 Adjust metric name in TrimOversizedFoundationDbMessageQueuesCommand 2026-07-28 17:29:39 -04:00
Jon Chambers 751b4b6ecc Detect and measure FoundationDB message consumer conflicts 2026-07-28 17:28:58 -04:00
Ravi Khadiwala 888b746294 Remove badges from product configuration 2026-07-28 16:20:05 -05:00
Ravi Khadiwala 8e9253181c Add badges to remote config 2026-07-28 16:20:05 -05:00
Ravi Khadiwala 257dd76b68 Implement grpc remote config 2026-07-28 16:13:16 -05:00
Ravi Khadiwala 76ca81d9f1 Sink remote config logic down a layer 2026-07-28 16:13:16 -05:00
Jon Chambers 0eeb6605db Use a programmatically-generated keystore in OmnibusH2ServerTest 2026-07-24 09:26:06 -04:00
Jon Chambers ac8d5f81bf Use a programmatically-generated keystore in SniMapperTest 2026-07-24 09:26:06 -04:00
Jon Chambers 3447345d02 Update to the latest version of the spam filter 2026-07-23 16:49:40 -04:00
Jon Chambers ab0235a574 Update to Ubuntu 26.04 as a base image 2026-07-23 16:49:05 -04:00
Jon Chambers 38c5a292fb Update test container images 2026-07-23 16:49:05 -04:00
Jon Chambers 35663956b5 Update deployment base image and specify full image rather than just the SHA256 2026-07-23 16:49:05 -04:00
Jon Chambers d5a0c63de8 Update Maven Wrapper 2026-07-23 16:49:05 -04:00
ravi-signal 2f0a081d2e Handle duplicated tokens in /v2/svr/auth/check 2026-07-23 15:48:33 -05:00
Chris Eager adfab44ed6 Opt out of anonymous Stripe telemetry_id 2026-07-23 16:48:09 -04:00
Katherine Yen 24cea1926a Add timeout, retries, and priority to trimQueue operation 2026-07-23 16:47:56 -04:00
Ravi Khadiwala 242a5f6a78 Allow ignoring the return value of status asserts 2026-07-23 16:47:40 -04:00
Katherine Yen 45dab47ea8 Disable flaky FoundationDbMessageStoreTest#trimQueue 2026-07-22 15:15:55 -04:00
Katherine Yen 0587a08017 Disable flaky FoundationDbMessageStoreTest#estimateQueueSizeAndSplitPoints 2026-07-22 15:11:38 -04:00
Ravi Khadiwala 02d6138848 Add marker for unexpected error logs 2026-07-22 14:35:17 -04:00
Jon Chambers 07444bffb4 Limit message range size based on outstanding demand 2026-07-22 14:32:26 -04:00
Katherine 4f8ca893f0 Add a crawler to trim oversized queues in FoundationDB 2026-07-22 11:43:22 -04:00
Ravi Khadiwala 7bb94bc99e Drop username_hash from ConfirmUsernameResponse 2026-07-22 10:34:44 -05:00
Ravi Khadiwala f6ca5e55a5 Make timeout for storage usage queries configurable 2026-07-22 10:34:23 -05:00
Andrew 4e2bca886e Specify AccountIdentifiers contract more tightly 2026-07-22 10:33:55 -05:00
ameya-signal 088037b412 Fix watch leak when watch is set after subscription is disposed 2026-07-21 10:26:38 -05:00
ameya-signal 548c688df2 Add counter for FoundationDB watch operations 2026-07-21 10:26:29 -05:00
Chris Eager 8b103030ed Update to the latest version of the spam filter 2026-07-21 10:26:18 -05:00
Ravi Khadiwala 6a8bf7f78e Temporarily disable flaky test 2026-07-17 13:44:14 -05:00
Jonathan Klabunde Tomer 98ba337787 remove primary-device requirement on three accounts grpc endpoints 2026-07-17 10:54:41 -07:00
Ameya Lokare 4410da5fb2 Use Mono.fromFuture(() ->) instead of Mono.fromFuture() to defer
evaluation
2026-07-17 10:53:44 -07:00
Ameya Lokare 607c839dda Add a utility method that returns a cancellation-safe result from
`database.runAsync`
2026-07-17 10:53:44 -07:00
Chris Eager bb3ad8d116 Add FoundationDB timeouts and retries 2026-07-17 12:47:11 -05:00
Chris Eager 2dcd43318e Update permissions in workflows/test.yml 2026-07-17 12:43:07 -05:00
Ravi Khadiwala b255c37978 Hoist user-agent tag out of publisher in copyMedia 2026-07-17 12:42:27 -05:00
Ravi Khadiwala ea411e2f1e Change ConfigureUnidentifiedAccessRequest to a oneof 2026-07-17 12:41:03 -05:00
Ravi Khadiwala 70f83326ef Make log stripping more consistent 2026-07-17 12:40:47 -05:00
Ravi Khadiwala 90a5ad589b Fix close code check in test 2026-07-15 11:35:57 -05:00
Ravi Khadiwala 749d9c4f92 Require donation permit headers 2026-07-15 11:35:46 -05:00
ravi-signal 3d45706a35 Add GetCapabilities rpcs 2026-07-15 11:35:20 -05:00
524 changed files with 26006 additions and 8334 deletions

No files matched your search

+24 -1
View File
@@ -10,9 +10,32 @@ updates:
update-types: [ minor, patch ]
- package-ecosystem: maven
directory: /
directories: [ "**/*" ]
schedule:
interval: monthly
ignore:
# Only patch updates don't require coordination with the deployed database
- dependency-name: "org.foundationdb:fdb-java"
update-types:
- version-update:semver-major
- version-update:semver-minor
# Ignore the latest pre-release version
versions: ["<=7.3.79"]
# Temporary exclusions, pending upstream fixes
# https://github.com/dropwizard/dropwizard/pull/11273
- dependency-name: "ch.qos.logback:*"
versions: [">=1.6.0"]
# https://github.com/jetty/jetty.project/issues/15657
- dependency-name: "org.eclipse.jetty:*"
versions: ["<=12.1.14"]
- dependency-name: "org.eclipse.jetty.ee10:*"
versions: ["<=12.1.14"]
# Dependency convergence sentinels, pinned to specific versions
- dependency-name: "tools.jackson.core:jackson-databind"
- dependency-name: "com.squareup.okio:okio-jvm"
groups:
minor-java-dependencies:
# Java: Only group minor and patch updates (we want to carefully review major updates)
+8 -7
View File
@@ -11,17 +11,18 @@ jobs:
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- uses: actions/setup-java@1bcf9fb12cf4aa7d266a90ae39939e61372fe520 # v5.4.0
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install APT packages
run: |
sudo apt-get update
# setup-java requires gpg
sudo apt-get install -y protobuf-compiler gpg
pip install sabledocs
- uses: actions/setup-java@de7274f081f381c8f8158605e0321c36c376e2e6 # v6.0.1
with:
distribution: 'temurin'
java-version-file: .java-version
cache: 'maven'
- name: Install gRPC documentation tooling
run: |
sudo apt-get update
sudo apt-get install -y protobuf-compiler
pip install sabledocs
- name: Generate OpenAPI documentation
run: ./mvnw compile
- name: Generate gRPC documentation
+8 -3
View File
@@ -19,13 +19,18 @@ jobs:
contents: read
issues: write
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- uses: actions/setup-java@1bcf9fb12cf4aa7d266a90ae39939e61372fe520 # v5.4.0
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install APT packages
run: |
# setup-java requires gpg
sudo apt update
sudo apt install -y gpg
- uses: actions/setup-java@de7274f081f381c8f8158605e0321c36c376e2e6 # v6.0.1
with:
distribution: 'temurin'
java-version-file: .java-version
cache: 'maven'
- uses: aws-actions/configure-aws-credentials@254c19bd240aabef8777f48595e9d2d7b972184b # v6.2.1
- uses: aws-actions/configure-aws-credentials@e1253824e5c10ff9df46874f81ed3ec929e19cfd # v6.3.0
name: Configure AWS credentials from Test account
with:
role-to-assume: ${{ vars.AWS_ROLE }}
+20 -15
View File
@@ -1,5 +1,8 @@
name: Service CI
permissions:
contents: read
on:
pull_request:
push:
@@ -9,7 +12,7 @@ on:
jobs:
build:
runs-on: ubuntu-latest
container: ubuntu:24.04
container: ubuntu:26.04
timeout-minutes: 20
services:
@@ -25,23 +28,15 @@ jobs:
options: --name foundationdb1
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- name: Set up JDK
uses: actions/setup-java@1bcf9fb12cf4aa7d266a90ae39939e61372fe520 # v5.4.0
with:
distribution: 'temurin'
java-version-file: .java-version
cache: 'maven'
env:
# work around an issue with actions/runner setting an incorrect HOME in containers, which breaks maven caching
# https://github.com/actions/setup-java/issues/356
HOME: /root
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install APT packages
# ca-certificates: required for AWS CRT client
run: |
# Add Docker's official GPG key:
apt update
apt install -y ca-certificates curl
# Maven Wrapper requires `unzip`; see https://github.com/apache/maven-wrapper/issues/425
# setup-java requires gpg
apt install -y ca-certificates curl gpg unzip
# Add Docker's official GPG key:
install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
chmod a+r /etc/apt/keyrings/docker.asc
@@ -54,13 +49,23 @@ jobs:
# ca-certificates: required for AWS CRT client
apt update && apt install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin ca-certificates
- name: Set up JDK
uses: actions/setup-java@de7274f081f381c8f8158605e0321c36c376e2e6 # v6.0.1
with:
distribution: 'temurin'
java-version-file: .java-version
cache: 'maven'
env:
# work around an issue with actions/runner setting an incorrect HOME in containers, which breaks maven caching
# https://github.com/actions/setup-java/issues/356
HOME: /root
- name: Configure FoundationDB0 database
run: docker exec foundationdb0 /usr/bin/fdbcli --exec 'configure new single memory'
- name: Configure FoundationDB1 database
run: docker exec foundationdb1 /usr/bin/fdbcli --exec 'configure new single memory'
- name: Download and install FoundationDB client
run: |
./mvnw -e -B -Pexclude-spam-filter clean prepare-package -DskipTests=true
./mvnw -e -B -Pexclude-spam-filter -pl service download:wget@install-foundationdb-client-library
cp service/target/jib-extra/usr/lib/libfdb_c.so /usr/lib/libfdb_c.x86_64.so
ldconfig
- name: Build with Maven
+1 -1
View File
@@ -1 +1 @@
temurin-25
temurin-26
BIN
View File
Binary file not shown.
+4 -3
View File
@@ -14,7 +14,8 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.14/apache-maven-3.9.14-bin.zip
wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.3.4/maven-wrapper-3.3.4.jar
distributionSha256Sum=55fadd669532a3205d5db95f490bf13971d8b0843526f407f29db0e61f074ab3
wrapperVersion=3.3.4
distributionType=only-script
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.16/apache-maven-3.9.16-bin.zip
distributionSha256Sum=5af3b743dd8b876b5c45da33b676251e5f1687712644abb4ee519ca56e1d89ce
wrapperSha256Sum=4e2fbf6554bc8a4702cdfdd3bef464f423393d784ddbb037216320ce55d5e4e1
+6 -5
View File
@@ -10,10 +10,6 @@
<modelVersion>4.0.0</modelVersion>
<artifactId>integration-tests</artifactId>
<properties>
<jetty.http2-client.version>12.1.5</jetty.http2-client.version>
</properties>
<dependencies>
<dependency>
<groupId>org.whispersystems.textsecure</groupId>
@@ -39,7 +35,12 @@
<dependency>
<groupId>org.eclipse.jetty.http2</groupId>
<artifactId>jetty-http2-client-transport</artifactId>
<version>${jetty.http2-client.version}</version>
</dependency>
<dependency>
<groupId>com.webauthn4j</groupId>
<artifactId>webauthn4j-test</artifactId>
<version>${webauthn4j.version}</version>
</dependency>
</dependencies>
@@ -1,101 +0,0 @@
/*
* Copyright 2023 Signal Messenger, LLC
* SPDX-License-Identifier: AGPL-3.0-only
*/
package org.signal.integration;
import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.databind.DeserializationContext;
import com.fasterxml.jackson.databind.JsonDeserializer;
import com.fasterxml.jackson.databind.JsonSerializer;
import com.fasterxml.jackson.databind.SerializerProvider;
import java.io.IOException;
import java.util.Base64;
import org.signal.libsignal.protocol.IdentityKey;
import org.signal.libsignal.protocol.ecc.ECPublicKey;
public final class Codecs {
private Codecs() {
// utility class
}
@FunctionalInterface
public interface CheckedFunction<T, R> {
R apply(T t) throws Exception;
}
public static class Base64BasedSerializer<T> extends JsonSerializer<T> {
private final CheckedFunction<T, byte[]> mapper;
public Base64BasedSerializer(final CheckedFunction<T, byte[]> mapper) {
this.mapper = mapper;
}
@Override
public void serialize(final T value, final JsonGenerator gen, final SerializerProvider serializers) throws IOException {
try {
gen.writeString(Base64.getEncoder().withoutPadding().encodeToString(mapper.apply(value)));
} catch (Exception e) {
throw new RuntimeException(e);
}
}
}
public static class Base64BasedDeserializer<T> extends JsonDeserializer<T> {
private final CheckedFunction<byte[], T> mapper;
public Base64BasedDeserializer(final CheckedFunction<byte[], T> mapper) {
this.mapper = mapper;
}
@Override
public T deserialize(final JsonParser p, final DeserializationContext ctxt) throws IOException {
try {
return mapper.apply(Base64.getDecoder().decode(p.getValueAsString()));
} catch (Exception e) {
throw new RuntimeException(e);
}
}
}
public static class ByteArraySerializer extends Base64BasedSerializer<byte[]> {
public ByteArraySerializer() {
super(bytes -> bytes);
}
}
public static class ByteArrayDeserializer extends Base64BasedDeserializer<byte[]> {
public ByteArrayDeserializer() {
super(bytes -> bytes);
}
}
public static class ECPublicKeySerializer extends Base64BasedSerializer<ECPublicKey> {
public ECPublicKeySerializer() {
super(ECPublicKey::serialize);
}
}
public static class ECPublicKeyDeserializer extends Base64BasedDeserializer<ECPublicKey> {
public ECPublicKeyDeserializer() {
super(ECPublicKey::new);
}
}
public static class IdentityKeySerializer extends Base64BasedSerializer<IdentityKey> {
public IdentityKeySerializer() {
super(IdentityKey::serialize);
}
}
public static class IdentityKeyDeserializer extends Base64BasedDeserializer<IdentityKey> {
public IdentityKeyDeserializer() {
super(bytes -> new IdentityKey(bytes, 0));
}
}
}
@@ -13,12 +13,14 @@ import java.util.concurrent.ExecutionException;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.TimeoutException;
import org.signal.integration.config.Config;
import org.signal.libsignal.zkgroup.receipts.ReceiptSerial;
import org.whispersystems.textsecuregcm.metrics.NoopAwsSdkMetricPublisher;
import org.whispersystems.textsecuregcm.registration.VerificationSession;
import org.whispersystems.textsecuregcm.storage.ChangeNumberWaitingPeriods;
import org.whispersystems.textsecuregcm.storage.PhoneNumberIdentifiers;
import org.whispersystems.textsecuregcm.storage.RegistrationRecoveryPasswords;
import org.whispersystems.textsecuregcm.storage.RegistrationRecoveryPasswordsManager;
import org.whispersystems.textsecuregcm.storage.PhoneNumberRecoveryPasswords;
import org.whispersystems.textsecuregcm.storage.PhoneNumberRecoveryPasswordsManager;
import org.whispersystems.textsecuregcm.storage.RedeemedReceiptsManager;
import org.whispersystems.textsecuregcm.storage.VerificationSessionManager;
import org.whispersystems.textsecuregcm.storage.VerificationSessions;
import software.amazon.awssdk.auth.credentials.AwsCredentialsProvider;
@@ -28,7 +30,7 @@ import software.amazon.awssdk.services.dynamodb.DynamoDbClient;
public class IntegrationTools {
private final RegistrationRecoveryPasswordsManager registrationRecoveryPasswordsManager;
private final PhoneNumberRecoveryPasswordsManager phoneNumberRecoveryPasswordsManager;
private final VerificationSessionManager verificationSessionManager;
@@ -36,6 +38,8 @@ public class IntegrationTools {
private final ChangeNumberWaitingPeriods changeNumberWaitingPeriods;
private final RedeemedReceiptsManager redeemedReceiptsManager;
public static IntegrationTools create(final Config config) {
final AwsCredentialsProvider credentialsProvider = DefaultCredentialsProvider.builder().build();
@@ -45,36 +49,39 @@ public class IntegrationTools {
final DynamoDbClient dynamoDbClient =
config.dynamoDbClient().buildSyncClient(credentialsProvider, new NoopAwsSdkMetricPublisher());
final RegistrationRecoveryPasswords registrationRecoveryPasswords = new RegistrationRecoveryPasswords(
final PhoneNumberRecoveryPasswords phoneNumberRecoveryPasswords = new PhoneNumberRecoveryPasswords(
config.dynamoDbTables().registrationRecovery(), Duration.ofDays(1), dynamoDbClient, Clock.systemUTC());
final VerificationSessions verificationSessions = new VerificationSessions(
dynamoDbClient, config.dynamoDbTables().verificationSessions(), Clock.systemUTC());
return new IntegrationTools(
new RegistrationRecoveryPasswordsManager(registrationRecoveryPasswords),
new PhoneNumberRecoveryPasswordsManager(phoneNumberRecoveryPasswords),
new VerificationSessionManager(verificationSessions),
new PhoneNumberIdentifiers(dynamoDbAsyncClient, config.dynamoDbTables().phoneNumberIdentifiers()),
new ChangeNumberWaitingPeriods(config.dynamoDbTables().changeNumberWaitingPeriods(), dynamoDbClient)
new ChangeNumberWaitingPeriods(config.dynamoDbTables().changeNumberWaitingPeriods(), dynamoDbClient),
new RedeemedReceiptsManager(Clock.systemUTC(), config.dynamoDbTables().redeemedReceipts(), dynamoDbClient)
);
}
private IntegrationTools(
final RegistrationRecoveryPasswordsManager registrationRecoveryPasswordsManager,
final PhoneNumberRecoveryPasswordsManager phoneNumberRecoveryPasswordsManager,
final VerificationSessionManager verificationSessionManager,
final PhoneNumberIdentifiers phoneNumberIdentifiers,
final ChangeNumberWaitingPeriods changeNumberWaitingPeriods) {
this.registrationRecoveryPasswordsManager = registrationRecoveryPasswordsManager;
final ChangeNumberWaitingPeriods changeNumberWaitingPeriods,
final RedeemedReceiptsManager redeemedReceiptsManager) {
this.phoneNumberRecoveryPasswordsManager = phoneNumberRecoveryPasswordsManager;
this.verificationSessionManager = verificationSessionManager;
this.phoneNumberIdentifiers = phoneNumberIdentifiers;
this.changeNumberWaitingPeriods = changeNumberWaitingPeriods;
this.redeemedReceiptsManager = redeemedReceiptsManager;
}
public void populateRecoveryPassword(final String phoneNumber, final byte[] password) {
try {
final UUID pni = phoneNumberIdentifiers
.getPhoneNumberIdentifier(phoneNumber).get(5, TimeUnit.SECONDS);
registrationRecoveryPasswordsManager.store(pni, password);
phoneNumberRecoveryPasswordsManager.store(pni, password);
} catch (ExecutionException | InterruptedException | TimeoutException e) {
throw new RuntimeException("failed to get pni", e);
}
@@ -87,4 +94,8 @@ public class IntegrationTools {
public void clearChangeNumberWaitingPeriod(TestUser user) {
changeNumberWaitingPeriods.delete(user.aciUuid());
}
public void deleteRedeemedReceipt(final ReceiptSerial receiptSerial) {
redeemedReceiptsManager.deleteReceipt(receiptSerial);
}
}
@@ -10,20 +10,41 @@ import static java.util.Objects.requireNonNull;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.google.common.io.Resources;
import com.google.common.net.HttpHeaders;
import com.webauthn4j.data.AuthenticatorAssertionResponse;
import com.webauthn4j.data.PublicKeyCredential;
import com.webauthn4j.data.PublicKeyCredentialDescriptor;
import com.webauthn4j.data.PublicKeyCredentialRequestOptions;
import com.webauthn4j.data.PublicKeyCredentialType;
import com.webauthn4j.data.UserVerificationRequirement;
import com.webauthn4j.data.client.challenge.DefaultChallenge;
import com.webauthn4j.test.client.ClientPlatform;
import io.dropwizard.configuration.ConfigurationValidationException;
import io.dropwizard.jersey.validation.Validators;
import io.grpc.ChannelCredentials;
import io.grpc.ClientInterceptor;
import io.grpc.Grpc;
import io.grpc.ManagedChannel;
import io.grpc.Metadata;
import io.grpc.TlsChannelCredentials;
import io.grpc.stub.MetadataUtils;
import jakarta.validation.ConstraintViolation;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.UncheckedIOException;
import java.lang.invoke.MethodHandles;
import java.net.URI;
import java.net.URL;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.nio.charset.StandardCharsets;
import java.security.InvalidKeyException;
import java.security.KeyStore;
import java.security.SecureRandom;
import java.security.cert.CertificateException;
import java.time.Duration;
import java.time.Instant;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Base64;
import java.util.Collections;
import java.util.List;
@@ -32,6 +53,7 @@ import java.util.Optional;
import java.util.Set;
import java.util.concurrent.Executors;
import java.util.concurrent.TimeUnit;
import javax.annotation.Nullable;
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.Validate;
import org.apache.commons.lang3.tuple.Pair;
@@ -43,14 +65,23 @@ import org.eclipse.jetty.util.ssl.SslContextFactory;
import org.eclipse.jetty.websocket.client.ClientUpgradeRequest;
import org.eclipse.jetty.websocket.client.WebSocketClient;
import org.signal.integration.config.Config;
import org.signal.integration.config.WebAuthnConfiguration;
import org.signal.libsignal.protocol.IdentityKey;
import org.signal.libsignal.protocol.ecc.ECKeyPair;
import org.signal.libsignal.protocol.ecc.ECPublicKey;
import org.signal.libsignal.protocol.kem.KEMKeyPair;
import org.signal.libsignal.protocol.kem.KEMKeyType;
import org.signal.libsignal.protocol.kem.KEMPublicKey;
import org.signal.libsignal.zkgroup.InvalidInputException;
import org.signal.libsignal.zkgroup.ServerPublicParams;
import org.signal.libsignal.zkgroup.VerificationFailedException;
import org.signal.libsignal.zkgroup.receipts.ClientZkReceiptOperations;
import org.signal.libsignal.zkgroup.receipts.ReceiptCredential;
import org.signal.libsignal.zkgroup.receipts.ReceiptCredentialPresentation;
import org.signal.libsignal.zkgroup.receipts.ReceiptSerial;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.whispersystems.textsecuregcm.auth.grpc.RequireAuthenticationInterceptor;
import org.whispersystems.textsecuregcm.entities.AccountAttributes;
import org.whispersystems.textsecuregcm.entities.AccountIdentityResponse;
import org.whispersystems.textsecuregcm.entities.DeviceActivationRequest;
@@ -58,11 +89,15 @@ import org.whispersystems.textsecuregcm.entities.ECSignedPreKey;
import org.whispersystems.textsecuregcm.entities.KEMSignedPreKey;
import org.whispersystems.textsecuregcm.entities.RegistrationRequest;
import org.whispersystems.textsecuregcm.http.FaultTolerantHttpClient;
import org.whispersystems.textsecuregcm.mappers.MfaFailureExceptionMapper;
import org.whispersystems.textsecuregcm.storage.Device;
import org.whispersystems.textsecuregcm.storage.TotpManager;
import org.whispersystems.textsecuregcm.util.CertificateUtil;
import org.whispersystems.textsecuregcm.util.HeaderUtils;
import org.whispersystems.textsecuregcm.util.HttpUtils;
import org.whispersystems.textsecuregcm.util.SystemMapper;
import org.whispersystems.textsecuregcm.util.ThrowingSupplier;
import org.whispersystems.textsecuregcm.util.Util;
public final class Operations {
@@ -70,6 +105,8 @@ public final class Operations {
private static final Config CONFIG = loadConfigFromClasspath("config.yml");
private static final String GRPC_DOMAIN = "grpc." + CONFIG.domain();
private static final IntegrationTools INTEGRATION_TOOLS = IntegrationTools.create(CONFIG);
private static final String USER_AGENT = "integration-test";
@@ -78,11 +115,171 @@ public final class Operations {
private static final WebSocketClient WEB_SOCKET_CLIENT = buildWebSocketClient();
private static final ManagedChannel GRPC_CHANNEL = buildGrpcChannel();
private Operations() {
// utility class
}
public record Receipt(ReceiptSerial serial, ReceiptCredential credential) {}
public static Receipt getPrescribedReceipt() throws InvalidInputException {
return new Receipt(
new ReceiptSerial(Base64.getUrlDecoder().decode(CONFIG.prescribedReceiptSerial())),
new ReceiptCredential(Base64.getUrlDecoder().decode(CONFIG.prescribedReceiptCredential()))
);
}
public static WebAuthnConfiguration getWebAuthnConfiguration() {
return CONFIG.webAuthn();
}
public static TestUser registerNumberlessUser(final ReceiptCredential receiptCredential)
throws InvalidInputException, VerificationFailedException {
final String accountPassword = Base64.getEncoder().encodeToString(randomBytes(32));
final byte[] recoveryPassword = randomBytes(32);
final TestUser user = TestUser.createNumberless(accountPassword, recoveryPassword);
final ClientZkReceiptOperations clientOps = new ClientZkReceiptOperations(new ServerPublicParams(Base64.getDecoder().decode(CONFIG.serverZkPublicParams())));
final ReceiptCredentialPresentation receiptCredentialPresentation = clientOps.createReceiptCredentialPresentation(receiptCredential);
final ECKeyPair aciIdentityKeyPair = ECKeyPair.generate();
final RegistrationRequest registrationRequest = new RegistrationRequest(null,
null,
receiptCredentialPresentation.serialize(),
null,
null,
user.accountAttributes(),
true,
new IdentityKey(aciIdentityKeyPair.getPublicKey()),
null,
new DeviceActivationRequest(generateSignedECPreKey(1, aciIdentityKeyPair),
Optional.empty(),
generateSignedKEMPreKey(3, aciIdentityKeyPair),
Optional.empty(),
Optional.empty(),
Optional.empty()));
final AccountIdentityResponse registrationResponse = apiPost("/v1/registration", registrationRequest)
// username must be present but can be set to anything for a numberless registration request
.authorized("test", accountPassword)
.executeExpectSuccess(AccountIdentityResponse.class);
user.setAciUuid(registrationResponse.uuid());
return user;
}
public static TestUser recoverNumberlessUserWithTotp(final TestUser testUser, final ThrowingSupplier<Integer, InvalidKeyException> totpSupplier) throws InvalidKeyException {
final TestUser recoveredUser = TestUser.createNumberlessForRecovery(testUser.accountPassword(), testUser.registrationPassword());
final ECKeyPair aciIdentityKeyPair = ECKeyPair.generate();
final ECKeyPair pniIdentityKeyPair = ECKeyPair.generate();
final DeviceActivationRequest deviceActivationRequest = new DeviceActivationRequest(
generateSignedECPreKey(1, aciIdentityKeyPair),
Optional.of(generateSignedECPreKey(2, pniIdentityKeyPair)),
generateSignedKEMPreKey(3, aciIdentityKeyPair),
Optional.of(generateSignedKEMPreKey(4, pniIdentityKeyPair)),
Optional.empty(),
Optional.empty());
// The server only allows one redemption of a TOTP per time-step, which we may have used up during `confirm`. Retry
// until the next time-step.
final Instant retryUntil = Instant.now().plus(TotpManager.TOTP.getTimeStep().plus(Duration.ofSeconds(1)));
while (true) {
final Pair<Integer, AccountIdentityResponse> registrationResponse = apiPost("/v1/registration",
new RegistrationRequest(null,
testUser.registrationPassword(),
null,
totpSupplier.get(),
null,
recoveredUser.accountAttributes(),
true,
new IdentityKey(aciIdentityKeyPair.getPublicKey()),
new IdentityKey(pniIdentityKeyPair.getPublicKey()),
deviceActivationRequest))
// For a numberless account recovery, the username is the ACI
.authorized(testUser.aciUuid().toString(), testUser.accountPassword())
.execute(AccountIdentityResponse.class);
if (registrationResponse.getLeft() == 441 && Instant.now().isBefore(retryUntil)) {
Util.sleep(Duration.ofSeconds(1).toMillis());
continue;
}
Validate.isTrue(HttpUtils.isSuccessfulResponse(registrationResponse.getLeft()),
"Unexpected response code: %d", registrationResponse.getLeft());
recoveredUser.setAciUuid(registrationResponse.getRight().uuid());
return recoveredUser;
}
}
public static TestUser recoverNumberlessUserWithWebAuthn(final TestUser testUser,
final ClientPlatform clientPlatform,
final byte[] credentialId,
final String relyingPartyId) {
final TestUser recoveredUser = TestUser.createNumberlessForRecovery(testUser.accountPassword(), testUser.registrationPassword());
final ECKeyPair aciIdentityKeyPair = ECKeyPair.generate();
final ECKeyPair pniIdentityKeyPair = ECKeyPair.generate();
final RegistrationRequest initialRequest = new RegistrationRequest(null,
testUser.registrationPassword(),
null,
null,
null,
recoveredUser.accountAttributes(),
true,
new IdentityKey(aciIdentityKeyPair.getPublicKey()),
new IdentityKey(pniIdentityKeyPair.getPublicKey()),
new DeviceActivationRequest(generateSignedECPreKey(1, aciIdentityKeyPair),
Optional.of(generateSignedECPreKey(2, pniIdentityKeyPair)),
generateSignedKEMPreKey(3, aciIdentityKeyPair),
Optional.of(generateSignedKEMPreKey(4, pniIdentityKeyPair)),
Optional.empty(),
Optional.empty()));
// we expect (and need) failure with status 441, which will contain the WebAuthn challenge
final MfaFailureExceptionMapper.MfaFailureResponse mfaFailureResponse = apiPost("/v1/registration", initialRequest)
// For a numberless account recovery, the username is the ACI
.authorized(testUser.aciUuid().toString(), testUser.accountPassword())
.executeExpectStatusCode(441, MfaFailureExceptionMapper.MfaFailureResponse.class);
Validate.isTrue(mfaFailureResponse.webAuthnParameters().allowedCredentialIds()
.stream()
.anyMatch(allowedId -> Arrays.equals(allowedId, credentialId)),
"Expected MFA failure to contain credentialId");
final PublicKeyCredential<AuthenticatorAssertionResponse, ?> credential =
clientPlatform.get(new PublicKeyCredentialRequestOptions(
new DefaultChallenge(mfaFailureResponse.webAuthnParameters().challenge()),
null,
relyingPartyId,
List.of(new PublicKeyCredentialDescriptor(PublicKeyCredentialType.PUBLIC_KEY, credentialId, null)),
UserVerificationRequirement.DISCOURAGED,
null));
final RegistrationRequest registrationRequest = new RegistrationRequest(null,
testUser.registrationPassword(),
null,
null,
webAuthnVerificationResponseJson(credential),
recoveredUser.accountAttributes(),
true,
new IdentityKey(aciIdentityKeyPair.getPublicKey()),
new IdentityKey(pniIdentityKeyPair.getPublicKey()),
new DeviceActivationRequest(generateSignedECPreKey(1, aciIdentityKeyPair),
Optional.of(generateSignedECPreKey(2, pniIdentityKeyPair)),
generateSignedKEMPreKey(3, aciIdentityKeyPair),
Optional.of(generateSignedKEMPreKey(4, pniIdentityKeyPair)),
Optional.empty(),
Optional.empty()));
final AccountIdentityResponse registrationResponse = apiPost("/v1/registration", registrationRequest)
// For a numberless account recovery, the username is the ACI
.authorized(testUser.aciUuid().toString(), testUser.accountPassword())
.executeExpectSuccess(AccountIdentityResponse.class);
recoveredUser.setAciUuid(registrationResponse.uuid());
return recoveredUser;
}
public static TestUser newRegisteredUser(final String number) {
final byte[] registrationPassword = populateRandomRecoveryPassword(number);
final String accountPassword = Base64.getEncoder().encodeToString(randomBytes(32));
@@ -96,14 +293,17 @@ public final class Operations {
// register account
final RegistrationRequest registrationRequest = new RegistrationRequest(null,
registrationPassword,
null,
null,
null,
accountAttributes,
true,
new IdentityKey(aciIdentityKeyPair.getPublicKey()),
new IdentityKey(pniIdentityKeyPair.getPublicKey()),
new DeviceActivationRequest(generateSignedECPreKey(1, aciIdentityKeyPair),
generateSignedECPreKey(2, pniIdentityKeyPair),
Optional.of(generateSignedECPreKey(2, pniIdentityKeyPair)),
generateSignedKEMPreKey(3, aciIdentityKeyPair),
generateSignedKEMPreKey(4, pniIdentityKeyPair),
Optional.of(generateSignedKEMPreKey(4, pniIdentityKeyPair)),
Optional.empty(),
Optional.empty()));
@@ -112,7 +312,7 @@ public final class Operations {
.executeExpectSuccess(AccountIdentityResponse.class);
user.setAciUuid(registrationResponse.uuid());
user.setPniUuid(registrationResponse.pni());
registrationResponse.pni().ifPresent(user::setPniUuid);
return user;
}
@@ -145,6 +345,10 @@ public final class Operations {
INTEGRATION_TOOLS.clearChangeNumberWaitingPeriod(user);
}
public static void deleteReceipt(final ReceiptSerial receiptSerial) {
INTEGRATION_TOOLS.deleteRedeemedReceipt(receiptSerial);
}
public static <T> T sendEmptyRequestAuthenticated(
final String endpoint,
final String method,
@@ -183,7 +387,7 @@ public final class Operations {
}
}
private static byte[] randomBytes(int numBytes) {
public static byte[] randomBytes(final int numBytes) {
final byte[] bytes = new byte[numBytes];
new SecureRandom().nextBytes(bytes);
return bytes;
@@ -216,6 +420,34 @@ public final class Operations {
return URI.create("https://" + CONFIG.domain() + endpoint + query);
}
public static ManagedChannel grpcChannel() {
return GRPC_CHANNEL;
}
public static ClientInterceptor authorizationInterceptor(final TestUser user, final byte deviceId) {
final String username = "%s.%d".formatted(user.aciUuid().toString(), deviceId);
final Metadata metadata = new Metadata();
metadata.put(RequireAuthenticationInterceptor.AUTHORIZATION_METADATA_KEY,
HeaderUtils.basicAuthHeader(username, user.accountPassword()));
return MetadataUtils.newAttachHeadersInterceptor(metadata);
}
private static ManagedChannel buildGrpcChannel() {
try {
final String rootCerts = String.join("\n", CONFIG.rootCerts());
final ByteArrayInputStream rootCertInputStream =
new ByteArrayInputStream(rootCerts.getBytes(StandardCharsets.UTF_8));
final ChannelCredentials credentials = TlsChannelCredentials.newBuilder().trustManager(rootCertInputStream).build();
return Grpc.newChannelBuilderForAddress(GRPC_DOMAIN, 443, credentials)
.userAgent(USER_AGENT)
.build();
} catch (final IOException e) {
throw new UncheckedIOException(e);
}
}
public static class RequestBuilder {
private final HttpRequest.Builder builder;
@@ -266,33 +498,48 @@ public final class Operations {
}
public Pair<Integer, Void> executeExpectSuccess() {
final Pair<Integer, Void> execute = execute();
final RawResponse response = executeRaw();
Validate.isTrue(
HttpUtils.isSuccessfulResponse(execute.getLeft()),
"Unexpected response code: %d",
execute.getLeft());
return execute;
HttpUtils.isSuccessfulResponse(response.statusCode()),
"Unexpected response code: %d, body: %s",
response.statusCode(), response.body());
return Pair.of(response.statusCode(), null);
}
public <T> T executeExpectSuccess(final Class<T> expectedType) {
final Pair<Integer, T> execute = execute(expectedType);
final RawResponse response = executeRaw();
Validate.isTrue(
HttpUtils.isSuccessfulResponse(execute.getLeft()),
"Unexpected response code: %d : %s",
execute.getLeft(), execute.getRight());
return requireNonNull(execute.getRight());
HttpUtils.isSuccessfulResponse(response.statusCode()),
"Unexpected response code: %d, body: %s",
response.statusCode(), response.body());
return requireNonNull(parseBody(response.body(), expectedType));
}
public void executeExpectStatusCode(final int expectedStatusCode) {
final Pair<Integer, Void> execute = execute(Void.class);
final RawResponse response = executeRaw();
Validate.isTrue(
execute.getLeft() == expectedStatusCode,
"Unexpected response code: %d",
execute.getLeft()
);
response.statusCode() == expectedStatusCode,
"Unexpected response code: %d (expected %d), body: %s",
response.statusCode(), expectedStatusCode, response.body());
}
public <T> T executeExpectStatusCode(final int expectedStatusCode, final Class<T> expectedType) {
final RawResponse response = executeRaw();
Validate.isTrue(
response.statusCode() == expectedStatusCode,
"Unexpected response code: %d (expected %d), body: %s",
response.statusCode(), expectedStatusCode, response.body());
return requireNonNull(parseBody(response.body(), expectedType));
}
public <T> Pair<Integer, T> execute(final Class<T> expectedType) {
final RawResponse response = executeRaw();
return Pair.of(response.statusCode(), parseBody(response.body(), expectedType));
}
private record RawResponse(int statusCode, String body) {}
private RawResponse executeRaw() {
builder.uri(serverUri(endpoint, queryParams))
.header(HttpHeaders.USER_AGENT, USER_AGENT);
return CLIENT.sendAsync(builder.build(), HttpResponse.BodyHandlers.ofString(StandardCharsets.UTF_8))
@@ -302,25 +549,30 @@ public final class Operations {
error.printStackTrace();
}
})
.thenApply(response -> {
try {
final T result = expectedType.equals(Void.class)
? null
: SystemMapper.jsonMapper().readValue(response.body(), expectedType);
return Pair.of(response.statusCode(), result);
} catch (final IOException e) {
throw new RuntimeException(e);
}
})
.thenApply(response -> new RawResponse(response.statusCode(), response.body()))
.join();
}
@Nullable
private static <T> T parseBody(final String body, final Class<T> expectedType) {
if (expectedType.equals(Void.class)) {
return null;
}
try {
return SystemMapper.jsonMapper().readValue(body, expectedType);
} catch (final IOException e) {
throw new RuntimeException(
"Could not parse response body as %s, body: %s".formatted(expectedType.getSimpleName(), body), e);
}
}
}
private static FaultTolerantHttpClient buildClient() {
try {
return FaultTolerantHttpClient.newBuilder("integration-test", Executors.newFixedThreadPool(16))
.withTrustedServerCertificates(CONFIG.rootCert())
.withTrustedServerCertificates(CONFIG.rootCerts().toArray(String[]::new))
.build();
} catch (final CertificateException e) {
throw new RuntimeException(e);
@@ -329,7 +581,7 @@ public final class Operations {
private static WebSocketClient buildWebSocketClient() {
try {
final KeyStore trustStore = CertificateUtil.buildKeyStoreForPem(CONFIG.rootCert());
final KeyStore trustStore = CertificateUtil.buildKeyStoreForPem(CONFIG.rootCerts().toArray(String[]::new));
final SslContextFactory.Client sslContextFactory = new SslContextFactory.Client();
sslContextFactory.setTrustStore(trustStore);
@@ -360,7 +612,7 @@ public final class Operations {
final String path,
final Map<String, String> headers) throws IOException {
final URI uri = URI.create("wss://grpc." + CONFIG.domain() + path);
final URI uri = URI.create("wss://" + GRPC_DOMAIN + path);
final ClientUpgradeRequest request = new ClientUpgradeRequest(uri);
headers.forEach(request::setHeader);
@@ -410,4 +662,34 @@ public final class Operations {
throw new RuntimeException(e);
}
}
/// Serializes an assertion into the [specification](https://www.w3.org/TR/webauthn/#dictdef-authenticationresponsejson) format.
static String webAuthnVerificationResponseJson(final PublicKeyCredential<AuthenticatorAssertionResponse, ?> credential) {
final AuthenticatorAssertionResponse response = credential.getResponse();
return """
{
"id": "%s",
"rawId": "%s",
"type": "public-key",
"clientExtensionResults": {},
"response": {
"clientDataJSON": "%s",
"authenticatorData": "%s",
"signature": "%s",
"userHandle": %s
}
}
""".formatted(
base64Url(credential.getRawId()),
base64Url(credential.getRawId()),
base64Url(response.getClientDataJSON()),
base64Url(response.getAuthenticatorData()),
base64Url(response.getSignature()),
response.getUserHandle() == null ? "null" : "\"" + base64Url(response.getUserHandle()) + "\"");
}
private static String base64Url(@Nullable final byte[] bytes) {
return Base64.getUrlEncoder().withoutPadding().encodeToString(bytes);
}
}
@@ -1,58 +0,0 @@
/*
* Copyright 2023 Signal Messenger, LLC
* SPDX-License-Identifier: AGPL-3.0-only
*/
package org.signal.integration;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import org.apache.commons.lang3.tuple.Pair;
import org.signal.libsignal.protocol.IdentityKeyPair;
import org.signal.libsignal.protocol.ecc.ECKeyPair;
import org.signal.libsignal.protocol.state.SignedPreKeyRecord;
public class TestDevice {
private final byte deviceId;
private final Map<Integer, Pair<IdentityKeyPair, SignedPreKeyRecord>> signedPreKeys = new ConcurrentHashMap<>();
public static TestDevice create(
final byte deviceId,
final IdentityKeyPair aciIdentityKeyPair,
final IdentityKeyPair pniIdentityKeyPair) {
final TestDevice device = new TestDevice(deviceId);
device.addSignedPreKey(aciIdentityKeyPair);
device.addSignedPreKey(pniIdentityKeyPair);
return device;
}
public TestDevice(final byte deviceId) {
this.deviceId = deviceId;
}
public byte deviceId() {
return deviceId;
}
public SignedPreKeyRecord latestSignedPreKey(final IdentityKeyPair identity) {
final int id = signedPreKeys.entrySet()
.stream()
.filter(p -> p.getValue().getLeft().equals(identity))
.mapToInt(Map.Entry::getKey)
.max()
.orElseThrow();
return signedPreKeys.get(id).getRight();
}
public SignedPreKeyRecord addSignedPreKey(final IdentityKeyPair identity) {
final int nextId = signedPreKeys.keySet().stream().mapToInt(k -> k + 1).max().orElse(0);
final ECKeyPair keyPair = ECKeyPair.generate();
final byte[] signature = keyPair.getPrivateKey().calculateSignature(keyPair.getPublicKey().serialize());
final SignedPreKeyRecord signedPreKeyRecord = new SignedPreKeyRecord(nextId, System.currentTimeMillis(), keyPair, signature);
signedPreKeys.put(nextId, Pair.of(identity, signedPreKeyRecord));
return signedPreKeyRecord;
}
}
@@ -5,71 +5,76 @@
package org.signal.integration;
import static java.util.Objects.requireNonNull;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import java.security.SecureRandom;
import java.nio.charset.StandardCharsets;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.security.SecureRandom;
import java.util.Optional;
import java.util.UUID;
import java.util.concurrent.ConcurrentHashMap;
import org.signal.libsignal.protocol.IdentityKey;
import org.signal.libsignal.protocol.IdentityKeyPair;
import org.signal.libsignal.protocol.InvalidKeyException;
import org.signal.libsignal.protocol.ecc.ECPublicKey;
import org.signal.libsignal.protocol.state.SignedPreKeyRecord;
import javax.annotation.Nullable;
import org.signal.libsignal.protocol.util.KeyHelper;
import org.whispersystems.textsecuregcm.auth.UnidentifiedAccessUtil;
import org.whispersystems.textsecuregcm.entities.AccountAttributes;
import org.whispersystems.textsecuregcm.storage.Device;
import org.whispersystems.textsecuregcm.storage.DeviceCapability;
public class TestUser {
private final int registrationId;
private final int pniRegistrationId;
private final IdentityKeyPair aciIdentityKey;
private final Map<Byte, TestDevice> devices = new ConcurrentHashMap<>();
@Nullable
private final Integer pniRegistrationId;
private final byte[] unidentifiedAccessKey;
private String phoneNumber;
@Nullable
private final String phoneNumber;
private IdentityKeyPair pniIdentityKey;
private final String accountPassword;
private String accountPassword;
private byte[] registrationPassword;
private final byte[] registrationPassword;
private UUID aciUuid;
@Nullable
private UUID pniUuid;
public static TestUser createNumberless(final String accountPassword, final byte[] accountRecoveryPassword) {
final int registrationId = KeyHelper.generateRegistrationId(false);
final byte[] unidentifiedAccessKey = Operations.randomBytes(UnidentifiedAccessUtil.UNIDENTIFIED_ACCESS_KEY_LENGTH);
return new TestUser(
registrationId,
null,
null,
unidentifiedAccessKey,
accountPassword,
accountRecoveryPassword);
}
public static TestUser createNumberlessForRecovery(final String accountPassword, final byte[] accountRecoveryPassword) {
// Recovering a numberless account requires PNI keys (though they are discarded by the server)
final int registrationId = KeyHelper.generateRegistrationId(false);
final int pniRegistrationId = KeyHelper.generateRegistrationId(false);
final byte[] unidentifiedAccessKey = new byte[UnidentifiedAccessUtil.UNIDENTIFIED_ACCESS_KEY_LENGTH];
new SecureRandom().nextBytes(unidentifiedAccessKey);
return new TestUser(
registrationId,
pniRegistrationId,
null,
unidentifiedAccessKey,
accountPassword,
accountRecoveryPassword);
}
public static TestUser create(final String phoneNumber, final String accountPassword, final byte[] registrationPassword) {
// ACI identity key pair
final IdentityKeyPair aciIdentityKey = IdentityKeyPair.generate();
// PNI identity key pair
final IdentityKeyPair pniIdentityKey = IdentityKeyPair.generate();
// registration id
final int registrationId = KeyHelper.generateRegistrationId(false);
final int pniRegistrationId = KeyHelper.generateRegistrationId(false);
// uak
final byte[] unidentifiedAccessKey = new byte[UnidentifiedAccessUtil.UNIDENTIFIED_ACCESS_KEY_LENGTH];
new SecureRandom().nextBytes(unidentifiedAccessKey);
return new TestUser(
registrationId,
pniRegistrationId,
aciIdentityKey,
phoneNumber,
pniIdentityKey,
unidentifiedAccessKey,
accountPassword,
registrationPassword);
@@ -77,38 +82,25 @@ public class TestUser {
public TestUser(
final int registrationId,
final int pniRegistrationId,
final IdentityKeyPair aciIdentityKey,
final String phoneNumber,
final IdentityKeyPair pniIdentityKey,
@Nullable final Integer pniRegistrationId,
@Nullable final String phoneNumber,
final byte[] unidentifiedAccessKey,
final String accountPassword,
final byte[] registrationPassword) {
this.registrationId = registrationId;
this.pniRegistrationId = pniRegistrationId;
this.aciIdentityKey = aciIdentityKey;
this.phoneNumber = phoneNumber;
this.pniIdentityKey = pniIdentityKey;
this.unidentifiedAccessKey = unidentifiedAccessKey;
this.accountPassword = accountPassword;
this.registrationPassword = registrationPassword;
devices.put(Device.PRIMARY_ID, TestDevice.create(Device.PRIMARY_ID, aciIdentityKey, pniIdentityKey));
}
public int registrationId() {
return registrationId;
}
public IdentityKeyPair aciIdentityKey() {
return aciIdentityKey;
}
public String phoneNumber() {
return phoneNumber;
}
public IdentityKeyPair pniIdentityKey() {
return pniIdentityKey;
public Optional<String> phoneNumber() {
return Optional.ofNullable(phoneNumber);
}
public String accountPassword() {
@@ -123,77 +115,21 @@ public class TestUser {
return aciUuid;
}
public UUID pniUuid() {
return pniUuid;
public Optional<UUID> pniUuid() {
return Optional.ofNullable(pniUuid);
}
public AccountAttributes accountAttributes() {
return new AccountAttributes(true, registrationId, pniRegistrationId, "".getBytes(StandardCharsets.UTF_8), "", true,
DeviceCapability.CAPABILITIES_REQUIRED_FOR_NEW_DEVICES)
.setUnidentifiedAccessKey(unidentifiedAccessKey)
.setRecoveryPassword(registrationPassword);
DeviceCapability.CAPABILITIES_REQUIRED_FOR_NEW_DEVICES, registrationPassword)
.setUnidentifiedAccessKey(unidentifiedAccessKey);
}
public void setAciUuid(final UUID aciUuid) {
this.aciUuid = aciUuid;
}
public void setPniUuid(final UUID pniUuid) {
public void setPniUuid(@Nullable final UUID pniUuid) {
this.pniUuid = pniUuid;
}
public void setPhoneNumber(final String phoneNumber) {
this.phoneNumber = phoneNumber;
}
public void setPniIdentityKey(final IdentityKeyPair pniIdentityKey) {
this.pniIdentityKey = pniIdentityKey;
}
public void setAccountPassword(final String accountPassword) {
this.accountPassword = accountPassword;
}
public void setRegistrationPassword(final byte[] registrationPassword) {
this.registrationPassword = registrationPassword;
}
public PreKeySetPublicView preKeys(final byte deviceId, final boolean pni) {
final IdentityKeyPair identity = pni
? pniIdentityKey
: aciIdentityKey;
final TestDevice device = requireNonNull(devices.get(deviceId));
final SignedPreKeyRecord signedPreKeyRecord = device.latestSignedPreKey(identity);
try {
return new PreKeySetPublicView(
Collections.emptyList(),
identity.getPublicKey(),
new SignedPreKeyPublicView(
signedPreKeyRecord.getId(),
signedPreKeyRecord.getKeyPair().getPublicKey(),
signedPreKeyRecord.getSignature()
)
);
} catch (InvalidKeyException e) {
throw new RuntimeException(e);
}
}
public record SignedPreKeyPublicView(
int keyId,
@JsonSerialize(using = Codecs.ECPublicKeySerializer.class)
@JsonDeserialize(using = Codecs.ECPublicKeyDeserializer.class)
ECPublicKey publicKey,
@JsonSerialize(using = Codecs.ByteArraySerializer.class)
@JsonDeserialize(using = Codecs.ByteArrayDeserializer.class)
byte[] signature) {
}
public record PreKeySetPublicView(
List<String> preKeys,
@JsonSerialize(using = Codecs.IdentityKeySerializer.class)
@JsonDeserialize(using = Codecs.IdentityKeyDeserializer.class)
IdentityKey identityKey,
SignedPreKeyPublicView signedPreKey) {
}
}
@@ -7,13 +7,19 @@ package org.signal.integration.config;
import jakarta.validation.Valid;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import org.whispersystems.textsecuregcm.configuration.DynamoDbClientFactory;
import java.util.List;
public record Config(@NotBlank String domain,
@NotBlank String rootCert,
@NotEmpty List<@NotBlank String> rootCerts,
@NotNull @Valid DynamoDbClientFactory dynamoDbClient,
@NotNull @Valid DynamoDbTables dynamoDbTables,
@NotBlank String prescribedRegistrationNumber,
@NotBlank String prescribedRegistrationCode) {
@NotBlank String prescribedRegistrationCode,
@NotBlank String prescribedReceiptSerial,
@NotBlank String prescribedReceiptCredential,
@NotBlank String serverZkPublicParams,
@NotNull @Valid WebAuthnConfiguration webAuthn) {
}
@@ -10,5 +10,6 @@ import jakarta.validation.constraints.NotBlank;
public record DynamoDbTables(@NotBlank String registrationRecovery,
@NotBlank String verificationSessions,
@NotBlank String phoneNumberIdentifiers,
@NotBlank String changeNumberWaitingPeriods) {
@NotBlank String changeNumberWaitingPeriods,
@NotBlank String redeemedReceipts) {
}
@@ -0,0 +1,13 @@
/*
* Copyright 2026 Signal Messenger, LLC
* SPDX-License-Identifier: AGPL-3.0-only
*/
package org.signal.integration.config;
import jakarta.validation.constraints.NotBlank;
public record WebAuthnConfiguration(
@NotBlank String relyingPartyId,
@NotBlank String origin) {
}
@@ -5,21 +5,67 @@
package org.signal.integration;
import static org.junit.jupiter.api.Assertions.assertArrayEquals;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotEquals;
import static org.junit.jupiter.api.Assertions.assertTrue;
import com.eatthepath.otp.TimeBasedOneTimePasswordGenerator;
import com.google.protobuf.ByteString;
import com.webauthn4j.data.AttestationConveyancePreference;
import com.webauthn4j.data.AuthenticatorAttestationResponse;
import com.webauthn4j.data.AuthenticatorSelectionCriteria;
import com.webauthn4j.data.PublicKeyCredential;
import com.webauthn4j.data.PublicKeyCredentialCreationOptions;
import com.webauthn4j.data.PublicKeyCredentialParameters;
import com.webauthn4j.data.PublicKeyCredentialRpEntity;
import com.webauthn4j.data.PublicKeyCredentialType;
import com.webauthn4j.data.PublicKeyCredentialUserEntity;
import com.webauthn4j.data.ResidentKeyRequirement;
import com.webauthn4j.data.UserVerificationRequirement;
import com.webauthn4j.data.attestation.statement.COSEAlgorithmIdentifier;
import com.webauthn4j.data.client.Origin;
import com.webauthn4j.data.client.challenge.DefaultChallenge;
import com.webauthn4j.test.EmulatorUtil;
import com.webauthn4j.test.authenticator.webauthn.WebAuthnAuthenticatorAdaptor;
import com.webauthn4j.test.client.ClientPlatform;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;
import java.time.Duration;
import java.time.Instant;
import java.util.Arrays;
import java.util.Base64;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import javax.crypto.SecretKey;
import javax.crypto.spec.SecretKeySpec;
import org.apache.commons.lang3.tuple.Pair;
import org.apache.http.HttpStatus;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Nested;
import org.junit.jupiter.api.Test;
import org.signal.chat.account.AccountsGrpc;
import org.signal.chat.account.ConfirmTotpKeyRequest;
import org.signal.chat.account.ConfirmTotpKeyResponse;
import org.signal.chat.account.FinishWebAuthnRegistrationRequest;
import org.signal.chat.account.FinishWebAuthnRegistrationResponse;
import org.signal.chat.account.GenerateTotpKeyRequest;
import org.signal.chat.account.GenerateTotpKeyResponse;
import org.signal.chat.account.ListMfaKeysRequest;
import org.signal.chat.account.ListMfaKeysResponse;
import org.signal.chat.account.StartWebAuthnRegistrationRequest;
import org.signal.chat.account.StartWebAuthnRegistrationResponse;
import org.signal.chat.account.TotpParameters;
import org.signal.integration.config.WebAuthnConfiguration;
import org.signal.libsignal.protocol.IdentityKey;
import org.signal.libsignal.protocol.ecc.ECKeyPair;
import org.signal.libsignal.usernames.BaseUsernameException;
import org.signal.libsignal.usernames.Username;
import org.signal.libsignal.zkgroup.InvalidInputException;
import org.signal.libsignal.zkgroup.VerificationFailedException;
import org.whispersystems.textsecuregcm.entities.AccountIdentifierResponse;
import org.whispersystems.textsecuregcm.entities.AccountIdentityResponse;
import org.whispersystems.textsecuregcm.entities.ChangeNumberRequest;
@@ -32,6 +78,153 @@ import org.whispersystems.textsecuregcm.storage.Device;
public class AccountTest {
@Test
public void testCreateNumberlessAccount()
throws VerificationFailedException, InvalidInputException {
final Operations.Receipt receipt = Operations.getPrescribedReceipt();
Operations.deleteReceipt(receipt.serial());
TestUser user = null;
try {
user = Operations.registerNumberlessUser(receipt.credential());
final Pair<Integer, AccountIdentityResponse> execute = Operations.apiGet("/v1/accounts/whoami")
.authorized(user)
.execute(AccountIdentityResponse.class);
assertEquals(HttpStatus.SC_OK, execute.getLeft());
} finally {
Operations.deleteReceipt(receipt.serial());
if (user != null) {
Operations.deleteUser(user);
}
}
}
@Nested
class RecoverWithMfa {
private TestUser user;
@BeforeEach
void setup() throws InvalidInputException, VerificationFailedException {
final Operations.Receipt receipt = Operations.getPrescribedReceipt();
// Clear receipt state in case a previous run had an unclean failure
Operations.deleteReceipt(receipt.serial());
user = Operations.registerNumberlessUser(receipt.credential());
}
@AfterEach
void teardown() throws InvalidInputException {
final Operations.Receipt receipt = Operations.getPrescribedReceipt();
Operations.deleteReceipt(receipt.serial());
if (user != null) {
Operations.deleteUser(user);
}
}
@Test
public void testRecoverWithTotp() throws NoSuchAlgorithmException, InvalidKeyException {
final GenerateTotpKeyResponse generateTotpKeyResponse =
getAccountsStubForUser(user).generateTotpKey(GenerateTotpKeyRequest.getDefaultInstance());
assertEquals(GenerateTotpKeyResponse.ResponseCase.KEY_GENERATED, generateTotpKeyResponse.getResponseCase());
final TotpParameters totpParameters = generateTotpKeyResponse.getKeyGenerated().getTotpParameters();
final TimeBasedOneTimePasswordGenerator totpGenerator = new TimeBasedOneTimePasswordGenerator(
Duration.ofSeconds(totpParameters.getTimeStepSeconds()),
totpParameters.getPasswordLength(),
totpParameters.getAlgorithm());
final SecretKey totpKey = new SecretKeySpec(
generateTotpKeyResponse.getKeyGenerated().getKey().toByteArray(),
totpParameters.getAlgorithm());
final byte[] totpMetadata = Operations.randomBytes(160);
final ConfirmTotpKeyResponse confirmTotpKeyResponse = getAccountsStubForUser(user)
.confirmTotpKey(ConfirmTotpKeyRequest.newBuilder()
.setOneTimePassword(totpGenerator.generateOneTimePassword(totpKey, Instant.now()))
.setMetadataCiphertext(ByteString.copyFrom(totpMetadata))
.build());
assertEquals(ConfirmTotpKeyResponse.ResponseCase.KEY_CONFIRMED, confirmTotpKeyResponse.getResponseCase());
final int keyId = confirmTotpKeyResponse.getKeyConfirmed().getKeyId();
final TestUser recoveredUser = Operations.recoverNumberlessUserWithTotp(user, () ->
totpGenerator.generateOneTimePassword(totpKey, Instant.now()));
assertEquals(user.aciUuid(), recoveredUser.aciUuid());
// MFA key should remain set after re-registration
final Map<Integer, ListMfaKeysResponse.MfaKeyMetadata> mfaKeys =
getAccountsStubForUser(recoveredUser).listMfaKeys(ListMfaKeysRequest.getDefaultInstance()).getKeysMap();
assertEquals(1, mfaKeys.size());
assertTrue(mfaKeys.containsKey(keyId));
assertEquals(ListMfaKeysResponse.MfaKeyMetadata.MfaKeyType.MFA_KEY_TYPE_TOTP, mfaKeys.get(keyId).getType());
assertArrayEquals(totpMetadata, mfaKeys.get(keyId).getMetadataCiphertext().toByteArray());
}
@Test
public void testRecoverWithWebAuthn() {
final WebAuthnConfiguration webAuthnConfiguration = Operations.getWebAuthnConfiguration();
final ClientPlatform clientPlatform = new ClientPlatform(new Origin(webAuthnConfiguration.origin()), new WebAuthnAuthenticatorAdaptor(EmulatorUtil.NONE_ATTESTATION_AUTHENTICATOR));
final COSEAlgorithmIdentifier algorithm = COSEAlgorithmIdentifier.ES256;
final StartWebAuthnRegistrationResponse startWebAuthnRegistrationResponse =
getAccountsStubForUser(user).startWebAuthnRegistration(StartWebAuthnRegistrationRequest.getDefaultInstance());
assertEquals(StartWebAuthnRegistrationResponse.ResponseCase.PARAMS,
startWebAuthnRegistrationResponse.getResponseCase());
final StartWebAuthnRegistrationResponse.WebAuthnCreateParameters webAuthnCreateParameters = startWebAuthnRegistrationResponse.getParams();
assertTrue(
webAuthnCreateParameters.getAllowedAlgorithmsList().contains(algorithm.getValue()));
final PublicKeyCredential<AuthenticatorAttestationResponse, ?> credential =
clientPlatform.create(new PublicKeyCredentialCreationOptions(
new PublicKeyCredentialRpEntity(webAuthnConfiguration.relyingPartyId(), "test"),
new PublicKeyCredentialUserEntity(webAuthnCreateParameters.getUserHandle().toByteArray(), "test", "test"),
new DefaultChallenge(),
List.of(new PublicKeyCredentialParameters(PublicKeyCredentialType.PUBLIC_KEY, algorithm)),
null,
List.of(),
new AuthenticatorSelectionCriteria(
null, false, ResidentKeyRequirement.DISCOURAGED, UserVerificationRequirement.DISCOURAGED),
AttestationConveyancePreference.NONE,
null));
final byte[] metadataCiphertext = Operations.randomBytes(160);
final FinishWebAuthnRegistrationResponse finishWebAuthnRegistrationResponse = getAccountsStubForUser(user)
.finishWebAuthnRegistration(FinishWebAuthnRegistrationRequest.newBuilder()
.setAttestationObject(ByteString.copyFrom(credential.getResponse().getAttestationObject()))
.setCollectedClientDataJsonBytes(ByteString.copyFrom(credential.getResponse().getClientDataJSON()))
.setMetadataCiphertext(ByteString.copyFrom(metadataCiphertext))
.build());
assertEquals(FinishWebAuthnRegistrationResponse.ResponseCase.KEY_CONFIRMED,
finishWebAuthnRegistrationResponse.getResponseCase());
final int keyId = finishWebAuthnRegistrationResponse.getKeyConfirmed().getKeyId();
final TestUser recoveredUser = Operations.recoverNumberlessUserWithWebAuthn(user, clientPlatform, credential.getRawId(),
webAuthnConfiguration.relyingPartyId());
assertEquals(user.aciUuid(), recoveredUser.aciUuid());
// MFA key should remain set after re-registration
final Map<Integer, ListMfaKeysResponse.MfaKeyMetadata> mfaKeys =
getAccountsStubForUser(recoveredUser).listMfaKeys(ListMfaKeysRequest.getDefaultInstance()).getKeysMap();
assertEquals(1, mfaKeys.size());
assertTrue(mfaKeys.containsKey(keyId));
assertEquals(ListMfaKeysResponse.MfaKeyMetadata.MfaKeyType.MFA_KEY_TYPE_WEBAUTHN, mfaKeys.get(keyId).getType());
assertArrayEquals(metadataCiphertext, mfaKeys.get(keyId).getMetadataCiphertext().toByteArray());
}
}
private static AccountsGrpc.AccountsBlockingStub getAccountsStubForUser(final TestUser user) {
return AccountsGrpc
.newBlockingStub(Operations.grpcChannel())
.withInterceptors(Operations.authorizationInterceptor(user, Device.PRIMARY_ID));
}
@Test
public void testCreateAccount() {
final TestUser user = Operations.newRegisteredUser("+19995550101");
@@ -72,7 +265,7 @@ public class AccountTest {
assertEquals(user.aciUuid(), accountIdentityResponse.uuid());
assertNotEquals(user.pniUuid(), accountIdentityResponse.pni());
assertEquals(targetNumber, accountIdentityResponse.number());
assertEquals(Optional.of(targetNumber), accountIdentityResponse.number());
} finally {
Operations.deleteUser(user);
}
@@ -11,20 +11,16 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertTimeoutPreemptively;
import com.google.common.net.HttpHeaders;
import jakarta.ws.rs.core.MediaType;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.time.Duration;
import java.util.List;
import java.util.Optional;
import java.util.concurrent.TimeUnit;
import jakarta.ws.rs.core.MediaType;
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.Timeout;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.whispersystems.textsecuregcm.entities.IncomingMessage;
import org.whispersystems.textsecuregcm.entities.IncomingMessageList;
import org.whispersystems.textsecuregcm.entities.MessageProtos;
@@ -65,7 +61,7 @@ public class MessagingTest {
assertDoesNotThrow(() -> WebsocketClientSession.decode(SendMessageResponse.class, responseMessage));
final WebsocketClientSession websocketB = Operations.authenticatedWebsocket(userB, Device.PRIMARY_ID);
assertTimeoutPreemptively(Duration.ofSeconds(5), websocketB::waitForQueueEmpty);
assertTimeoutPreemptively(Duration.ofSeconds(15), websocketB::waitForQueueEmpty);
assertEquals(1, websocketB.getReceivedEnvelopes().size());
final MessageProtos.Envelope envelope = websocketB.getReceivedEnvelopes().getFirst();
Vendored
+234 -247
View File
@@ -19,290 +19,277 @@
# ----------------------------------------------------------------------------
# ----------------------------------------------------------------------------
# Apache Maven Wrapper startup batch script, version 3.2.0
#
# Required ENV vars:
# ------------------
# JAVA_HOME - location of a JDK home dir
# Apache Maven Wrapper startup batch script, version 3.3.4
#
# Optional ENV vars
# -----------------
# MAVEN_OPTS - parameters passed to the Java VM when running Maven
# e.g. to debug Maven itself, use
# set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
# MAVEN_SKIP_RC - flag to disable loading of mavenrc files
# JAVA_HOME - location of a JDK home dir, required when download maven via java source
# MVNW_REPOURL - repo url base for downloading maven distribution
# MVNW_USERNAME/MVNW_PASSWORD - user and password for downloading maven
# MVNW_VERBOSE - true: enable verbose log; debug: trace the mvnw script; others: silence the output
# ----------------------------------------------------------------------------
if [ -z "$MAVEN_SKIP_RC" ] ; then
set -euf
[ "${MVNW_VERBOSE-}" != debug ] || set -x
if [ -f /usr/local/etc/mavenrc ] ; then
. /usr/local/etc/mavenrc
fi
if [ -f /etc/mavenrc ] ; then
. /etc/mavenrc
fi
if [ -f "$HOME/.mavenrc" ] ; then
. "$HOME/.mavenrc"
fi
fi
# OS specific support. $var _must_ be set to either true or false.
cygwin=false;
darwin=false;
mingw=false
# OS specific support.
native_path() { printf %s\\n "$1"; }
case "$(uname)" in
CYGWIN*) cygwin=true ;;
MINGW*) mingw=true;;
Darwin*) darwin=true
# Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home
# See https://developer.apple.com/library/mac/qa/qa1170/_index.html
if [ -z "$JAVA_HOME" ]; then
if [ -x "/usr/libexec/java_home" ]; then
JAVA_HOME="$(/usr/libexec/java_home)"; export JAVA_HOME
else
JAVA_HOME="/Library/Java/Home"; export JAVA_HOME
fi
fi
;;
CYGWIN* | MINGW*)
[ -z "${JAVA_HOME-}" ] || JAVA_HOME="$(cygpath --unix "$JAVA_HOME")"
native_path() { cygpath --path --windows "$1"; }
;;
esac
if [ -z "$JAVA_HOME" ] ; then
if [ -r /etc/gentoo-release ] ; then
JAVA_HOME=$(java-config --jre-home)
fi
fi
# For Cygwin, ensure paths are in UNIX format before anything is touched
if $cygwin ; then
[ -n "$JAVA_HOME" ] &&
JAVA_HOME=$(cygpath --unix "$JAVA_HOME")
[ -n "$CLASSPATH" ] &&
CLASSPATH=$(cygpath --path --unix "$CLASSPATH")
fi
# For Mingw, ensure paths are in UNIX format before anything is touched
if $mingw ; then
[ -n "$JAVA_HOME" ] && [ -d "$JAVA_HOME" ] &&
JAVA_HOME="$(cd "$JAVA_HOME" || (echo "cannot cd into $JAVA_HOME."; exit 1); pwd)"
fi
if [ -z "$JAVA_HOME" ]; then
javaExecutable="$(which javac)"
if [ -n "$javaExecutable" ] && ! [ "$(expr "\"$javaExecutable\"" : '\([^ ]*\)')" = "no" ]; then
# readlink(1) is not available as standard on Solaris 10.
readLink=$(which readlink)
if [ ! "$(expr "$readLink" : '\([^ ]*\)')" = "no" ]; then
if $darwin ; then
javaHome="$(dirname "\"$javaExecutable\"")"
javaExecutable="$(cd "\"$javaHome\"" && pwd -P)/javac"
else
javaExecutable="$(readlink -f "\"$javaExecutable\"")"
fi
javaHome="$(dirname "\"$javaExecutable\"")"
javaHome=$(expr "$javaHome" : '\(.*\)/bin')
JAVA_HOME="$javaHome"
export JAVA_HOME
fi
fi
fi
if [ -z "$JAVACMD" ] ; then
if [ -n "$JAVA_HOME" ] ; then
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
# set JAVACMD and JAVACCMD
set_java_home() {
# For Cygwin and MinGW, ensure paths are in Unix format before anything is touched
if [ -n "${JAVA_HOME-}" ]; then
if [ -x "$JAVA_HOME/jre/sh/java" ]; then
# IBM's JDK on AIX uses strange locations for the executables
JAVACMD="$JAVA_HOME/jre/sh/java"
JAVACCMD="$JAVA_HOME/jre/sh/javac"
else
JAVACMD="$JAVA_HOME/bin/java"
JAVACCMD="$JAVA_HOME/bin/javac"
if [ ! -x "$JAVACMD" ] || [ ! -x "$JAVACCMD" ]; then
echo "The JAVA_HOME environment variable is not defined correctly, so mvnw cannot run." >&2
echo "JAVA_HOME is set to \"$JAVA_HOME\", but \"\$JAVA_HOME/bin/java\" or \"\$JAVA_HOME/bin/javac\" does not exist." >&2
return 1
fi
fi
else
JAVACMD="$(\unset -f command 2>/dev/null; \command -v java)"
fi
fi
JAVACMD="$(
'set' +e
'unset' -f command 2>/dev/null
'command' -v java
)" || :
JAVACCMD="$(
'set' +e
'unset' -f command 2>/dev/null
'command' -v javac
)" || :
if [ ! -x "$JAVACMD" ] ; then
echo "Error: JAVA_HOME is not defined correctly." >&2
echo " We cannot execute $JAVACMD" >&2
exit 1
fi
if [ -z "$JAVA_HOME" ] ; then
echo "Warning: JAVA_HOME environment variable is not set."
fi
# traverses directory structure from process work directory to filesystem root
# first directory with .mvn subdirectory is considered project base directory
find_maven_basedir() {
if [ -z "$1" ]
then
echo "Path not specified to find_maven_basedir"
return 1
fi
basedir="$1"
wdir="$1"
while [ "$wdir" != '/' ] ; do
if [ -d "$wdir"/.mvn ] ; then
basedir=$wdir
break
if [ ! -x "${JAVACMD-}" ] || [ ! -x "${JAVACCMD-}" ]; then
echo "The java/javac command does not exist in PATH nor is JAVA_HOME set, so mvnw cannot run." >&2
return 1
fi
# workaround for JBEAP-8937 (on Solaris 10/Sparc)
if [ -d "${wdir}" ]; then
wdir=$(cd "$wdir/.." || exit 1; pwd)
fi
# end of workaround
fi
}
# hash string like Java String::hashCode
hash_string() {
str="${1:-}" h=0
while [ -n "$str" ]; do
char="${str%"${str#?}"}"
h=$(((h * 31 + $(LC_CTYPE=C printf %d "'$char")) % 4294967296))
str="${str#?}"
done
printf '%s' "$(cd "$basedir" || exit 1; pwd)"
printf %x\\n $h
}
# concatenates all lines of a file
concat_lines() {
if [ -f "$1" ]; then
# Remove \r in case we run on Windows within Git Bash
# and check out the repository with auto CRLF management
# enabled. Otherwise, we may read lines that are delimited with
# \r\n and produce $'-Xarg\r' rather than -Xarg due to word
# splitting rules.
tr -s '\r\n' ' ' < "$1"
fi
verbose() { :; }
[ "${MVNW_VERBOSE-}" != true ] || verbose() { printf %s\\n "${1-}"; }
die() {
printf %s\\n "$1" >&2
exit 1
}
log() {
if [ "$MVNW_VERBOSE" = true ]; then
printf '%s\n' "$1"
fi
trim() {
# MWRAPPER-139:
# Trims trailing and leading whitespace, carriage returns, tabs, and linefeeds.
# Needed for removing poorly interpreted newline sequences when running in more
# exotic environments such as mingw bash on Windows.
printf "%s" "${1}" | tr -d '[:space:]'
}
BASE_DIR=$(find_maven_basedir "$(dirname "$0")")
if [ -z "$BASE_DIR" ]; then
exit 1;
fi
scriptDir="$(dirname "$0")"
scriptName="$(basename "$0")"
MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"}; export MAVEN_PROJECTBASEDIR
log "$MAVEN_PROJECTBASEDIR"
##########################################################################################
# Extension to allow automatically downloading the maven-wrapper.jar from Maven-central
# This allows using the maven wrapper in projects that prohibit checking in binary data.
##########################################################################################
wrapperJarPath="$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar"
if [ -r "$wrapperJarPath" ]; then
log "Found $wrapperJarPath"
else
log "Couldn't find $wrapperJarPath, downloading it ..."
if [ -n "$MVNW_REPOURL" ]; then
wrapperUrl="$MVNW_REPOURL/org/apache/maven/wrapper/maven-wrapper/3.2.0/maven-wrapper-3.2.0.jar"
else
wrapperUrl="https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.2.0/maven-wrapper-3.2.0.jar"
fi
while IFS="=" read -r key value; do
# Remove '\r' from value to allow usage on windows as IFS does not consider '\r' as a separator ( considers space, tab, new line ('\n'), and custom '=' )
safeValue=$(echo "$value" | tr -d '\r')
case "$key" in (wrapperUrl) wrapperUrl="$safeValue"; break ;;
esac
done < "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.properties"
log "Downloading from: $wrapperUrl"
if $cygwin; then
wrapperJarPath=$(cygpath --path --windows "$wrapperJarPath")
fi
if command -v wget > /dev/null; then
log "Found wget ... using wget"
[ "$MVNW_VERBOSE" = true ] && QUIET="" || QUIET="--quiet"
if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then
wget $QUIET "$wrapperUrl" -O "$wrapperJarPath" || rm -f "$wrapperJarPath"
else
wget $QUIET --http-user="$MVNW_USERNAME" --http-password="$MVNW_PASSWORD" "$wrapperUrl" -O "$wrapperJarPath" || rm -f "$wrapperJarPath"
fi
elif command -v curl > /dev/null; then
log "Found curl ... using curl"
[ "$MVNW_VERBOSE" = true ] && QUIET="" || QUIET="--silent"
if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then
curl $QUIET -o "$wrapperJarPath" "$wrapperUrl" -f -L || rm -f "$wrapperJarPath"
else
curl $QUIET --user "$MVNW_USERNAME:$MVNW_PASSWORD" -o "$wrapperJarPath" "$wrapperUrl" -f -L || rm -f "$wrapperJarPath"
fi
else
log "Falling back to using Java to download"
javaSource="$MAVEN_PROJECTBASEDIR/.mvn/wrapper/MavenWrapperDownloader.java"
javaClass="$MAVEN_PROJECTBASEDIR/.mvn/wrapper/MavenWrapperDownloader.class"
# For Cygwin, switch paths to Windows format before running javac
if $cygwin; then
javaSource=$(cygpath --path --windows "$javaSource")
javaClass=$(cygpath --path --windows "$javaClass")
fi
if [ -e "$javaSource" ]; then
if [ ! -e "$javaClass" ]; then
log " - Compiling MavenWrapperDownloader.java ..."
("$JAVA_HOME/bin/javac" "$javaSource")
fi
if [ -e "$javaClass" ]; then
log " - Running MavenWrapperDownloader.java ..."
("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$wrapperUrl" "$wrapperJarPath") || rm -f "$wrapperJarPath"
fi
fi
fi
fi
##########################################################################################
# End of extension
##########################################################################################
# If specified, validate the SHA-256 sum of the Maven wrapper jar file
wrapperSha256Sum=""
# parse distributionUrl and optional distributionSha256Sum, requires .mvn/wrapper/maven-wrapper.properties
while IFS="=" read -r key value; do
case "$key" in (wrapperSha256Sum) wrapperSha256Sum=$value; break ;;
case "${key-}" in
distributionUrl) distributionUrl=$(trim "${value-}") ;;
distributionSha256Sum) distributionSha256Sum=$(trim "${value-}") ;;
esac
done < "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.properties"
if [ -n "$wrapperSha256Sum" ]; then
wrapperSha256Result=false
if command -v sha256sum > /dev/null; then
if echo "$wrapperSha256Sum $wrapperJarPath" | sha256sum -c - > /dev/null 2>&1; then
wrapperSha256Result=true
done <"$scriptDir/.mvn/wrapper/maven-wrapper.properties"
[ -n "${distributionUrl-}" ] || die "cannot read distributionUrl property in $scriptDir/.mvn/wrapper/maven-wrapper.properties"
case "${distributionUrl##*/}" in
maven-mvnd-*bin.*)
MVN_CMD=mvnd.sh _MVNW_REPO_PATTERN=/maven/mvnd/
case "${PROCESSOR_ARCHITECTURE-}${PROCESSOR_ARCHITEW6432-}:$(uname -a)" in
*AMD64:CYGWIN* | *AMD64:MINGW*) distributionPlatform=windows-amd64 ;;
:Darwin*x86_64) distributionPlatform=darwin-amd64 ;;
:Darwin*arm64) distributionPlatform=darwin-aarch64 ;;
:Linux*x86_64*) distributionPlatform=linux-amd64 ;;
*)
echo "Cannot detect native platform for mvnd on $(uname)-$(uname -m), use pure java version" >&2
distributionPlatform=linux-amd64
;;
esac
distributionUrl="${distributionUrl%-bin.*}-$distributionPlatform.zip"
;;
maven-mvnd-*) MVN_CMD=mvnd.sh _MVNW_REPO_PATTERN=/maven/mvnd/ ;;
*) MVN_CMD="mvn${scriptName#mvnw}" _MVNW_REPO_PATTERN=/org/apache/maven/ ;;
esac
# apply MVNW_REPOURL and calculate MAVEN_HOME
# maven home pattern: ~/.m2/wrapper/dists/{apache-maven-<version>,maven-mvnd-<version>-<platform>}/<hash>
[ -z "${MVNW_REPOURL-}" ] || distributionUrl="$MVNW_REPOURL$_MVNW_REPO_PATTERN${distributionUrl#*"$_MVNW_REPO_PATTERN"}"
distributionUrlName="${distributionUrl##*/}"
distributionUrlNameMain="${distributionUrlName%.*}"
distributionUrlNameMain="${distributionUrlNameMain%-bin}"
MAVEN_USER_HOME="${MAVEN_USER_HOME:-${HOME}/.m2}"
MAVEN_HOME="${MAVEN_USER_HOME}/wrapper/dists/${distributionUrlNameMain-}/$(hash_string "$distributionUrl")"
exec_maven() {
unset MVNW_VERBOSE MVNW_USERNAME MVNW_PASSWORD MVNW_REPOURL || :
exec "$MAVEN_HOME/bin/$MVN_CMD" "$@" || die "cannot exec $MAVEN_HOME/bin/$MVN_CMD"
}
if [ -d "$MAVEN_HOME" ]; then
verbose "found existing MAVEN_HOME at $MAVEN_HOME"
exec_maven "$@"
fi
case "${distributionUrl-}" in
*?-bin.zip | *?maven-mvnd-?*-?*.zip) ;;
*) die "distributionUrl is not valid, must match *-bin.zip or maven-mvnd-*.zip, but found '${distributionUrl-}'" ;;
esac
# prepare tmp dir
if TMP_DOWNLOAD_DIR="$(mktemp -d)" && [ -d "$TMP_DOWNLOAD_DIR" ]; then
clean() { rm -rf -- "$TMP_DOWNLOAD_DIR"; }
trap clean HUP INT TERM EXIT
else
die "cannot create temp dir"
fi
mkdir -p -- "${MAVEN_HOME%/*}"
# Download and Install Apache Maven
verbose "Couldn't find MAVEN_HOME, downloading and installing it ..."
verbose "Downloading from: $distributionUrl"
verbose "Downloading to: $TMP_DOWNLOAD_DIR/$distributionUrlName"
# select .zip or .tar.gz
if ! command -v unzip >/dev/null; then
distributionUrl="${distributionUrl%.zip}.tar.gz"
distributionUrlName="${distributionUrl##*/}"
fi
# verbose opt
__MVNW_QUIET_WGET=--quiet __MVNW_QUIET_CURL=--silent __MVNW_QUIET_UNZIP=-q __MVNW_QUIET_TAR=''
[ "${MVNW_VERBOSE-}" != true ] || __MVNW_QUIET_WGET='' __MVNW_QUIET_CURL='' __MVNW_QUIET_UNZIP='' __MVNW_QUIET_TAR=v
# normalize http auth
case "${MVNW_PASSWORD:+has-password}" in
'') MVNW_USERNAME='' MVNW_PASSWORD='' ;;
has-password) [ -n "${MVNW_USERNAME-}" ] || MVNW_USERNAME='' MVNW_PASSWORD='' ;;
esac
if [ -z "${MVNW_USERNAME-}" ] && command -v wget >/dev/null; then
verbose "Found wget ... using wget"
wget ${__MVNW_QUIET_WGET:+"$__MVNW_QUIET_WGET"} "$distributionUrl" -O "$TMP_DOWNLOAD_DIR/$distributionUrlName" || die "wget: Failed to fetch $distributionUrl"
elif [ -z "${MVNW_USERNAME-}" ] && command -v curl >/dev/null; then
verbose "Found curl ... using curl"
curl ${__MVNW_QUIET_CURL:+"$__MVNW_QUIET_CURL"} -f -L -o "$TMP_DOWNLOAD_DIR/$distributionUrlName" "$distributionUrl" || die "curl: Failed to fetch $distributionUrl"
elif set_java_home; then
verbose "Falling back to use Java to download"
javaSource="$TMP_DOWNLOAD_DIR/Downloader.java"
targetZip="$TMP_DOWNLOAD_DIR/$distributionUrlName"
cat >"$javaSource" <<-END
public class Downloader extends java.net.Authenticator
{
protected java.net.PasswordAuthentication getPasswordAuthentication()
{
return new java.net.PasswordAuthentication( System.getenv( "MVNW_USERNAME" ), System.getenv( "MVNW_PASSWORD" ).toCharArray() );
}
public static void main( String[] args ) throws Exception
{
setDefault( new Downloader() );
java.nio.file.Files.copy( java.net.URI.create( args[0] ).toURL().openStream(), java.nio.file.Paths.get( args[1] ).toAbsolutePath().normalize() );
}
}
END
# For Cygwin/MinGW, switch paths to Windows format before running javac and java
verbose " - Compiling Downloader.java ..."
"$(native_path "$JAVACCMD")" "$(native_path "$javaSource")" || die "Failed to compile Downloader.java"
verbose " - Running Downloader.java ..."
"$(native_path "$JAVACMD")" -cp "$(native_path "$TMP_DOWNLOAD_DIR")" Downloader "$distributionUrl" "$(native_path "$targetZip")"
fi
# If specified, validate the SHA-256 sum of the Maven distribution zip file
if [ -n "${distributionSha256Sum-}" ]; then
distributionSha256Result=false
if [ "$MVN_CMD" = mvnd.sh ]; then
echo "Checksum validation is not supported for maven-mvnd." >&2
echo "Please disable validation by removing 'distributionSha256Sum' from your maven-wrapper.properties." >&2
exit 1
elif command -v sha256sum >/dev/null; then
if echo "$distributionSha256Sum $TMP_DOWNLOAD_DIR/$distributionUrlName" | sha256sum -c - >/dev/null 2>&1; then
distributionSha256Result=true
fi
elif command -v shasum > /dev/null; then
if echo "$wrapperSha256Sum $wrapperJarPath" | shasum -a 256 -c > /dev/null 2>&1; then
wrapperSha256Result=true
elif command -v shasum >/dev/null; then
if echo "$distributionSha256Sum $TMP_DOWNLOAD_DIR/$distributionUrlName" | shasum -a 256 -c >/dev/null 2>&1; then
distributionSha256Result=true
fi
else
echo "Checksum validation was requested but neither 'sha256sum' or 'shasum' are available."
echo "Please install either command, or disable validation by removing 'wrapperSha256Sum' from your maven-wrapper.properties."
echo "Checksum validation was requested but neither 'sha256sum' or 'shasum' are available." >&2
echo "Please install either command, or disable validation by removing 'distributionSha256Sum' from your maven-wrapper.properties." >&2
exit 1
fi
if [ $wrapperSha256Result = false ]; then
echo "Error: Failed to validate Maven wrapper SHA-256, your Maven wrapper might be compromised." >&2
echo "Investigate or delete $wrapperJarPath to attempt a clean download." >&2
echo "If you updated your Maven version, you need to update the specified wrapperSha256Sum property." >&2
if [ $distributionSha256Result = false ]; then
echo "Error: Failed to validate Maven distribution SHA-256, your Maven distribution might be compromised." >&2
echo "If you updated your Maven version, you need to update the specified distributionSha256Sum property." >&2
exit 1
fi
fi
MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS"
# For Cygwin, switch paths to Windows format before running java
if $cygwin; then
[ -n "$JAVA_HOME" ] &&
JAVA_HOME=$(cygpath --path --windows "$JAVA_HOME")
[ -n "$CLASSPATH" ] &&
CLASSPATH=$(cygpath --path --windows "$CLASSPATH")
[ -n "$MAVEN_PROJECTBASEDIR" ] &&
MAVEN_PROJECTBASEDIR=$(cygpath --path --windows "$MAVEN_PROJECTBASEDIR")
# unzip and move
if command -v unzip >/dev/null; then
unzip ${__MVNW_QUIET_UNZIP:+"$__MVNW_QUIET_UNZIP"} "$TMP_DOWNLOAD_DIR/$distributionUrlName" -d "$TMP_DOWNLOAD_DIR" || die "failed to unzip"
else
tar xzf${__MVNW_QUIET_TAR:+"$__MVNW_QUIET_TAR"} "$TMP_DOWNLOAD_DIR/$distributionUrlName" -C "$TMP_DOWNLOAD_DIR" || die "failed to untar"
fi
# Provide a "standardized" way to retrieve the CLI args that will
# work with both Windows and non-Windows executions.
MAVEN_CMD_LINE_ARGS="$MAVEN_CONFIG $*"
export MAVEN_CMD_LINE_ARGS
# Find the actual extracted directory name (handles snapshots where filename != directory name)
actualDistributionDir=""
WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
# First try the expected directory name (for regular distributions)
if [ -d "$TMP_DOWNLOAD_DIR/$distributionUrlNameMain" ]; then
if [ -f "$TMP_DOWNLOAD_DIR/$distributionUrlNameMain/bin/$MVN_CMD" ]; then
actualDistributionDir="$distributionUrlNameMain"
fi
fi
# shellcheck disable=SC2086 # safe args
exec "$JAVACMD" \
$MAVEN_OPTS \
$MAVEN_DEBUG_OPTS \
-classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \
"-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \
${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@"
# If not found, search for any directory with the Maven executable (for snapshots)
if [ -z "$actualDistributionDir" ]; then
# enable globbing to iterate over items
set +f
for dir in "$TMP_DOWNLOAD_DIR"/*; do
if [ -d "$dir" ]; then
if [ -f "$dir/bin/$MVN_CMD" ]; then
actualDistributionDir="$(basename "$dir")"
break
fi
fi
done
set -f
fi
if [ -z "$actualDistributionDir" ]; then
verbose "Contents of $TMP_DOWNLOAD_DIR:"
verbose "$(ls -la "$TMP_DOWNLOAD_DIR")"
die "Could not find Maven distribution directory in extracted archive"
fi
verbose "Found extracted Maven distribution directory: $actualDistributionDir"
printf %s\\n "$distributionUrl" >"$TMP_DOWNLOAD_DIR/$actualDistributionDir/mvnw.url"
mv -- "$TMP_DOWNLOAD_DIR/$actualDistributionDir" "$MAVEN_HOME" || [ -d "$MAVEN_HOME" ] || die "fail to move MAVEN_HOME"
clean || :
exec_maven "$@"
Vendored
+154 -170
View File
@@ -1,3 +1,4 @@
<# : batch portion
@REM ----------------------------------------------------------------------------
@REM Licensed to the Apache Software Foundation (ASF) under one
@REM or more contributor license agreements. See the NOTICE file
@@ -7,7 +8,7 @@
@REM "License"); you may not use this file except in compliance
@REM with the License. You may obtain a copy of the License at
@REM
@REM http://www.apache.org/licenses/LICENSE-2.0
@REM https://www.apache.org/licenses/LICENSE-2.0
@REM
@REM Unless required by applicable law or agreed to in writing,
@REM software distributed under the License is distributed on an
@@ -18,188 +19,171 @@
@REM ----------------------------------------------------------------------------
@REM ----------------------------------------------------------------------------
@REM Apache Maven Wrapper startup batch script, version 3.2.0
@REM
@REM Required ENV vars:
@REM JAVA_HOME - location of a JDK home dir
@REM Apache Maven Wrapper startup batch script, version 3.3.4
@REM
@REM Optional ENV vars
@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands
@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a keystroke before ending
@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven
@REM e.g. to debug Maven itself, use
@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files
@REM MVNW_REPOURL - repo url base for downloading maven distribution
@REM MVNW_USERNAME/MVNW_PASSWORD - user and password for downloading maven
@REM MVNW_VERBOSE - true: enable verbose log; others: silence the output
@REM ----------------------------------------------------------------------------
@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on'
@echo off
@REM set title of command window
title %0
@REM enable echoing by setting MAVEN_BATCH_ECHO to 'on'
@if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO%
@REM set %HOME% to equivalent of $HOME
if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%")
@REM Execute a user defined script before this one
if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre
@REM check for pre script, once with legacy .bat ending and once with .cmd ending
if exist "%USERPROFILE%\mavenrc_pre.bat" call "%USERPROFILE%\mavenrc_pre.bat" %*
if exist "%USERPROFILE%\mavenrc_pre.cmd" call "%USERPROFILE%\mavenrc_pre.cmd" %*
:skipRcPre
@setlocal
set ERROR_CODE=0
@REM To isolate internal variables from possible post scripts, we use another setlocal
@setlocal
@REM ==== START VALIDATION ====
if not "%JAVA_HOME%" == "" goto OkJHome
echo.
echo Error: JAVA_HOME not found in your environment. >&2
echo Please set the JAVA_HOME variable in your environment to match the >&2
echo location of your Java installation. >&2
echo.
goto error
:OkJHome
if exist "%JAVA_HOME%\bin\java.exe" goto init
echo.
echo Error: JAVA_HOME is set to an invalid directory. >&2
echo JAVA_HOME = "%JAVA_HOME%" >&2
echo Please set the JAVA_HOME variable in your environment to match the >&2
echo location of your Java installation. >&2
echo.
goto error
@REM ==== END VALIDATION ====
:init
@REM Find the project base dir, i.e. the directory that contains the folder ".mvn".
@REM Fallback to current working directory if not found.
set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR%
IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir
set EXEC_DIR=%CD%
set WDIR=%EXEC_DIR%
:findBaseDir
IF EXIST "%WDIR%"\.mvn goto baseDirFound
cd ..
IF "%WDIR%"=="%CD%" goto baseDirNotFound
set WDIR=%CD%
goto findBaseDir
:baseDirFound
set MAVEN_PROJECTBASEDIR=%WDIR%
cd "%EXEC_DIR%"
goto endDetectBaseDir
:baseDirNotFound
set MAVEN_PROJECTBASEDIR=%EXEC_DIR%
cd "%EXEC_DIR%"
:endDetectBaseDir
IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig
@setlocal EnableExtensions EnableDelayedExpansion
for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a
@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS%
:endReadAdditionalConfig
SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe"
set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar"
set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
set WRAPPER_URL="https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.2.0/maven-wrapper-3.2.0.jar"
FOR /F "usebackq tokens=1,2 delims==" %%A IN ("%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties") DO (
IF "%%A"=="wrapperUrl" SET WRAPPER_URL=%%B
@IF "%__MVNW_ARG0_NAME__%"=="" (SET __MVNW_ARG0_NAME__=%~nx0)
@SET __MVNW_CMD__=
@SET __MVNW_ERROR__=
@SET __MVNW_PSMODULEP_SAVE=%PSModulePath%
@SET PSModulePath=
@FOR /F "usebackq tokens=1* delims==" %%A IN (`powershell -noprofile "& {$scriptDir='%~dp0'; $script='%__MVNW_ARG0_NAME__%'; icm -ScriptBlock ([Scriptblock]::Create((Get-Content -Raw '%~f0'))) -NoNewScope}"`) DO @(
IF "%%A"=="MVN_CMD" (set __MVNW_CMD__=%%B) ELSE IF "%%B"=="" (echo %%A) ELSE (echo %%A=%%B)
)
@SET PSModulePath=%__MVNW_PSMODULEP_SAVE%
@SET __MVNW_PSMODULEP_SAVE=
@SET __MVNW_ARG0_NAME__=
@SET MVNW_USERNAME=
@SET MVNW_PASSWORD=
@IF NOT "%__MVNW_CMD__%"=="" ("%__MVNW_CMD__%" %*)
@echo Cannot start maven from wrapper >&2 && exit /b 1
@GOTO :EOF
: end batch / begin powershell #>
@REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central
@REM This allows using the maven wrapper in projects that prohibit checking in binary data.
if exist %WRAPPER_JAR% (
if "%MVNW_VERBOSE%" == "true" (
echo Found %WRAPPER_JAR%
)
) else (
if not "%MVNW_REPOURL%" == "" (
SET WRAPPER_URL="%MVNW_REPOURL%/org/apache/maven/wrapper/maven-wrapper/3.2.0/maven-wrapper-3.2.0.jar"
)
if "%MVNW_VERBOSE%" == "true" (
echo Couldn't find %WRAPPER_JAR%, downloading it ...
echo Downloading from: %WRAPPER_URL%
)
$ErrorActionPreference = "Stop"
if ($env:MVNW_VERBOSE -eq "true") {
$VerbosePreference = "Continue"
}
powershell -Command "&{"^
"$webclient = new-object System.Net.WebClient;"^
"if (-not ([string]::IsNullOrEmpty('%MVNW_USERNAME%') -and [string]::IsNullOrEmpty('%MVNW_PASSWORD%'))) {"^
"$webclient.Credentials = new-object System.Net.NetworkCredential('%MVNW_USERNAME%', '%MVNW_PASSWORD%');"^
"}"^
"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $webclient.DownloadFile('%WRAPPER_URL%', '%WRAPPER_JAR%')"^
"}"
if "%MVNW_VERBOSE%" == "true" (
echo Finished downloading %WRAPPER_JAR%
)
)
@REM End of extension
# calculate distributionUrl, requires .mvn/wrapper/maven-wrapper.properties
$distributionUrl = (Get-Content -Raw "$scriptDir/.mvn/wrapper/maven-wrapper.properties" | ConvertFrom-StringData).distributionUrl
if (!$distributionUrl) {
Write-Error "cannot read distributionUrl property in $scriptDir/.mvn/wrapper/maven-wrapper.properties"
}
@REM If specified, validate the SHA-256 sum of the Maven wrapper jar file
SET WRAPPER_SHA_256_SUM=""
FOR /F "usebackq tokens=1,2 delims==" %%A IN ("%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties") DO (
IF "%%A"=="wrapperSha256Sum" SET WRAPPER_SHA_256_SUM=%%B
)
IF NOT %WRAPPER_SHA_256_SUM%=="" (
powershell -Command "&{"^
"$hash = (Get-FileHash \"%WRAPPER_JAR%\" -Algorithm SHA256).Hash.ToLower();"^
"If('%WRAPPER_SHA_256_SUM%' -ne $hash){"^
" Write-Output 'Error: Failed to validate Maven wrapper SHA-256, your Maven wrapper might be compromised.';"^
" Write-Output 'Investigate or delete %WRAPPER_JAR% to attempt a clean download.';"^
" Write-Output 'If you updated your Maven version, you need to update the specified wrapperSha256Sum property.';"^
" exit 1;"^
"}"^
"}"
if ERRORLEVEL 1 goto error
)
switch -wildcard -casesensitive ( $($distributionUrl -replace '^.*/','') ) {
"maven-mvnd-*" {
$USE_MVND = $true
$distributionUrl = $distributionUrl -replace '-bin\.[^.]*$',"-windows-amd64.zip"
$MVN_CMD = "mvnd.cmd"
break
}
default {
$USE_MVND = $false
$MVN_CMD = $script -replace '^mvnw','mvn'
break
}
}
@REM Provide a "standardized" way to retrieve the CLI args that will
@REM work with both Windows and non-Windows executions.
set MAVEN_CMD_LINE_ARGS=%*
# apply MVNW_REPOURL and calculate MAVEN_HOME
# maven home pattern: ~/.m2/wrapper/dists/{apache-maven-<version>,maven-mvnd-<version>-<platform>}/<hash>
if ($env:MVNW_REPOURL) {
$MVNW_REPO_PATTERN = if ($USE_MVND -eq $False) { "/org/apache/maven/" } else { "/maven/mvnd/" }
$distributionUrl = "$env:MVNW_REPOURL$MVNW_REPO_PATTERN$($distributionUrl -replace "^.*$MVNW_REPO_PATTERN",'')"
}
$distributionUrlName = $distributionUrl -replace '^.*/',''
$distributionUrlNameMain = $distributionUrlName -replace '\.[^.]*$','' -replace '-bin$',''
%MAVEN_JAVA_EXE% ^
%JVM_CONFIG_MAVEN_PROPS% ^
%MAVEN_OPTS% ^
%MAVEN_DEBUG_OPTS% ^
-classpath %WRAPPER_JAR% ^
"-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" ^
%WRAPPER_LAUNCHER% %MAVEN_CONFIG% %*
if ERRORLEVEL 1 goto error
goto end
$MAVEN_M2_PATH = "$HOME/.m2"
if ($env:MAVEN_USER_HOME) {
$MAVEN_M2_PATH = "$env:MAVEN_USER_HOME"
}
:error
set ERROR_CODE=1
if (-not (Test-Path -Path $MAVEN_M2_PATH)) {
New-Item -Path $MAVEN_M2_PATH -ItemType Directory | Out-Null
}
:end
@endlocal & set ERROR_CODE=%ERROR_CODE%
$MAVEN_WRAPPER_DISTS = $null
if ((Get-Item $MAVEN_M2_PATH).Target[0] -eq $null) {
$MAVEN_WRAPPER_DISTS = "$MAVEN_M2_PATH/wrapper/dists"
} else {
$MAVEN_WRAPPER_DISTS = (Get-Item $MAVEN_M2_PATH).Target[0] + "/wrapper/dists"
}
if not "%MAVEN_SKIP_RC%"=="" goto skipRcPost
@REM check for post script, once with legacy .bat ending and once with .cmd ending
if exist "%USERPROFILE%\mavenrc_post.bat" call "%USERPROFILE%\mavenrc_post.bat"
if exist "%USERPROFILE%\mavenrc_post.cmd" call "%USERPROFILE%\mavenrc_post.cmd"
:skipRcPost
$MAVEN_HOME_PARENT = "$MAVEN_WRAPPER_DISTS/$distributionUrlNameMain"
$MAVEN_HOME_NAME = ([System.Security.Cryptography.SHA256]::Create().ComputeHash([byte[]][char[]]$distributionUrl) | ForEach-Object {$_.ToString("x2")}) -join ''
$MAVEN_HOME = "$MAVEN_HOME_PARENT/$MAVEN_HOME_NAME"
@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on'
if "%MAVEN_BATCH_PAUSE%"=="on" pause
if (Test-Path -Path "$MAVEN_HOME" -PathType Container) {
Write-Verbose "found existing MAVEN_HOME at $MAVEN_HOME"
Write-Output "MVN_CMD=$MAVEN_HOME/bin/$MVN_CMD"
exit $?
}
if "%MAVEN_TERMINATE_CMD%"=="on" exit %ERROR_CODE%
if (! $distributionUrlNameMain -or ($distributionUrlName -eq $distributionUrlNameMain)) {
Write-Error "distributionUrl is not valid, must end with *-bin.zip, but found $distributionUrl"
}
cmd /C exit /B %ERROR_CODE%
# prepare tmp dir
$TMP_DOWNLOAD_DIR_HOLDER = New-TemporaryFile
$TMP_DOWNLOAD_DIR = New-Item -Itemtype Directory -Path "$TMP_DOWNLOAD_DIR_HOLDER.dir"
$TMP_DOWNLOAD_DIR_HOLDER.Delete() | Out-Null
trap {
if ($TMP_DOWNLOAD_DIR.Exists) {
try { Remove-Item $TMP_DOWNLOAD_DIR -Recurse -Force | Out-Null }
catch { Write-Warning "Cannot remove $TMP_DOWNLOAD_DIR" }
}
}
New-Item -Itemtype Directory -Path "$MAVEN_HOME_PARENT" -Force | Out-Null
# Download and Install Apache Maven
Write-Verbose "Couldn't find MAVEN_HOME, downloading and installing it ..."
Write-Verbose "Downloading from: $distributionUrl"
Write-Verbose "Downloading to: $TMP_DOWNLOAD_DIR/$distributionUrlName"
$webclient = New-Object System.Net.WebClient
if ($env:MVNW_USERNAME -and $env:MVNW_PASSWORD) {
$webclient.Credentials = New-Object System.Net.NetworkCredential($env:MVNW_USERNAME, $env:MVNW_PASSWORD)
}
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
$webclient.DownloadFile($distributionUrl, "$TMP_DOWNLOAD_DIR/$distributionUrlName") | Out-Null
# If specified, validate the SHA-256 sum of the Maven distribution zip file
$distributionSha256Sum = (Get-Content -Raw "$scriptDir/.mvn/wrapper/maven-wrapper.properties" | ConvertFrom-StringData).distributionSha256Sum
if ($distributionSha256Sum) {
if ($USE_MVND) {
Write-Error "Checksum validation is not supported for maven-mvnd. `nPlease disable validation by removing 'distributionSha256Sum' from your maven-wrapper.properties."
}
Import-Module $PSHOME\Modules\Microsoft.PowerShell.Utility -Function Get-FileHash
if ((Get-FileHash "$TMP_DOWNLOAD_DIR/$distributionUrlName" -Algorithm SHA256).Hash.ToLower() -ne $distributionSha256Sum) {
Write-Error "Error: Failed to validate Maven distribution SHA-256, your Maven distribution might be compromised. If you updated your Maven version, you need to update the specified distributionSha256Sum property."
}
}
# unzip and move
Expand-Archive "$TMP_DOWNLOAD_DIR/$distributionUrlName" -DestinationPath "$TMP_DOWNLOAD_DIR" | Out-Null
# Find the actual extracted directory name (handles snapshots where filename != directory name)
$actualDistributionDir = ""
# First try the expected directory name (for regular distributions)
$expectedPath = Join-Path "$TMP_DOWNLOAD_DIR" "$distributionUrlNameMain"
$expectedMvnPath = Join-Path "$expectedPath" "bin/$MVN_CMD"
if ((Test-Path -Path $expectedPath -PathType Container) -and (Test-Path -Path $expectedMvnPath -PathType Leaf)) {
$actualDistributionDir = $distributionUrlNameMain
}
# If not found, search for any directory with the Maven executable (for snapshots)
if (!$actualDistributionDir) {
Get-ChildItem -Path "$TMP_DOWNLOAD_DIR" -Directory | ForEach-Object {
$testPath = Join-Path $_.FullName "bin/$MVN_CMD"
if (Test-Path -Path $testPath -PathType Leaf) {
$actualDistributionDir = $_.Name
}
}
}
if (!$actualDistributionDir) {
Write-Error "Could not find Maven distribution directory in extracted archive"
}
Write-Verbose "Found extracted Maven distribution directory: $actualDistributionDir"
Rename-Item -Path "$TMP_DOWNLOAD_DIR/$actualDistributionDir" -NewName $MAVEN_HOME_NAME | Out-Null
try {
Move-Item -Path "$TMP_DOWNLOAD_DIR/$MAVEN_HOME_NAME" -Destination $MAVEN_HOME_PARENT | Out-Null
} catch {
if (! (Test-Path -Path "$MAVEN_HOME" -PathType Container)) {
Write-Error "fail to move MAVEN_HOME"
}
} finally {
try { Remove-Item $TMP_DOWNLOAD_DIR -Recurse -Force | Out-Null }
catch { Write-Warning "Cannot remove $TMP_DOWNLOAD_DIR" }
}
Write-Output "MVN_CMD=$MAVEN_HOME/bin/$MVN_CMD"
+118 -96
View File
@@ -45,58 +45,62 @@
</modules>
<properties>
<aws.sdk2.version>2.42.27</aws.sdk2.version>
<braintree.version>3.48.0</braintree.version>
<aws.sdk2.version>2.55.14</aws.sdk2.version>
<braintree.version>3.54.0</braintree.version>
<commons-csv.version>1.14.1</commons-csv.version>
<commons-io.version>2.21.0</commons-io.version>
<dropwizard.version>5.0.1</dropwizard.version>
<commons-io.version>2.22.0</commons-io.version>
<dropwizard.version>5.0.2</dropwizard.version>
<!-- Note: We use x86_64 builds without AVX instructions enabled (i.e. FoundationDB versions with even-numbered
patch versions). Also when updating FoundationDB, make sure to update the version of FoundationDBused by GitHub
Actions. -->
<foundationdb.version>7.3.68</foundationdb.version>
patch versions). -->
<foundationdb.version>7.3.76</foundationdb.version>
<foundationdb.api-version>730</foundationdb.api-version>
<foundationdb.client-library-sha256>8c96a1f7ab561cd38e16e4c269c5e50ae0fd8063854e0d72c89339a7ac1b6873</foundationdb.client-library-sha256>
<google-cloud-libraries.version>26.79.0</google-cloud-libraries.version>
<foundationdb.client-library-sha256>af099848721d08904ff9e5d38fade0de24d92e86451ea491d9ab5ce84adcf62a</foundationdb.client-library-sha256>
<google-cloud-libraries.version>26.90.0</google-cloud-libraries.version>
<grpc.version>1.76.3</grpc.version> <!-- should be kept in sync with the value from Google libraries-bom -->
<gson.version>2.13.2</gson.version>
<guava.version>33.5.0-jre</guava.version>
<!-- several libraries (AWS, Google Cloud) use Apache http components transitively, and we need to align them -->
<httpcore.version>4.4.16</httpcore.version>
<guava.version>33.7.2-jre</guava.version>
<!-- several libraries (AWS, Google Cloud) use Apache httpclient transitively, and we need to align them -->
<httpclient.version>4.5.14</httpclient.version>
<jackson.version>2.21.2</jackson.version>
<jackson.version>2.22.3</jackson.version>
<java-otp.version>1.0.0</java-otp.version>
<jetty.version>12.1.9</jetty.version>
<junit-pioneer.version>2.3.0</junit-pioneer.version>
<jsr305.version>3.0.2</jsr305.version>
<kotlin.version>2.3.20</kotlin.version>
<kotlin.version>2.4.21</kotlin.version>
<!-- dropwizard references a constant removed in 1.6. See also: dependabot.yml -->
<logback.version>1.5.38</logback.version>
<logback-access-common.version>2.0.12</logback-access-common.version>
<lettuce.version>7.5.1.RELEASE</lettuce.version>
<libphonenumber.version>9.0.21</libphonenumber.version>
<logstash.logback.version>8.1</logstash.logback.version>
<log4j-bom.version>2.25.4</log4j-bom.version>
<luajava.version>3.5.0</luajava.version>
<micrometer.version>1.16.4</micrometer.version>
<netty.version>4.2.13.Final</netty.version>
<!-- Must be less than or equal to the value from Google libraries-bom which controls the protobuf runtime version.
See https://protobuf.dev/support/cross-version-runtime-guarantee/. -->
<protoc.version>4.33.2</protoc.version>
<pushy.version>0.15.4</pushy.version>
<reactor-bom.version>2025.0.4</reactor-bom.version> <!-- 3.8.4, see https://github.com/reactor/reactor#bom-versioning-scheme -->
<logback-access-common.version>2.0.15</logback-access-common.version>
<lettuce.version>7.8.0.RELEASE</lettuce.version>
<libphonenumber.version>9.0.41</libphonenumber.version>
<logstash.logback.version>9.0</logstash.logback.version>
<log4j-bom.version>2.26.1</log4j-bom.version>
<luajava.version>4.1.0</luajava.version>
<micrometer.version>1.17.1</micrometer.version>
<netty.version>4.2.19.Final</netty.version>
<!-- netty-bom doesn't manage the BoringSSL uber-jar; keep in sync with netty's tcnative.version -->
<netty-tcnative.version>2.0.84.Final</netty-tcnative.version>
<!-- Instrumentation releases target upstream opentelemetry versions and include that BOM by reference -->
<opentelemetry-instrumentation.version>2.32.0</opentelemetry-instrumentation.version>
<!-- must be greater than or equal to the value from Google libraries-bom, see https://protobuf.dev/support/cross-version-runtime-guarantee/ -->
<!-- the latest 4.x should be fine https://central.sonatype.com/artifact/com.google.protobuf/protobuf-java/versions -->
<protobuf.version>4.36.2</protobuf.version>
<pushy.version>0.15.6</pushy.version>
<reactor-bom.version>2025.0.7</reactor-bom.version> <!-- 3.8.4, see https://github.com/reactor/reactor#bom-versioning-scheme -->
<resilience4j.version>2.4.0</resilience4j.version>
<semver4j.version>3.1.0</semver4j.version>
<simple-grpc.version>0.2.0</simple-grpc.version>
<slf4j.version>2.0.17</slf4j.version>
<stripe.version>33.1.0</stripe.version>
<swagger.version>2.2.46</swagger.version>
<testcontainers.version>2.0.4</testcontainers.version>
<simple-grpc.version>0.2.1</simple-grpc.version>
<slf4j.version>2.0.20</slf4j.version>
<stripe.version>33.4.2</stripe.version>
<swagger.version>2.2.55</swagger.version>
<testcontainers.version>2.0.5</testcontainers.version>
<webauthn4j.version>0.31.11.RELEASE</webauthn4j.version>
<!-- images to use in tests via testcontainers -->
<dynamodb.image>amazon/dynamodb-local:3.3.0@sha256:d89f8fcc6b1a39cb35976c248ed42a28c66ae00dc043099210f5571e42648ab4</dynamodb.image>
<localstack.image>localstack/localstack:4.13@sha256:46302bcb91a7e8008e6394be8afafdbfa40fb77a54d4046a38be35992042d5de</localstack.image>
<redis.image>redis:7.4-alpine@sha256:af1d0fc3f63b02b13ff7906c9baf7c5b390b8881ca08119cd570677fe2f60b55</redis.image>
<dynamodb.image>amazon/dynamodb-local:3.3.1@sha256:ff89bd48ff32cd8d9be5fee8873b65b8854dc408f1afe881be6eb00247bc0dab</dynamodb.image>
<localstack.image>localstack/localstack:4.14@sha256:3ebc37595918b8accb852f8048fef2aff047d465167edd655528065b07bc364a</localstack.image>
<redis.image>redis:7.4-alpine@sha256:6ab0b6e7381779332f97b8ca76193e45b0756f38d4c0dcda72dbb3c32061ab99</redis.image>
<redis-cluster.image>docker.io/bitnamilegacy/redis-cluster:7.4.3@sha256:a53d023fdfaf8a8d7ddc58da040d3494e4cb45772644618ffa44c42dcd32b9af</redis-cluster.image>
<!-- eclipse-temurin:25.0.2_10-jre-noble (note: always use the multi-arch manifest *LIST* here) -->
<docker.image.sha256>d2975fcad8dc9ac2180c0c278c8ae7b3443d36cb80845cb0811c20d9463f5fee</docker.image.sha256>
<docker.image>eclipse-temurin:26-jre-resolute@sha256:c3b6e31e48772c98e8868654e5f21fb2c3670e67c055ddd76d8cf37e62113eb5</docker.image>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
@@ -106,7 +110,9 @@
<version>JGITVER</version>
<dependencyManagement>
<!-- note: order matters, and earlier declarations take precedence -->
<dependencies>
<!-- use a pinned version of jackson, rather than Dropwizard's BOM -->
<dependency>
<groupId>com.fasterxml.jackson</groupId>
<artifactId>jackson-bom</artifactId>
@@ -114,6 +120,55 @@
<type>pom</type>
<scope>import</scope>
</dependency>
<!-- use a pinned version of jetty, rather than Dropwizard's BOM -->
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-bom</artifactId>
<version>${jetty.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<!-- use a pinned version of jetty, rather than Dropwizard's BOM -->
<dependency>
<groupId>org.eclipse.jetty.ee10</groupId>
<artifactId>jetty-ee10-bom</artifactId>
<version>${jetty.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-bom</artifactId>
<version>${netty.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-tcnative-boringssl-static</artifactId>
<version>${netty-tcnative.version}</version>
</dependency>
<dependency>
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-bom</artifactId>
<type>pom</type>
<scope>import</scope>
<version>${protobuf.version}</version>
</dependency>
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>libraries-bom</artifactId>
<version>${google-cloud-libraries.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>software.amazon.awssdk</groupId>
<artifactId>bom</artifactId>
<version>${aws.sdk2.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>io.dropwizard</groupId>
<artifactId>dropwizard-dependencies</artifactId>
@@ -128,27 +183,6 @@
<version>6.0.53</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-bom</artifactId>
<version>${netty.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>software.amazon.awssdk</groupId>
<artifactId>bom</artifactId>
<version>${aws.sdk2.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>libraries-bom</artifactId>
<version>${google-cloud-libraries.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>io.github.resilience4j</groupId>
<artifactId>resilience4j-bom</artifactId>
@@ -163,17 +197,10 @@
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>io.opentelemetry</groupId>
<artifactId>opentelemetry-bom</artifactId>
<version>1.60.1</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>io.opentelemetry.instrumentation</groupId>
<artifactId>opentelemetry-instrumentation-bom</artifactId>
<version>2.26.1</version>
<version>${opentelemetry-instrumentation.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
@@ -191,6 +218,11 @@
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>com.eatthepath</groupId>
<artifactId>java-otp</artifactId>
<version>${java-otp.version}</version>
</dependency>
<dependency>
<groupId>com.eatthepath</groupId>
<artifactId>pushy</artifactId>
@@ -250,7 +282,7 @@
<dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
<version>1.3.6</version>
<version>1.4.0</version>
</dependency>
<dependency>
<groupId>com.stripe</groupId>
@@ -267,11 +299,6 @@
<artifactId>jsr305</artifactId>
<version>${jsr305.version}</version>
</dependency>
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>${gson.version}</version>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
@@ -286,7 +313,7 @@
<dependency>
<groupId>org.signal</groupId>
<artifactId>libsignal-server</artifactId>
<version>0.96.2</version>
<version>0.105.0</version>
</dependency>
<dependency>
<groupId>org.signal</groupId>
@@ -300,11 +327,6 @@
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpcore</artifactId>
<version>${httpcore.version}</version>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
@@ -355,7 +377,7 @@
<dependency>
<groupId>org.wiremock</groupId>
<artifactId>wiremock-jetty12</artifactId>
<version>3.13.1</version>
<version>3.13.2</version>
<scope>test</scope>
</dependency>
<dependency>
@@ -423,42 +445,42 @@
<plugin>
<groupId>com.google.cloud.tools</groupId>
<artifactId>jib-maven-plugin</artifactId>
<version>3.4.6</version>
<version>3.5.2</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.5.5</version>
<version>3.6.0</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>3.5.4</version>
<version>3.6.0</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.5.0</version>
<version>3.5.1</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.6.1</version>
<version>3.6.2</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>3.7.1</version>
<version>3.8.0</version>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>3.6.3</version>
<version>3.6.4</version>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>properties-maven-plugin</artifactId>
<version>1.2.1</version>
<version>1.3.1</version>
</plugin>
</plugins>
</pluginManagement>
@@ -470,7 +492,7 @@
<version>0.6.1</version>
<configuration>
<checkStaleness>false</checkStaleness>
<protocArtifact>com.google.protobuf:protoc:${protoc.version}:exe:${os.detected.classifier}</protocArtifact>
<protocArtifact>com.google.protobuf:protoc:${protobuf.version}:exe:${os.detected.classifier}</protocArtifact>
<pluginId>grpc-java</pluginId>
<pluginArtifact>io.grpc:protoc-gen-grpc-java:${grpc.version}:exe:${os.detected.classifier}</pluginArtifact>
@@ -499,16 +521,16 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.15.0</version>
<version>3.16.0</version>
<configuration>
<release>25</release>
<release>26</release>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.5.0</version>
<version>3.5.1</version>
<configuration>
<archive>
<manifest>
@@ -521,7 +543,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>3.10.0</version>
<version>3.11.0</version>
<executions>
<execution>
<!--
@@ -541,7 +563,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>3.6.2</version>
<version>3.6.3</version>
<executions>
<execution>
<goals>
@@ -562,7 +584,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-install-plugin</artifactId>
<version>3.1.4</version>
<version>3.2.0</version>
<configuration>
<skip>true</skip>
</configuration>
@@ -571,7 +593,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>3.1.4</version>
<version>3.2.0</version>
<configuration>
<skip>true</skip>
</configuration>
+4 -1
View File
@@ -79,7 +79,8 @@ storageService.userAuthenticationTokenSharedSecret: AAAAAAAAAAAAAAAAAAAAAAAAAAAA
zkConfig-libsignal-0.42.serverSecret: ABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdef
callingZkConfig.serverSecret: ABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzAA==
callingZkConfigPreV101.serverSecret: ABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzAA==
callingZkConfigV101.serverSecret: ABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzAA==
chatZkConfig.serverSecret: ABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/0123456789+abcdefghijklmnopqrstuvwxyzAA==
paymentsService.userAuthenticationTokenSharedSecret: AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA= # base64-encoded 32-byte secret shared with MobileCoin services used to generate auth tokens for Signal users
@@ -101,3 +102,5 @@ hlrLookup.apiKey: AAAAAAAAAAA
hlrLookup.apiSecret: AAAAAAAAAAA
foundationDbMessages.versionstampCipherKey.0: AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=
registrationWebAuthn.userHandleBlindingSecret: AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=
+24 -8
View File
@@ -74,7 +74,6 @@ appleDeviceCheck:
deviceCheck:
backupRedemptionDuration: P30D
backupRedemptionLevel: 201
dynamoDbClient:
region: us-west-2 # AWS Region
@@ -105,9 +104,8 @@ dynamoDbTables:
expiration: P7D # Duration of time until rows expire
issuedReceipts:
tableName: Example_IssuedReceipts
expiration: P30D # Duration of time until rows expire
generator: abcdefg12345678= # random base64-encoded binary sequence
maxIssuedReceiptsPerPaymentId:
maxReceiptsPerSubscriptionPayment:
STRIPE: 1
BRAINTREE: 1
GOOGLE_PLAY_BILLING: 1
@@ -140,7 +138,6 @@ dynamoDbTables:
tableName: Example_PushNotificationExperimentSamples
redeemedReceipts:
tableName: Example_RedeemedReceipts
expiration: P30D # Duration of time until rows expire
registrationRecovery:
tableName: Example_RegistrationRecovery
expiration: P300D # Duration of time until rows expire
@@ -148,6 +145,8 @@ dynamoDbTables:
tableName: Example_RemoteConfig
reportMessage:
tableName: Example_ReportMessage
sandboxAccounts:
tableName: Example_SandboxAccounts
scheduledJobs:
tableName: Example_ScheduledJobs
expiration: P7D
@@ -318,8 +317,11 @@ storageService:
AAAAAAAAAAAAAAAAAAAA
-----END CERTIFICATE-----
callingZkConfigPreV101:
serverSecret: secret://callingZkConfigPreV101.serverSecret
callingZkConfig:
serverSecret: secret://callingZkConfig.serverSecret
serverSecret: secret://callingZkConfigV101.serverSecret
chatZkConfig:
serverSecret: secret://chatZkConfig.serverSecret
@@ -366,7 +368,7 @@ badges:
- light: example-light.svg
dark: example-dark.svg
receiptLevels:
'1': TEST
ONE_TIME_DONATION: TEST
subscription: # configuration for Stripe subscriptions
badgeExpiration: P30D
@@ -385,14 +387,17 @@ subscription: # configuration for Stripe subscriptions
STRIPE: price_example # stripe Price ID
BRAINTREE: plan_example # braintree Plan ID
loginPurchase:
playProductId: login_example
playOptionId: login_option_example
appStoreProductId: login_example
oneTimeDonations:
sepaMaximumEuros: '10000'
boost:
level: 1
expiration: P90D
badge: EXAMPLE
gift:
level: 10
expiration: P90D
badge: EXAMPLE
currencies:
@@ -544,6 +549,10 @@ hlrLookup:
foundationDbMessages:
maxWatchesPerClient: 10000
transactionTimeout: PT1S
transactionRetryLimit: 3
batchPriorityTransactionTimeout: PT5S
batchPriorityTransactionRetryLimit: 10
versionstampCipherKeys:
0: secret://foundationDbMessages.versionstampCipherKey.0
currentVersionstampCipherKey: 0
@@ -565,3 +574,10 @@ foundationDbMessages:
- messages-1
- messages-2
- messages-3
registrationWebAuthn:
relyingPartyId: example.org
origins:
- https://example.org
challengeTtl: PT2M
userHandleBlindingSecret: secret://registrationWebAuthn.userHandleBlindingSecret
+76 -23
View File
@@ -11,19 +11,17 @@
<artifactId>service</artifactId>
<properties>
<apollo-api-jvm.version>3.8.5</apollo-api-jvm.version>
<apollo-api-jvm.version>3.8.6</apollo-api-jvm.version>
<commons-compress.version>1.28.0</commons-compress.version>
<dynamodb-lock-client.version>1.4.0</dynamodb-lock-client.version>
<firebase-admin.version>9.7.0</firebase-admin.version>
<libphonenumber-geocoder.version>3.23</libphonenumber-geocoder.version>
<dynamodb-lock-client.version>1.5.0</dynamodb-lock-client.version>
<firebase-admin.version>9.11.0</firebase-admin.version>
<libphonenumber-geocoder.version>3.41</libphonenumber-geocoder.version>
<google-androidpublisher.version>v3-rev20250904-2.0.0</google-androidpublisher.version>
<java-jwt.version>4.5.0</java-jwt.version>
<java-jwt.version>4.6.1</java-jwt.version>
<java-uuid-generator.version>5.2.0</java-uuid-generator.version>
<!-- *all* opentelemetry-logback-appender versions are "alpha" despite the advanced version number -->
<opentelemetry-logback-appender-1.0.version>2.22.0-alpha</opentelemetry-logback-appender-1.0.version>
<storekit.version>4.0.0</storekit.version>
<webauthn4j.version>0.30.2.RELEASE</webauthn4j.version>
<jetty.http2-client.version>12.1.5</jetty.http2-client.version>
<opentelemetry-logback-appender-1.0.version>${opentelemetry-instrumentation.version}-alpha</opentelemetry-logback-appender-1.0.version>
<storekit.version>5.2.0</storekit.version>
</properties>
<dependencies>
@@ -47,6 +45,11 @@
<groupId>com.squareup.okio</groupId>
<artifactId>okio-jvm</artifactId>
</exclusion>
<!-- conflicts with our direct dependency -->
<exclusion>
<groupId>com.auth0</groupId>
<artifactId>java-jwt</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
@@ -54,6 +57,11 @@
<artifactId>webauthn4j-appattest</artifactId>
<version>${webauthn4j.version}</version>
</dependency>
<dependency>
<groupId>com.webauthn4j</groupId>
<artifactId>webauthn4j-core</artifactId>
<version>${webauthn4j.version}</version>
</dependency>
<dependency>
<groupId>io.swagger.core.v3</groupId>
<artifactId>swagger-jaxrs2-jakarta</artifactId>
@@ -142,7 +150,6 @@
<groupId>org.eclipse.jetty.http2</groupId>
<artifactId>jetty-http2-client-transport</artifactId>
<scope>test</scope>
<version>${jetty.http2-client.version}</version>
</dependency>
<dependency>
<groupId>io.dropwizard</groupId>
@@ -173,6 +180,20 @@
<dependency>
<groupId>net.logstash.logback</groupId>
<artifactId>logstash-logback-encoder</artifactId>
<exclusions>
<!-- conflicts with webauthn4j-appattest -->
<exclusion>
<groupId>tools.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
</exclusion>
</exclusions>
</dependency>
<!-- sentinel for dependency convergence -->
<dependency>
<groupId>tools.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<!-- update dependabot.yml when this dependency is removed -->
<version>3.2.3</version>
</dependency>
<dependency>
@@ -219,7 +240,7 @@
<artifactId>opentelemetry-logback-appender-1.0</artifactId>
<version>${opentelemetry-logback-appender-1.0.version}</version>
<exclusions>
<!-- incubator packages aren't included in the opentelemetry BOM, and we don't use them -->
<!-- conflicts with google-cloud-firestore; incubator packages aren't included in the opentelemetry BOM, and we don't use them -->
<exclusion>
<groupId>io.opentelemetry.instrumentation</groupId>
<artifactId>opentelemetry-instrumentation-api-incubator</artifactId>
@@ -284,18 +305,20 @@
<groupId>com.google.firebase</groupId>
<artifactId>firebase-admin</artifactId>
<version>${firebase-admin.version}</version>
<exclusions>
<exclusion>
<!-- google-cloud-storage pins 4.2.2, but jackson-dataformat-xml 2.22.x wants 4.3.0 -->
<groupId>org.codehaus.woodstox</groupId>
<artifactId>stax2-api</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-firestore</artifactId>
<exclusions>
<!-- incubator packages aren't included in the opentelemetry BOM, and we don't use them -->
<exclusion>
<groupId>io.opentelemetry.instrumentation</groupId>
<artifactId>opentelemetry-instrumentation-api-incubator</artifactId>
</exclusion>
</exclusions>
<!-- jackson-dataformat-xml (via firebase-admin), wants >= 4.3.0 -->
<groupId>org.codehaus.woodstox</groupId>
<artifactId>stax2-api</artifactId>
<version>4.3.2</version>
</dependency>
<dependency>
@@ -303,6 +326,10 @@
<artifactId>jsr305</artifactId>
</dependency>
<dependency>
<groupId>io.github.resilience4j</groupId>
<artifactId>resilience4j-bulkhead</artifactId>
</dependency>
<dependency>
<groupId>io.github.resilience4j</groupId>
<artifactId>resilience4j-circuitbreaker</artifactId>
@@ -404,6 +431,11 @@
<artifactId>lettuce-core</artifactId>
</dependency>
<dependency>
<groupId>com.eatthepath</groupId>
<artifactId>java-otp</artifactId>
</dependency>
<dependency>
<groupId>com.eatthepath</groupId>
<artifactId>pushy</artifactId>
@@ -481,6 +513,11 @@
<artifactId>netty-resolver-dns</artifactId>
</dependency>
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-tcnative-boringssl-static</artifactId>
</dependency>
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-transport</artifactId>
@@ -492,6 +529,12 @@
<classifier>linux-x86_64</classifier>
</dependency>
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-pkitesting</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-testsuite-common</artifactId>
@@ -542,6 +585,13 @@
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.webauthn4j</groupId>
<artifactId>webauthn4j-test</artifactId>
<version>${webauthn4j.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.fasterxml.uuid</groupId>
<artifactId>java-uuid-generator</artifactId>
@@ -594,6 +644,7 @@
<version>${apollo-api-jvm.version}</version>
<exclusions>
<!-- conflicts with kotlin-stdlib -->
<exclusion>
<groupId>org.jetbrains</groupId>
<artifactId>annotations</artifactId>
@@ -610,7 +661,8 @@
<dependency>
<groupId>com.squareup.okio</groupId>
<artifactId>okio-jvm</artifactId>
<version>3.16.4</version>
<!-- update dependabot.yml when this dependency is removed -->
<version>3.18.1</version>
</dependency>
</dependencies>
@@ -726,7 +778,7 @@
</executions>
<configuration>
<from>
<image>eclipse-temurin@sha256:${docker.image.sha256}</image>
<image>${docker.image}</image>
<platforms>
<platform>
<architecture>amd64</architecture>
@@ -749,6 +801,7 @@
<jvmFlag>-Djdk.nio.maxCachedBufferSize=262144</jvmFlag>
<jvmFlag>-Dlog4j2.formatMsgNoLookups=true</jvmFlag>
<jvmFlag>-Djdk.tls.server.newSessionTicketCount=0</jvmFlag>
<jvmFlag>-Djdk.tls.server.enableSessionTicketExtension=false</jvmFlag>
<jvmFlag>-XX:MaxRAMPercentage=75</jvmFlag>
<jvmFlag>-XX:+HeapDumpOnOutOfMemoryError</jvmFlag>
<jvmFlag>-XX:HeapDumpPath=/tmp/heapdump.bin</jvmFlag>
@@ -825,7 +878,7 @@
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>templating-maven-plugin</artifactId>
<version>3.0.0</version>
<version>3.1.1</version>
<executions>
<execution>
<id>filter-src</id>
@@ -20,6 +20,7 @@ import org.whispersystems.textsecuregcm.configuration.AwsCredentialsProviderFact
import org.whispersystems.textsecuregcm.configuration.BackupConfiguration;
import org.whispersystems.textsecuregcm.configuration.BadgesConfiguration;
import org.whispersystems.textsecuregcm.configuration.BraintreeConfiguration;
import org.whispersystems.textsecuregcm.configuration.BulkheadConfiguration;
import org.whispersystems.textsecuregcm.configuration.CallQualitySurveyConfiguration;
import org.whispersystems.textsecuregcm.configuration.Cdn3StorageManagerConfiguration;
import org.whispersystems.textsecuregcm.configuration.CdnConfiguration;
@@ -44,6 +45,7 @@ import org.whispersystems.textsecuregcm.configuration.HlrLookupConfiguration;
import org.whispersystems.textsecuregcm.configuration.IdlePrimaryDeviceReminderConfiguration;
import org.whispersystems.textsecuregcm.configuration.KeyTransparencyServiceConfiguration;
import org.whispersystems.textsecuregcm.configuration.LinkDeviceSecretConfiguration;
import org.whispersystems.textsecuregcm.configuration.LoginPurchaseConfiguration;
import org.whispersystems.textsecuregcm.configuration.MessageByteLimitCardinalityEstimatorConfiguration;
import org.whispersystems.textsecuregcm.configuration.MessageCacheConfiguration;
import org.whispersystems.textsecuregcm.configuration.OneTimeDonationConfiguration;
@@ -62,9 +64,11 @@ import org.whispersystems.textsecuregcm.configuration.SpamFilterConfiguration;
import org.whispersystems.textsecuregcm.configuration.StripeConfiguration;
import org.whispersystems.textsecuregcm.configuration.SubscriptionConfiguration;
import org.whispersystems.textsecuregcm.configuration.TlsKeyStoreConfiguration;
import org.whispersystems.textsecuregcm.configuration.TotpConfiguration;
import org.whispersystems.textsecuregcm.configuration.TurnConfiguration;
import org.whispersystems.textsecuregcm.configuration.UnidentifiedDeliveryConfiguration;
import org.whispersystems.textsecuregcm.configuration.VirtualThreadConfiguration;
import org.whispersystems.textsecuregcm.configuration.WebAuthnConfiguration;
import org.whispersystems.textsecuregcm.configuration.ZkConfig;
import org.whispersystems.websocket.configuration.WebSocketConfiguration;
@@ -226,6 +230,11 @@ public class WhisperServerConfiguration extends Configuration {
@JsonProperty
private PaymentsServiceConfiguration paymentsService;
@Valid
@NotNull
@JsonProperty
private GenericZkConfig callingZkConfigPreV101;
@Valid
@NotNull
@JsonProperty
@@ -266,6 +275,11 @@ public class WhisperServerConfiguration extends Configuration {
@NotNull
private OneTimeDonationConfiguration oneTimeDonations;
@Valid
@JsonProperty
@NotNull
private LoginPurchaseConfiguration loginPurchase;
@Valid
@JsonProperty
@NotNull
@@ -325,9 +339,6 @@ public class WhisperServerConfiguration extends Configuration {
@JsonProperty
private KeyTransparencyServiceConfiguration keyTransparencyService;
@JsonProperty
private boolean logMessageDeliveryLoops;
@JsonProperty
private IdlePrimaryDeviceReminderConfiguration idlePrimaryDeviceReminder =
new IdlePrimaryDeviceReminderConfiguration(Duration.ofDays(30));
@@ -338,6 +349,9 @@ public class WhisperServerConfiguration extends Configuration {
@JsonProperty
private Map<String, @Valid RetryConfiguration> retries = Collections.emptyMap();
@JsonProperty
private Map<String, @Valid BulkheadConfiguration> bulkheads = Collections.emptyMap();
@Valid
@NotNull
@JsonProperty
@@ -373,6 +387,16 @@ public class WhisperServerConfiguration extends Configuration {
@JsonProperty
private FoundationDbMessagesConfiguration foundationDbMessages;
@Valid
@NotNull
@JsonProperty
private TotpConfiguration registrationTotp = TotpConfiguration.DEFAULT;
@Valid
@NotNull
@JsonProperty
private WebAuthnConfiguration registrationWebAuthn;
public TlsKeyStoreConfiguration getTlsKeyStoreConfiguration() {
return tlsKeyStore;
}
@@ -502,6 +526,11 @@ public class WhisperServerConfiguration extends Configuration {
return chatZkConfig;
}
/// ZK secret shared with Calling Service
public GenericZkConfig getCallingZkConfigPreV101() {
return callingZkConfigPreV101;
}
/// ZK secret shared with Calling Service
public GenericZkConfig getCallingZkConfig() {
return callingZkConfig;
@@ -532,6 +561,10 @@ public class WhisperServerConfiguration extends Configuration {
return oneTimeDonations;
}
public LoginPurchaseConfiguration getLoginPurchase() {
return loginPurchase;
}
public PagedSingleUseKEMPreKeyStoreConfiguration getPagedSingleUseKEMPreKeyStore() {
return pagedSingleUseKEMPreKeyStore;
}
@@ -580,10 +613,6 @@ public class WhisperServerConfiguration extends Configuration {
return keyTransparencyService;
}
public boolean logMessageDeliveryLoops() {
return logMessageDeliveryLoops;
}
public IdlePrimaryDeviceReminderConfiguration idlePrimaryDeviceReminderConfiguration() {
return idlePrimaryDeviceReminder;
}
@@ -596,6 +625,10 @@ public class WhisperServerConfiguration extends Configuration {
return retries;
}
public Map<String, BulkheadConfiguration> getBulkheadConfigurations() {
return bulkheads;
}
public RetryConfiguration getGeneralRedisRetryConfiguration() {
return generalRedisRetry;
}
@@ -623,4 +656,12 @@ public class WhisperServerConfiguration extends Configuration {
public FoundationDbMessagesConfiguration getFoundationDbMessagesConfiguration() {
return foundationDbMessages;
}
public TotpConfiguration getRegistrationTotpConfiguration() {
return registrationTotp;
}
public WebAuthnConfiguration getRegistrationWebAuthnConfiguration() {
return registrationWebAuthn;
}
}
@@ -97,6 +97,7 @@ import org.whispersystems.textsecuregcm.auth.ExternalServiceCredentialsGenerator
import org.whispersystems.textsecuregcm.auth.IdlePrimaryDeviceAuthenticatedWebSocketUpgradeFilter;
import org.whispersystems.textsecuregcm.auth.PhoneVerificationTokenManager;
import org.whispersystems.textsecuregcm.auth.RegistrationLockVerificationManager;
import org.whispersystems.textsecuregcm.auth.webauthn.WebAuthnCeremonyManager;
import org.whispersystems.textsecuregcm.auth.grpc.ProhibitAuthenticationInterceptor;
import org.whispersystems.textsecuregcm.auth.grpc.RequireAuthenticationInterceptor;
import org.whispersystems.textsecuregcm.backup.BackupAuthManager;
@@ -110,6 +111,8 @@ import org.whispersystems.textsecuregcm.captcha.CaptchaChecker;
import org.whispersystems.textsecuregcm.captcha.CaptchaClient;
import org.whispersystems.textsecuregcm.captcha.RegistrationCaptchaManager;
import org.whispersystems.textsecuregcm.captcha.ShortCodeExpander;
import org.whispersystems.textsecuregcm.configuration.BadgeConfiguration;
import org.whispersystems.textsecuregcm.configuration.FoundationDbExternalClientConfiguration;
import org.whispersystems.textsecuregcm.configuration.dynamic.DynamicConfiguration;
import org.whispersystems.textsecuregcm.configuration.secrets.SecretStore;
import org.whispersystems.textsecuregcm.configuration.secrets.SecretsModule;
@@ -129,6 +132,7 @@ import org.whispersystems.textsecuregcm.controllers.DonationController;
import org.whispersystems.textsecuregcm.controllers.KeepAliveController;
import org.whispersystems.textsecuregcm.controllers.KeyTransparencyController;
import org.whispersystems.textsecuregcm.controllers.KeysController;
import org.whispersystems.textsecuregcm.controllers.LoginPurchaseController;
import org.whispersystems.textsecuregcm.controllers.MessageController;
import org.whispersystems.textsecuregcm.controllers.OneTimeDonationController;
import org.whispersystems.textsecuregcm.controllers.PaymentsController;
@@ -166,12 +170,15 @@ import org.whispersystems.textsecuregcm.grpc.CredentialsGrpcService;
import org.whispersystems.textsecuregcm.grpc.DevicesGrpcService;
import org.whispersystems.textsecuregcm.grpc.DonationsGrpcService;
import org.whispersystems.textsecuregcm.grpc.ErrorConformanceInterceptor;
import org.whispersystems.textsecuregcm.grpc.ConcurrentCallLimitingInterceptor;
import org.whispersystems.textsecuregcm.grpc.ErrorMappingInterceptor;
import org.whispersystems.textsecuregcm.grpc.ExternalServiceDefinitions;
import org.whispersystems.textsecuregcm.grpc.GroupSendTokenUtil;
import org.whispersystems.textsecuregcm.grpc.GrpcAllowListInterceptor;
import org.whispersystems.textsecuregcm.grpc.KeyTransparencyGrpcService;
import org.whispersystems.textsecuregcm.grpc.KeysAnonymousGrpcService;
import org.whispersystems.textsecuregcm.grpc.KeysGrpcService;
import org.whispersystems.textsecuregcm.grpc.LoginPurchaseGrpcService;
import org.whispersystems.textsecuregcm.grpc.MessageDispatcher;
import org.whispersystems.textsecuregcm.grpc.MessagesAnonymousGrpcService;
import org.whispersystems.textsecuregcm.grpc.MessagesGrpcService;
@@ -181,6 +188,7 @@ import org.whispersystems.textsecuregcm.grpc.PaymentsGrpcService;
import org.whispersystems.textsecuregcm.grpc.ProductConfigurationGrpcService;
import org.whispersystems.textsecuregcm.grpc.ProfileAnonymousGrpcService;
import org.whispersystems.textsecuregcm.grpc.ProfileGrpcService;
import org.whispersystems.textsecuregcm.grpc.RemoteConfigurationGrpcService;
import org.whispersystems.textsecuregcm.grpc.RequestAttributesInterceptor;
import org.whispersystems.textsecuregcm.grpc.SubscriptionsGrpcService;
import org.whispersystems.textsecuregcm.grpc.ValidatingInterceptor;
@@ -192,28 +200,26 @@ import org.whispersystems.textsecuregcm.grpc.net.SniMapper;
import org.whispersystems.textsecuregcm.jetty.JettyHttpConfigurationCustomizer;
import org.whispersystems.textsecuregcm.keytransparency.KeyTransparencyServiceClient;
import org.whispersystems.textsecuregcm.limits.CardinalityEstimator;
import org.whispersystems.textsecuregcm.limits.MessageDeliveryLoopMonitor;
import org.whispersystems.textsecuregcm.limits.NoopMessageDeliveryLoopMonitor;
import org.whispersystems.textsecuregcm.limits.PushChallengeManager;
import org.whispersystems.textsecuregcm.limits.RateLimitByIpFilter;
import org.whispersystems.textsecuregcm.limits.RateLimitChallengeManager;
import org.whispersystems.textsecuregcm.limits.RateLimiters;
import org.whispersystems.textsecuregcm.limits.RedisMessageDeliveryLoopMonitor;
import org.whispersystems.textsecuregcm.mappers.BackupExceptionMapper;
import org.whispersystems.textsecuregcm.mappers.CompletionExceptionMapper;
import org.whispersystems.textsecuregcm.mappers.DeviceLimitExceededExceptionMapper;
import org.whispersystems.textsecuregcm.mappers.GrpcStatusRuntimeExceptionMapper;
import org.whispersystems.textsecuregcm.mappers.IOExceptionMapper;
import org.whispersystems.textsecuregcm.mappers.IllegalStateExceptionMapper;
import org.whispersystems.textsecuregcm.mappers.ImpossiblePhoneNumberExceptionMapper;
import org.whispersystems.textsecuregcm.mappers.InvalidWebsocketAddressExceptionMapper;
import org.whispersystems.textsecuregcm.mappers.JsonMappingExceptionMapper;
import org.whispersystems.textsecuregcm.mappers.MfaFailureExceptionMapper;
import org.whispersystems.textsecuregcm.mappers.NonNormalizedPhoneNumberExceptionMapper;
import org.whispersystems.textsecuregcm.mappers.ObsoletePhoneNumberFormatExceptionMapper;
import org.whispersystems.textsecuregcm.mappers.RateLimitExceededExceptionMapper;
import org.whispersystems.textsecuregcm.mappers.RegistrationLockFailureExceptionMapper;
import org.whispersystems.textsecuregcm.mappers.RegistrationServiceSenderExceptionMapper;
import org.whispersystems.textsecuregcm.mappers.ServerRejectedExceptionMapper;
import org.whispersystems.textsecuregcm.mappers.SubscriptionExceptionMapper;
import org.whispersystems.textsecuregcm.mappers.PurchaseExceptionMapper;
import org.whispersystems.textsecuregcm.metrics.BackupMetrics;
import org.whispersystems.textsecuregcm.metrics.CallQualitySurveyManager;
import org.whispersystems.textsecuregcm.metrics.MessageMetrics;
@@ -267,37 +273,43 @@ import org.whispersystems.textsecuregcm.storage.OneTimeDonationsManager;
import org.whispersystems.textsecuregcm.storage.PagedSingleUseKEMPreKeyStore;
import org.whispersystems.textsecuregcm.storage.PersistentTimer;
import org.whispersystems.textsecuregcm.storage.PhoneNumberIdentifiers;
import org.whispersystems.textsecuregcm.storage.PhoneNumberRecoveryPasswords;
import org.whispersystems.textsecuregcm.storage.PhoneNumberRecoveryPasswordsManager;
import org.whispersystems.textsecuregcm.storage.ProfileAvatars;
import org.whispersystems.textsecuregcm.storage.Profiles;
import org.whispersystems.textsecuregcm.storage.ProfilesManager;
import org.whispersystems.textsecuregcm.storage.ProfilesV2;
import org.whispersystems.textsecuregcm.storage.PushChallengeDynamoDb;
import org.whispersystems.textsecuregcm.storage.RedeemedReceiptsManager;
import org.whispersystems.textsecuregcm.storage.RegistrationRecoveryPasswords;
import org.whispersystems.textsecuregcm.storage.RegistrationRecoveryPasswordsManager;
import org.whispersystems.textsecuregcm.storage.RemoteConfigs;
import org.whispersystems.textsecuregcm.storage.RemoteConfigsManager;
import org.whispersystems.textsecuregcm.storage.RepeatedUseECSignedPreKeyStore;
import org.whispersystems.textsecuregcm.storage.RepeatedUseKEMSignedPreKeyStore;
import org.whispersystems.textsecuregcm.storage.ReportMessageDynamoDb;
import org.whispersystems.textsecuregcm.storage.ReportMessageManager;
import org.whispersystems.textsecuregcm.storage.SandboxAccounts;
import org.whispersystems.textsecuregcm.storage.SingleUseECPreKeyStore;
import org.whispersystems.textsecuregcm.storage.SubscriptionManager;
import org.whispersystems.textsecuregcm.storage.Subscriptions;
import org.whispersystems.textsecuregcm.storage.TotpManager;
import org.whispersystems.textsecuregcm.storage.VerificationSessionManager;
import org.whispersystems.textsecuregcm.storage.VerificationSessions;
import org.whispersystems.textsecuregcm.storage.devicecheck.AppleDeviceCheckManager;
import org.whispersystems.textsecuregcm.storage.devicecheck.AppleDeviceCheckTrustAnchor;
import org.whispersystems.textsecuregcm.storage.devicecheck.AppleDeviceChecks;
import org.whispersystems.textsecuregcm.storage.foundationdb.FaultTolerantDatabase;
import org.whispersystems.textsecuregcm.storage.foundationdb.FoundationDbMessageStore;
import org.whispersystems.textsecuregcm.storage.foundationdb.FoundationDBWarmup;
import org.whispersystems.textsecuregcm.storage.foundationdb.VersionstampUUIDCipher;
import org.whispersystems.textsecuregcm.subscriptions.AppleAppStoreClient;
import org.whispersystems.textsecuregcm.subscriptions.AppleAppStoreManager;
import org.whispersystems.textsecuregcm.subscriptions.BankMandateTranslator;
import org.whispersystems.textsecuregcm.subscriptions.BraintreeManager;
import org.whispersystems.textsecuregcm.subscriptions.GooglePlayBillingManager;
import org.whispersystems.textsecuregcm.subscriptions.PayPalDonationsTranslator;
import org.whispersystems.textsecuregcm.subscriptions.StripeManager;
import org.whispersystems.textsecuregcm.purchases.AppleAppStoreClient;
import org.whispersystems.textsecuregcm.purchases.AppleAppStoreManager;
import org.whispersystems.textsecuregcm.purchases.BankMandateTranslator;
import org.whispersystems.textsecuregcm.purchases.BraintreeManager;
import org.whispersystems.textsecuregcm.purchases.GooglePlayBillingManager;
import org.whispersystems.textsecuregcm.purchases.LoginPurchaseManager;
import org.whispersystems.textsecuregcm.purchases.PayPalDonationsTranslator;
import org.whispersystems.textsecuregcm.purchases.PaymentProvider;
import org.whispersystems.textsecuregcm.purchases.StripeManager;
import org.whispersystems.textsecuregcm.telephony.CarrierDataProvider;
import org.whispersystems.textsecuregcm.telephony.hlrlookup.HlrLookupCarrierDataProvider;
import org.whispersystems.textsecuregcm.util.BufferingInterceptor;
@@ -320,6 +332,7 @@ import org.whispersystems.textsecuregcm.workers.CertificateCommand;
import org.whispersystems.textsecuregcm.workers.CheckDynamicConfigurationCommand;
import org.whispersystems.textsecuregcm.workers.ClearExpiredFoundationDbMessagesCommand;
import org.whispersystems.textsecuregcm.workers.ClearIssuedReceiptRedemptionsCommand;
import org.whispersystems.textsecuregcm.workers.ClearOrphanedFoundationDbQueuesCommand;
import org.whispersystems.textsecuregcm.workers.CopyToS3Command;
import org.whispersystems.textsecuregcm.workers.DeleteUserCommand;
import org.whispersystems.textsecuregcm.workers.IdleDeviceNotificationSchedulerFactory;
@@ -330,12 +343,15 @@ import org.whispersystems.textsecuregcm.workers.RegenerateSecondaryDynamoDbTable
import org.whispersystems.textsecuregcm.workers.RemoveExpiredAccountsCommand;
import org.whispersystems.textsecuregcm.workers.RemoveExpiredBackupsCommand;
import org.whispersystems.textsecuregcm.workers.RemoveExpiredLinkedDevicesCommand;
import org.whispersystems.textsecuregcm.workers.RemoveExpiredSandboxAccountsCommand;
import org.whispersystems.textsecuregcm.workers.RemoveExpiredUsernameHoldsCommand;
import org.whispersystems.textsecuregcm.workers.RemoveOrphanedPreKeyPagesCommand;
import org.whispersystems.textsecuregcm.workers.SandboxAccountPoolCommand;
import org.whispersystems.textsecuregcm.workers.ScheduledApnPushNotificationSenderServiceCommand;
import org.whispersystems.textsecuregcm.workers.ServerVersionCommand;
import org.whispersystems.textsecuregcm.workers.SetRequestLoggingEnabledTask;
import org.whispersystems.textsecuregcm.workers.SetUserDiscoverabilityCommand;
import org.whispersystems.textsecuregcm.workers.TrimOversizedFoundationDbMessageQueuesCommand;
import org.whispersystems.textsecuregcm.workers.UnlinkDeviceCommand;
import org.whispersystems.textsecuregcm.workers.UnlinkDevicesWithIdlePrimaryCommand;
import org.whispersystems.textsecuregcm.workers.ZkParamsCommand;
@@ -384,6 +400,8 @@ public class WhisperServerService extends Application<WhisperServerConfiguration
bootstrap.addCommand(new ScheduledApnPushNotificationSenderServiceCommand());
bootstrap.addCommand(new MessagePersisterServiceCommand());
bootstrap.addCommand(new RemoveExpiredAccountsCommand(Clock.systemUTC()));
bootstrap.addCommand(new RemoveExpiredSandboxAccountsCommand(Clock.systemUTC()));
bootstrap.addCommand(new SandboxAccountPoolCommand());
bootstrap.addCommand(new RemoveExpiredUsernameHoldsCommand(Clock.systemUTC()));
bootstrap.addCommand(new RemoveExpiredBackupsCommand(Clock.systemUTC()));
bootstrap.addCommand(new RemoveOrphanedPreKeyPagesCommand(Clock.systemUTC()));
@@ -395,6 +413,8 @@ public class WhisperServerService extends Application<WhisperServerConfiguration
bootstrap.addCommand(new ClearIssuedReceiptRedemptionsCommand());
bootstrap.addCommand(new CopyToS3Command());
bootstrap.addCommand(new ClearExpiredFoundationDbMessagesCommand(Clock.systemUTC()));
bootstrap.addCommand(new TrimOversizedFoundationDbMessageQueuesCommand());
bootstrap.addCommand(new ClearOrphanedFoundationDbQueuesCommand());
bootstrap.addCommand(new ProcessScheduledJobsServiceCommand("process-idle-device-notification-jobs",
"Processes scheduled jobs to send notifications to idle devices",
@@ -428,6 +448,9 @@ public class WhisperServerService extends Application<WhisperServerConfiguration
config.getRetryConfigurations().forEach((name, configuration) ->
ResilienceUtil.getRetryRegistry().addConfiguration(name, configuration.toRetryConfigBuilder().build()));
config.getBulkheadConfigurations().forEach((name, configuration) ->
ResilienceUtil.getBulkheadRegistry().addConfiguration(name, configuration.toBulkheadConfig().build()));
ResilienceUtil.setGeneralRedisRetryConfiguration(config.getGeneralRedisRetryConfiguration());
ScheduledExecutorService dynamicConfigurationExecutor = ScheduledExecutorServiceBuilder.of(environment, "dynamicConfiguration")
@@ -487,17 +510,34 @@ public class WhisperServerService extends Application<WhisperServerConfiguration
// we'd like, but is the least bad option given current constraints.
fdb.disableShutdownHook();
final Map<Integer, List<Database>> messageDatabasesByEpoch;
final FoundationDbExternalClientConfiguration externalClientConfiguration = config.getFoundationDbMessagesConfiguration()
.externalClientConfiguration();
if (externalClientConfiguration != null) {
// If threadsPerClient is not specified, we default to the cluster size so that there is 1:1 correspondence between
// Database objects and threads.
final int clientThreadsPerVersion = externalClientConfiguration.threadsPerClient()
.orElseGet(() -> config.getFoundationDbMessagesConfiguration().clusters().size());
externalClientConfiguration.clientLibraryPaths().forEach(path -> fdb.options().setExternalClientLibrary(path));
fdb.options().setClientThreadsPerVersion(clientThreadsPerVersion);
}
final Map<Integer, List<FaultTolerantDatabase>> messageDatabasesByEpoch;
{
final Map<String, Database> databasesByName =
final Map<String, FaultTolerantDatabase> faultTolerantDatabasesByName =
config.getFoundationDbMessagesConfiguration().clusters().entrySet().stream()
.collect(Collectors.toUnmodifiableMap(Map.Entry::getKey,
entry -> {
try {
final Database database = entry.getValue().build(fdb);
database.options().setMaxWatches(config.getFoundationDbMessagesConfiguration().maxWatchesPerClient());
database.options().setTransactionTimeout(
config.getFoundationDbMessagesConfiguration().transactionTimeout().toMillis());
database.options().setTransactionRetryLimit(
config.getFoundationDbMessagesConfiguration().transactionRetryLimit());
return database;
return new FaultTolerantDatabase(database, entry.getKey(),
config.getFoundationDbMessagesConfiguration().circuitBreakerConfigurationName(),
config.getFoundationDbMessagesConfiguration().bulkheadConfigurationName());
} catch (final IOException e) {
throw new UncheckedIOException(e);
}
@@ -506,8 +546,10 @@ public class WhisperServerService extends Application<WhisperServerConfiguration
messageDatabasesByEpoch = config.getFoundationDbMessagesConfiguration().epochs().entrySet().stream()
.collect(Collectors.toUnmodifiableMap(Map.Entry::getKey,
entry -> entry.getValue().stream()
.map(databasesByName::get)
.map(faultTolerantDatabasesByName::get)
.toList()));
environment.lifecycle().manage(new FoundationDBWarmup(faultTolerantDatabasesByName));
}
final AwsCredentialsProvider cdnCredentialsProvider = config.getCdnConfiguration().credentials().build();
@@ -526,10 +568,15 @@ public class WhisperServerService extends Application<WhisperServerConfiguration
.allowCoreThreadTimeOut(true)
.workQueue(messageDeletionQueue).build();
RedeemedReceiptsManager redeemedReceiptsManager = new RedeemedReceiptsManager(clock,
config.getDynamoDbTables().getRedeemedReceipts().getTableName(),
dynamoDbClient);
Accounts accounts = new Accounts(
clock,
dynamoDbClient,
dynamoDbAsyncClient,
redeemedReceiptsManager,
config.getDynamoDbTables().getAccounts().getTableName(),
config.getDynamoDbTables().getAccounts().getPhoneNumberTableName(),
config.getDynamoDbTables().getAccounts().getPhoneNumberIdentifierTableName(),
@@ -571,7 +618,7 @@ public class WhisperServerService extends Application<WhisperServerConfiguration
ReportMessageDynamoDb reportMessageDynamoDb = new ReportMessageDynamoDb(dynamoDbClient, dynamoDbAsyncClient,
config.getDynamoDbTables().getReportMessage().getTableName(),
config.getReportMessageConfiguration().getReportTtl());
RegistrationRecoveryPasswords registrationRecoveryPasswords = new RegistrationRecoveryPasswords(
PhoneNumberRecoveryPasswords phoneNumberRecoveryPasswords = new PhoneNumberRecoveryPasswords(
config.getDynamoDbTables().getRegistrationRecovery().getTableName(),
config.getDynamoDbTables().getRegistrationRecovery().getExpiration(),
dynamoDbClient,
@@ -624,7 +671,7 @@ public class WhisperServerService extends Application<WhisperServerConfiguration
final ScheduledExecutorService retryExecutor = ScheduledExecutorServiceBuilder.of(environment, "retry")
.threads(16).build();
final ScheduledExecutorService registrationIdentityTokenRefreshExecutor =
ScheduledExecutorServiceBuilder.of(environment, "registrationIdentityTokenRefresh").threads(1).build();
ScheduledExecutorServiceBuilder.of(environment, "registrationIdentityTokenRefresh").threads(1).build();
final ScheduledExecutorService presenceRenewalExecutor =
ScheduledExecutorServiceBuilder.of(environment, "presenceRenewal").threads(4).build();
@@ -645,10 +692,6 @@ public class WhisperServerService extends Application<WhisperServerConfiguration
.workQueue(receiptSenderQueue)
.rejectedExecutionHandler(new ThreadPoolExecutor.CallerRunsPolicy())
.build();
ExecutorService accountLockExecutor = ExecutorServiceBuilder.of(environment, "accountLock")
.minThreads(8)
.maxThreads(8)
.build();
// unbounded executor (same as cachedThreadPool)
ExecutorService remoteStorageHttpExecutor = ExecutorServiceBuilder.of(environment, "remoteStorage")
.minThreads(0)
@@ -688,11 +731,11 @@ public class WhisperServerService extends Application<WhisperServerConfiguration
final ManagedEventLoopGroup<NioEventLoopGroup> dnsResolutionEventLoopGroup = new ManagedEventLoopGroup<>(new NioEventLoopGroup());
final DnsNameResolver cloudflareDnsResolver = new DnsNameResolverBuilder(dnsResolutionEventLoopGroup.getEventLoopGroup().next())
.resolvedAddressTypes(ResolvedAddressTypes.IPV6_PREFERRED)
.completeOncePreferredResolved(false)
.channelType(NioDatagramChannel.class)
.socketChannelType(NioSocketChannel.class)
.build();
.resolvedAddressTypes(ResolvedAddressTypes.IPV6_PREFERRED)
.completeOncePreferredResolved(false)
.channelType(NioDatagramChannel.class)
.socketChannelType(NioSocketChannel.class)
.build();
ExternalServiceCredentialsGenerator directoryV2CredentialsGenerator = DirectoryV2Controller.credentialsGenerator(
config.getDirectoryV2Configuration().getDirectoryV2ClientConfiguration());
@@ -713,8 +756,8 @@ public class WhisperServerService extends Application<WhisperServerConfiguration
AsnInfoProvider.EMPTY,
"AsnManager");
RegistrationRecoveryPasswordsManager registrationRecoveryPasswordsManager =
new RegistrationRecoveryPasswordsManager(registrationRecoveryPasswords);
PhoneNumberRecoveryPasswordsManager phoneNumberRecoveryPasswordsManager =
new PhoneNumberRecoveryPasswordsManager(phoneNumberRecoveryPasswords);
UsernameHashZkProofVerifier usernameHashZkProofVerifier = new UsernameHashZkProofVerifier();
final CarrierDataProvider carrierDataProvider =
@@ -758,7 +801,9 @@ public class WhisperServerService extends Application<WhisperServerConfiguration
new VersionstampUUIDCipher(config.getFoundationDbMessagesConfiguration().currentVersionstampCipherKey(),
config.getFoundationDbMessagesConfiguration().versionstampCipherKeys().get(config.getFoundationDbMessagesConfiguration().currentVersionstampCipherKey()).value()),
presenceRenewalExecutor,
Clock.systemUTC());
Clock.systemUTC(),
config.getFoundationDbMessagesConfiguration().batchPriorityTransactionTimeout(),
config.getFoundationDbMessagesConfiguration().batchPriorityTransactionRetryLimit());
ClientReleaseManager clientReleaseManager = new ClientReleaseManager(clientReleases,
recurringJobExecutor,
config.getClientReleaseConfiguration().refreshInterval(),
@@ -776,12 +821,22 @@ public class WhisperServerService extends Application<WhisperServerConfiguration
changeNumberWaitingPeriods, config.getChangeNumber().postRegistrationWaitingPeriod(), clock);
AccountLockManager accountLockManager = new AccountLockManager(dynamoDbClient,
config.getDynamoDbTables().getDeletedAccountsLock().getTableName());
AccountsManager accountsManager = new AccountsManager(accounts, phoneNumberIdentifiers, cacheCluster,
final TotpManager totpManager = new TotpManager(rateLimitersCluster, config.getRegistrationTotpConfiguration().maxValidationDelay());
final WebAuthnCeremonyManager webAuthnCeremonyManager = new WebAuthnCeremonyManager(
config.getRegistrationWebAuthnConfiguration().relyingPartyId(),
config.getRegistrationWebAuthnConfiguration().origins(),
config.getRegistrationWebAuthnConfiguration().challengeTtl(),
config.getRegistrationWebAuthnConfiguration().userHandleBlindingSecret().value(),
rateLimitersCluster);
final SandboxAccounts sandboxAccounts = new SandboxAccounts(
config.getDynamoDbTables().getSandboxAccounts().getTableName(), dynamoDbClient);
final AccountsManager accountsManager = new AccountsManager(accounts, phoneNumberIdentifiers, cacheCluster,
pubsubClient, accountLockManager, keysManager, messagesManager, profilesManager,
changeNumberWaitingPeriodManager, secureStorageClient, secureValueRecovery2Client, disconnectionRequestManager,
registrationRecoveryPasswordsManager, accountLockExecutor, messagePollExecutor,
retryExecutor, clock, config.getLinkDeviceSecretConfiguration().secret().value());
RemoteConfigsManager remoteConfigsManager = new RemoteConfigsManager(remoteConfigs);
phoneNumberRecoveryPasswordsManager, sandboxAccounts, messagePollExecutor,
retryExecutor, clock, config.getLinkDeviceSecretConfiguration().secret().value(),
webAuthnCeremonyManager, totpManager);
RemoteConfigsManager remoteConfigsManager = new RemoteConfigsManager(remoteConfigs, config.getRemoteConfigConfiguration().globalConfig());
APNSender apnSender = new APNSender(apnSenderExecutor, Clock.systemUTC(), config.getApnConfiguration());
FcmSender fcmSender = new FcmSender(fcmSenderExecutor, config.getFcmConfiguration().credentials().value());
PushNotificationScheduler pushNotificationScheduler = new PushNotificationScheduler(pushSchedulerCluster,
@@ -792,29 +847,22 @@ public class WhisperServerService extends Application<WhisperServerConfiguration
ProvisioningManager provisioningManager = new ProvisioningManager(pubsubClient);
IssuedReceiptsManager issuedReceiptsManager = new IssuedReceiptsManager(
config.getDynamoDbTables().getIssuedReceipts().getTableName(),
config.getDynamoDbTables().getIssuedReceipts().getExpiration(),
dynamoDbClient,
config.getDynamoDbTables().getIssuedReceipts().getGenerator(),
config.getDynamoDbTables().getIssuedReceipts().getmaxIssuedReceiptsPerPaymentId());
config.getDynamoDbTables().getIssuedReceipts().getMaxReceiptsPerSubscriptionPayment());
OneTimeDonationsManager oneTimeDonationsManager = new OneTimeDonationsManager(
config.getDynamoDbTables().getOnetimeDonations().getTableName(), config.getDynamoDbTables().getOnetimeDonations().getExpiration(), dynamoDbClient);
DonationPermits donationPermits = new DonationPermits(
config.getDynamoDbTables().getDonationPermits().getTableName(), config.getDynamoDbTables().getDonationPermits().getExpiration(), dynamoDbClient);
RedeemedReceiptsManager redeemedReceiptsManager = new RedeemedReceiptsManager(clock,
config.getDynamoDbTables().getRedeemedReceipts().getTableName(),
dynamoDbClient,
config.getDynamoDbTables().getRedeemedReceipts().getExpiration());
Subscriptions subscriptions = new Subscriptions(
config.getDynamoDbTables().getSubscriptions().getTableName(), dynamoDbClient);
MessageDeliveryLoopMonitor messageDeliveryLoopMonitor =
config.logMessageDeliveryLoops() ? new RedisMessageDeliveryLoopMonitor(rateLimitersCluster) : new NoopMessageDeliveryLoopMonitor();
CallQualitySurveyManager callQualitySurveyManager = new CallQualitySurveyManager(asnInfoProviderSupplier,
config.getCallQualitySurveyConfiguration().pubSubPublisher().build(),
Clock.systemUTC(),
callQualitySurveyPubSubExecutor);
final RegistrationLockVerificationManager registrationLockVerificationManager = new RegistrationLockVerificationManager(
accountsManager, disconnectionRequestManager, svr2CredentialsGenerator, registrationRecoveryPasswordsManager,
accountsManager, disconnectionRequestManager, svr2CredentialsGenerator, phoneNumberRecoveryPasswordsManager,
pushNotificationManager, rateLimiters);
final ReportedMessageMetricsListener reportedMessageMetricsListener = new ReportedMessageMetricsListener(
@@ -919,6 +967,7 @@ public class WhisperServerService extends Application<WhisperServerConfiguration
config.getCdnConfiguration().credentials().secretAccessKey().value());
ServerSecretParams groupZkSecretParams = new ServerSecretParams(config.getGroupsZkConfig().serverSecret().value());
GenericServerSecretParams callingPreV101GenericZkSecretParams = new GenericServerSecretParams(config.getCallingZkConfigPreV101().serverSecret().value());
GenericServerSecretParams callingGenericZkSecretParams = new GenericServerSecretParams(config.getCallingZkConfig().serverSecret().value());
GenericServerSecretParams chatGenericZkSecretParams = new GenericServerSecretParams(config.getChatZkConfig().serverSecret().value());
ServerZkProfileOperations zkProfileOperations = new ServerZkProfileOperations(groupZkSecretParams);
@@ -972,6 +1021,13 @@ public class WhisperServerService extends Application<WhisperServerConfiguration
List.of(stripeManager, braintreeManager, googlePlayBillingManager, appleAppStoreManager),
zkReceiptOperations, issuedReceiptsManager);
final LoginPurchaseManager loginPurchaseManager = new LoginPurchaseManager(
Map.of(
PaymentProvider.APPLE_APP_STORE, appleAppStoreManager,
PaymentProvider.GOOGLE_PLAY_BILLING, googlePlayBillingManager),
issuedReceiptsManager,
zkReceiptOperations);
final List<SpamFilter> spamFilters = ServiceLoader.load(SpamFilter.class)
.stream()
.map(ServiceLoader.Provider::get)
@@ -1029,7 +1085,7 @@ public class WhisperServerService extends Application<WhisperServerConfiguration
final HttpClient shortCodeRetrieverHttpClient = HttpClient.newBuilder().version(HttpClient.Version.HTTP_2)
.connectTimeout(Duration.ofSeconds(10)).build();
final ShortCodeExpander shortCodeRetriever = new ShortCodeExpander(shortCodeRetrieverHttpClient, config.getShortCodeRetrieverConfiguration().baseUrl());
final CaptchaChecker captchaChecker = new CaptchaChecker(shortCodeRetriever, captchaClientSupplier);
final CaptchaChecker captchaChecker = new CaptchaChecker(shortCodeRetriever, captchaClientSupplier, dynamicConfigurationManager);
final RegistrationCaptchaManager registrationCaptchaManager = new RegistrationCaptchaManager(captchaChecker);
@@ -1053,6 +1109,9 @@ public class WhisperServerService extends Application<WhisperServerConfiguration
final ValidatingInterceptor validatingInterceptor = new ValidatingInterceptor();
final ConcurrentCallLimitingInterceptor concurrentCallLimitingInterceptor =
new ConcurrentCallLimitingInterceptor(config.getVirtualThreadConfiguration().maxConcurrentThreadsPerExecutor());
final ExternalRequestFilter grpcExternalRequestFilter = new ExternalRequestFilter(
config.getExternalRequestFilterConfiguration().permittedInternalRanges(),
config.getExternalRequestFilterConfiguration().grpcMethods());
@@ -1061,8 +1120,7 @@ public class WhisperServerService extends Application<WhisperServerConfiguration
final GroupSendTokenUtil groupSendTokenUtil = new GroupSendTokenUtil(groupZkSecretParams, Clock.systemUTC());
final MessageMetrics messageMetrics = new MessageMetrics();
final MessageDispatcher messageDispatcher = new MessageDispatcher(receiptSender, messagesManager, messageMetrics,
pushNotificationManager, pushNotificationScheduler, messageDeliveryLoopMonitor, disconnectionRequestManager,
clientReleaseManager);
pushNotificationManager, pushNotificationScheduler, disconnectionRequestManager, clientReleaseManager);
final CertificateGenerator certificateGenerator =
new CertificateGenerator(config.getDeliveryCertificate().certificate(),
@@ -1071,19 +1129,20 @@ public class WhisperServerService extends Application<WhisperServerConfiguration
config.getDeliveryCertificate().embedSigner());
final PhoneVerificationTokenManager phoneVerificationTokenManager = new PhoneVerificationTokenManager(
phoneNumberIdentifiers, registrationServiceClient, registrationRecoveryPasswordsManager, registrationRecoveryChecker);
phoneNumberIdentifiers, registrationServiceClient, phoneNumberRecoveryPasswordsManager, registrationRecoveryChecker);
final ChangeNumberManager changeNumberManager = new ChangeNumberManager(messageSender, accountsManager,
phoneVerificationTokenManager, registrationLockVerificationManager, rateLimiters,
changeNumberWaitingPeriodManager, Clock.systemUTC());
final List<ServerServiceDefinition> authenticatedServices = Stream.of(
new AccountsGrpcService(accountsManager, rateLimiters, usernameHashZkProofVerifier, registrationRecoveryPasswordsManager, Clock.systemUTC(), changeNumberManager),
new AccountsGrpcService(accountsManager, rateLimiters, usernameHashZkProofVerifier,
phoneNumberRecoveryPasswordsManager, Clock.systemUTC(), changeNumberManager),
new CallingGrpcService(cloudflareTurnCredentialsManager, rateLimiters),
new CredentialsGrpcService(accountsManager, certificateGenerator, zkAuthOperations, callingGenericZkSecretParams, rateLimiters, Clock.systemUTC(), ExternalServiceDefinitions.createExternalServiceList(config, Clock.systemUTC())),
new KeysGrpcService(accountsManager, keysManager, rateLimiters),
new ProfileGrpcService(clock, accountsManager, profilesManager, dynamicConfigurationManager, config.getBadges(), profileCdnPolicyGenerator, chatGenericZkSecretParams, profileBadgeConverter, rateLimiters),
new MessagesGrpcService(accountsManager, rateLimiters, messageSender, messageByteLimitCardinalityEstimator, spamChecker, messageDispatcher, Clock.systemUTC()),
new ProfileGrpcService(clock, accountsManager, profilesManager, asnInfoProviderSupplier, dynamicConfigurationManager, config.getBadges(), profileCdnPolicyGenerator, chatGenericZkSecretParams, profileBadgeConverter, rateLimiters),
new MessagesGrpcService(accountsManager, reportMessageManager, phoneNumberIdentifiers, rateLimiters, messageSender, messageByteLimitCardinalityEstimator, spamChecker, messageDispatcher, Clock.systemUTC()),
new BackupsGrpcService(accountsManager, backupAuthManager, backupMetrics),
new DevicesGrpcService(accountsManager),
new AttachmentsGrpcService(experimentEnrollmentManager, rateLimiters, gcsAttachmentGenerator,
@@ -1093,8 +1152,12 @@ public class WhisperServerService extends Application<WhisperServerConfiguration
new ChallengeGrpcService(accountsManager, rateLimitChallengeManager, challengeConstraintChecker),
new DonationsGrpcService(clock, zkReceiptOperations, redeemedReceiptsManager, accountsManager, config.getBadges(), ReceiptCredentialPresentation::new, donationPermitsManager, rateLimiters),
new ProductConfigurationGrpcService(config.getSubscription(), config.getOneTimeDonations(),
List.of(stripeManager, braintreeManager), profileBadgeConverter,
config.getBackupConfiguration().maxTotalMediaSize()))
config.getLoginPurchase(), List.of(stripeManager, braintreeManager),
config.getBackupConfiguration().maxTotalMediaSize()),
new RemoteConfigurationGrpcService(remoteConfigsManager, profileBadgeConverter,
config.getBadges().getBadges().stream()
.map(BadgeConfiguration::getId)
.toList()))
.map(bindableService -> ServerInterceptors.intercept(bindableService,
// Note: interceptors run in the reverse order they are added; the remote deprecation filter
// depends on the user-agent context so it has to come first here!
@@ -1105,16 +1168,19 @@ public class WhisperServerService extends Application<WhisperServerConfiguration
remoteDeprecationFilter,
metricServerInterceptor,
requestAttributesInterceptor,
requireAuthenticationInterceptor))
requireAuthenticationInterceptor,
concurrentCallLimitingInterceptor))
.toList();
final List<ServerServiceDefinition> unauthenticatedServices = Stream.of(
new AccountsAnonymousGrpcService(accountsManager, rateLimiters),
new AccountsAnonymousGrpcService(accountsManager, rateLimiters, groupSendTokenUtil),
new CallQualitySurveyGrpcService(callQualitySurveyManager, rateLimiters),
new KeysAnonymousGrpcService(accountsManager, keysManager, groupZkSecretParams, Clock.systemUTC()),
new KeyTransparencyGrpcService(rateLimiters, keyTransparencyServiceClient),
new LoginPurchaseGrpcService(loginPurchaseManager, dynamicConfigurationManager),
new ProfileAnonymousGrpcService(accountsManager, profilesManager, profileBadgeConverter, profileCdnPolicyGenerator, chatGenericZkSecretParams, groupZkSecretParams, rateLimiters, clock),
new MessagesAnonymousGrpcService(accountsManager, rateLimiters, messageSender, groupSendTokenUtil, messageByteLimitCardinalityEstimator, spamChecker, Clock.systemUTC()),
new BackupsAnonymousGrpcService(backupManager, backupMetrics, config.getAttachments().maxAttachmentUploadSizeInBytes(), config.getAttachments().maxMessageBackupUploadSizeInBytes()),
new CredentialsAnonymousGrpcService(accountsManager, ExternalServiceDefinitions.SVR.generatorFactory().apply(config, Clock.systemUTC())),
new CredentialsAnonymousGrpcService(accountsManager, ExternalServiceDefinitions.SVR.generatorFactory().apply(config, Clock.systemUTC()), rateLimiters),
new SubscriptionsGrpcService(clock, config.getSubscription(), subscriptionManager, donationPermitsManager,
stripeManager, braintreeManager, googlePlayBillingManager, appleAppStoreManager, bankMandateTranslator),
new OneTimeDonationsGrpcService(config.getOneTimeDonations(), stripeManager, braintreeManager,
@@ -1131,7 +1197,8 @@ public class WhisperServerService extends Application<WhisperServerConfiguration
remoteDeprecationFilter,
metricServerInterceptor,
requestAttributesInterceptor,
prohibitAuthenticationInterceptor))
prohibitAuthenticationInterceptor,
concurrentCallLimitingInterceptor))
.toList();
final ManagedEventLoopGroup<DefaultEventLoopGroup> omnibusLocalEventLoopGroup = new ManagedEventLoopGroup<>(new DefaultEventLoopGroup());
@@ -1141,20 +1208,26 @@ public class WhisperServerService extends Application<WhisperServerConfiguration
.forAddress(grpcLocalAddress)
.channelType(LocalServerChannel.class)
.bossEventLoopGroup(omnibusLocalEventLoopGroup.getEventLoopGroup())
.workerEventLoopGroup(omnibusLocalEventLoopGroup.getEventLoopGroup());
.workerEventLoopGroup(omnibusLocalEventLoopGroup.getEventLoopGroup())
.executor(ManagedExecutors.newVirtualThreadPerTaskExecutor("managed-grpc-virtual-thread", environment));
authenticatedServices.forEach(serverBuilder::addService);
unauthenticatedServices.forEach(serverBuilder::addService);
final ManagedGrpcServer localGrpcServer = new ManagedGrpcServer(serverBuilder.build());
final String websocketServletPath = "/v1/websocket/";
final String provisioningWebsocketServletPath = "/v1/websocket/provisioning/";
final SocketAddress websocketAddress =
new InetSocketAddress(config.getGrpc().websocketAddress(), config.getGrpc().websocketPort());
final OmnibusRouter omnibusRouter = new OmnibusRouter(List.of(
new OmnibusRouter.OmnibusRoute("/v1/websocket", websocketAddress),
new OmnibusRouter.OmnibusRoute("/v1/provisioning", websocketAddress)),
final OmnibusRouter omnibusRouter = new OmnibusRouter(Map.of(
websocketServletPath, websocketAddress,
provisioningWebsocketServletPath, websocketAddress),
grpcLocalAddress);
@Nullable final Mapping<String, SslContext> sniMapping = config.getGrpc().h2c()
? null
: SniMapper.buildSniMapping(config.getTlsKeyStoreConfiguration().path(), config.getTlsKeyStoreConfiguration().password().value());
: SniMapper.buildSniMapping(config.getTlsKeyStoreConfiguration().path(),
config.getTlsKeyStoreConfiguration().password().value(),
config.getGrpc().sslProvider());
final OmnibusH2Server omnibusH2Server = new OmnibusH2Server(
sniMapping,
omnibusNioEventLoopGroup.getEventLoopGroup(),
@@ -1181,9 +1254,6 @@ public class WhisperServerService extends Application<WhisperServerConfiguration
.setAuthenticator(accountAuthenticator)
.buildAuthFilter();
final String websocketServletPath = "/v1/websocket/";
final String provisioningWebsocketServletPath = "/v1/websocket/provisioning/";
MetricsHttpEventHandler.configure(environment, Metrics.globalRegistry, clientReleaseManager, Set.of(websocketServletPath, provisioningWebsocketServletPath, "/health-check"));
// BufferingInterceptor is needed on the base environment but not the WebSocketEnvironment,
@@ -1214,7 +1284,7 @@ public class WhisperServerService extends Application<WhisperServerConfiguration
webSocketEnvironment.setConnectListener(
new AuthenticatedConnectListener(accountsManager, receiptSender, messagesManager, messageMetrics, pushNotificationManager,
pushNotificationScheduler, disconnectionRequestManager,
messageDeliveryScheduler, asnInfoProviderSupplier, clientReleaseManager, messageDeliveryLoopMonitor, experimentEnrollmentManager
messageDeliveryScheduler, asnInfoProviderSupplier, clientReleaseManager, experimentEnrollmentManager
));
webSocketEnvironment.jersey().register(new RateLimitByIpFilter(rateLimiters));
webSocketEnvironment.jersey().register(new RequestStatisticsFilter(TrafficSource.WEBSOCKET));
@@ -1226,20 +1296,19 @@ public class WhisperServerService extends Application<WhisperServerConfiguration
final PersistentTimer persistentTimer = new PersistentTimer(rateLimitersCluster, clock);
final List<Object> commonControllers = Lists.newArrayList(
new AccountController(accountsManager, rateLimiters, registrationRecoveryPasswordsManager,
new AccountController(accountsManager, rateLimiters, phoneNumberRecoveryPasswordsManager,
usernameHashZkProofVerifier),
new AccountControllerV2(accountsManager, changeNumberManager),
new AttachmentControllerV4(rateLimiters, gcsAttachmentGenerator, tusAttachmentGenerator,
experimentEnrollmentManager, config.getAttachments().maxAttachmentUploadSizeInBytes()),
new ArchiveController(accountsManager, backupAuthManager, backupManager, backupMetrics, config.getAttachments().maxAttachmentUploadSizeInBytes(), config.getAttachments().maxMessageBackupUploadSizeInBytes()),
new CallRoutingControllerV2(rateLimiters, cloudflareTurnCredentialsManager),
new CallLinkController(rateLimiters, callingGenericZkSecretParams),
new CallLinkController(rateLimiters, callingGenericZkSecretParams, callingPreV101GenericZkSecretParams),
new CallQualitySurveyController(callQualitySurveyManager),
new CertificateController(accountsManager, certificateGenerator, zkAuthOperations, callingGenericZkSecretParams, clock),
new CertificateController(accountsManager, certificateGenerator, zkAuthOperations, callingGenericZkSecretParams, callingPreV101GenericZkSecretParams, clock),
new ChallengeController(accountsManager, rateLimitChallengeManager, challengeConstraintChecker),
new DeviceController(accountsManager, rateLimiters, persistentTimer),
new DeviceCheckController(clock, accountsManager, backupAuthManager, appleDeviceCheckManager, rateLimiters,
config.getDeviceCheck().backupRedemptionLevel(),
config.getDeviceCheck().backupRedemptionDuration()),
new DirectoryV2Controller(directoryV2CredentialsGenerator),
new DonationController(clock, zkReceiptOperations, redeemedReceiptsManager, accountsManager, config.getBadges(),
@@ -1249,27 +1318,29 @@ public class WhisperServerService extends Application<WhisperServerConfiguration
new MessageController(rateLimiters, messageByteLimitCardinalityEstimator, messageSender, accountsManager,
phoneNumberIdentifiers, reportMessageManager, groupZkSecretParams, spamChecker, Clock.systemUTC()),
new PaymentsController(currencyManager, paymentsCredentialsGenerator),
new ProfileController(clock, rateLimiters, accountsManager, profilesManager, dynamicConfigurationManager,
profileBadgeConverter, config.getBadges(), profileCdnPolicyGenerator,
new ProfileController(clock, rateLimiters, accountsManager, profilesManager, asnInfoProviderSupplier,
dynamicConfigurationManager, profileBadgeConverter, config.getBadges(), profileCdnPolicyGenerator,
groupZkSecretParams, zkProfileOperations, batchIdentityCheckExecutor),
new ProvisioningController(rateLimiters, provisioningManager),
new RegistrationController(accountsManager, phoneVerificationTokenManager, registrationLockVerificationManager,
rateLimiters, registrationFraudChecker),
new RemoteConfigController(remoteConfigsManager, config.getRemoteConfigConfiguration().globalConfig()),
rateLimiters, registrationFraudChecker, ReceiptCredentialPresentation::new, zkReceiptOperations, clock, dynamicConfigurationManager),
new RemoteConfigController(remoteConfigsManager),
new SecureStorageController(storageCredentialsGenerator),
new SecureValueRecovery2Controller(svr2CredentialsGenerator, accountsManager),
new StickerController(rateLimiters, stickerPolicyGenerator, Clock.systemUTC()),
new VerificationController(registrationServiceClient, new VerificationSessionManager(verificationSessions),
pushNotificationManager, registrationCaptchaManager, registrationRecoveryPasswordsManager,
pushNotificationManager, registrationCaptchaManager, phoneNumberRecoveryPasswordsManager,
phoneNumberIdentifiers, rateLimiters, accountsManager, carrierDataProvider, registrationFraudChecker,
dynamicConfigurationManager, experimentEnrollmentManager, clock),
dynamicConfigurationManager, clock),
new SubscriptionController(clock, config.getSubscription(), config.getOneTimeDonations(),
subscriptionManager, stripeManager, braintreeManager, googlePlayBillingManager, appleAppStoreManager,
config.getLoginPurchase(), subscriptionManager, stripeManager, braintreeManager, googlePlayBillingManager,
appleAppStoreManager,
profileBadgeConverter, bankMandateTranslator, donationPermitsManager,
config.getBackupConfiguration().maxTotalMediaSize()),
new OneTimeDonationController(clock, config.getOneTimeDonations(), stripeManager, braintreeManager,
payPalDonationsTranslator, zkReceiptOperations, issuedReceiptsManager, oneTimeDonationsManager,
donationPermitsManager)
donationPermitsManager),
new LoginPurchaseController(loginPurchaseManager, dynamicConfigurationManager)
);
for (Object controller : commonControllers) {
@@ -1329,20 +1400,21 @@ public class WhisperServerService extends Application<WhisperServerConfiguration
List.of(
new LoggingUnhandledExceptionMapper(),
new CompletionExceptionMapper(),
new GrpcStatusRuntimeExceptionMapper(),
new IOExceptionMapper(),
new RateLimitExceededExceptionMapper(),
new InvalidWebsocketAddressExceptionMapper(),
new DeviceLimitExceededExceptionMapper(),
new ServerRejectedExceptionMapper(),
new IllegalStateExceptionMapper(),
new ImpossiblePhoneNumberExceptionMapper(),
new NonNormalizedPhoneNumberExceptionMapper(),
new ObsoletePhoneNumberFormatExceptionMapper(),
new RegistrationServiceSenderExceptionMapper(),
new SubscriptionExceptionMapper(),
new PurchaseExceptionMapper(),
new BackupExceptionMapper(),
new JsonMappingExceptionMapper(),
new RegistrationLockFailureExceptionMapper()
new RegistrationLockFailureExceptionMapper(),
new MfaFailureExceptionMapper()
).forEach(exceptionMapper -> {
environment.jersey().register(exceptionMapper);
webSocketEnvironment.jersey().register(exceptionMapper);
@@ -10,6 +10,7 @@ import org.whispersystems.textsecuregcm.auth.JwtGenerator;
import org.whispersystems.textsecuregcm.util.HeaderUtils;
import java.nio.charset.StandardCharsets;
import java.time.Clock;
import java.time.Duration;
import java.util.Base64;
import java.util.Map;
@@ -19,15 +20,17 @@ public class TusAttachmentGenerator implements AttachmentGenerator {
private final JwtGenerator jwtGenerator;
private final String tusUri;
private final Duration tokenExpiration;
public TusAttachmentGenerator(final TusConfiguration cfg) {
this.tusUri = cfg.uploadUri();
this.tokenExpiration = cfg.tokenExpiration();
this.jwtGenerator = new JwtGenerator(cfg.userAuthenticationTokenSharedSecret().value(), Clock.systemUTC());
}
@Override
public Descriptor generateAttachment(final String key, final long uploadLength) {
final String token = jwtGenerator.generateJwt(ATTACHMENTS, key,
final String token = jwtGenerator.generateJwt(ATTACHMENTS, key, tokenExpiration,
builder -> builder.withClaim(JwtGenerator.MAX_LENGTH_CLAIM_KEY, uploadLength));
final String b64Key = Base64.getEncoder().encodeToString(key.getBytes(StandardCharsets.UTF_8));
@@ -5,11 +5,27 @@
package org.whispersystems.textsecuregcm.attachments;
import com.google.common.annotations.VisibleForTesting;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.Positive;
import jakarta.validation.constraints.NotNull;
import java.time.Duration;
import org.hibernate.validator.constraints.time.DurationMin;
import org.whispersystems.textsecuregcm.configuration.secrets.SecretBytes;
import org.whispersystems.textsecuregcm.util.ExactlySize;
public record TusConfiguration(
@ExactlySize(32) SecretBytes userAuthenticationTokenSharedSecret,
@NotEmpty String uploadUri){}
@ExactlySize(32) SecretBytes userAuthenticationTokenSharedSecret,
@NotEmpty String uploadUri,
// The TUS server enforces its own `MAX_TOKEN_AGE`, so this must be greater than or equal to it.
// https://github.com/signalapp/tus-server/tree/main/src/index.ts
@NotNull @DurationMin(days = 7) Duration tokenExpiration){
@VisibleForTesting
public static final Duration DEFAULT_TOKEN_EXPIRATION = Duration.ofDays(7);
public TusConfiguration {
if (tokenExpiration == null) {
tokenExpiration = DEFAULT_TOKEN_EXPIRATION;
}
}
}
@@ -19,7 +19,6 @@ import java.time.temporal.ChronoUnit;
import java.util.Optional;
import java.util.UUID;
import org.apache.commons.lang3.StringUtils;
import org.whispersystems.textsecuregcm.identity.IdentityType;
import org.whispersystems.textsecuregcm.storage.Account;
import org.whispersystems.textsecuregcm.storage.AccountsManager;
import org.whispersystems.textsecuregcm.storage.Device;
@@ -101,7 +100,7 @@ public class AccountAuthenticator implements Authenticator<BasicCredentials, Aut
if (deviceSaltedTokenHash.verify(basicCredentials.getPassword())) {
succeeded = true;
final Account authenticatedAccount = updateLastSeen(account.get(), device.get());
return Optional.of(new AuthenticatedDevice(authenticatedAccount.getIdentifier(IdentityType.ACI),
return Optional.of(new AuthenticatedDevice(authenticatedAccount.getAccountIdentifier(),
device.get().getId(),
Instant.ofEpochMilli(authenticatedAccount.getPrimaryDevice().getLastSeen())));
} else {
@@ -126,7 +125,7 @@ public class AccountAuthenticator implements Authenticator<BasicCredentials, Aut
@VisibleForTesting
public Account updateLastSeen(Account account, Device device) {
// compute a non-negative integer between 0 and 86400.
long n = Util.ensureNonNegativeLong(account.getUuid().getLeastSignificantBits());
long n = Util.ensureNonNegativeLong(account.getAccountIdentifier().getLeastSignificantBits());
final long lastSeenOffsetSeconds = n % ChronoUnit.DAYS.getDuration().toSeconds();
// produce a truncated timestamp which is either today at UTC midnight
@@ -142,7 +141,7 @@ public class AccountAuthenticator implements Authenticator<BasicCredentials, Aut
Metrics.summary(DAYS_SINCE_LAST_SEEN_DISTRIBUTION_NAME, IS_PRIMARY_DEVICE_TAG, String.valueOf(device.isPrimary()))
.record(Duration.ofMillis(todayInMillisWithOffset - device.getLastSeen()).toDays());
return accountsManager.updateDeviceLastSeen(account.getIdentifier(IdentityType.ACI), device, Util.todayInMillis(clock));
return accountsManager.updateDeviceLastSeen(account.getAccountIdentifier(), device, Util.todayInMillis(clock));
}
return account;
@@ -11,7 +11,6 @@ import java.util.concurrent.TimeUnit;
import org.signal.libsignal.protocol.ecc.ECPrivateKey;
import org.whispersystems.textsecuregcm.entities.MessageProtos.SenderCertificate;
import org.whispersystems.textsecuregcm.entities.MessageProtos.ServerCertificate;
import org.whispersystems.textsecuregcm.identity.IdentityType;
import org.whispersystems.textsecuregcm.storage.Account;
import org.whispersystems.textsecuregcm.util.UUIDUtil;
@@ -35,14 +34,18 @@ public class CertificateGenerator {
}
public byte[] createFor(final Account account, final byte deviceId, boolean includeE164) {
if (includeE164 && account.getNumber().isEmpty()) {
throw new IllegalArgumentException();
}
SenderCertificate.Certificate.Builder builder = SenderCertificate.Certificate.newBuilder()
.setSenderDevice(Math.toIntExact(deviceId))
.setExpires(System.currentTimeMillis() + TimeUnit.DAYS.toMillis(expiresDays))
.setIdentityKey(ByteString.copyFrom(account.getIdentityKey(IdentityType.ACI).serialize()))
.setSenderUuid(UUIDUtil.toByteString(account.getUuid()));
.setIdentityKey(ByteString.copyFrom(account.getAccountIdentityKey().serialize()))
.setSenderUuid(UUIDUtil.toByteString(account.getAccountIdentifier()));
if (includeE164) {
builder.setSenderE164(account.getNumber());
builder.setSenderE164(account.getNumber().get());
}
if (embedSigner) {
@@ -164,7 +164,7 @@ public class DisconnectionRequestManager extends RedisPubSubAdapter<byte[], byte
* @return a future that completes when the request has been broadcast
*/
public CompletionStage<Void> requestDisconnection(final Account account) {
return requestDisconnection(account.getIdentifier(IdentityType.ACI),
return requestDisconnection(account.getAccountIdentifier(),
account.getDevices().stream().map(Device::getId).toList());
}
@@ -7,9 +7,11 @@ package org.whispersystems.textsecuregcm.auth;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import java.util.Set;
public class ExternalServiceCredentialsSelector {
@@ -44,13 +46,13 @@ public class ExternalServiceCredentialsSelector {
* A credential is valid if it passes validation by the provided credentialsGenerator AND it is the most recent
* credential in the provided list for a username.
*
* @param tokens A list of credentials, potentially with different usernames
* @param tokens A set of credentials, potentially with different usernames
* @param credentialsGenerator To validate these credentials
* @param maxAgeSeconds The maximum allowable age of the credential
* @return A {@link CredentialInfo} for each provided token
* @return An unordered list of {@link CredentialInfo} for each provided token
*/
public static List<CredentialInfo> check(
final List<String> tokens,
final Set<String> tokens,
final ExternalServiceCredentialsGenerator credentialsGenerator,
final long maxAgeSeconds) {
@@ -10,6 +10,7 @@ import com.auth0.jwt.JWT;
import com.auth0.jwt.JWTCreator;
import com.auth0.jwt.algorithms.Algorithm;
import java.time.Clock;
import java.time.Duration;
import java.time.Instant;
import java.util.function.Consumer;
@@ -27,12 +28,13 @@ public class JwtGenerator {
this.clock = clock;
}
public String generateJwt(final String audience, final String subject, Consumer<JWTCreator.Builder> claimCustomizer) {
public String generateJwt(final String audience, final String subject, final Duration expiration, Consumer<JWTCreator.Builder> claimCustomizer) {
final Instant now = clock.instant();
JWTCreator.Builder builder = JWT.create()
.withAudience(audience)
.withSubject(subject)
.withIssuedAt(now);
.withIssuedAt(now)
.withExpiresAt(now.plus(expiration));
claimCustomizer.accept(builder);
return builder.sign(algorithm);
}
@@ -0,0 +1,29 @@
/*
* Copyright 2026 Signal Messenger, LLC
* SPDX-License-Identifier: AGPL-3.0-only
*/
package org.whispersystems.textsecuregcm.auth;
import javax.annotation.Nullable;
import org.whispersystems.textsecuregcm.auth.webauthn.AuthenticationCeremonyParameters;
import org.whispersystems.textsecuregcm.util.NoStackTraceException;
public class MfaFailureException extends NoStackTraceException {
private final @Nullable AuthenticationCeremonyParameters webAuthnParameters;
private final boolean hasTotp;
public MfaFailureException(@Nullable AuthenticationCeremonyParameters webAuthnParameters, boolean hasTotpKey) {
this.webAuthnParameters = webAuthnParameters;
this.hasTotp = hasTotpKey;
}
public @Nullable AuthenticationCeremonyParameters getWebAuthnParameters() {
return webAuthnParameters;
}
public boolean hasTotpKey() {
return hasTotp;
}
}
@@ -22,7 +22,7 @@ import org.whispersystems.textsecuregcm.entities.RegistrationServiceSession;
import org.whispersystems.textsecuregcm.registration.RegistrationServiceClient;
import org.whispersystems.textsecuregcm.spam.RegistrationRecoveryChecker;
import org.whispersystems.textsecuregcm.storage.PhoneNumberIdentifiers;
import org.whispersystems.textsecuregcm.storage.RegistrationRecoveryPasswordsManager;
import org.whispersystems.textsecuregcm.storage.PhoneNumberRecoveryPasswordsManager;
public class PhoneVerificationTokenManager {
@@ -33,16 +33,16 @@ public class PhoneVerificationTokenManager {
private final PhoneNumberIdentifiers phoneNumberIdentifiers;
private final RegistrationServiceClient registrationServiceClient;
private final RegistrationRecoveryPasswordsManager registrationRecoveryPasswordsManager;
private final PhoneNumberRecoveryPasswordsManager phoneNumberRecoveryPasswordsManager;
private final RegistrationRecoveryChecker registrationRecoveryChecker;
public PhoneVerificationTokenManager(final PhoneNumberIdentifiers phoneNumberIdentifiers,
final RegistrationServiceClient registrationServiceClient,
final RegistrationRecoveryPasswordsManager registrationRecoveryPasswordsManager,
final PhoneNumberRecoveryPasswordsManager phoneNumberRecoveryPasswordsManager,
final RegistrationRecoveryChecker registrationRecoveryChecker) {
this.phoneNumberIdentifiers = phoneNumberIdentifiers;
this.registrationServiceClient = registrationServiceClient;
this.registrationRecoveryPasswordsManager = registrationRecoveryPasswordsManager;
this.phoneNumberRecoveryPasswordsManager = phoneNumberRecoveryPasswordsManager;
this.registrationRecoveryChecker = registrationRecoveryChecker;
}
@@ -127,7 +127,7 @@ public class PhoneVerificationTokenManager {
final UUID phoneNumberIdentifier = phoneNumberIdentifiers.getPhoneNumberIdentifier(number)
.get(VERIFICATION_TIMEOUT_SECONDS, TimeUnit.SECONDS);
final boolean verified = registrationRecoveryPasswordsManager.verify(phoneNumberIdentifier, recoveryPassword);
final boolean verified = phoneNumberRecoveryPasswordsManager.verify(phoneNumberIdentifier, recoveryPassword);
if (!verified) {
throw new RecoveryPasswordVerificationFailedException();
@@ -14,13 +14,13 @@ import io.micrometer.core.instrument.Tag;
import io.micrometer.core.instrument.Tags;
import java.time.Duration;
import java.time.Instant;
import java.util.Collections;
import java.util.List;
import javax.annotation.Nullable;
import org.apache.commons.lang3.StringUtils;
import org.whispersystems.textsecuregcm.controllers.RateLimitExceededException;
import org.whispersystems.textsecuregcm.entities.PhoneVerificationRequest;
import org.whispersystems.textsecuregcm.entities.RegistrationLockFailure;
import org.whispersystems.textsecuregcm.identity.IdentityType;
import org.whispersystems.textsecuregcm.limits.RateLimiters;
import org.whispersystems.textsecuregcm.metrics.UserAgentTagUtil;
import org.whispersystems.textsecuregcm.push.NotPushRegisteredException;
@@ -28,7 +28,8 @@ import org.whispersystems.textsecuregcm.push.PushNotificationManager;
import org.whispersystems.textsecuregcm.storage.Account;
import org.whispersystems.textsecuregcm.storage.AccountsManager;
import org.whispersystems.textsecuregcm.storage.Device;
import org.whispersystems.textsecuregcm.storage.RegistrationRecoveryPasswordsManager;
import org.whispersystems.textsecuregcm.storage.PhoneNumberRecoveryPasswordsManager;
import software.amazon.awssdk.services.dynamodb.model.TransactWriteItem;
public class RegistrationLockVerificationManager {
public enum Flow {
@@ -54,20 +55,20 @@ public class RegistrationLockVerificationManager {
private final DisconnectionRequestManager disconnectionRequestManager;
private final ExternalServiceCredentialsGenerator svr2CredentialGenerator;
private final RateLimiters rateLimiters;
private final RegistrationRecoveryPasswordsManager registrationRecoveryPasswordsManager;
private final PhoneNumberRecoveryPasswordsManager phoneNumberRecoveryPasswordsManager;
private final PushNotificationManager pushNotificationManager;
public RegistrationLockVerificationManager(
final AccountsManager accounts,
final DisconnectionRequestManager disconnectionRequestManager,
final ExternalServiceCredentialsGenerator svr2CredentialGenerator,
final RegistrationRecoveryPasswordsManager registrationRecoveryPasswordsManager,
final PhoneNumberRecoveryPasswordsManager phoneNumberRecoveryPasswordsManager,
final PushNotificationManager pushNotificationManager,
final RateLimiters rateLimiters) {
this.accounts = accounts;
this.disconnectionRequestManager = disconnectionRequestManager;
this.svr2CredentialGenerator = svr2CredentialGenerator;
this.registrationRecoveryPasswordsManager = registrationRecoveryPasswordsManager;
this.phoneNumberRecoveryPasswordsManager = phoneNumberRecoveryPasswordsManager;
this.pushNotificationManager = pushNotificationManager;
this.rateLimiters = rateLimiters;
}
@@ -86,6 +87,9 @@ public class RegistrationLockVerificationManager {
final PhoneVerificationRequest.VerificationType phoneVerificationType
) throws RateLimitExceededException, RegistrationLockFailureException {
final String phoneNumber = account.getNumber()
.orElseThrow(() -> new IllegalArgumentException("account does not have a phone number"));
final Tags expiredTags = Tags.of(UserAgentTagUtil.getPlatformTag(userAgent),
Tag.of(REGISTRATION_LOCK_VERIFICATION_FLOW_TAG_NAME, flow.name()),
Tag.of(PHONE_VERIFICATION_TYPE_TAG_NAME, phoneVerificationType.name())
@@ -106,10 +110,9 @@ public class RegistrationLockVerificationManager {
}
if (StringUtils.isNotEmpty(clientRegistrationLock)) {
rateLimiters.getPinLimiter().validate(account.getNumber());
rateLimiters.getPinLimiter().validate(phoneNumber);
}
final String phoneNumber = account.getNumber();
final boolean registrationLockMatches = existingRegistrationLock.verify(clientRegistrationLock);
final boolean alreadyLocked = account.hasLockedCredentials();
@@ -136,12 +139,8 @@ public class RegistrationLockVerificationManager {
// Freezing the existing account credentials will definitively start the reglock timeout.
// Until the timeout, the current reglock can still be supplied,
// along with phone number verification, to restore access.
final Account updatedAccount;
if (!alreadyLocked) {
updatedAccount = accounts.update(account, Account::lockAuthTokenHash);
} else {
updatedAccount = account;
}
final List<TransactWriteItem> additionalWriteItems;
// The client often sends an empty registration lock token on the first request
// and sends an actual token if the server returns a 423 indicating that one is required.
@@ -150,11 +149,22 @@ public class RegistrationLockVerificationManager {
// This allows users to re-register via registration recovery password
// instead of always being forced to fall back to SMS verification.
if (!phoneVerificationType.equals(PhoneVerificationRequest.VerificationType.RECOVERY_PASSWORD) || clientRegistrationLock != null) {
registrationRecoveryPasswordsManager.remove(updatedAccount.getIdentifier(IdentityType.PNI));
additionalWriteItems = List.of(phoneNumberRecoveryPasswordsManager.buildTransactWriteItemForRemovePassword(account.getPhoneNumberIdentifier()
.orElseThrow(() -> new AssertionError("Account with a phone number did not have a phone number identifier"))));
} else {
additionalWriteItems = Collections.emptyList();
}
final Account updatedAccount = accounts.update(account.getAccountIdentifier(), a -> {
if (!a.hasLockedCredentials()) {
a.lockAuthTokenHash();
}
a.clearAccountRecoveryPassword();
}, additionalWriteItems);
final List<Byte> deviceIds = updatedAccount.getDevices().stream().map(Device::getId).toList();
disconnectionRequestManager.requestDisconnection(updatedAccount.getUuid(), deviceIds);
disconnectionRequestManager.requestDisconnection(updatedAccount.getAccountIdentifier(), deviceIds);
try {
// Send a push notification that prompts the client to attempt login and fail due to locked credentials
@@ -176,7 +186,7 @@ public class RegistrationLockVerificationManager {
if (!existingRegistrationLock.needsFailureCredentials()) {
return null;
}
return svr2CredentialGenerator.generateForUuid(account.getUuid());
return svr2CredentialGenerator.generateForUuid(account.getAccountIdentifier());
}
}
@@ -0,0 +1,16 @@
/*
* Copyright 2026 Signal Messenger, LLC
* SPDX-License-Identifier: AGPL-3.0-only
*/
package org.whispersystems.textsecuregcm.auth.webauthn;
import java.time.Duration;
import java.util.List;
/// Server-generated parameters for a freshly-initiated authentication ceremony.
public record AuthenticationCeremonyParameters(
byte[] challenge,
Duration timeout,
List<byte[]> allowedCredentialIds) {
}
@@ -0,0 +1,15 @@
/*
* Copyright 2026 Signal Messenger, LLC
* SPDX-License-Identifier: AGPL-3.0-only
*/
package org.whispersystems.textsecuregcm.auth.webauthn;
import java.util.List;
/// Server-generated parameters for a freshly-initiated registration ceremony.
public record RegistrationCeremonyParameters(
byte[] userHandle,
List<Long> allowedAlgorithms,
List<byte[]> excludedCredentialIds) {
}
@@ -0,0 +1,17 @@
/*
* Copyright 2026 Signal Messenger, LLC
* SPDX-License-Identifier: AGPL-3.0-only
*/
package org.whispersystems.textsecuregcm.auth.webauthn;
import com.webauthn4j.data.attestation.authenticator.AttestedCredentialData;
import com.webauthn4j.data.client.CollectedClientData;
/// Results of a registration ceremony for persisting.
public record RegistrationCeremonyResult(
AttestedCredentialData attestedCredentialData,
CollectedClientData collectedClientData,
long signCount
) {
}
@@ -0,0 +1,27 @@
/*
* Copyright 2026 Signal Messenger, LLC
* SPDX-License-Identifier: AGPL-3.0-only
*/
package org.whispersystems.textsecuregcm.auth.webauthn;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import io.swagger.v3.oas.annotations.media.Schema;
import org.whispersystems.textsecuregcm.util.ByteArrayAdapter;
import java.util.List;
public record WebAuthnAuthenticationParameters(
@Schema(description = "The authentication ceremony challenge.")
@JsonDeserialize(using = ByteArrayAdapter.Deserializing.class)
@JsonSerialize(using = ByteArrayAdapter.Serializing.class)
byte[] challenge,
@Schema(description = "The number of seconds the challenge will be valid.")
long timeoutSeconds,
@Schema(description = "A list of authenticators previously registered to the account.")
@JsonDeserialize(contentUsing = ByteArrayAdapter.Deserializing.class)
@JsonSerialize(contentUsing = ByteArrayAdapter.Serializing.class)
List<byte[]> allowedCredentialIds) {}
@@ -0,0 +1,234 @@
/*
* Copyright 2026 Signal Messenger, LLC
* SPDX-License-Identifier: AGPL-3.0-only
*/
package org.whispersystems.textsecuregcm.auth.webauthn;
import com.google.common.annotations.VisibleForTesting;
import com.webauthn4j.WebAuthnManager;
import com.webauthn4j.credential.CredentialRecord;
import com.webauthn4j.data.AuthenticationData;
import com.webauthn4j.data.AuthenticationParameters;
import com.webauthn4j.data.PublicKeyCredentialParameters;
import com.webauthn4j.data.PublicKeyCredentialType;
import com.webauthn4j.data.RegistrationData;
import com.webauthn4j.data.RegistrationParameters;
import com.webauthn4j.data.RegistrationRequest;
import com.webauthn4j.data.attestation.statement.COSEAlgorithmIdentifier;
import com.webauthn4j.data.client.Origin;
import com.webauthn4j.server.ServerProperty;
import com.webauthn4j.util.exception.WebAuthnException;
import com.webauthn4j.verifier.exception.BadChallengeException;
import com.webauthn4j.verifier.exception.VerificationException;
import io.lettuce.core.SetArgs;
import java.nio.charset.StandardCharsets;
import java.security.SecureRandom;
import java.time.Duration;
import java.util.Arrays;
import java.util.List;
import java.util.Set;
import java.util.UUID;
import java.util.stream.Collectors;
import javax.annotation.Nullable;
import org.whispersystems.textsecuregcm.redis.FaultTolerantRedisClusterClient;
import org.whispersystems.textsecuregcm.util.HmacUtils;
import org.whispersystems.textsecuregcm.util.ResilienceUtil;
import org.whispersystems.textsecuregcm.util.UUIDUtil;
import tools.jackson.core.JacksonException;
/// Handles WebAuthn registration and authentication operations.
public class WebAuthnCeremonyManager {
/// [relying party ID - WebAuthn TR](https://www.w3.org/TR/webauthn/#relying-party-identifier)
private final String rpId;
/// [origin - WebAuthn TR](https://www.w3.org/TR/webauthn/#dom-collectedclientdata-origin)
private final Set<Origin> origins;
private final byte[] blindingSecret;
private final Duration challengeTtl;
private final FaultTolerantRedisClusterClient challengeStorageCluster;
private final WebAuthnManager webAuthnManager;
private static final String RETRY_NAME = ResilienceUtil.name(WebAuthnCeremonyManager.class);
/// Ed25519 support is fairly limited, while ES256 is broadly supported
private static final List<PublicKeyCredentialParameters> ALLOWED_WEBAUTHN_CREDENTIAL_ALGORITHMS = List.of(
new PublicKeyCredentialParameters(PublicKeyCredentialType.PUBLIC_KEY, COSEAlgorithmIdentifier.Ed25519),
new PublicKeyCredentialParameters(PublicKeyCredentialType.PUBLIC_KEY, COSEAlgorithmIdentifier.ES256)
);
private static final SecureRandom SECURE_RANDOM = new SecureRandom();
public WebAuthnCeremonyManager(final String rpId, final List<String> origins, final Duration challengeTtl, final byte[] blindingSecret,
final FaultTolerantRedisClusterClient challengeStorageCluster) {
this.rpId = rpId;
this.origins = origins.stream().map(Origin::new).collect(Collectors.toSet());
this.challengeTtl = challengeTtl;
this.blindingSecret = blindingSecret;
this.challengeStorageCluster = challengeStorageCluster;
this.webAuthnManager = WebAuthnManager.createNonStrictWebAuthnManager();
}
/// Initiates a WebAuthn registration ceremony
///
/// @param identifier The account identifier
///
/// @param existingCredentials a list of already-stored credential records for the user; their IDs
/// will be provided to the client to help prevent registering a duplicate ID on the same
/// authenticator
///
/// @return parameters the client must use for its step in the registration ceremony. `identifier` will be blinded, so
/// that it is a [non-identifiable user handle](https://www.w3.org/TR/webauthn/#sctn-user-handle-privacy)
public RegistrationCeremonyParameters startRegistration(final UUID identifier, final List<? extends CredentialRecord> existingCredentials) {
return new RegistrationCeremonyParameters(
blindIdentifier(identifier),
ALLOWED_WEBAUTHN_CREDENTIAL_ALGORITHMS.stream().map(pkcp -> pkcp.getAlg().getValue()).toList(),
existingCredentials.stream().map(credentialRecord -> credentialRecord.getAttestedCredentialData().getCredentialId()).toList()
);
}
/// Verifies that the supplied authenticator response components form a
/// valid WebAuthn registration ceremony with acceptable parameters.
///
/// @param serializedAttestationObject the "attestation object" from the authenticator response,
/// serialized in the format specified by the WebAuthn TR. Its attestation format must be `none`
/// and any attestation statement must have been cleared to mitigate privacy risks.
///
/// @param collectedClientDataJson the "collected client data" from the authenticator response,
/// serialized in the [format specified by the WebAuthn TR](https://www.w3.org/TR/webauthn/#sctn-generating-an-attestation-object)
///
/// @return a record that can be stored for future authentication.
///
/// @throws WebAuthnException if the supplied authenticator response is
/// invalid for any reason (structurally or due to selecting unacceptable
/// parameters, for example an unsupported signature algorithm)
public RegistrationCeremonyResult verifyRegistration(
final byte[] serializedAttestationObject, final String collectedClientDataJson) throws WebAuthnException {
final RegistrationData registrationData;
try {
registrationData = webAuthnManager.parse(
new RegistrationRequest(serializedAttestationObject, collectedClientDataJson.getBytes(StandardCharsets.UTF_8)));
} catch (final JacksonException e) {
throw new WebAuthnException(e);
}
// These shouldn't ever be null, because the upstream RPC inputs are not nullable. However, the fields are annotated as
// nullable.
if (registrationData.getAttestationObject() == null) {
throw new WebAuthnException("Attestation object must not be null");
}
if (registrationData.getCollectedClientData() == null) {
throw new WebAuthnException("Collected client data must not be null");
}
if (!"none".equals(registrationData.getAttestationObject().getAttestationStatement().getFormat())) {
// Refuse any attestations; clients must clear them to prevent sharing information we don't want to store
throw new WebAuthnException("attestation format must be 'none'");
}
final ServerProperty serverProperties = ServerProperty.builder()
// we aren't verifying any signatures for registration, so we don't need to bother saving a
// challenge; accept whatever is supplied
.challenge(registrationData.getCollectedClientData().getChallenge())
.origins(origins)
.rpId(rpId)
.build();
webAuthnManager.verify(registrationData,
new RegistrationParameters(serverProperties, ALLOWED_WEBAUTHN_CREDENTIAL_ALGORITHMS, false, true));
return new RegistrationCeremonyResult(
registrationData.getAttestationObject().getAuthenticatorData().getAttestedCredentialData(),
registrationData.getCollectedClientData(),
registrationData.getAttestationObject().getAuthenticatorData().getSignCount());
}
/// Initiates a WebAuthn authentication ceremony.
///
/// Each call generates, and replaces any existing, [challenge](https://www.w3.org/TR/webauthn/#sctn-cryptographic-challenges).
///
/// @param identifier the identifier of the account to be authenticated
/// @param existingCredentials a list of stored credential records for the user being authenticated
///
/// @return a [AuthenticationCeremonyParameters] record with the details
/// needed by a client in possession of a matching authenticator to complete
/// the ceremony
public AuthenticationCeremonyParameters startAuthentication(final UUID identifier, List<? extends CredentialRecord> existingCredentials) {
final byte[] challengeKey = challengeKey(identifier);
final byte[] challenge = new byte[16];
SECURE_RANDOM.nextBytes(challenge);
ResilienceUtil.getGeneralRedisRetry(RETRY_NAME)
.executeRunnable(
() -> challengeStorageCluster.withBinaryCluster(cluster -> cluster.sync().set(challengeKey, challenge, SetArgs.Builder.ex(challengeTtl.toSeconds()))));
return new AuthenticationCeremonyParameters(
challenge,
challengeTtl,
existingCredentials.stream().map(cr -> cr.getAttestedCredentialData().getCredentialId()).toList());
}
/// Parses an authenticator response JSON blob, whose format is specified in the WebAuthn Technical Report
public AuthenticationData parseAuthenticationResponse(final String authenticationResponseJson) throws WebAuthnException {
try {
return webAuthnManager.parseAuthenticationResponseJSON(authenticationResponseJson);
} catch (final NullPointerException | JacksonException e) {
throw new WebAuthnException(e);
}
}
/// Verifies an authenticator response to a WebAuthn authentication ceremony, consuming any existing stored challenge.
///
/// If verification succeeds, the `CredentialRecord` is [updated in-place](https://www.w3.org/TR/webauthn-3/#authn-ceremony-update-credential-record).
///
/// @param identifier the identifier of the account to be authenticated
/// @param matchingCredential the stored credential record for the account to be authenticated with an ID matching the one from the authenticator response
/// @param authenticationData the parsed authenticator response
///
///
/// @throws VerificationException if the response could not be verified for any reason (incorrect signature, incorrect or expired challenge)
public void verifyAuthentication(
final UUID identifier,
final CredentialRecord matchingCredential,
final AuthenticationData authenticationData) throws VerificationException {
final byte[] challengeKey = challengeKey(identifier);
@Nullable final byte[] challenge = ResilienceUtil.getGeneralRedisRetry(RETRY_NAME)
.executeSupplier(() -> challengeStorageCluster.withBinaryCluster(cluster -> cluster.sync().getdel(challengeKey)));
//noinspection ConstantValue
if (challenge == null) {
throw new BadChallengeException("no challenge stored");
}
final byte[] credentialId = matchingCredential.getAttestedCredentialData().getCredentialId();
final AuthenticationParameters authenticationParameters = new AuthenticationParameters(
ServerProperty.builder()
.origins(origins)
.rpId(rpId)
.challenge(() -> challenge)
.build(),
matchingCredential,
List.of(credentialId),
false,
true);
webAuthnManager.verify(authenticationData, authenticationParameters);
}
/// @return `true` if [CredentialRecord]s represent the same actual credential ID. Note that this is more specific than
/// whether they came from the same authenticator device, which cannot be determined in general.
public static boolean isSameCredential(final CredentialRecord a, final CredentialRecord b) {
return Arrays.equals(a.getAttestedCredentialData().getCredentialId(), b.getAttestedCredentialData().getCredentialId());
}
@VisibleForTesting
static byte[] challengeKey(final UUID identifier) {
return String.format("webauthn_challenge::{%s}", identifier).getBytes(StandardCharsets.UTF_8);
}
private byte[] blindIdentifier(final UUID identifier) {
return HmacUtils.hmac256Truncated(blindingSecret, UUIDUtil.toBytes(identifier), 32);
}
}
@@ -136,11 +136,11 @@ public class BackupAuthManager {
}
if (requiresMessageRotation) {
rateLimiters.forDescriptor(RateLimiters.For.SET_BACKUP_ID).validate(account.getUuid());
rateLimiters.forDescriptor(RateLimiters.For.SET_BACKUP_ID).validate(account.getAccountIdentifier());
}
if (requiresMediaRotation && hasActiveVoucher(account)) {
rateLimiters.forDescriptor(RateLimiters.For.SET_PAID_MEDIA_BACKUP_ID).validate(account.getUuid());
rateLimiters.forDescriptor(RateLimiters.For.SET_PAID_MEDIA_BACKUP_ID).validate(account.getAccountIdentifier());
}
this.accountsManager.update(account, a ->
@@ -156,9 +156,9 @@ public class BackupAuthManager {
final boolean isPaid = hasActiveVoucher(account);
final CompletionStage<Boolean> hasSetMessagesPermits =
messagesLimiter.hasAvailablePermitsAsync(account.getUuid(), 1);
messagesLimiter.hasAvailablePermitsAsync(account.getAccountIdentifier(), 1);
final CompletionStage<Boolean> hasSetMediaPermits = isPaid
? mediaLimiter.hasAvailablePermitsAsync(account.getUuid(), 1)
? mediaLimiter.hasAvailablePermitsAsync(account.getAccountIdentifier(), 1)
: CompletableFuture.completedFuture(true);
return hasSetMessagesPermits.thenCombine(hasSetMediaPermits, (hasMessage, hasMedia) -> {
@@ -266,7 +266,7 @@ public class BackupAuthManager {
}
boolean receiptAllowed = redeemedReceiptsManager
.put(receiptSerial, receiptExpiration.getEpochSecond(), receiptLevel, account.getUuid());
.put(receiptSerial, receiptExpiration, receiptLevel, account.getAccountIdentifier());
if (!receiptAllowed) {
throw new BackupBadReceiptException("receipt serial is already redeemed");
}
@@ -342,7 +342,7 @@ public class BackupAuthManager {
* BackupVoucher.
*/
private BackupLevel configuredBackupLevel(final Account account) {
return this.experimentEnrollmentManager.isEnrolled(account.getUuid(), BACKUP_MEDIA_EXPERIMENT_NAME)
return this.experimentEnrollmentManager.isEnrolled(account.getAccountIdentifier(), BACKUP_MEDIA_EXPERIMENT_NAME)
? BackupLevel.PAID
: BackupLevel.FREE;
}
@@ -59,6 +59,8 @@ public class BackupManager {
static final String MESSAGE_BACKUP_NAME = "messageBackup";
private static final int DEFAULT_LIST_MEDIA_LIMIT = 1000;
private static final String ZK_AUTHN_COUNTER_NAME = MetricsUtil.name(BackupManager.class, "authentication");
private static final String ZK_AUTHZ_FAILURE_COUNTER_NAME = MetricsUtil.name(BackupManager.class,
"authorizationFailure");
@@ -458,17 +460,19 @@ public class BackupManager {
*
* @param backupUser An already ZK authenticated backup user
* @param cursor A cursor returned by a previous call that can be used to resume listing
* @param limit The maximum number of list results to return
* @param limit The maximum number of list results to return, or empty to use
* {@link #DEFAULT_LIST_MEDIA_LIMIT}
* @return A {@link ListMediaResult}
* @throws BackupPermissionException if the credential does not have the correct level
*/
public ListMediaResult list(
final AuthenticatedBackupUser backupUser,
final Optional<String> cursor,
final int limit) throws BackupPermissionException {
final Optional<Integer> limit) throws BackupPermissionException {
checkBackupLevel(backupUser, BackupLevel.FREE);
final RemoteStorageManager.ListResult result =
remoteStorageManager.list(cdnMediaDirectory(backupUser), cursor, limit).toCompletableFuture().join();
final RemoteStorageManager.ListResult result = remoteStorageManager
.list(cdnMediaDirectory(backupUser), cursor, limit.orElse(DEFAULT_LIST_MEDIA_LIMIT))
.toCompletableFuture().join();
return new ListMediaResult(result
.objects()
.stream()
@@ -5,25 +5,27 @@
package org.whispersystems.textsecuregcm.backup;
import java.nio.charset.StandardCharsets;
import java.time.Clock;
import java.time.Duration;
import java.util.Base64;
import java.util.Map;
import org.apache.http.HttpHeaders;
import org.whispersystems.textsecuregcm.attachments.TusConfiguration;
import org.whispersystems.textsecuregcm.auth.JwtGenerator;
import org.whispersystems.textsecuregcm.util.HeaderUtils;
import java.nio.charset.StandardCharsets;
import java.time.Clock;
import java.util.Base64;
import java.util.Map;
public class Cdn3BackupCredentialGenerator {
public static final String CDN_PATH = "backups";
public static final int BACKUP_CDN = 3;
private final String tusUri;
private final Duration tokenExpiration;
private final JwtGenerator jwtGenerator;
public Cdn3BackupCredentialGenerator(final TusConfiguration cfg) {
this.tusUri = cfg.uploadUri();
this.tokenExpiration = cfg.tokenExpiration();
this.jwtGenerator = new JwtGenerator(cfg.userAuthenticationTokenSharedSecret().value(), Clock.systemUTC());
}
@@ -32,7 +34,7 @@ public class Cdn3BackupCredentialGenerator {
throw new IllegalArgumentException("Upload descriptors must have non-empty keys");
}
final String token = jwtGenerator.generateJwt(CDN_PATH, key, builder -> builder
final String token = jwtGenerator.generateJwt(CDN_PATH, key, tokenExpiration, builder -> builder
.withClaim(JwtGenerator.MAX_LENGTH_CLAIM_KEY, uploadSize)
.withClaim(JwtGenerator.SCOPE_CLAIM_KEY, "write"));
@@ -53,7 +55,7 @@ public class Cdn3BackupCredentialGenerator {
throw new IllegalArgumentException("Backup subdir name must be non-empty");
}
final String token = jwtGenerator.generateJwt(CDN_PATH, hashedBackupId, builder -> builder
final String token = jwtGenerator.generateJwt(CDN_PATH, hashedBackupId, tokenExpiration, builder -> builder
.withClaim(JwtGenerator.SCOPE_CLAIM_KEY, "read"));
return Map.of(HttpHeaders.AUTHORIZATION, HeaderUtils.bearerAuthHeader(token));
}
@@ -42,6 +42,7 @@ public class Cdn3RemoteStorageManager implements RemoteStorageManager {
private final String clientId;
private final String clientSecret;
private final Map<Integer, String> sourceSchemes;
private final Duration usageRequestTimeout;
static final String CLIENT_ID_HEADER = "CF-Access-Client-Id";
static final String CLIENT_SECRET_HEADER = "CF-Access-Client-Secret";
@@ -75,6 +76,7 @@ public class Cdn3RemoteStorageManager implements RemoteStorageManager {
.withNumClients(configuration.numHttpClients())
.build();
this.sourceSchemes = configuration.sourceSchemes();
this.usageRequestTimeout = configuration.usageRequestTimeout();
}
@Override
@@ -231,6 +233,7 @@ public class Cdn3RemoteStorageManager implements RemoteStorageManager {
HttpUtils.queryParamString(Map.of("prefix", prefix).entrySet()))))
.header(CLIENT_ID_HEADER, clientId)
.header(CLIENT_SECRET_HEADER, clientSecret)
.timeout(usageRequestTimeout)
.build();
return this.storageManagerHttpClient.sendAsync(request, HttpResponse.BodyHandlers.ofInputStream())
.thenApply(response -> {
@@ -9,7 +9,6 @@ import static org.whispersystems.textsecuregcm.metrics.MetricsUtil.name;
import com.google.common.annotations.VisibleForTesting;
import io.micrometer.core.instrument.Metrics;
import jakarta.ws.rs.BadRequestException;
import java.io.IOException;
import java.util.Locale;
import java.util.Optional;
@@ -19,6 +18,8 @@ import java.util.function.Function;
import javax.annotation.Nullable;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.whispersystems.textsecuregcm.configuration.dynamic.DynamicConfiguration;
import org.whispersystems.textsecuregcm.storage.DynamicConfigurationManager;
public class CaptchaChecker {
private static final Logger logger = LoggerFactory.getLogger(CaptchaChecker.class);
@@ -33,12 +34,15 @@ public class CaptchaChecker {
private final ShortCodeExpander shortCodeExpander;
private final Function<String, CaptchaClient> captchaClientSupplier;
private final DynamicConfigurationManager<DynamicConfiguration> dynamicConfigurationManager;
public CaptchaChecker(
final ShortCodeExpander shortCodeRetriever,
final Function<String, CaptchaClient> captchaClientSupplier) {
final Function<String, CaptchaClient> captchaClientSupplier,
final DynamicConfigurationManager<DynamicConfiguration> dynamicConfigurationManager) {
this.shortCodeExpander = shortCodeRetriever;
this.captchaClientSupplier = captchaClientSupplier;
this.dynamicConfigurationManager = dynamicConfigurationManager;
}
@@ -94,23 +98,32 @@ public class CaptchaChecker {
});
if (!parsedAction.equals(expectedAction)) {
Metrics.counter(INVALID_ACTION_COUNTER_NAME, "action", action).increment();
Metrics.counter(INVALID_ACTION_COUNTER_NAME, "action", parsedAction.getActionName()).increment();
throw new InvalidCaptchaArgumentException("invalid captcha action");
}
final Set<String> allowedSiteKeys = client.validSiteKeys(parsedAction);
if (!allowedSiteKeys.contains(siteKey)) {
logger.debug("invalid site-key {}, action={}, token={}", siteKey, action, token);
Metrics.counter(INVALID_SITEKEY_COUNTER_NAME, "action", action).increment();
logger.debug("invalid site-key {}, action={}", siteKey, parsedAction.getActionName());
Metrics.counter(INVALID_SITEKEY_COUNTER_NAME, "action", parsedAction.getActionName()).increment();
throw new InvalidCaptchaArgumentException("invalid captcha site-key");
}
final AssessmentResult result = client.verify(maybeAci, siteKey, parsedAction, token, ip, userAgent);
Metrics.counter(ASSESSMENTS_COUNTER_NAME,
"action", action,
"score", result.getScoreString(),
"provider", provider)
.increment();
return result;
try {
final AssessmentResult result = client.verify(maybeAci, siteKey, parsedAction, token, ip, userAgent);
Metrics.counter(ASSESSMENTS_COUNTER_NAME,
"action", parsedAction.getActionName(),
"score", result.getScoreString(),
"provider", provider)
.increment();
return result;
} catch (final IOException | RuntimeException e) {
if (dynamicConfigurationManager.getConfiguration().getCaptchaConfiguration().isFailOpen()) {
logger.warn("Failed to verify captcha; failing open", e);
return AssessmentResult.alwaysValid();
}
throw e;
}
}
}
@@ -6,12 +6,12 @@
package org.whispersystems.textsecuregcm.configuration;
import com.apple.itunes.storekit.model.Environment;
import jakarta.validation.Valid;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import java.util.List;
import java.util.Map;
import org.whispersystems.textsecuregcm.configuration.secrets.SecretString;
import org.whispersystems.textsecuregcm.purchases.ReceiptLevel;
import javax.annotation.Nullable;
/**
@@ -38,7 +38,7 @@ public record AppleAppStoreConfiguration(
@NotBlank String keyId,
@NotNull SecretString encodedKey,
@NotBlank String subscriptionGroupId,
@NotNull Map<String, Long> productIdToLevel,
@NotNull Map<String, ReceiptLevel> productIdToLevel,
@NotNull List<@NotBlank String> appleRootCerts,
@Nullable String retryConfigurationName) {
}
@@ -13,6 +13,7 @@ import com.fasterxml.jackson.annotation.Nulls;
import io.dropwizard.validation.ValidationMethod;
import jakarta.validation.Valid;
import jakarta.validation.constraints.NotNull;
import org.whispersystems.textsecuregcm.purchases.ReceiptLevel;
import java.util.List;
import java.util.Map;
import java.util.Objects;
@@ -21,12 +22,12 @@ import java.util.stream.Collectors;
public class BadgesConfiguration {
private final List<BadgeConfiguration> badges;
private final Map<Long, String> receiptLevels;
private final Map<ReceiptLevel, String> receiptLevels;
@JsonCreator
public BadgesConfiguration(
@JsonProperty("badges") @JsonSetter(nulls = Nulls.AS_EMPTY) final List<BadgeConfiguration> badges,
@JsonProperty("receiptLevels") @JsonSetter(nulls = Nulls.AS_EMPTY) final Map<Long, String> receiptLevels) {
@JsonProperty("receiptLevels") @JsonSetter(nulls = Nulls.AS_EMPTY) final Map<ReceiptLevel, String> receiptLevels) {
this.badges = Objects.requireNonNull(badges);
this.receiptLevels = Objects.requireNonNull(receiptLevels);
}
@@ -39,7 +40,7 @@ public class BadgesConfiguration {
@Valid
@NotNull
public Map<Long, String> getReceiptLevels() {
public Map<ReceiptLevel, String> getReceiptLevels() {
return receiptLevels;
}
@@ -13,7 +13,7 @@ import java.util.Map;
import java.util.Set;
import javax.annotation.Nullable;
import org.whispersystems.textsecuregcm.configuration.secrets.SecretString;
import org.whispersystems.textsecuregcm.subscriptions.PaymentMethod;
import org.whispersystems.textsecuregcm.purchases.PaymentMethod;
/**
* @param merchantId the Braintree merchant ID
@@ -0,0 +1,45 @@
/*
* Copyright 2026 Signal Messenger, LLC
* SPDX-License-Identifier: AGPL-3.0-only
*/
package org.whispersystems.textsecuregcm.configuration;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.github.resilience4j.bulkhead.BulkheadConfig;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import java.time.Duration;
public class BulkheadConfiguration {
@JsonProperty
@Min(1)
private int maxConcurrentCalls = BulkheadConfig.DEFAULT_MAX_CONCURRENT_CALLS;
@JsonProperty
@NotNull
private Duration maxWaitDuration = BulkheadConfig.DEFAULT_MAX_WAIT_DURATION;
public int getMaxConcurrentCalls() {
return maxConcurrentCalls;
}
public void setMaxConcurrentCalls(final int maxConcurrentCalls) {
this.maxConcurrentCalls = maxConcurrentCalls;
}
public Duration getMaxWaitDuration() {
return maxWaitDuration;
}
public void setMaxWaitDuration(final Duration maxWaitDuration) {
this.maxWaitDuration = maxWaitDuration;
}
public BulkheadConfig.Builder toBulkheadConfig() {
return BulkheadConfig.custom()
.maxConcurrentCalls(maxConcurrentCalls)
.maxWaitDuration(maxWaitDuration);
}
}
@@ -2,6 +2,7 @@ package org.whispersystems.textsecuregcm.configuration;
import jakarta.validation.Valid;
import jakarta.validation.constraints.NotNull;
import java.time.Duration;
import java.util.Collections;
import java.util.Map;
import org.whispersystems.textsecuregcm.configuration.secrets.SecretString;
@@ -21,6 +22,8 @@ import javax.annotation.Nullable;
* client; if `null`, uses the global default configuration
* @param retryConfigurationName The name of a retry configuration for the storage-manager http client; if
* `null`, uses the global default configuration
* @param usageRequestTimeout The per-attempt request timeout for usage requests to the storage-manager; if
* `null`, defaults to 5 minutes
*/
public record Cdn3StorageManagerConfiguration(
@NotNull String baseUri,
@@ -29,7 +32,8 @@ public record Cdn3StorageManagerConfiguration(
@NotNull Map<Integer, String> sourceSchemes,
@NotNull Integer numHttpClients,
@Nullable String circuitBreakerConfigurationName,
@Nullable String retryConfigurationName) {
@Nullable String retryConfigurationName,
@NotNull Duration usageRequestTimeout) {
public Cdn3StorageManagerConfiguration {
if (numHttpClients == null) {
@@ -38,5 +42,8 @@ public record Cdn3StorageManagerConfiguration(
if (sourceSchemes == null) {
sourceSchemes = Collections.emptyMap();
}
if (usageRequestTimeout == null) {
usageRequestTimeout = Duration.ofMinutes(5);
}
}
}
@@ -10,6 +10,5 @@ import java.time.Duration;
* Configuration for Device Check operations
*
* @param backupRedemptionDuration How long to grant backup access for redemptions via device check
* @param backupRedemptionLevel What backup level to grant redemptions via device check
*/
public record DeviceCheckConfiguration(Duration backupRedemptionDuration, long backupRedemptionLevel) {}
public record DeviceCheckConfiguration(Duration backupRedemptionDuration) {}
@@ -69,10 +69,11 @@ public class DynamoDbTables {
private final Table profilesV2;
private final Table pushChallenge;
private final Table pushNotificationExperimentSamples;
private final TableWithExpiration redeemedReceipts;
private final Table redeemedReceipts;
private final TableWithExpiration registrationRecovery;
private final Table remoteConfig;
private final Table reportMessage;
private final Table sandboxAccounts;
private final TableWithExpiration scheduledJobs;
private final Table subscriptions;
private final Table verificationSessions;
@@ -100,10 +101,11 @@ public class DynamoDbTables {
@JsonProperty("profilesV2") final Table profilesV2,
@JsonProperty("pushChallenge") final Table pushChallenge,
@JsonProperty("pushNotificationExperimentSamples") final Table pushNotificationExperimentSamples,
@JsonProperty("redeemedReceipts") final TableWithExpiration redeemedReceipts,
@JsonProperty("redeemedReceipts") final Table redeemedReceipts,
@JsonProperty("registrationRecovery") final TableWithExpiration registrationRecovery,
@JsonProperty("remoteConfig") final Table remoteConfig,
@JsonProperty("reportMessage") final Table reportMessage,
@JsonProperty("sandboxAccounts") final Table sandboxAccounts,
@JsonProperty("scheduledJobs") final TableWithExpiration scheduledJobs,
@JsonProperty("subscriptions") final Table subscriptions,
@JsonProperty("verificationSessions") final Table verificationSessions) {
@@ -134,6 +136,7 @@ public class DynamoDbTables {
this.registrationRecovery = registrationRecovery;
this.remoteConfig = remoteConfig;
this.reportMessage = reportMessage;
this.sandboxAccounts = sandboxAccounts;
this.scheduledJobs = scheduledJobs;
this.subscriptions = subscriptions;
this.verificationSessions = verificationSessions;
@@ -273,7 +276,7 @@ public class DynamoDbTables {
@NotNull
@Valid
public TableWithExpiration getRedeemedReceipts() {
public Table getRedeemedReceipts() {
return redeemedReceipts;
}
@@ -295,6 +298,12 @@ public class DynamoDbTables {
return reportMessage;
}
@NotNull
@Valid
public Table getSandboxAccounts() {
return sandboxAccounts;
}
@NotNull
@Valid
public TableWithExpiration getScheduledJobs() {
@@ -0,0 +1,22 @@
/*
* Copyright 2026 Signal Messenger, LLC
* SPDX-License-Identifier: AGPL-3.0-only
*/
package org.whispersystems.textsecuregcm.configuration;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.PositiveOrZero;
import java.util.List;
import java.util.Optional;
/// Configuration for FoundationDB external clients. Primarily exists because an external client must be specified to
/// make use of the multi-threaded client feature.
///
/// @param clientLibraryPaths a list of paths to external client libraries (generally .so files on Linux). This allows
/// us to run multiple FDB client versions concurrently if needed; however, during normal operation, we expect the list
/// to be a single path pointing to the current FDB client library
/// @param threadsPerClient the number of networking threads spawned per client
public record FoundationDbExternalClientConfiguration(@NotEmpty List<@NotBlank String> clientLibraryPaths,
Optional<@PositiveOrZero Integer> threadsPerClient) {}
@@ -5,26 +5,43 @@
package org.whispersystems.textsecuregcm.configuration;
import jakarta.annotation.Nullable;
import jakarta.validation.Valid;
import jakarta.validation.constraints.AssertTrue;
import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.PositiveOrZero;
import jakarta.validation.constraints.Size;
import java.time.Duration;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import org.whispersystems.textsecuregcm.configuration.secrets.SecretBytes;
import org.whispersystems.textsecuregcm.storage.foundationdb.FoundationDbMessageStore;
/// @param transactionTimeout the time limit for a transaction, which may [contain multiple tries](https://forums.foundationdb.org/t/defaults-for-transaction-timeouts-and-retries/315/2).
/// Note that this is independent of the FoundationDB server’s transaction hard limit of 5 seconds.
/// @param transactionRetryLimit the maximum number of retries permitted _within_ a transaction
/// @param batchPriorityTransactionTimeout the maximum time for a batch priority transaction. Should be greater than or equal to {@link transactionTimeout}
/// @param batchPriorityTransactionRetryLimit the maximum number of retries permitted _within_ a batch priority transaction
public record FoundationDbMessagesConfiguration(@NotEmpty Map<String, @Valid FoundationDbDatabaseFactory> clusters,
@NotEmpty Map<@PositiveOrZero @Max(FoundationDbMessageStore.MAX_EPOCHS - 1) Integer, @Size(min = 1, max = FoundationDbMessageStore.MAX_SHARDS - 1) List<String>> epochs,
@NotEmpty Map<@PositiveOrZero @Max(FoundationDbMessageStore.MAX_EPOCHS - 1) Integer, @Size(min = 1, max = FoundationDbMessageStore.MAX_SHARDS) List<String>> epochs,
@PositiveOrZero @Max(FoundationDbMessageStore.MAX_EPOCHS - 1) int activeEpoch,
@NotEmpty Map<@PositiveOrZero @Max(63) Integer, SecretBytes> versionstampCipherKeys,
@PositiveOrZero @Max(63) int currentVersionstampCipherKey,
@PositiveOrZero @Max(1_000_000) long maxWatchesPerClient) {
@PositiveOrZero @Max(1_000_000) long maxWatchesPerClient,
@NotNull Duration transactionTimeout,
@PositiveOrZero long transactionRetryLimit,
@NotNull Duration batchPriorityTransactionTimeout,
@PositiveOrZero long batchPriorityTransactionRetryLimit,
@Nullable String circuitBreakerConfigurationName,
@Nullable String bulkheadConfigurationName,
@Nullable @Valid FoundationDbExternalClientConfiguration externalClientConfiguration) {
public static final long DEFAULT_MAX_WATCHES_PER_CLIENT = 10_000;
public static final Duration DEFAULT_TRANSACTION_TIMEOUT = Duration.ofSeconds(1);
public static final long DEFAULT_TRANSACTION_RETRY_LIMIT = 3;
@AssertTrue
boolean isEveryEpochClusterConfigured() {
@@ -8,7 +8,7 @@ package org.whispersystems.textsecuregcm.configuration;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import java.util.Map;
import org.whispersystems.textsecuregcm.configuration.secrets.SecretString;
import org.whispersystems.textsecuregcm.purchases.ReceiptLevel;
/**
* @param credentialsJson Service account credentials for Play Billing API
@@ -21,4 +21,4 @@ public record GooglePlayBillingConfiguration(
@NotBlank String credentialsJson,
@NotNull String packageName,
@NotBlank String applicationName,
@NotNull Map<String, Long> productIdToLevel) {}
@NotNull Map<String, ReceiptLevel> productIdToLevel) {}
@@ -4,6 +4,7 @@
*/
package org.whispersystems.textsecuregcm.configuration;
import io.netty.handler.ssl.SslProvider;
import jakarta.validation.constraints.NotNull;
import java.time.Duration;
@@ -15,13 +16,15 @@ import java.time.Duration;
/// @param websocketPort The port of a listening websocket server for handling legacy requests
/// @param idleTimeout The duration after which an idle connection may be disconnected
/// @param h2c If true, listen for plaintext h2c with prior-knowledge
/// @param sslProvider The TLS implementation used to terminate TLS. Defaults to `OPENSSL`.
public record GrpcConfiguration(
@NotNull String bindAddress,
@NotNull Integer port,
@NotNull String websocketAddress,
@NotNull Integer websocketPort,
@NotNull Duration idleTimeout,
boolean h2c) {
boolean h2c,
@NotNull SslProvider sslProvider) {
public GrpcConfiguration {
if (bindAddress == null || bindAddress.isEmpty()) {
@@ -33,5 +36,8 @@ public record GrpcConfiguration(
if (idleTimeout == null) {
idleTimeout = Duration.ofMinutes(5);
}
if (sslProvider == null) {
sslProvider = SslProvider.OPENSSL;
}
}
}
@@ -7,29 +7,25 @@ package org.whispersystems.textsecuregcm.configuration;
import com.fasterxml.jackson.annotation.JsonProperty;
import jakarta.validation.constraints.NotEmpty;
import org.whispersystems.textsecuregcm.subscriptions.PaymentProvider;
import org.whispersystems.textsecuregcm.util.EnumMapUtil;
import java.time.Duration;
import java.util.EnumMap;
import java.util.Map;
import org.whispersystems.textsecuregcm.purchases.PaymentProvider;
import org.whispersystems.textsecuregcm.util.EnumMapUtil;
public class IssuedReceiptsTableConfiguration extends DynamoDbTables.TableWithExpiration {
public class IssuedReceiptsTableConfiguration extends DynamoDbTables.Table {
private final byte[] generator;
/**
* The maximum number of issued receipts the issued receipt manager should issue for a particular itemId
*/
private final EnumMap<PaymentProvider, Integer> maxIssuedReceiptsPerPaymentId;
/// The maximum number of receipts that may be issued for a single subscription payment.
private final EnumMap<PaymentProvider, Integer> maxReceiptsPerSubscriptionPayment;
public IssuedReceiptsTableConfiguration(
@JsonProperty("tableName") final String tableName,
@JsonProperty("expiration") final Duration expiration,
@JsonProperty("generator") final byte[] generator,
@JsonProperty("maxIssuedReceiptsPerPaymentId") final Map<PaymentProvider, Integer> maxIssuedReceiptsPerPaymentId) {
super(tableName, expiration);
@JsonProperty("maxReceiptsPerSubscriptionPayment") final Map<PaymentProvider, Integer> maxReceiptsPerSubscriptionPayment) {
super(tableName);
this.generator = generator;
this.maxIssuedReceiptsPerPaymentId = EnumMapUtil.toCompleteEnumMap(PaymentProvider.class, maxIssuedReceiptsPerPaymentId);
this.maxReceiptsPerSubscriptionPayment = EnumMapUtil.toCompleteEnumMap(PaymentProvider.class, maxReceiptsPerSubscriptionPayment);
}
@NotEmpty
@@ -37,7 +33,7 @@ public class IssuedReceiptsTableConfiguration extends DynamoDbTables.TableWithEx
return generator;
}
public EnumMap<PaymentProvider, Integer> getmaxIssuedReceiptsPerPaymentId() {
return maxIssuedReceiptsPerPaymentId;
public EnumMap<PaymentProvider, Integer> getMaxReceiptsPerSubscriptionPayment() {
return maxReceiptsPerSubscriptionPayment;
}
}
@@ -0,0 +1,20 @@
/*
* Copyright 2026 Signal Messenger, LLC
* SPDX-License-Identifier: AGPL-3.0-only
*/
package org.whispersystems.textsecuregcm.configuration;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Positive;
import java.time.Duration;
/// Configuration for one-time Signal Login purchases
///
/// @param playProductId the Google Play Billing productId clients should purchase to obtain a Signal Login
/// @param playOptionId the Google Play Billing optionId clients should purchase to obtain a Signal Login
/// @param appStoreProductId the App Store productId clients should purchase to obtain a Signal Login
public record LoginPurchaseConfiguration(
@NotEmpty String playProductId,
@NotEmpty String playOptionId,
@NotEmpty String appStoreProductId) {}
@@ -24,10 +24,9 @@ public record OneTimeDonationConfiguration(@Valid ExpiringLevelConfiguration boo
/**
* @param badge the numeric donation level ID
* @param level the badge ID associated with the level
* @param expiration the duration after which the level expires
*/
public record ExpiringLevelConfiguration(@NotEmpty String badge, @Positive long level, Duration expiration) {
public record ExpiringLevelConfiguration(@NotEmpty String badge, Duration expiration) {
}
}
@@ -18,6 +18,7 @@ public record OpenTelemetryConfiguration(
@JsonProperty Duration shutdownWaitDuration,
@JsonProperty int maxBucketCount,
@JsonProperty Map<String, Integer> maxBucketsPerMeter,
@JsonProperty boolean publishMaxGaugeForHistograms,
@JsonAnyGetter @JsonAnySetter Map<String, String> otlpConfig
) implements OtlpConfig {
@@ -13,7 +13,7 @@ import java.util.Map;
import java.util.Set;
import org.whispersystems.textsecuregcm.configuration.secrets.SecretBytes;
import org.whispersystems.textsecuregcm.configuration.secrets.SecretString;
import org.whispersystems.textsecuregcm.subscriptions.PaymentMethod;
import org.whispersystems.textsecuregcm.purchases.PaymentMethod;
public record StripeConfiguration(@NotNull SecretString apiKey,
@NotNull SecretBytes idempotencyKeyGenerator,
@@ -12,7 +12,7 @@ import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Map;
import org.whispersystems.textsecuregcm.subscriptions.PaymentProvider;
import org.whispersystems.textsecuregcm.purchases.PaymentProvider;
public record SubscriptionPriceConfiguration(@Valid @NotEmpty Map<PaymentProvider, @NotBlank String> processorIds,
@NotNull @DecimalMin("0.01") BigDecimal amount) {
@@ -0,0 +1,20 @@
/*
* Copyright 2026 Signal Messenger, LLC
* SPDX-License-Identifier: AGPL-3.0-only
*/
package org.whispersystems.textsecuregcm.configuration;
import jakarta.validation.constraints.NotNull;
import java.time.Duration;
public record TotpConfiguration(@NotNull Duration maxValidationDelay) {
public static TotpConfiguration DEFAULT = new TotpConfiguration(Duration.ofSeconds(15));
public TotpConfiguration {
if (maxValidationDelay == null) {
maxValidationDelay = DEFAULT.maxValidationDelay();
}
}
}
@@ -0,0 +1,21 @@
/*
* Copyright 2026 Signal Messenger, LLC
* SPDX-License-Identifier: AGPL-3.0-only
*/
package org.whispersystems.textsecuregcm.configuration;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import java.time.Duration;
import java.util.List;
import org.whispersystems.textsecuregcm.configuration.secrets.SecretBytes;
import org.whispersystems.textsecuregcm.util.ExactlySize;
public record WebAuthnConfiguration(
@NotBlank String relyingPartyId,
@NotEmpty List<@NotBlank String> origins,
@NotNull Duration challengeTtl,
@NotNull @ExactlySize(32) SecretBytes userHandleBlindingSecret) {
}
@@ -35,6 +35,9 @@ public class DynamicCaptchaConfiguration {
@NotNull
private Map<Action, BigDecimal> scoreFloorByAction = Collections.emptyMap();
@JsonProperty
private boolean failOpen = false;
public BigDecimal getScoreFloor() {
return scoreFloor;
}
@@ -66,4 +69,11 @@ public class DynamicCaptchaConfiguration {
this.hCaptchaSiteKeys = hCaptchaSiteKeys;
}
public boolean isFailOpen() {
return failOpen;
}
public void setFailOpen(final boolean failOpen) {
this.failOpen = failOpen;
}
}
@@ -35,7 +35,7 @@ public class DynamicConfiguration {
@JsonProperty
@Valid
private DynamicPaymentsConfiguration payments = new DynamicPaymentsConfiguration();
private DynamicPaymentsConfiguration payments = DynamicPaymentsConfiguration.DEFAULT;
@JsonProperty
@Valid
@@ -85,6 +85,10 @@ public class DynamicConfiguration {
@Valid
private DynamicTurnConfiguration turn = new DynamicTurnConfiguration();
@JsonProperty
@Valid
private DynamicLoginPurchaseConfiguration loginPurchase = new DynamicLoginPurchaseConfiguration(false);
public Optional<DynamicExperimentEnrollmentConfiguration> getExperimentEnrollmentConfiguration(
final String experimentName) {
return Optional.ofNullable(experiments.get(experimentName));
@@ -154,4 +158,8 @@ public class DynamicConfiguration {
public DynamicTurnConfiguration getTurnConfiguration() {
return turn;
}
public DynamicLoginPurchaseConfiguration getLoginPurchaseConfiguration() {
return loginPurchase;
}
}
@@ -0,0 +1,8 @@
/*
* Copyright 2026 Signal Messenger, LLC
* SPDX-License-Identifier: AGPL-3.0-only
*/
package org.whispersystems.textsecuregcm.configuration.dynamic;
/// @param enabled whether clients may exchange a one-time purchase for a Signal Login receipt credential
public record DynamicLoginPurchaseConfiguration(boolean enabled) {}
@@ -6,15 +6,23 @@
package org.whispersystems.textsecuregcm.configuration.dynamic;
import com.fasterxml.jackson.annotation.JsonProperty;
import jakarta.validation.constraints.NotNull;
import java.util.Collections;
import java.util.List;
public class DynamicPaymentsConfiguration {
public record DynamicPaymentsConfiguration(@JsonProperty @NotNull List<String> disallowedPrefixes,
@JsonProperty @NotNull List<String> disallowedAsnRegions) {
@JsonProperty
private List<String> disallowedPrefixes = Collections.emptyList();
public static DynamicPaymentsConfiguration DEFAULT =
new DynamicPaymentsConfiguration(Collections.emptyList(), Collections.emptyList());
public List<String> getDisallowedPrefixes() {
return disallowedPrefixes;
public DynamicPaymentsConfiguration {
if (disallowedPrefixes == null) {
disallowedPrefixes = DEFAULT.disallowedPrefixes();
}
if (disallowedAsnRegions == null) {
disallowedAsnRegions = DEFAULT.disallowedAsnRegions();
}
}
}
@@ -4,12 +4,7 @@
*/
package org.whispersystems.textsecuregcm.controllers;
import static org.whispersystems.textsecuregcm.metrics.MetricsUtil.name;
import io.dropwizard.auth.Auth;
import io.micrometer.core.instrument.Metrics;
import io.micrometer.core.instrument.Tag;
import io.micrometer.core.instrument.Tags;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.media.Schema;
@@ -30,11 +25,13 @@ import jakarta.ws.rs.PathParam;
import jakarta.ws.rs.Produces;
import jakarta.ws.rs.QueryParam;
import jakarta.ws.rs.WebApplicationException;
import jakarta.ws.rs.core.HttpHeaders;
import jakarta.ws.rs.core.MediaType;
import jakarta.ws.rs.core.Response;
import jakarta.ws.rs.core.Response.Status;
import java.util.Base64;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import java.util.UUID;
@@ -58,20 +55,19 @@ import org.whispersystems.textsecuregcm.entities.ReserveUsernameHashResponse;
import org.whispersystems.textsecuregcm.entities.UsernameHashResponse;
import org.whispersystems.textsecuregcm.entities.UsernameLinkHandle;
import org.whispersystems.textsecuregcm.identity.AciServiceIdentifier;
import org.whispersystems.textsecuregcm.identity.IdentityType;
import org.whispersystems.textsecuregcm.identity.ServiceIdentifier;
import org.whispersystems.textsecuregcm.limits.RateLimitedByIp;
import org.whispersystems.textsecuregcm.limits.RateLimiters;
import org.whispersystems.textsecuregcm.metrics.UserAgentTagUtil;
import org.whispersystems.textsecuregcm.storage.Account;
import org.whispersystems.textsecuregcm.storage.AccountsManager;
import org.whispersystems.textsecuregcm.storage.Device;
import org.whispersystems.textsecuregcm.storage.RegistrationRecoveryPasswordsManager;
import org.whispersystems.textsecuregcm.storage.PhoneNumberRecoveryPasswordsManager;
import org.whispersystems.textsecuregcm.storage.UsernameHashNotAvailableException;
import org.whispersystems.textsecuregcm.storage.UsernameReservationNotFoundException;
import org.whispersystems.textsecuregcm.util.HeaderUtils;
import org.whispersystems.textsecuregcm.util.UsernameHashZkProofVerifier;
import org.whispersystems.textsecuregcm.util.Util;
import software.amazon.awssdk.services.dynamodb.model.TransactWriteItem;
@SuppressWarnings("OptionalUsedAsFieldOrParameterType")
@Path("/v1/accounts")
@@ -81,23 +77,19 @@ public class AccountController {
public static final int USERNAME_HASH_LENGTH = 32;
public static final int MAXIMUM_USERNAME_CIPHERTEXT_LENGTH = 128;
private static final String RECOVERY_PASSWORD_SET_COUNTER_NAME =
name(AccountController.class, "recoveryPasswordSet");
private final AccountsManager accounts;
private final RateLimiters rateLimiters;
private final RegistrationRecoveryPasswordsManager registrationRecoveryPasswordsManager;
private final PhoneNumberRecoveryPasswordsManager phoneNumberRecoveryPasswordsManager;
private final UsernameHashZkProofVerifier usernameHashZkProofVerifier;
public AccountController(
AccountsManager accounts,
RateLimiters rateLimiters,
RegistrationRecoveryPasswordsManager registrationRecoveryPasswordsManager,
PhoneNumberRecoveryPasswordsManager phoneNumberRecoveryPasswordsManager,
UsernameHashZkProofVerifier usernameHashZkProofVerifier) {
this.accounts = accounts;
this.rateLimiters = rateLimiters;
this.registrationRecoveryPasswordsManager = registrationRecoveryPasswordsManager;
this.phoneNumberRecoveryPasswordsManager = phoneNumberRecoveryPasswordsManager;
this.usernameHashZkProofVerifier = usernameHashZkProofVerifier;
}
@@ -166,8 +158,12 @@ public class AccountController {
public void setRegistrationLock(@Auth AuthenticatedDevice auth, @NotNull @Valid RegistrationLock accountLock) {
final SaltedTokenHash credentials = SaltedTokenHash.generateFor(accountLock.registrationLock());
accounts.update(auth.accountIdentifier(),
a -> a.setRegistrationLock(credentials.hash(), credentials.salt()));
try {
accounts.update(auth.accountIdentifier(),
a -> a.setRegistrationLock(credentials.hash(), credentials.salt()));
} catch (IllegalArgumentException _) {
throw new BadRequestException();
}
}
@DELETE
@@ -211,7 +207,7 @@ public class AccountController {
throw new ForbiddenException();
}
accounts.updateDevice(account.getIdentifier(IdentityType.ACI), targetDeviceId, d -> d.setName(deviceName.deviceName()));
accounts.updateDevice(account.getAccountIdentifier(), targetDeviceId, d -> d.setName(deviceName.deviceName()));
}
@PUT
@@ -220,11 +216,19 @@ public class AccountController {
@Produces(MediaType.APPLICATION_JSON)
public void setAccountAttributes(
@Auth AuthenticatedDevice auth,
@HeaderParam(HttpHeaders.USER_AGENT) String userAgent,
@HeaderParam(HeaderUtils.X_SIGNAL_AGENT) String signalAgent,
@NotNull @Valid AccountAttributes attributes) {
final Account updatedAccount = accounts.update(auth.accountIdentifier(), a -> {
final Account account = accounts.getByAccountIdentifier(auth.accountIdentifier())
.orElseThrow(() -> new WebApplicationException(Status.UNAUTHORIZED));
final Collection<TransactWriteItem> additionalWriteItems =
account.getPhoneNumberIdentifier()
.flatMap(phoneNumberIdentifier -> attributes.recoveryPassword().map(recoveryPassword ->
List.of(phoneNumberRecoveryPasswordsManager.buildTransactWriteItemForStorePassword(phoneNumberIdentifier, recoveryPassword))))
.orElseGet(Collections::emptyList);
accounts.update(auth.accountIdentifier(), a -> {
a.getDevice(auth.deviceId()).ifPresent(d -> {
d.setFetchesMessages(attributes.getFetchesMessages());
d.setName(attributes.getName());
@@ -235,21 +239,22 @@ public class AccountController {
}
});
if (StringUtils.isNotEmpty(attributes.getRegistrationLock()) && a.getNumber().isEmpty()) {
throw new BadRequestException("account does not have a phone number");
}
a.setRegistrationLockFromAttributes(attributes);
a.setUnidentifiedAccessKey(attributes.getUnidentifiedAccessKey());
a.setUnrestrictedUnidentifiedAccess(attributes.isUnrestrictedUnidentifiedAccess());
a.setDiscoverableByPhoneNumber(attributes.isDiscoverableByPhoneNumber());
});
// if registration recovery password was sent to us, store it (or refresh its expiration)
attributes.recoveryPassword().ifPresent(registrationRecoveryPassword -> {
final boolean rrpCreated = registrationRecoveryPasswordsManager
.store(updatedAccount.getIdentifier(IdentityType.PNI), registrationRecoveryPassword);
Metrics.counter(RECOVERY_PASSWORD_SET_COUNTER_NAME, Tags.of(
UserAgentTagUtil.getPlatformTag(userAgent),
Tag.of("outcome", rrpCreated ? "created" : "updated")))
.increment();
});
if (attributes.isDiscoverableByPhoneNumber() && a.getNumber().isEmpty()) {
throw new BadRequestException("account does not have a phone number");
}
a.setDiscoverableByPhoneNumber(attributes.isDiscoverableByPhoneNumber());
attributes.recoveryPassword().ifPresent(a::setAccountRecoveryPassword);
}, additionalWriteItems);
}
@GET
@@ -389,7 +394,7 @@ public class AccountController {
throw new WebApplicationException(Response.status(422).build());
}
return accounts.getByUsernameHash(hash).thenApply(maybeAccount -> maybeAccount.map(Account::getUuid)
return accounts.getByUsernameHash(hash).thenApply(maybeAccount -> maybeAccount.map(Account::getAccountIdentifier)
.map(AciServiceIdentifier::new)
.map(AccountIdentifierResponse::new)
.orElseThrow(() -> new WebApplicationException(Status.NOT_FOUND)));
@@ -433,7 +438,7 @@ public class AccountController {
} else {
usernameLinkHandle = UUID.randomUUID();
}
updateUsernameLink(account.getIdentifier(IdentityType.ACI), usernameLinkHandle, encryptedUsername.usernameLinkEncryptedValue());
updateUsernameLink(account.getAccountIdentifier(), usernameLinkHandle, encryptedUsername.usernameLinkEncryptedValue());
return new UsernameLinkHandle(usernameLinkHandle);
}
@@ -155,8 +155,13 @@ public class AccountControllerV2 {
@Auth AuthenticatedDevice auth,
@NotNull @Valid PhoneNumberDiscoverabilityRequest phoneNumberDiscoverability) {
accountsManager.update(auth.accountIdentifier(), a -> a.setDiscoverableByPhoneNumber(
phoneNumberDiscoverability.discoverableByPhoneNumber()));
accountsManager.update(auth.accountIdentifier(), account -> {
if (account.getNumber().isEmpty()) {
throw new BadRequestException();
}
account.setDiscoverableByPhoneNumber(phoneNumberDiscoverability.discoverableByPhoneNumber());
});
}
@GET
@@ -18,18 +18,18 @@ public class AccountIdentityResponseBuilder {
private boolean storageCapable;
private Clock clock;
public AccountIdentityResponseBuilder(Account account) {
public AccountIdentityResponseBuilder(final Account account) {
this.account = account;
this.storageCapable = account.hasCapability(DeviceCapability.STORAGE);
this.clock = Clock.systemUTC();
}
public AccountIdentityResponseBuilder storageCapable(boolean storageCapable) {
public AccountIdentityResponseBuilder storageCapable(final boolean storageCapable) {
this.storageCapable = storageCapable;
return this;
}
public AccountIdentityResponseBuilder clock(Clock clock) {
public AccountIdentityResponseBuilder clock(final Clock clock) {
this.clock = clock;
return this;
}
@@ -47,13 +47,14 @@ public class AccountIdentityResponseBuilder {
.map(bv -> new Entitlements.BackupEntitlement(bv.receiptLevel(), bv.expiration()))
.orElse(null);
return new AccountIdentityResponse(account.getUuid(),
return new AccountIdentityResponse(account.getAccountIdentifier(),
account.getNumber(),
account.getPhoneNumberIdentifier(),
account.getUsernameHash().filter(h -> h.length > 0).orElse(null),
account.getUsernameLinkHandle(),
storageCapable,
new Entitlements(badges, backupEntitlement));
new Entitlements(badges, backupEntitlement),
account.getAuthCredentialSalt().orElse(null));
}
public static AccountIdentityResponse fromAccount(final Account account) {
@@ -25,6 +25,7 @@ import jakarta.validation.Valid;
import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Positive;
import jakarta.validation.constraints.PositiveOrZero;
import jakarta.validation.constraints.Size;
import jakarta.ws.rs.BadRequestException;
@@ -595,7 +596,7 @@ public class ArchiveController {
@HeaderParam(X_SIGNAL_ZK_AUTH_SIGNATURE) final BackupAuthCredentialPresentationSignature signature,
@Parameter(description = "The size of the message backup to upload in bytes")
@QueryParam("uploadLength") final Optional<Long> uploadLength)
@QueryParam("uploadLength") final Optional<@Positive Long> uploadLength)
throws BackupFailedZkAuthenticationException, BackupWrongCredentialTypeException, BackupPermissionException {
if (account.isPresent()) {
throw new BadRequestException("must not use authenticated connection for anonymous operations");
@@ -651,7 +652,7 @@ public class ArchiveController {
@HeaderParam(X_SIGNAL_ZK_AUTH_SIGNATURE) final BackupAuthCredentialPresentationSignature signature,
@Parameter(description = "The size of the temporary attachment to upload in bytes")
@QueryParam("uploadLength") final Optional<Long> uploadLength)
@QueryParam("uploadLength") final Optional<@Positive Long> uploadLength)
throws RateLimitExceededException, BackupFailedZkAuthenticationException, BackupWrongCredentialTypeException, BackupPermissionException {
if (account.isPresent()) {
throw new BadRequestException("must not use authenticated connection for anonymous operations");
@@ -975,7 +976,7 @@ public class ArchiveController {
final AuthenticatedBackupUser backupUser =
backupManager.authenticateBackupUser(presentation.presentation, signature.signature, userAgent);
final BackupManager.ListMediaResult listResult =
backupManager.list(backupUser, cursor, limit.orElse(1000));
backupManager.list(backupUser, cursor, limit);
return new ListResponse(listResult.media()
.stream().map(entry -> new StoredMediaObject(entry.cdn(), entry.key(), entry.length()))
.toList(),
@@ -2,6 +2,7 @@ package org.whispersystems.textsecuregcm.controllers;
import io.dropwizard.auth.Auth;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.responses.ApiResponse;
import jakarta.validation.Valid;
import jakarta.validation.constraints.NotNull;
@@ -9,6 +10,7 @@ import jakarta.ws.rs.BadRequestException;
import jakarta.ws.rs.POST;
import jakarta.ws.rs.Path;
import jakarta.ws.rs.Produces;
import jakarta.ws.rs.QueryParam;
import jakarta.ws.rs.core.MediaType;
import java.time.Instant;
import java.time.temporal.ChronoUnit;
@@ -26,13 +28,16 @@ import org.whispersystems.textsecuregcm.limits.RateLimiters;
public class CallLinkController {
private final RateLimiters rateLimiters;
private final GenericServerSecretParams genericServerSecretParams;
private final GenericServerSecretParams genericServerSecretParamsPreV101;
public CallLinkController(
final RateLimiters rateLimiters,
final GenericServerSecretParams genericServerSecretParams
final GenericServerSecretParams genericServerSecretParams,
final GenericServerSecretParams genericServerSecretParamsPreV101
) {
this.rateLimiters = rateLimiters;
this.genericServerSecretParams = genericServerSecretParams;
this.genericServerSecretParamsPreV101 = genericServerSecretParamsPreV101;
}
@POST
@@ -52,7 +57,9 @@ public class CallLinkController {
@ApiResponse(responseCode = "429", description = "Ratelimited.")
public CreateCallLinkCredential getCreateAuth(
final @Auth AuthenticatedDevice auth,
final @NotNull @Valid GetCreateCallLinkCredentialsRequest request
final @NotNull @Valid GetCreateCallLinkCredentialsRequest request,
@Parameter(description = "Whether to use libsignal v0.101.0+ secret params")
final @QueryParam("v101") boolean v101
) throws RateLimitExceededException {
rateLimiters.getCreateCallLinkLimiter().validate(auth.accountIdentifier());
@@ -67,7 +74,7 @@ public class CallLinkController {
}
return new CreateCallLinkCredential(
createCallLinkCredentialRequest.issueCredential(new ServiceId.Aci(auth.accountIdentifier()), truncatedDayTimestamp, genericServerSecretParams).serialize(),
createCallLinkCredentialRequest.issueCredential(new ServiceId.Aci(auth.accountIdentifier()), truncatedDayTimestamp, v101 ? genericServerSecretParams : genericServerSecretParamsPreV101).serialize(),
truncatedDayTimestamp.getEpochSecond()
);
}
@@ -10,6 +10,7 @@ import static org.whispersystems.textsecuregcm.metrics.MetricsUtil.name;
import com.google.common.annotations.VisibleForTesting;
import io.dropwizard.auth.Auth;
import io.micrometer.core.instrument.Metrics;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.ws.rs.BadRequestException;
import jakarta.ws.rs.DefaultValue;
@@ -26,6 +27,7 @@ import java.time.Instant;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nonnull;
import org.signal.libsignal.protocol.ServiceId;
import org.signal.libsignal.zkgroup.GenericServerSecretParams;
@@ -37,11 +39,9 @@ import org.whispersystems.textsecuregcm.auth.CertificateGenerator;
import org.whispersystems.textsecuregcm.auth.RedemptionRange;
import org.whispersystems.textsecuregcm.entities.DeliveryCertificate;
import org.whispersystems.textsecuregcm.entities.GroupCredentials;
import org.whispersystems.textsecuregcm.identity.IdentityType;
import org.whispersystems.textsecuregcm.storage.Account;
import org.whispersystems.textsecuregcm.storage.AccountsManager;
@SuppressWarnings("OptionalUsedAsFieldOrParameterType")
@Path("/v1/certificate")
@Tag(name = "Certificate")
public class CertificateController {
@@ -50,6 +50,7 @@ public class CertificateController {
private final CertificateGenerator certificateGenerator;
private final ServerZkAuthOperations serverZkAuthOperations;
private final GenericServerSecretParams genericServerSecretParams;
private final GenericServerSecretParams genericServerSecretParamsPreV101;
private final Clock clock;
@VisibleForTesting
@@ -62,12 +63,14 @@ public class CertificateController {
@Nonnull CertificateGenerator certificateGenerator,
@Nonnull ServerZkAuthOperations serverZkAuthOperations,
@Nonnull GenericServerSecretParams genericServerSecretParams,
@Nonnull GenericServerSecretParams genericServerSecretParamsPreV101,
@Nonnull Clock clock) {
this.accountsManager = accountsManager;
this.certificateGenerator = Objects.requireNonNull(certificateGenerator);
this.serverZkAuthOperations = Objects.requireNonNull(serverZkAuthOperations);
this.genericServerSecretParams = genericServerSecretParams;
this.genericServerSecretParamsPreV101 = genericServerSecretParamsPreV101;
this.clock = Objects.requireNonNull(clock);
}
@@ -83,8 +86,11 @@ public class CertificateController {
final Account account = accountsManager.getByAccountIdentifier(auth.accountIdentifier())
.orElseThrow(() -> new WebApplicationException(Response.Status.UNAUTHORIZED));
return new DeliveryCertificate(
certificateGenerator.createFor(account, auth.deviceId(), includeE164));
try {
return new DeliveryCertificate(certificateGenerator.createFor(account, auth.deviceId(), includeE164));
} catch (final IllegalArgumentException _) {
throw new BadRequestException();
}
}
@GET
@@ -93,7 +99,9 @@ public class CertificateController {
public GroupCredentials getGroupAuthenticationCredentials(
@Auth AuthenticatedDevice auth,
@QueryParam("redemptionStartSeconds") long startSeconds,
@QueryParam("redemptionEndSeconds") long endSeconds) {
@QueryParam("redemptionEndSeconds") long endSeconds,
@Parameter(description = "Whether to use libsignal v0.101.0+ secret params")
@QueryParam("v101") boolean v101) {
final RedemptionRange redemptionRange;
try {
@@ -110,20 +118,25 @@ public class CertificateController {
final List<GroupCredentials.GroupCredential> credentials = new ArrayList<>();
final List<GroupCredentials.CallLinkAuthCredential> callLinkAuthCredentials = new ArrayList<>();
final ServiceId.Aci aci = new ServiceId.Aci(account.getIdentifier(IdentityType.ACI));
final ServiceId.Pni pni = new ServiceId.Pni(account.getIdentifier(IdentityType.PNI));
final ServiceId.Aci aci = new ServiceId.Aci(account.getAccountIdentifier());
final Optional<ServiceId.Pni> maybePni = account.getPhoneNumberIdentifier().map(ServiceId.Pni::new);
for (Instant redemption : redemptionRange) {
AuthCredentialWithPniResponse authCredentialWithPni = serverZkAuthOperations.issueAuthCredentialWithPniZkc(aci, pni, redemption);
final AuthCredentialWithPniResponse authCredentialWithPni =
maybePni.map(pni -> serverZkAuthOperations.issueAuthCredentialWithPniZkc(aci, pni, redemption))
.orElseGet(() -> serverZkAuthOperations.issueAuthCredentialZkcWithoutPni(aci,
account.getAuthCredentialSalt()
.orElseThrow(() -> new IllegalStateException("account without PNI must have auth credential salt")),
redemption));
credentials.add(new GroupCredentials.GroupCredential(
authCredentialWithPni.serialize(),
(int) redemption.getEpochSecond()));
callLinkAuthCredentials.add(new GroupCredentials.CallLinkAuthCredential(
CallLinkAuthCredentialResponse.issueCredential(aci, redemption, genericServerSecretParams).serialize(),
CallLinkAuthCredentialResponse.issueCredential(aci, redemption, v101 ? genericServerSecretParams : genericServerSecretParamsPreV101).serialize(),
redemption.getEpochSecond()));
}
return new GroupCredentials(credentials, callLinkAuthCredentials, pni.getRawUUID());
return new GroupCredentials(credentials, callLinkAuthCredentials, maybePni.map(ServiceId.Pni::getRawUUID).orElse(null));
}
}
@@ -14,6 +14,7 @@ import io.swagger.v3.oas.annotations.responses.ApiResponse;
import jakarta.validation.Valid;
import jakarta.validation.constraints.NotNull;
import jakarta.ws.rs.Consumes;
import jakarta.ws.rs.ForbiddenException;
import jakarta.ws.rs.GET;
import jakarta.ws.rs.POST;
import jakarta.ws.rs.PUT;
@@ -29,11 +30,13 @@ import java.time.Duration;
import java.util.Base64;
import java.util.Locale;
import org.glassfish.jersey.server.ManagedAsync;
import org.signal.libsignal.zkgroup.backups.BackupLevel;
import org.whispersystems.textsecuregcm.auth.AuthenticatedDevice;
import org.whispersystems.textsecuregcm.backup.BackupAuthManager;
import org.whispersystems.textsecuregcm.limits.RateLimiters;
import org.whispersystems.textsecuregcm.storage.Account;
import org.whispersystems.textsecuregcm.storage.AccountsManager;
import org.whispersystems.textsecuregcm.storage.Device;
import org.whispersystems.textsecuregcm.storage.devicecheck.AppleDeviceCheckManager;
import org.whispersystems.textsecuregcm.storage.devicecheck.ChallengeNotFoundException;
import org.whispersystems.textsecuregcm.storage.devicecheck.DeviceCheckKeyIdNotFoundException;
@@ -59,7 +62,6 @@ public class DeviceCheckController {
private final BackupAuthManager backupAuthManager;
private final AppleDeviceCheckManager deviceCheckManager;
private final RateLimiters rateLimiters;
private final long backupRedemptionLevel;
private final Duration backupRedemptionDuration;
public DeviceCheckController(
@@ -68,13 +70,11 @@ public class DeviceCheckController {
final BackupAuthManager backupAuthManager,
final AppleDeviceCheckManager deviceCheckManager,
final RateLimiters rateLimiters,
final long backupRedemptionLevel,
final Duration backupRedemptionDuration) {
this.clock = clock;
this.accountsManager = accountsManager;
this.backupAuthManager = backupAuthManager;
this.deviceCheckManager = deviceCheckManager;
this.backupRedemptionLevel = backupRedemptionLevel;
this.backupRedemptionDuration = backupRedemptionDuration;
this.rateLimiters = rateLimiters;
}
@@ -141,6 +141,10 @@ public class DeviceCheckController {
@RequestBody(description = "The attestation data, created by [attestKey](https://developer.apple.com/documentation/devicecheck/dcappattestservice/attestkey(_:clientdatahash:completionhandler:))")
@NotNull final byte[] attestation) {
if (authenticatedDevice.deviceId() != Device.PRIMARY_ID) {
throw new ForbiddenException("Only primary devices may register attestations");
}
final Account account = accountsManager.getByAccountIdentifier(authenticatedDevice.accountIdentifier())
.orElseThrow(() -> new WebApplicationException(Response.Status.UNAUTHORIZED));
@@ -252,7 +256,7 @@ public class DeviceCheckController {
switch (request.assertionRequest().action()) {
case BACKUP -> backupAuthManager.extendBackupVoucher(
account,
new Account.BackupVoucher(backupRedemptionLevel, clock.instant().plus(backupRedemptionDuration)));
new Account.BackupVoucher(BackupLevel.PAID.getValue(), clock.instant().plus(backupRedemptionDuration)));
}
}
@@ -62,7 +62,6 @@ import org.whispersystems.textsecuregcm.entities.RemoteAttachment;
import org.whispersystems.textsecuregcm.entities.RemoteAttachmentError;
import org.whispersystems.textsecuregcm.entities.RestoreAccountRequest;
import org.whispersystems.textsecuregcm.entities.TransferArchiveUploadedRequest;
import org.whispersystems.textsecuregcm.identity.IdentityType;
import org.whispersystems.textsecuregcm.limits.RateLimitedByIp;
import org.whispersystems.textsecuregcm.limits.RateLimiters;
import org.whispersystems.textsecuregcm.metrics.DevicePlatformUtil;
@@ -72,6 +71,8 @@ import org.whispersystems.textsecuregcm.storage.Account;
import org.whispersystems.textsecuregcm.storage.AccountsManager;
import org.whispersystems.textsecuregcm.storage.Device;
import org.whispersystems.textsecuregcm.storage.DeviceCapability;
import org.whispersystems.textsecuregcm.storage.DeviceIdentityInfo;
import org.whispersystems.textsecuregcm.storage.DeviceLimitExceededException;
import org.whispersystems.textsecuregcm.storage.DeviceSpec;
import org.whispersystems.textsecuregcm.storage.LinkDeviceTokenAlreadyUsedException;
import org.whispersystems.textsecuregcm.storage.PersistentTimer;
@@ -88,8 +89,6 @@ import org.whispersystems.textsecuregcm.util.ua.UserAgentUtil;
@Tag(name = "Devices")
public class DeviceController {
static final int MAX_DEVICES = 6;
private final AccountsManager accounts;
private final RateLimiters rateLimiters;
private final PersistentTimer persistentTimer;
@@ -196,17 +195,13 @@ public class DeviceController {
final Account account = accounts.getByAccountIdentifier(auth.accountIdentifier())
.orElseThrow(() -> new WebApplicationException(Response.Status.UNAUTHORIZED));
rateLimiters.getAllocateDeviceLimiter().validate(account.getUuid());
if (account.getDevices().size() >= MAX_DEVICES) {
throw new DeviceLimitExceededException(account.getDevices().size(), MAX_DEVICES);
}
rateLimiters.getAllocateDeviceLimiter().validate(account.getAccountIdentifier());
if (auth.deviceId() != Device.PRIMARY_ID) {
throw new WebApplicationException(Response.Status.UNAUTHORIZED);
}
final String token = accounts.generateLinkDeviceToken(account.getUuid());
final String token = accounts.generateLinkDeviceToken(account);
return new LinkDeviceToken(token, AccountsManager.getLinkDeviceTokenIdentifier(token));
}
@@ -222,7 +217,7 @@ public class DeviceController {
""")
@ApiResponse(responseCode = "200", description = "The new device was linked to the calling account", useReturnTypeSchema = true)
@ApiResponse(responseCode = "403", description = "The given account was not found or the given verification code was incorrect")
@ApiResponse(responseCode = "409", description = "The new device is missing a capability supported by all other devices on the account")
@ApiResponse(responseCode = "409", description = "The new device is missing a capability required for the account")
@ApiResponse(responseCode = "411", description = "The given account already has its maximum number of linked devices")
@ApiResponse(responseCode = "422", description = "The request did not pass validation")
@ApiResponse(responseCode = "429", description = "Too many attempts", headers = @Header(
@@ -232,7 +227,6 @@ public class DeviceController {
@HeaderParam(HttpHeaders.USER_AGENT) @Nullable String userAgent,
@NotNull @Valid LinkDeviceRequest linkDeviceRequest)
throws RateLimitExceededException, DeviceLimitExceededException {
final Account account = accounts.checkDeviceLinkingToken(linkDeviceRequest.verificationCode())
.flatMap(accounts::getByAccountIdentifier)
.orElseThrow(ForbiddenException::new);
@@ -240,26 +234,38 @@ public class DeviceController {
final DeviceActivationRequest deviceActivationRequest = linkDeviceRequest.deviceActivationRequest();
final DeviceAttributes deviceAttributes = linkDeviceRequest.deviceAttributes();
rateLimiters.getVerifyDeviceLimiter().validate(account.getUuid());
rateLimiters.getVerifyDeviceLimiter().validate(account.getAccountIdentifier());
// Check the optional-phone-number capability before checking PNI keys, so we can give a better error code (since an
// older device will improperly supply PNI keys for a PNI-less account)
if (account.getPhoneNumberIdentifier().isEmpty() &&
!linkDeviceRequest.deviceAttributes().capabilities().contains(DeviceCapability.OPTIONAL_PHONE_NUMBER)) {
throw new WebApplicationException("Missing required device capability", 409);
}
final boolean allKeysValid =
PreKeySignatureValidator.validatePreKeySignatures(account.getIdentityKey(IdentityType.ACI),
List.of(deviceActivationRequest.aciSignedPreKey(), deviceActivationRequest.aciPqLastResortPreKey()),
userAgent,
"link-device")
&& PreKeySignatureValidator.validatePreKeySignatures(account.getIdentityKey(IdentityType.PNI),
List.of(deviceActivationRequest.pniSignedPreKey(), deviceActivationRequest.pniPqLastResortPreKey()),
userAgent,
"link-device");
PreKeySignatureValidator
.validatePreKeySignatures(account.getAccountIdentityKey(),
List.of(deviceActivationRequest.aciSignedPreKey(), deviceActivationRequest.aciPqLastResortPreKey()),
userAgent,
"link-device")
&& account.getPhoneNumberIdentityKey()
.map(pniIdentityKey ->
deviceActivationRequest.pniSignedPreKey().isPresent()
&& deviceActivationRequest.pniPqLastResortPreKey().isPresent()
&& PreKeySignatureValidator.validatePreKeySignatures(
pniIdentityKey,
List.of(deviceActivationRequest.pniSignedPreKey().get(), deviceActivationRequest.pniPqLastResortPreKey().get()),
userAgent,
"link-device"))
.orElse(
deviceActivationRequest.pniSignedPreKey().isEmpty()
&& deviceActivationRequest.pniPqLastResortPreKey().isEmpty());
if (!allKeysValid) {
throw new WebApplicationException(Response.status(422).build());
}
if (account.getDevices().size() >= MAX_DEVICES) {
throw new DeviceLimitExceededException(account.getDevices().size(), MAX_DEVICES);
}
final Set<DeviceCapability> capabilities = deviceAttributes.capabilities();
if (capabilities == null) {
@@ -279,25 +285,28 @@ public class DeviceController {
}
try {
final Pair<Account, Device> accountAndDevice = accounts.addDevice(account.getIdentifier(IdentityType.ACI),
final Pair<Account, Device> accountAndDevice = accounts.addDevice(account.getAccountIdentifier(),
new DeviceSpec(deviceAttributes.name(),
authorizationHeader.getPassword(),
signalAgent,
capabilities,
deviceAttributes.registrationId(),
deviceAttributes.phoneNumberIdentityRegistrationId(),
new DeviceIdentityInfo(
deviceAttributes.registrationId(),
deviceActivationRequest.aciSignedPreKey(),
deviceActivationRequest.aciPqLastResortPreKey()),
account.getPhoneNumberIdentityKey().map(_ ->
new DeviceIdentityInfo(
deviceAttributes.phoneNumberIdentityRegistrationId(),
deviceActivationRequest.pniSignedPreKey().get(),
deviceActivationRequest.pniPqLastResortPreKey().get())),
deviceAttributes.fetchesMessages(),
deviceActivationRequest.apnToken(),
deviceActivationRequest.gcmToken(),
deviceActivationRequest.aciSignedPreKey(),
deviceActivationRequest.pniSignedPreKey(),
deviceActivationRequest.aciPqLastResortPreKey(),
deviceActivationRequest.pniPqLastResortPreKey()),
deviceActivationRequest.gcmToken()),
linkDeviceRequest.verificationCode());
return new LinkDeviceResponse(
accountAndDevice.first().getIdentifier(IdentityType.ACI),
accountAndDevice.first().getIdentifier(IdentityType.PNI),
accountAndDevice.first().getAccountIdentifier(),
accountAndDevice.first().getPhoneNumberIdentifier(),
accountAndDevice.second().getId());
} catch (final LinkDeviceTokenAlreadyUsedException e) {
throw new ForbiddenException();
@@ -40,7 +40,8 @@ import org.whispersystems.textsecuregcm.storage.AccountBadge;
import org.whispersystems.textsecuregcm.storage.AccountsManager;
import org.whispersystems.textsecuregcm.storage.DonationPermitsManager;
import org.whispersystems.textsecuregcm.storage.RedeemedReceiptsManager;
import org.whispersystems.textsecuregcm.subscriptions.ReceiptCredentialPresentationFactory;
import org.whispersystems.textsecuregcm.purchases.ReceiptCredentialPresentationFactory;
import org.whispersystems.textsecuregcm.purchases.ReceiptLevel;
@Path("/v1/donation")
@Tag(name = "Donations")
@@ -117,7 +118,10 @@ public class DonationController {
final ReceiptSerial receiptSerial = receiptCredentialPresentation.getReceiptSerial();
final Instant receiptExpiration = Instant.ofEpochSecond(receiptCredentialPresentation.getReceiptExpirationTime());
final long receiptLevel = receiptCredentialPresentation.getReceiptLevel();
final String badgeId = badgesConfiguration.getReceiptLevels().get(receiptLevel);
final String badgeId = ReceiptLevel
.lookupLevel(receiptLevel)
.map(badgesConfiguration.getReceiptLevels()::get)
.orElse(null);
if (badgeId == null) {
return Response.serverError()
.entity("server does not recognize the requested receipt level")
@@ -126,7 +130,7 @@ public class DonationController {
}
final boolean receiptMatched = redeemedReceiptsManager.put(
receiptSerial, receiptExpiration.getEpochSecond(), receiptLevel, auth.accountIdentifier());
receiptSerial, receiptExpiration, receiptLevel, auth.accountIdentifier());
if (!receiptMatched) {
return Response.status(Status.BAD_REQUEST)
.entity("receipt serial is already redeemed")
@@ -108,6 +108,7 @@ public class KeysController {
@Operation(summary = "Get prekey count",
description = "Gets the number of one-time prekeys uploaded for this device and still available")
@ApiResponse(responseCode = "200", description = "Body contains the number of available one-time prekeys for the device.", useReturnTypeSchema = true)
@ApiResponse(responseCode = "400", description = "The request was malformed or the account does not support the requested identityType")
@ApiResponse(responseCode = "401", description = "Account authentication check failed.")
public CompletableFuture<PreKeyCount> getStatus(@Auth final AuthenticatedDevice auth,
@QueryParam("identity") @DefaultValue("aci") final IdentityType identityType) {
@@ -115,12 +116,13 @@ public class KeysController {
return accounts.getByAccountIdentifierAsync(auth.accountIdentifier())
.thenCompose(maybeAccount -> {
final Account account = maybeAccount.orElseThrow(() -> new WebApplicationException(Response.Status.UNAUTHORIZED));
final UUID identifier = getIdentifier(account, identityType);
final CompletableFuture<Integer> ecCountFuture =
keysManager.getEcCount(account.getIdentifier(identityType), auth.deviceId());
keysManager.getEcCount(identifier, auth.deviceId());
final CompletableFuture<Integer> pqCountFuture =
keysManager.getPqCount(account.getIdentifier(identityType), auth.deviceId());
keysManager.getPqCount(identifier, auth.deviceId());
return ecCountFuture.thenCombine(pqCountFuture, PreKeyCount::new);
});
@@ -131,6 +133,7 @@ public class KeysController {
@Produces(MediaType.APPLICATION_JSON)
@Operation(summary = "Upload new prekeys", description = "Upload new pre-keys for this device.")
@ApiResponse(responseCode = "200", description = "Indicates that new keys were successfully stored.")
@ApiResponse(responseCode = "400", description = "The request was malformed or the account does not support the requested identityType")
@ApiResponse(responseCode = "401", description = "Account authentication check failed.")
@ApiResponse(responseCode = "403", description = "Attempt to change identity key from a non-primary device.")
@ApiResponse(responseCode = "422", description = "Invalid request format.")
@@ -154,9 +157,9 @@ public class KeysController {
final Device device = account.getDevice(auth.deviceId())
.orElseThrow(() -> new WebApplicationException(Response.Status.UNAUTHORIZED));
final UUID identifier = account.getIdentifier(identityType);
final UUID identifier = getIdentifier(account, identityType);
checkSignedPreKeySignatures(setKeysRequest, account.getIdentityKey(identityType), userAgent);
checkSignedPreKeySignatures(setKeysRequest, getIdentityKey(account, identityType), userAgent);
final Tag platformTag = UserAgentTagUtil.getPlatformTag(userAgent);
final Tag primaryDeviceTag = Tag.of(PRIMARY_DEVICE_TAG_NAME, String.valueOf(auth.deviceId() == Device.PRIMARY_ID));
@@ -244,6 +247,7 @@ public class KeysController {
version byte followed by 1568 bytes of key material for a total of 1569 bytes)
""")
@ApiResponse(responseCode = "200", description = "Indicates that client and server have consistent views of repeated-use keys")
@ApiResponse(responseCode = "400", description = "The request was malformed or the account does not support the requested identityType")
@ApiResponse(responseCode = "401", description = "Account authentication check failed")
@ApiResponse(responseCode = "409", description = """
Indicates that client and server have inconsistent views of repeated-use keys or one or more repeated-use keys could
@@ -258,7 +262,7 @@ public class KeysController {
.thenCompose(maybeAccount -> {
final Account account = maybeAccount.orElseThrow(() -> new WebApplicationException(Response.Status.UNAUTHORIZED));
final UUID identifier = account.getIdentifier(checkKeysRequest.identityType());
final UUID identifier = getIdentifier(account, checkKeysRequest.identityType());
final byte deviceId = auth.deviceId();
final CompletableFuture<Optional<ECSignedPreKey>> ecSignedPreKeyFuture =
@@ -275,7 +279,7 @@ public class KeysController {
final boolean digestsMatch;
if (maybeSignedPreKey.isPresent() && maybeLastResortKey.isPresent()) {
final IdentityKey identityKey = account.getIdentityKey(checkKeysRequest.identityType());
final IdentityKey identityKey = getIdentityKey(account, checkKeysRequest.identityType());
final ECSignedPreKey ecSignedPreKey = maybeSignedPreKey.get();
final KEMSignedPreKey lastResortKey = maybeLastResortKey.get();
@@ -380,7 +384,12 @@ public class KeysController {
.fromCompletionStage(keysManager.takeDevicePreKeys(device.getId(), targetIdentifier, userAgent))
.flatMap(Mono::justOrEmpty)
.map(devicePreKeys -> new PreKeyResponseItem(
device.getId(), device.getRegistrationId(targetIdentifier.identityType()),
device.getId(),
switch (targetIdentifier.identityType()) {
case ACI -> device.getAccountRegistrationId();
case PNI -> device.getPhoneNumberIdentityRegistrationId()
.orElseThrow(() -> new IllegalStateException("Device on account retrieved by PNI does not have a PNI registration ID"));
},
devicePreKeys.ecSignedPreKey(),
devicePreKeys.ecPreKey().orElse(null),
devicePreKeys.kemSignedPreKey())))
@@ -388,7 +397,11 @@ public class KeysController {
.blockOptional()
.orElseGet(Collections::emptyList);
final IdentityKey identityKey = target.getIdentityKey(targetIdentifier.identityType());
final IdentityKey identityKey = switch (targetIdentifier.identityType()) {
case ACI -> target.getAccountIdentityKey();
case PNI -> target.getPhoneNumberIdentityKey()
.orElseThrow(() -> new IllegalStateException("Account retrieved by PNI does not have a PNI identity key"));
};
if (responseItems.isEmpty()) {
throw new WebApplicationException(Response.Status.NOT_FOUND);
@@ -424,12 +437,32 @@ public class KeysController {
final Optional<Byte> parsedTargetDeviceId = parseDeviceId(targetDeviceId);
final Optional<Integer> targetRegistrationId = parsedTargetDeviceId
.flatMap(targetAccount::getDevice)
.map(device -> device.getRegistrationId(targetIdentifier.identityType()));
.flatMap(device -> switch (targetIdentifier.identityType()) {
case ACI -> Optional.of(device.getAccountRegistrationId());
case PNI -> device.getPhoneNumberIdentityRegistrationId();
});
return RateLimitKeys.preKeyLimiterKey(
account.getUuid(),
account.getAccountIdentifier(),
authenticatedDevice.deviceId(),
targetIdentifier,
parsedTargetDeviceId, targetRegistrationId);
}
/// Get the identity of the requested `idenityType`, or throw a [BadRequestException] if `account` does not contain
/// that type.
private static UUID getIdentifier(final Account account, final IdentityType identityType) {
return switch (identityType) {
case ACI -> account.getAccountIdentifier();
case PNI -> account.getPhoneNumberIdentifier()
.orElseThrow(() -> new BadRequestException("Cannot set PNI identity keys on an account without a number"));
};
}
private static IdentityKey getIdentityKey(final Account account, final IdentityType identityType) {
return switch (identityType) {
case ACI -> account.getAccountIdentityKey();
case PNI -> account.getPhoneNumberIdentityKey()
.orElseThrow(() -> new BadRequestException("Account does not have a phone number"));
};
}
}
@@ -0,0 +1,134 @@
/*
* Copyright 2026 Signal Messenger, LLC
* SPDX-License-Identifier: AGPL-3.0-only
*/
package org.whispersystems.textsecuregcm.controllers;
import io.dropwizard.auth.Auth;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.headers.Header;
import io.swagger.v3.oas.annotations.media.Content;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.responses.ApiResponse;
import jakarta.validation.Valid;
import jakarta.validation.constraints.NotNull;
import jakarta.ws.rs.BadRequestException;
import jakarta.ws.rs.Consumes;
import jakarta.ws.rs.ForbiddenException;
import jakarta.ws.rs.POST;
import jakarta.ws.rs.Path;
import jakarta.ws.rs.Produces;
import jakarta.ws.rs.core.MediaType;
import jakarta.ws.rs.core.Response;
import java.io.IOException;
import java.util.Optional;
import org.glassfish.jersey.server.ManagedAsync;
import org.signal.libsignal.zkgroup.InvalidInputException;
import org.signal.libsignal.zkgroup.VerificationFailedException;
import org.signal.libsignal.zkgroup.receipts.ReceiptCredentialRequest;
import org.signal.libsignal.zkgroup.receipts.ReceiptCredentialResponse;
import org.whispersystems.textsecuregcm.auth.AuthenticatedDevice;
import org.whispersystems.textsecuregcm.configuration.dynamic.DynamicConfiguration;
import org.whispersystems.textsecuregcm.mappers.PurchaseExceptionMapper;
import org.whispersystems.textsecuregcm.storage.DynamicConfigurationManager;
import org.whispersystems.textsecuregcm.purchases.LoginPurchaseManager;
import org.whispersystems.textsecuregcm.purchases.PaymentProvider;
import org.whispersystems.textsecuregcm.purchases.PurchaseInvalidArgumentsException;
import org.whispersystems.textsecuregcm.purchases.PurchaseNotFoundException;
import org.whispersystems.textsecuregcm.purchases.PurchasePaymentRequiredException;
import org.whispersystems.textsecuregcm.purchases.PurchaseReceiptAlreadyRedeemedException;
import org.whispersystems.textsecuregcm.purchases.PurchaseReceiptRequestedForOpenPaymentException;
@Path("/v1/login-purchase")
@io.swagger.v3.oas.annotations.tags.Tag(name = "LoginPurchase")
public class LoginPurchaseController {
private final LoginPurchaseManager loginPurchaseManager;
private final DynamicConfigurationManager<DynamicConfiguration> dynamicConfigurationManager;
public LoginPurchaseController(
final LoginPurchaseManager loginPurchaseManager,
final DynamicConfigurationManager<DynamicConfiguration> dynamicConfigurationManager) {
this.loginPurchaseManager = loginPurchaseManager;
this.dynamicConfigurationManager = dynamicConfigurationManager;
}
public record CreateLoginReceiptCredentialRequest(
@NotNull String purchaseIdentifier,
@NotNull byte[] receiptCredentialRequest,
@NotNull PaymentProvider paymentProvider) {
}
public record CreateLoginReceiptCredentialResponse(byte[] receiptCredentialResponse) {
}
@POST
@Path("/receipt_credentials")
@Consumes(MediaType.APPLICATION_JSON)
@Produces(MediaType.APPLICATION_JSON)
@Operation(summary = "Create a receipt credential for a completed one-time login purchase",
description = """
Verify a completed one-time purchase with the payment provider and issue a receipt credential that can be
redeemed for a login.
This endpoint must be called on an unauthenticated connection. Retries for the same purchaseIdentifier MUST
use the same receiptCredentialRequest.
Callers must validate that the generated receipt credential has the
following properties:
- Level == 300 (The login level)
- ExpirationTime % 86400 == 0
- ExpirationTime == PurchaseTime + (5 * 366 * 86400) +/- (7 * 86400)
""")
@ApiResponse(responseCode = "200", description = "Successfully created receipt",
content = @Content(schema = @Schema(implementation = CreateLoginReceiptCredentialResponse.class)))
@ApiResponse(responseCode = "204", description = "The purchase is still pending with the payment provider. The client may retry later.")
@ApiResponse(responseCode = "400", description = """
Invalid request: malformed request, failed zkgroup verification, unsupported paymentProvider, the provided
purchase identifier not for a Signal Login, or login purchases are not currently enabled.
""")
@ApiResponse(responseCode = "402", description = "The purchase did not complete successfully. The body may include ChargeFailure details.",
content = @Content(schema = @Schema(
nullable = true,
implementation = PurchaseExceptionMapper.ChargeFailureResponse.class)))
@ApiResponse(responseCode = "403", description = "The request was made on an authenticated channel")
@ApiResponse(responseCode = "404", description = "The payment provider has no purchase with the provided purchaseIdentifier")
@ApiResponse(responseCode = "409", description = "The purchase was already redeemed for a receipt credential, but with a different receipt credential request")
@ApiResponse(responseCode = "429", description = "Too many attempts", headers = @Header(
name = "Retry-After",
description = "If present, a positive integer indicating the number of seconds before a subsequent attempt could succeed"))
@ManagedAsync
public Response createLoginReceiptCredential(
@Auth final Optional<AuthenticatedDevice> authenticatedAccount,
@NotNull @Valid final CreateLoginReceiptCredentialRequest request)
throws IOException, PurchasePaymentRequiredException, PurchaseInvalidArgumentsException, PurchaseNotFoundException, RateLimitExceededException, PurchaseReceiptAlreadyRedeemedException {
if (!dynamicConfigurationManager.getConfiguration().getLoginPurchaseConfiguration().enabled()) {
throw new BadRequestException("login purchases are not enabled");
}
if (authenticatedAccount.isPresent()) {
throw new ForbiddenException("must not use authenticated connection for login purchase operations");
}
final ReceiptCredentialRequest receiptCredentialRequest;
try {
receiptCredentialRequest = new ReceiptCredentialRequest(request.receiptCredentialRequest);
} catch (final InvalidInputException e) {
throw new BadRequestException("invalid receipt credential request", e);
}
try {
final ReceiptCredentialResponse receiptCredentialResponse = loginPurchaseManager.generateReceipt(
request.paymentProvider, request.purchaseIdentifier, receiptCredentialRequest);
return Response.ok(
new CreateLoginReceiptCredentialResponse(receiptCredentialResponse.serialize()))
.build();
} catch (PurchaseReceiptRequestedForOpenPaymentException e) {
return Response.noContent().build();
} catch (VerificationFailedException e) {
throw new BadRequestException("receipt credential request failed verification", e);
}
}
}
@@ -91,9 +91,9 @@ import org.whispersystems.textsecuregcm.spam.SpamChecker;
import org.whispersystems.textsecuregcm.storage.Account;
import org.whispersystems.textsecuregcm.storage.AccountsManager;
import org.whispersystems.textsecuregcm.storage.PhoneNumberIdentifiers;
import org.whispersystems.textsecuregcm.storage.ReportMessageHelper;
import org.whispersystems.textsecuregcm.storage.ReportMessageManager;
import org.whispersystems.textsecuregcm.util.HeaderUtils;
import org.whispersystems.textsecuregcm.util.Util;
@SuppressWarnings("OptionalUsedAsFieldOrParameterType")
@Path("/v1/messages")
@@ -263,7 +263,7 @@ public class MessageController {
final Account destination =
accountsManager.getByServiceIdentifier(destinationIdentifier).orElseThrow(NotFoundException::new);
rateLimiters.getMessagesLimiter().validate(source.accountIdentifier(), destination.getUuid());
rateLimiters.getMessagesLimiter().validate(source.accountIdentifier(), destination.getAccountIdentifier());
sendIndividualMessage(destination,
destinationIdentifier,
@@ -335,7 +335,7 @@ public class MessageController {
final Account destination = accountsManager.getByServiceIdentifier(destinationIdentifier).orElseThrow(() ->
new WebApplicationException(Response.ok(new SendMessageResponse(false)).build()));
rateLimiters.getStoriesLimiter().validate(destination.getUuid());
rateLimiters.getStoriesLimiter().validate(destination.getAccountIdentifier());
sendIndividualMessage(destination,
destinationIdentifier,
@@ -368,8 +368,8 @@ public class MessageController {
final String userAgent = context.getHeaderString(HttpHeaders.USER_AGENT);
try {
final int totalContentLength =
messages.messages().stream().mapToInt(message -> message.content().length).sum();
final long totalContentLength =
messages.messages().stream().mapToLong(message -> message.content().length).sum();
rateLimiters.getInboundMessageBytes().validate(destinationIdentifier.uuid(), totalContentLength);
} catch (final RateLimitExceededException e) {
@@ -605,7 +605,7 @@ public class MessageController {
CompletableFuture.allOf(resolvedRecipients.values()
.stream()
.map(account -> account.getIdentifier(IdentityType.ACI))
.map(Account::getAccountIdentifier)
.map(accountIdentifier ->
rateLimiters.getStoriesLimiter().validateAsync(accountIdentifier).toCompletableFuture())
.toList()
@@ -731,42 +731,10 @@ public class MessageController {
@Path("/report/{source}/{messageGuid}")
public Response reportSpamMessage(
@Auth AuthenticatedDevice auth,
@PathParam("source") String source,
@PathParam("source") UUID source,
@PathParam("messageGuid") UUID messageGuid,
@Nullable SpamReport spamReport,
@HeaderParam(HttpHeaders.USER_AGENT) String userAgent
) {
final Optional<String> sourceNumber;
final Optional<UUID> sourceAci;
final Optional<UUID> sourcePni;
if (source.startsWith("+")) {
sourceNumber = Optional.of(source);
final Optional<Account> maybeAccount = accountsManager.getByE164(source);
if (maybeAccount.isPresent()) {
sourceAci = maybeAccount.map(Account::getUuid);
sourcePni = maybeAccount.map(Account::getPhoneNumberIdentifier);
} else {
sourcePni = Optional.ofNullable(phoneNumberIdentifiers.getPhoneNumberIdentifier(source).join());
sourceAci = sourcePni.flatMap(accountsManager::findRecentlyDeletedAccountIdentifier);
}
} else {
sourceAci = Optional.of(UUID.fromString(source));
final Optional<Account> sourceAccount = accountsManager.getByAccountIdentifier(sourceAci.get());
if (sourceAccount.isEmpty()) {
logger.warn("Could not find source: {}", sourceAci.get());
sourcePni = accountsManager.findRecentlyDeletedPhoneNumberIdentifier(sourceAci.get());
sourceNumber = sourcePni.flatMap(pni ->
Util.getCanonicalNumber(phoneNumberIdentifiers.getPhoneNumber(pni).join()));
} else {
sourceNumber = sourceAccount.map(Account::getNumber);
sourcePni = sourceAccount.map(Account::getPhoneNumberIdentifier);
}
}
UUID spamReporterUuid = auth.accountIdentifier();
@HeaderParam(HttpHeaders.USER_AGENT) String userAgent) {
// spam report token is optional, but if provided ensure it is non-empty.
final Optional<byte[]> maybeSpamReportToken =
@@ -774,7 +742,14 @@ public class MessageController {
.flatMap(r -> Optional.ofNullable(r.token()))
.filter(t -> t.length > 0);
reportMessageManager.report(sourceNumber, sourceAci, sourcePni, messageGuid, spamReporterUuid, maybeSpamReportToken, userAgent);
ReportMessageHelper.reportMessage(new AciServiceIdentifier(source),
new AciServiceIdentifier(auth.accountIdentifier()),
messageGuid,
maybeSpamReportToken.orElse(null),
userAgent,
accountsManager,
phoneNumberIdentifiers,
reportMessageManager);
return Response.status(Status.ACCEPTED)
.build();
@@ -62,21 +62,23 @@ import org.whispersystems.textsecuregcm.grpc.SubscriptionsUtil;
import org.whispersystems.textsecuregcm.limits.RateLimitedByIp;
import org.whispersystems.textsecuregcm.limits.RateLimiters;
import org.whispersystems.textsecuregcm.metrics.UserAgentTagUtil;
import org.whispersystems.textsecuregcm.purchases.BraintreeManager;
import org.whispersystems.textsecuregcm.purchases.ChargeFailure;
import org.whispersystems.textsecuregcm.purchases.CustomerAwareSubscriptionPaymentProcessor;
import org.whispersystems.textsecuregcm.purchases.PayPalDonationsTranslator;
import org.whispersystems.textsecuregcm.purchases.PaymentDetails;
import org.whispersystems.textsecuregcm.purchases.PaymentMethod;
import org.whispersystems.textsecuregcm.purchases.PaymentProvider;
import org.whispersystems.textsecuregcm.purchases.PurchaseInvalidAmountException;
import org.whispersystems.textsecuregcm.purchases.PurchaseNotFoundException;
import org.whispersystems.textsecuregcm.purchases.PurchasePaymentRequiredException;
import org.whispersystems.textsecuregcm.purchases.PurchaseProcessorException;
import org.whispersystems.textsecuregcm.purchases.PurchaseReceiptRequestedForOpenPaymentException;
import org.whispersystems.textsecuregcm.purchases.StripeManager;
import org.whispersystems.textsecuregcm.storage.DonationPermitsManager;
import org.whispersystems.textsecuregcm.storage.IssuedReceiptsManager;
import org.whispersystems.textsecuregcm.storage.OneTimeDonationsManager;
import org.whispersystems.textsecuregcm.storage.WriteConflictException;
import org.whispersystems.textsecuregcm.subscriptions.BraintreeManager;
import org.whispersystems.textsecuregcm.subscriptions.ChargeFailure;
import org.whispersystems.textsecuregcm.subscriptions.CustomerAwareSubscriptionPaymentProcessor;
import org.whispersystems.textsecuregcm.subscriptions.PayPalDonationsTranslator;
import org.whispersystems.textsecuregcm.subscriptions.PaymentDetails;
import org.whispersystems.textsecuregcm.subscriptions.PaymentMethod;
import org.whispersystems.textsecuregcm.subscriptions.PaymentProvider;
import org.whispersystems.textsecuregcm.subscriptions.PaymentStatus;
import org.whispersystems.textsecuregcm.subscriptions.StripeManager;
import org.whispersystems.textsecuregcm.subscriptions.SubscriptionInvalidAmountException;
import org.whispersystems.textsecuregcm.subscriptions.SubscriptionProcessorException;
import org.whispersystems.textsecuregcm.util.ExactlySize;
import org.whispersystems.textsecuregcm.util.HeaderUtils;
@@ -179,7 +181,7 @@ public class OneTimeDonationController {
@HeaderParam(HeaderUtils.DONATION_PERMIT) final Optional<DonationPermitHeader> donationPermitHeader,
@NotNull @Valid final CreateBoostRequest request,
@HeaderParam(HttpHeaders.USER_AGENT) final String userAgent) throws SubscriptionInvalidAmountException {
@HeaderParam(HttpHeaders.USER_AGENT) final String userAgent) throws PurchaseInvalidAmountException {
if (authenticatedAccount.isPresent()) {
throw new ForbiddenException("must not use authenticated connection for one-time donation operations");
@@ -194,12 +196,12 @@ public class OneTimeDonationController {
return false;
}
})
.orElse(true);
.orElse(false);
if (!spendSuccessful) {
throw new WebApplicationException(Response.Status.UNAUTHORIZED);
}
validateRequestCurrencyAmount(request, BigDecimal.valueOf(request.amount), stripeManager);
validateRequestCurrencyAmount(request, request.amount, stripeManager);
final PaymentIntent paymentIntent = stripeManager.createPaymentIntent(request.currency, request.amount,
request.level,
getClientPlatform(userAgent));
@@ -212,7 +214,7 @@ public class OneTimeDonationController {
*
* @throws BadRequestException indicates validation failed. Inspect {@code response.error} for details
*/
private void validateRequestCurrencyAmount(final CreateBoostRequest request, final BigDecimal amount,
private void validateRequestCurrencyAmount(final CreateBoostRequest request, final long amount,
final CustomerAwareSubscriptionPaymentProcessor manager) {
final Map<String, String> errorBody = switch (OneTimeDonationUtil.validateOneTimeDonationRequest(request.currency,
@@ -222,11 +224,9 @@ public class OneTimeDonationController {
case OneTimeDonationUtil.OneTimeDonationRequestValidationResult.UnsupportedCurrency _ ->
Map.of("error", "unsupported_currency");
case OneTimeDonationUtil.OneTimeDonationRequestValidationResult.AmountBelowMinimum(final BigDecimal min) ->
Map.of("error", "amount_below_currency_minimum",
"minimum", min.toString());
Map.of("error", "amount_below_currency_minimum", "minimum", min.toString());
case OneTimeDonationUtil.OneTimeDonationRequestValidationResult.AmountAboveSepaLimit(final BigDecimal max) ->
Map.of("error", "amount_above_sepa_limit",
"maximum", max.toString());
Map.of("error", "amount_above_sepa_limit", "maximum", max.toString());
case OneTimeDonationUtil.OneTimeDonationRequestValidationResult.Success _ -> Collections.emptyMap();
};
@@ -265,7 +265,7 @@ public class OneTimeDonationController {
throw new ForbiddenException("must not use authenticated connection for one-time donation operations");
}
validateRequestCurrencyAmount(request, BigDecimal.valueOf(request.amount), braintreeManager);
validateRequestCurrencyAmount(request, request.amount, braintreeManager);
final List<Locale> acceptableLanguages =
HeaderUtils.getAcceptableLanguagesForRequest(containerRequestContext);
final OneTimeDonationUtil.LocalizedPayPalDonationLineItem localizedLineItem = OneTimeDonationUtil.localizePayPalDonationLineItem(
@@ -301,13 +301,13 @@ public class OneTimeDonationController {
public ConfirmPayPalBoostResponse confirmPayPalBoost(
@Auth final Optional<AuthenticatedDevice> authenticatedAccount,
@NotNull @Valid final ConfirmPayPalBoostRequest request,
@HeaderParam(HttpHeaders.USER_AGENT) final String userAgent) throws SubscriptionProcessorException, IOException {
@HeaderParam(HttpHeaders.USER_AGENT) final String userAgent) throws PurchaseProcessorException, IOException {
if (authenticatedAccount.isPresent()) {
throw new ForbiddenException("must not use authenticated connection for one-time donation operations");
}
validateRequestCurrencyAmount(request, BigDecimal.valueOf(request.amount), braintreeManager);
validateRequestCurrencyAmount(request, request.amount, braintreeManager);
final BraintreeManager.PayPalChargeSuccessDetails chargeSuccessDetails = braintreeManager.captureOneTimePayment(
request.payerId, request.paymentId,
request.paymentToken, request.currency, request.amount, request.level, getClientPlatform(userAgent));
@@ -315,7 +315,7 @@ public class OneTimeDonationController {
return new ConfirmPayPalBoostResponse(chargeSuccessDetails.paymentId());
}
public static class CreateBoostReceiptCredentialsRequest {
public static class CreateBoostReceiptCredentialRequest {
/**
* a payment ID from {@link #processor}
@@ -329,10 +329,10 @@ public class OneTimeDonationController {
public PaymentProvider processor = PaymentProvider.STRIPE;
}
public record CreateBoostReceiptCredentialsSuccessResponse(byte[] receiptCredentialResponse) {
public record CreateBoostReceiptCredentialSuccessResponse(byte[] receiptCredentialResponse) {
}
public record CreateBoostReceiptCredentialsErrorResponse(
public record CreateBoostReceiptCredentialErrorResponse(
@JsonInclude(JsonInclude.Include.NON_NULL) ChargeFailure chargeFailure) {}
@POST
@@ -340,36 +340,32 @@ public class OneTimeDonationController {
@Consumes(MediaType.APPLICATION_JSON)
@Produces(MediaType.APPLICATION_JSON)
@ManagedAsync
public Response createBoostReceiptCredentials(
public Response createBoostReceiptCredential(
@Auth final Optional<AuthenticatedDevice> authenticatedAccount,
@NotNull @Valid final CreateBoostReceiptCredentialsRequest request,
@NotNull @Valid final CreateBoostReceiptCredentialRequest request,
@HeaderParam(HttpHeaders.USER_AGENT) final String userAgent) throws IOException {
if (authenticatedAccount.isPresent()) {
throw new ForbiddenException("must not use authenticated connection for one-time donation operations");
}
final Optional<PaymentDetails> maybePaymentDetails = (switch (request.processor) {
case STRIPE -> stripeManager.getPaymentDetails(request.paymentIntentId);
case BRAINTREE -> braintreeManager.getPaymentDetails(request.paymentIntentId);
case GOOGLE_PLAY_BILLING -> throw new BadRequestException("cannot use play billing for one-time donations");
case APPLE_APP_STORE -> throw new BadRequestException("cannot use app store purchases for one-time donations");
});
if (maybePaymentDetails.isEmpty()) {
final PaymentDetails paymentDetails;
try {
paymentDetails = (switch (request.processor) {
case STRIPE -> stripeManager.claimOneTimePurchase(request.paymentIntentId);
case BRAINTREE -> braintreeManager.claimOneTimePurchase(request.paymentIntentId);
case GOOGLE_PLAY_BILLING -> throw new BadRequestException("cannot use play billing for one-time donations");
case APPLE_APP_STORE -> throw new BadRequestException("cannot use app store purchases for one-time donations");
});
} catch (PurchaseNotFoundException _) {
throw new WebApplicationException(Response.Status.NOT_FOUND);
}
final PaymentDetails paymentDetails = maybePaymentDetails.get();
if (paymentDetails.status() == PaymentStatus.PROCESSING) {
} catch (PurchaseReceiptRequestedForOpenPaymentException _) {
return Response.noContent().build();
}
if (paymentDetails.status() != PaymentStatus.SUCCEEDED) {
} catch (PurchasePaymentRequiredException e) {
throw new WebApplicationException(Response.status(Response.Status.PAYMENT_REQUIRED)
.entity(new CreateBoostReceiptCredentialsErrorResponse(paymentDetails.chargeFailure())).build());
.entity(new CreateBoostReceiptCredentialErrorResponse(e.getChargeFailure().orElse(null))).build());
}
// The payment was successful, try to issue the receipt credential
final OneTimeDonationUtil.DonationLevelDetails levelDetails;
try {
levelDetails = OneTimeDonationUtil.getLevelDetails(paymentDetails, oneTimeDonationConfiguration);
@@ -377,27 +373,28 @@ public class OneTimeDonationController {
throw new WebApplicationException(Response.Status.INTERNAL_SERVER_ERROR);
}
// try to issue the receipt credential
final ReceiptCredentialRequest receiptCredentialRequest;
try {
receiptCredentialRequest = new ReceiptCredentialRequest(request.receiptCredentialRequest);
} catch (final InvalidInputException e) {
throw new BadRequestException("invalid receipt credential request", e);
}
try {
issuedReceiptsManager.recordIssuance(paymentDetails.id(), request.processor,
receiptCredentialRequest, clock.instant());
} catch (WriteConflictException _) {
throw new WebApplicationException(Response.Status.CONFLICT);
}
final Instant paidAt = oneTimeDonationsManager.getPaidAt(paymentDetails.id(), paymentDetails.created());
final Instant paidAt = oneTimeDonationsManager.getPaidAt(request.processor, paymentDetails.id(), paymentDetails.created());
final Instant expiration = paidAt
.plus(levelDetails.levelExpiration())
.truncatedTo(ChronoUnit.DAYS)
.plus(1, ChronoUnit.DAYS);
try {
issuedReceiptsManager.recordOneTimeIssuance(paymentDetails.id(), request.processor,
receiptCredentialRequest, expiration);
} catch (WriteConflictException _) {
throw new WebApplicationException(Response.Status.CONFLICT);
}
final ReceiptCredentialResponse receiptCredentialResponse;
try {
receiptCredentialResponse = zkReceiptOperations.issueReceiptCredential(
receiptCredentialRequest, expiration.getEpochSecond(), levelDetails.level());
receiptCredentialRequest, expiration.getEpochSecond(), levelDetails.level().getValue());
} catch (final VerificationFailedException e) {
throw new BadRequestException("receipt credential request failed verification", e);
}
@@ -408,7 +405,7 @@ public class OneTimeDonationController {
UserAgentTagUtil.getPlatformTag(userAgent)))
.increment();
return Response.ok(
new CreateBoostReceiptCredentialsSuccessResponse(receiptCredentialResponse.serialize()))
new CreateBoostReceiptCredentialSuccessResponse(receiptCredentialResponse.serialize()))
.build();
}
}
@@ -50,6 +50,7 @@ import java.util.Optional;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.Executor;
import java.util.function.Function;
import java.util.function.Supplier;
import java.util.stream.Collectors;
import javax.annotation.Nullable;
import org.glassfish.jersey.server.ManagedAsync;
@@ -64,6 +65,7 @@ import org.signal.libsignal.zkgroup.profiles.ExpiringProfileKeyCredentialRespons
import org.signal.libsignal.zkgroup.profiles.ProfileKeyCommitment;
import org.signal.libsignal.zkgroup.profiles.ProfileKeyCredentialRequest;
import org.signal.libsignal.zkgroup.profiles.ServerZkProfileOperations;
import org.whispersystems.textsecuregcm.asn.AsnInfoProvider;
import org.whispersystems.textsecuregcm.auth.Anonymous;
import org.whispersystems.textsecuregcm.auth.AuthenticatedDevice;
import org.whispersystems.textsecuregcm.auth.GroupSendTokenHeader;
@@ -80,6 +82,7 @@ import org.whispersystems.textsecuregcm.entities.CreateProfileRequest;
import org.whispersystems.textsecuregcm.entities.ExpiringProfileKeyCredentialProfileResponse;
import org.whispersystems.textsecuregcm.entities.ProfileAvatarUploadAttributes;
import org.whispersystems.textsecuregcm.entities.VersionedProfileResponse;
import org.whispersystems.textsecuregcm.filters.RemoteAddressFilter;
import org.whispersystems.textsecuregcm.identity.AciServiceIdentifier;
import org.whispersystems.textsecuregcm.identity.IdentityType;
import org.whispersystems.textsecuregcm.identity.PniServiceIdentifier;
@@ -108,6 +111,7 @@ public class ProfileController {
private final RateLimiters rateLimiters;
private final ProfilesManager profilesManager;
private final AccountsManager accountsManager;
private final Supplier<AsnInfoProvider> asnInfoProviderSupplier;
private final DynamicConfigurationManager<DynamicConfiguration> dynamicConfigurationManager;
private final ProfileBadgeConverter profileBadgeConverter;
private final Map<String, BadgeConfiguration> badgeConfigurationMap;
@@ -124,25 +128,27 @@ public class ProfileController {
private static final String DUPLICATE_AUTHENTICATION_COUNTER_NAME = name(ProfileController.class, "duplicateAuthentication");
public ProfileController(
Clock clock,
RateLimiters rateLimiters,
AccountsManager accountsManager,
ProfilesManager profilesManager,
DynamicConfigurationManager<DynamicConfiguration> dynamicConfigurationManager,
ProfileBadgeConverter profileBadgeConverter,
BadgesConfiguration badgesConfiguration,
PostPolicyGenerator policyGenerator,
ServerSecretParams serverSecretParams,
ServerZkProfileOperations zkProfileOperations,
Executor batchIdentityCheckExecutor) {
final Clock clock,
final RateLimiters rateLimiters,
final AccountsManager accountsManager,
final ProfilesManager profilesManager,
final Supplier<AsnInfoProvider> asnInfoProviderSupplier,
final DynamicConfigurationManager<DynamicConfiguration> dynamicConfigurationManager,
final ProfileBadgeConverter profileBadgeConverter,
final BadgesConfiguration badgesConfiguration,
final PostPolicyGenerator policyGenerator,
final ServerSecretParams serverSecretParams,
final ServerZkProfileOperations zkProfileOperations,
final Executor batchIdentityCheckExecutor) {
this.clock = clock;
this.rateLimiters = rateLimiters;
this.accountsManager = accountsManager;
this.profilesManager = profilesManager;
this.asnInfoProviderSupplier = asnInfoProviderSupplier;
this.dynamicConfigurationManager = dynamicConfigurationManager;
this.profileBadgeConverter = profileBadgeConverter;
this.badgeConfigurationMap = badgesConfiguration.getBadges().stream().collect(Collectors.toMap(
BadgeConfiguration::getId, Function.identity()));
this.badgeConfigurationMap = badgesConfiguration.getBadges().stream()
.collect(Collectors.toMap(BadgeConfiguration::getId, Function.identity()));
this.serverSecretParams = serverSecretParams;
this.zkProfileOperations = zkProfileOperations;
this.policyGenerator = policyGenerator;
@@ -161,10 +167,12 @@ public class ProfileController {
description = "If the request changed the avatar, the response body contains an upload form.")))
@ApiResponse(responseCode = "400", description = "Invalid create profile request.")
@ApiResponse(responseCode = "401", description = "Account authentication check failed.")
@ApiResponse(responseCode = "403", description = "The request contained a payment address, but payments are not supported in the region of the account’s phone number.")
@ApiResponse(responseCode = "403", description = "The request contained a payment address, but payments are not supported in the region of the account’s phone number or the caller's ASN if the account does not have a phone number.")
@ApiResponse(responseCode = "412", description = "The requesting account has the profiles_v2 capability")
@ApiResponse(responseCode = "422", description = "Invalid request format")
public Response setProfile(@Auth AuthenticatedDevice auth, @NotNull @Valid CreateProfileRequest request) {
public Response setProfile(@Auth AuthenticatedDevice auth,
@NotNull @Valid CreateProfileRequest request,
@Context final ContainerRequestContext requestContext) {
final Account account = accountsManager.getByAccountIdentifier(auth.accountIdentifier())
.orElseThrow(() -> new WebApplicationException(Response.Status.UNAUTHORIZED));
@@ -176,7 +184,12 @@ public class ProfileController {
final Optional<VersionedProfileV1> currentProfile =
profilesManager.getV1(auth.accountIdentifier(), request.version());
if (request.paymentAddress() != null && request.paymentAddress().length != 0 && ProfileHelper.isPaymentAddressUpdateForbidden(account, Optional.empty(), currentProfile, dynamicConfigurationManager)) {
final String remoteAddress = (String) requestContext.getProperty(RemoteAddressFilter.REMOTE_ADDRESS_ATTRIBUTE_NAME);
if (request.paymentAddress() != null &&
request.paymentAddress().length != 0 &&
ProfileHelper.isPaymentAddressUpdateForbidden(account, Optional.empty(), currentProfile, remoteAddress, asnInfoProviderSupplier.get(), dynamicConfigurationManager)) {
return Response.status(Response.Status.FORBIDDEN).build();
}
@@ -198,7 +211,7 @@ public class ProfileController {
currentAvatar.ifPresent(profilesManager::deleteAvatar);
}
accountsManager.update(account.getIdentifier(IdentityType.ACI), a -> {
accountsManager.update(account.getAccountIdentifier(), a -> {
final List<AccountBadge> updatedBadges = request.badges()
.map(badges -> ProfileHelper.mergeBadgeIdsWithExistingAccountBadges(clock, badgeConfigurationMap, badges, a.getBadges()))
@@ -245,7 +258,7 @@ public class ProfileController {
return buildVersionedProfileResponse(targetAccount,
version,
maybeRequester.map(requester -> ProfileHelper.isSelfProfileRequest(requester.getUuid(), accountIdentifier)).orElse(false),
maybeRequester.map(requester -> ProfileHelper.isSelfProfileRequest(requester.getAccountIdentifier(), accountIdentifier)).orElse(false),
false,
containerRequestContext);
}
@@ -286,7 +299,7 @@ public class ProfileController {
.orElseThrow(() -> new WebApplicationException(Response.Status.UNAUTHORIZED)));
final Account targetAccount = verifyPermissionToReceiveProfile(maybeRequester, accessKey, accountIdentifier, "credentialRequest", userAgent);
final boolean isSelf = maybeRequester.map(requester -> ProfileHelper.isSelfProfileRequest(requester.getUuid(), accountIdentifier)).orElse(false);
final boolean isSelf = maybeRequester.map(requester -> ProfileHelper.isSelfProfileRequest(requester.getAccountIdentifier(), accountIdentifier)).orElse(false);
return buildExpiringProfileKeyCredentialProfileResponse(targetAccount,
version,
@@ -341,7 +354,7 @@ public class ProfileController {
}
return switch (identifier.identityType()) {
case ACI -> buildBaseProfileResponseForAccountIdentity(targetAccount,
maybeRequester.map(requester -> ProfileHelper.isSelfProfileRequest(requester.getUuid(), identifier)).orElse(false),
maybeRequester.map(requester -> ProfileHelper.isSelfProfileRequest(requester.getAccountIdentifier(), identifier)).orElse(false),
containerRequestContext);
case PNI -> buildBaseProfileResponseForPhoneNumberIdentity(targetAccount);
};
@@ -401,11 +414,17 @@ public class ProfileController {
final Optional<Account> maybeAccount = accountsManager.getByServiceIdentifier(identifier);
maybeAccount.ifPresent(account -> {
final IdentityKey identityKey = account.getIdentityKey(identifier.identityType());
if (identityKey == null) {
final Optional<IdentityKey> maybeIdentityKey = switch (identifier.identityType()) {
case ACI -> Optional.of(account.getAccountIdentityKey());
case PNI -> account.getPhoneNumberIdentityKey();
};
if (maybeIdentityKey.isEmpty()) {
return;
}
final IdentityKey identityKey = maybeIdentityKey.get();
md.reset();
byte[] digest = md.digest(identityKey.serialize());
byte[] fingerprint = Util.truncate(digest, 4);
@@ -426,13 +445,13 @@ public class ProfileController {
final ExpiringProfileKeyCredentialResponse expiringProfileKeyCredentialResponse;
if (account.getCurrentProfileVersion().map(v -> HexFormat.of().formatHex(v).equals(version)).orElse(false)) {
expiringProfileKeyCredentialResponse = profilesManager.getV1(account.getUuid(), version)
expiringProfileKeyCredentialResponse = profilesManager.getV1(account.getAccountIdentifier(), version)
.map(profile -> {
final ExpiringProfileKeyCredentialResponse profileKeyCredentialResponse;
try {
profileKeyCredentialResponse = ProfileHelper.getExpiringProfileKeyCredential(
new ProfileKeyCredentialRequest(HexFormat.of().parseHex(encodedCredentialRequest)),
new ProfileKeyCommitment(profile.commitment()), new ServiceId.Aci(account.getUuid()),
new ProfileKeyCommitment(profile.commitment()), new ServiceId.Aci(account.getAccountIdentifier()),
zkProfileOperations);
} catch (VerificationFailedException | InvalidInputException e) {
throw new BadRequestException(e);
@@ -455,7 +474,7 @@ public class ProfileController {
final boolean hasCredentialRequest,
final ContainerRequestContext containerRequestContext) {
final Optional<VersionedProfileV1> maybeProfile = profilesManager.getV1(account.getUuid(), version);
final Optional<VersionedProfileV1> maybeProfile = profilesManager.getV1(account.getAccountIdentifier(), version);
if (maybeProfile.isEmpty()) {
// this can happen if an account re-registers, which includes some device-transfer scenarios
@@ -490,7 +509,7 @@ public class ProfileController {
final boolean isSelf,
final ContainerRequestContext containerRequestContext) {
return new BaseProfileResponse(account.getIdentityKey(IdentityType.ACI),
return new BaseProfileResponse(account.getAccountIdentityKey(),
account.getUnidentifiedAccessKey().map(UnidentifiedAccessChecksum::generateFor).orElse(null),
account.isUnrestrictedUnidentifiedAccess(),
getAccountCapabilities(account),
@@ -498,16 +517,18 @@ public class ProfileController {
HeaderUtils.getAcceptableLanguagesForRequest(containerRequestContext),
account.getBadges(),
isSelf),
new AciServiceIdentifier(account.getUuid()));
new AciServiceIdentifier(account.getAccountIdentifier()));
}
private BaseProfileResponse buildBaseProfileResponseForPhoneNumberIdentity(final Account account) {
return new BaseProfileResponse(account.getIdentityKey(IdentityType.PNI),
return new BaseProfileResponse(account.getPhoneNumberIdentityKey()
.orElseThrow(() -> new IllegalStateException("Account retrieved by PNI does not have PNI identity key")),
null,
false,
getAccountCapabilities(account),
Collections.emptyList(),
new PniServiceIdentifier(account.getPhoneNumberIdentifier()));
new PniServiceIdentifier(account.getPhoneNumberIdentifier()
.orElseThrow(() -> new IllegalStateException("Account retrieved by PNI does not have PNI"))));
}
/**
@@ -537,7 +558,7 @@ public class ProfileController {
}
if (maybeRequester.isPresent()) {
rateLimiters.getProfileLimiter().validate(maybeRequester.get().getUuid());
rateLimiters.getProfileLimiter().validate(maybeRequester.get().getAccountIdentifier());
}
final Optional<Account> maybeTargetAccount = accountsManager.getByServiceIdentifier(accountIdentifier);
@@ -559,7 +580,7 @@ public class ProfileController {
private static Map<String, Boolean> getAccountCapabilities(final Account account) {
return Arrays.stream(DeviceCapability.values())
.filter(DeviceCapability::includeInProfile)
.filter(DeviceCapability::includeInLegacyProfile)
.collect(Collectors.toMap(DeviceCapability::getName, account::hasCapability));
}
}
@@ -13,6 +13,8 @@ import io.micrometer.core.instrument.Metrics;
import io.micrometer.core.instrument.Tag;
import io.micrometer.core.instrument.Tags;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.enums.ParameterIn;
import io.swagger.v3.oas.annotations.headers.Header;
import io.swagger.v3.oas.annotations.media.Content;
import io.swagger.v3.oas.annotations.media.Schema;
@@ -34,21 +36,30 @@ import jakarta.ws.rs.core.Context;
import jakarta.ws.rs.core.MediaType;
import jakarta.ws.rs.core.Response;
import java.io.IOException;
import java.time.Clock;
import java.time.Duration;
import java.time.Instant;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Optional;
import java.util.UUID;
import javax.annotation.Nullable;
import org.apache.commons.lang3.ArrayUtils;
import org.apache.commons.lang3.StringUtils;
import org.signal.libsignal.zkgroup.InvalidInputException;
import org.signal.libsignal.zkgroup.VerificationFailedException;
import org.signal.libsignal.zkgroup.receipts.ReceiptCredentialPresentation;
import org.signal.libsignal.zkgroup.receipts.ServerZkReceiptOperations;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.whispersystems.textsecuregcm.auth.BasicAuthorizationHeader;
import org.whispersystems.textsecuregcm.auth.InvalidRegistrationSessionException;
import org.whispersystems.textsecuregcm.auth.MfaFailureException;
import org.whispersystems.textsecuregcm.auth.PhoneVerificationTokenManager;
import org.whispersystems.textsecuregcm.auth.RecoveryPasswordVerificationFailedException;
import org.whispersystems.textsecuregcm.auth.RegistrationLockFailureException;
import org.whispersystems.textsecuregcm.auth.RegistrationLockVerificationManager;
import org.whispersystems.textsecuregcm.auth.UnverifiedRegistrationSessionException;
import org.whispersystems.textsecuregcm.configuration.dynamic.DynamicConfiguration;
import org.whispersystems.textsecuregcm.entities.AccountCreationResponse;
import org.whispersystems.textsecuregcm.entities.AccountIdentityResponse;
import org.whispersystems.textsecuregcm.entities.PhoneVerificationRequest;
@@ -56,12 +67,21 @@ import org.whispersystems.textsecuregcm.entities.RegistrationLockFailure;
import org.whispersystems.textsecuregcm.entities.RegistrationRequest;
import org.whispersystems.textsecuregcm.filters.RemoteAddressFilter;
import org.whispersystems.textsecuregcm.limits.RateLimiters;
import org.whispersystems.textsecuregcm.mappers.MfaFailureExceptionMapper;
import org.whispersystems.textsecuregcm.metrics.UserAgentTagUtil;
import org.whispersystems.textsecuregcm.spam.RegistrationFraudChecker;
import org.whispersystems.textsecuregcm.storage.Account;
import org.whispersystems.textsecuregcm.storage.AccountsManager;
import org.whispersystems.textsecuregcm.storage.AnnotatedTotpKey;
import org.whispersystems.textsecuregcm.storage.AnnotatedWebAuthnCredential;
import org.whispersystems.textsecuregcm.storage.DeviceCapability;
import org.whispersystems.textsecuregcm.storage.DeviceIdentityInfo;
import org.whispersystems.textsecuregcm.storage.DeviceSpec;
import org.whispersystems.textsecuregcm.storage.DynamicConfigurationManager;
import org.whispersystems.textsecuregcm.storage.PhoneNumberRecoveryPasswordsManager;
import org.whispersystems.textsecuregcm.storage.ReceiptAlreadyRedeemedException;
import org.whispersystems.textsecuregcm.purchases.ReceiptCredentialPresentationFactory;
import org.whispersystems.textsecuregcm.purchases.ReceiptLevel;
import org.whispersystems.textsecuregcm.util.HeaderUtils;
import org.whispersystems.textsecuregcm.util.Util;
@@ -84,6 +104,10 @@ public class RegistrationController {
private final RegistrationLockVerificationManager registrationLockVerificationManager;
private final RateLimiters rateLimiters;
private final RegistrationFraudChecker registrationFraudChecker;
private final ReceiptCredentialPresentationFactory receiptCredentialPresentationFactory;
private final ServerZkReceiptOperations serverZkReceiptOperations;
private final Clock clock;
private final DynamicConfigurationManager<DynamicConfiguration> dynamicConfigurationManager;
private static final Logger logger = LoggerFactory.getLogger(RegistrationController.class);
@@ -91,13 +115,21 @@ public class RegistrationController {
final PhoneVerificationTokenManager phoneVerificationTokenManager,
final RegistrationLockVerificationManager registrationLockVerificationManager,
final RateLimiters rateLimiters,
final RegistrationFraudChecker registrationFraudChecker) {
final RegistrationFraudChecker registrationFraudChecker,
final ReceiptCredentialPresentationFactory receiptCredentialPresentationFactory,
final ServerZkReceiptOperations serverZkReceiptOperations,
final Clock clock,
final DynamicConfigurationManager<DynamicConfiguration> dynamicConfigurationManager) {
this.accounts = accounts;
this.phoneVerificationTokenManager = phoneVerificationTokenManager;
this.registrationLockVerificationManager = registrationLockVerificationManager;
this.rateLimiters = rateLimiters;
this.registrationFraudChecker = registrationFraudChecker;
this.receiptCredentialPresentationFactory = receiptCredentialPresentationFactory;
this.serverZkReceiptOperations = serverZkReceiptOperations;
this.clock = clock;
this.dynamicConfigurationManager = dynamicConfigurationManager;
}
@POST
@@ -112,7 +144,8 @@ public class RegistrationController {
3. success \n
""")
@ApiResponse(responseCode = "200", description = "Account creation succeeded", useReturnTypeSchema = true)
@ApiResponse(responseCode = "401", description = "The session identified in the request is not verified")
@ApiResponse(responseCode = "400", description = "Invalid session ID or receipt credential presentation")
@ApiResponse(responseCode = "401", description = "The session identified in the request is not verified, or the receipt credential presented fails verification, is expired, or is already redeemed")
@ApiResponse(responseCode = "403", description = "Verification failed for the provided Registration Recovery Password")
@ApiResponse(responseCode = "409", description = "The caller has not explicitly elected to skip transferring data from another device, but a device transfer is technically possible")
@ApiResponse(responseCode = "422", description = "The request did not pass validation")
@@ -120,17 +153,34 @@ public class RegistrationController {
@ApiResponse(responseCode = "429", description = "Too many attempts", headers = @Header(
name = "Retry-After",
description = "If present, an positive integer indicating the number of seconds before a subsequent attempt could succeed"))
@ApiResponse(responseCode = "441",
description = """
Second factor authentication failed. Either the account has one or more factors configured, and the request’s
factor was incorrect or absent, or the account has no factors, but the request included a factor.
""",
content = @Content(schema = @Schema(implementation = MfaFailureExceptionMapper.MfaFailureResponse.class)))
@ApiResponse(responseCode = "499", description = "Client must support post-quantum ratchet")
public AccountCreationResponse register(
@Parameter(
in = ParameterIn.HEADER,
name = HttpHeaders.AUTHORIZATION,
description = """
The basic auth header. For accounts with a phone number, the username must be the e164-formatted number that
is being registered. For accounts without a phone number, the username is ignored on a fresh registration
(it must be present, however, so any string that can't be parsed as an e164-formatted phone number or UUID
is acceptable; "__no_number__" is recommended). For account recovery (re-registration) by ACI, it must be
set to the ACI of the account being recovered. In all cases, the password is the password to be used for
primary device authentication.
""",
required = true,
schema = @Schema(type = "string")
)
@HeaderParam(HttpHeaders.AUTHORIZATION) @NotNull final BasicAuthorizationHeader authorizationHeader,
@HeaderParam(HeaderUtils.X_SIGNAL_AGENT) final String signalAgent,
@HeaderParam(HttpHeaders.USER_AGENT) final String userAgent,
@NotNull @Valid final RegistrationRequest registrationRequest,
@Context final ContainerRequestContext requestContext)
throws RateLimitExceededException, InterruptedException, RegistrationLockFailureException {
final String number = authorizationHeader.getUsername();
final String password = authorizationHeader.getPassword();
throws RateLimitExceededException, InterruptedException, RegistrationLockFailureException, MfaFailureException {
if (!registrationRequest.isEverySignedKeyValid(userAgent)) {
throw new WebApplicationException("Invalid signature", 422);
@@ -143,7 +193,47 @@ public class RegistrationController {
throw new WebApplicationException("Missing required device capability", 499);
}
rateLimiters.getRegistrationLimiter().validate(number);
final AccountCreationResponse response;
if (registrationRequest.receiptCredentialPresentation() != null && registrationRequest.receiptCredentialPresentation().length > 0) {
// A receipt credential presentation will only be present if the caller is trying to register a new account
// without a phone number, in which case we can (and must) ignore the "username" in the authentication header.
response = registerAccountWithoutNumber(authorizationHeader.getPassword(), registrationRequest, userAgent, signalAgent);
} else {
// The caller is either trying to register a new account with a phone number or recover an account by ACI. Either
// way, the "username" from the auth header is meaningful.
@Nullable UUID recoveredAccountIdentifier;
try {
recoveredAccountIdentifier = UUID.fromString(authorizationHeader.getUsername());
} catch (final IllegalArgumentException _) {
// The provided username is either a phone number or a nonsense string (for registration without a phone number)
recoveredAccountIdentifier = null;
}
if (recoveredAccountIdentifier != null) {
response = recoverAccount(recoveredAccountIdentifier, authorizationHeader.getPassword(), registrationRequest, userAgent, signalAgent);
} else {
response = registerAccountWithNumber(authorizationHeader.getUsername(), authorizationHeader.getPassword(), registrationRequest, requestContext, userAgent, signalAgent);
}
}
return response;
}
private AccountCreationResponse registerAccountWithNumber(
final String number,
final String password,
final RegistrationRequest registrationRequest,
final ContainerRequestContext requestContext,
final String userAgent,
final String signalAgent)
throws RateLimitExceededException, InterruptedException, RegistrationLockFailureException, MfaFailureException {
if (registrationRequest.pniIdentityKey() == null) {
// RegistrationRequest checks that either all phone number-associated information is present or all is absent
throw new WebApplicationException("PNI keys and registration ID must be provided", 422);
}
final PhoneVerificationRequest.VerificationType verificationType;
try {
@@ -164,9 +254,11 @@ public class RegistrationController {
throw new ForbiddenException("recovery password could not be verified");
}
rateLimiters.getRegistrationLimiter().validate(number);
// There can be at most one existing account for a set of numbers in the same equivalence class, so it's sufficient
// to find the first one.
final Optional<Account> existingAccount = Util.getAlternateForms(number)
Optional<Account> existingAccount = Util.getAlternateForms(number)
.stream()
.map(accounts::getByE164)
.filter(Optional::isPresent)
@@ -186,14 +278,16 @@ public class RegistrationController {
}
if (existingAccount.isPresent()) {
assert existingAccount.get().getNumber().isPresent();
registrationLockVerificationManager.verifyRegistrationLock(existingAccount.get(),
registrationRequest.accountAttributes().getRegistrationLock(),
userAgent, RegistrationLockVerificationManager.Flow.REGISTRATION, verificationType);
existingAccount = Optional.of(checkMfa(existingAccount.get(), registrationRequest.webAuthnResponse(), registrationRequest.totp()));
}
final Account account = accounts.create(number,
registrationRequest.accountAttributes(),
existingAccount.map(Account::getBadges).orElseGet(ArrayList::new),
registrationRequest.aciIdentityKey(),
registrationRequest.pniIdentityKey(),
new DeviceSpec(
@@ -201,15 +295,18 @@ public class RegistrationController {
password,
signalAgent,
registrationRequest.accountAttributes().getCapabilities(),
registrationRequest.accountAttributes().getRegistrationId(),
registrationRequest.accountAttributes().getPhoneNumberIdentityRegistrationId(),
new DeviceIdentityInfo(
registrationRequest.accountAttributes().getRegistrationId(),
registrationRequest.deviceActivationRequest().aciSignedPreKey(),
registrationRequest.deviceActivationRequest().aciPqLastResortPreKey()),
Optional.of(new DeviceIdentityInfo(
registrationRequest.accountAttributes().getPhoneNumberIdentityRegistrationId().get(),
// We've already validated the presence of PNI keys by this point
registrationRequest.deviceActivationRequest().pniSignedPreKey().get(),
registrationRequest.deviceActivationRequest().pniPqLastResortPreKey().get())),
registrationRequest.accountAttributes().getFetchesMessages(),
registrationRequest.deviceActivationRequest().apnToken(),
registrationRequest.deviceActivationRequest().gcmToken(),
registrationRequest.deviceActivationRequest().aciSignedPreKey(),
registrationRequest.deviceActivationRequest().pniSignedPreKey(),
registrationRequest.deviceActivationRequest().aciPqLastResortPreKey(),
registrationRequest.deviceActivationRequest().pniPqLastResortPreKey()),
registrationRequest.deviceActivationRequest().gcmToken()),
userAgent);
if (verificationType == PhoneVerificationRequest.VerificationType.SESSION) {
@@ -236,4 +333,223 @@ public class RegistrationController {
return new AccountCreationResponse(identityResponse, existingAccount.isPresent());
}
private AccountCreationResponse registerAccountWithoutNumber(
final String password,
final RegistrationRequest registrationRequest,
final String userAgent,
final String signalAgent) {
if (!dynamicConfigurationManager.getConfiguration().getLoginPurchaseConfiguration().enabled()) {
throw new BadRequestException("login purchases are not enabled");
}
registrationRequest.accountAttributes().recoveryPassword()
.filter(ArrayUtils::isNotEmpty)
.orElseThrow(() -> new WebApplicationException("Account recovery password is required", 422));
final ReceiptCredentialPresentation receiptCredentialPresentation;
try {
receiptCredentialPresentation = receiptCredentialPresentationFactory
.build(registrationRequest.receiptCredentialPresentation());
} catch (InvalidInputException _) {
throw new BadRequestException("Invalid receipt credential presentation");
}
try {
serverZkReceiptOperations.verifyReceiptCredentialPresentation(receiptCredentialPresentation);
} catch (VerificationFailedException _) {
throw new NotAuthorizedException("Receipt credential presentation verification failed");
}
final Instant receiptExpiration = Instant.ofEpochSecond(receiptCredentialPresentation.getReceiptExpirationTime());
if (clock.instant().isAfter(receiptExpiration)) {
throw new NotAuthorizedException("Receipt is already expired");
}
final long receiptLevel = receiptCredentialPresentation.getReceiptLevel();
if (receiptLevel != ReceiptLevel.LOGIN.getValue() && receiptLevel != ReceiptLevel.LOGIN_SANDBOX.getValue()) {
throw new BadRequestException("Invalid receipt level");
}
try {
final Account account = accounts.create(
registrationRequest.accountAttributes(),
registrationRequest.aciIdentityKey(),
receiptCredentialPresentation,
new DeviceSpec(
registrationRequest.accountAttributes().getName(),
password,
signalAgent,
registrationRequest.accountAttributes().getCapabilities(),
new DeviceIdentityInfo(registrationRequest.accountAttributes().getRegistrationId(), registrationRequest.deviceActivationRequest()
.aciSignedPreKey(), registrationRequest.deviceActivationRequest().aciPqLastResortPreKey()),
Optional.empty(),
registrationRequest.accountAttributes().getFetchesMessages(),
registrationRequest.deviceActivationRequest().apnToken(),
registrationRequest.deviceActivationRequest().gcmToken()),
userAgent);
Metrics.counter(ACCOUNT_CREATED_COUNTER_NAME, Tags.of(UserAgentTagUtil.getPlatformTag(userAgent),
Tag.of(VERIFICATION_TYPE_TAG_NAME, registrationRequest.verificationType().name())))
.increment();
final AccountIdentityResponse accountIdentityResponse = new AccountIdentityResponseBuilder(account).build();
return new AccountCreationResponse(accountIdentityResponse, false);
} catch (ReceiptAlreadyRedeemedException _) {
throw new NotAuthorizedException("Receipt already redeemed");
}
}
private AccountCreationResponse recoverAccount(final UUID accountIdentifier,
final String password,
final RegistrationRequest registrationRequest,
final String userAgent,
final String signalAgent) throws RegistrationLockFailureException, RateLimitExceededException, MfaFailureException {
if (!dynamicConfigurationManager.getConfiguration().getLoginPurchaseConfiguration().enabled()) {
throw new BadRequestException("login purchases are not enabled");
}
if (ArrayUtils.isEmpty(registrationRequest.recoveryPassword())) {
throw new BadRequestException("Recovery password required for authentication when recovering an account by identifier");
}
if (registrationRequest.accountAttributes().recoveryPassword().isEmpty()) {
throw new BadRequestException("Recovery password required for for storage when recovering an account by identifier");
}
if (registrationRequest.pniIdentityKey() == null) {
throw new BadRequestException("Must specify a PNI-associated identity key when recovering an account by identifier");
}
Account existingAccount = accounts.getByAccountIdentifier(accountIdentifier)
.orElseThrow(ForbiddenException::new);
final boolean passwordVerified = existingAccount.getAccountRecoveryPassword()
.map(saltedRecoveryPasswordHash -> PhoneNumberRecoveryPasswordsManager.verify(saltedRecoveryPasswordHash, registrationRequest.recoveryPassword()))
.orElse(false);
if (!passwordVerified) {
throw new ForbiddenException();
}
if (!registrationRequest.skipDeviceTransfer() && existingAccount.hasCapability(DeviceCapability.TRANSFER)) {
// If a device transfer is possible, clients must explicitly opt out of a transfer (i.e. after prompting the user)
// before we'll let them recover an account and start "from scratch"
throw new WebApplicationException(Response.status(409, "device transfer available").build());
}
existingAccount = checkMfa(existingAccount, registrationRequest.webAuthnResponse(), registrationRequest.totp());
final Account reclaimedAccount = existingAccount.getNumber().isPresent()
? recoverAccountWithPhoneNumber(existingAccount, registrationRequest, password, userAgent, signalAgent)
: recoverAccountWithoutPhoneNumber(existingAccount, registrationRequest, password, userAgent, signalAgent);
Metrics.counter(ACCOUNT_CREATED_COUNTER_NAME, Tags.of(UserAgentTagUtil.getPlatformTag(userAgent),
Tag.of(VERIFICATION_TYPE_TAG_NAME, registrationRequest.verificationType().name())))
.increment();
return new AccountCreationResponse(new AccountIdentityResponseBuilder(reclaimedAccount)
.storageCapable(existingAccount.hasCapability(DeviceCapability.STORAGE))
.build(), true);
}
private Account recoverAccountWithoutPhoneNumber(final Account existingAccount,
final RegistrationRequest registrationRequest,
final String password,
final String userAgent,
final String signalAgent) {
return accounts.recover(existingAccount,
registrationRequest.accountAttributes(),
registrationRequest.aciIdentityKey(),
Optional.empty(),
new DeviceSpec(
registrationRequest.accountAttributes().getName(),
password,
signalAgent,
registrationRequest.accountAttributes().getCapabilities(),
new DeviceIdentityInfo(
registrationRequest.accountAttributes().getRegistrationId(),
registrationRequest.deviceActivationRequest().aciSignedPreKey(),
registrationRequest.deviceActivationRequest().aciPqLastResortPreKey()),
Optional.empty(),
registrationRequest.accountAttributes().getFetchesMessages(),
registrationRequest.deviceActivationRequest().apnToken(),
registrationRequest.deviceActivationRequest().gcmToken()),
userAgent);
}
private Account recoverAccountWithPhoneNumber(final Account existingAccount,
final RegistrationRequest registrationRequest,
final String password,
final String userAgent,
final String signalAgent) throws RegistrationLockFailureException, RateLimitExceededException {
registrationLockVerificationManager.verifyRegistrationLock(existingAccount,
registrationRequest.accountAttributes().getRegistrationLock(),
userAgent,
RegistrationLockVerificationManager.Flow.REGISTRATION,
PhoneVerificationRequest.VerificationType.RECOVERY_PASSWORD);
assert registrationRequest.pniIdentityKey() != null;
return accounts.recover(existingAccount,
registrationRequest.accountAttributes(),
registrationRequest.aciIdentityKey(),
Optional.of(registrationRequest.pniIdentityKey()),
new DeviceSpec(
registrationRequest.accountAttributes().getName(),
password,
signalAgent,
registrationRequest.accountAttributes().getCapabilities(),
new DeviceIdentityInfo(
registrationRequest.accountAttributes().getRegistrationId(),
registrationRequest.deviceActivationRequest().aciSignedPreKey(),
registrationRequest.deviceActivationRequest().aciPqLastResortPreKey()),
Optional.of(new DeviceIdentityInfo(
registrationRequest.accountAttributes().getPhoneNumberIdentityRegistrationId().get(),
// We've already validated the presence of PNI keys by this point
registrationRequest.deviceActivationRequest().pniSignedPreKey().orElseThrow(),
registrationRequest.deviceActivationRequest().pniPqLastResortPreKey().orElseThrow())),
registrationRequest.accountAttributes().getFetchesMessages(),
registrationRequest.deviceActivationRequest().apnToken(),
registrationRequest.deviceActivationRequest().gcmToken()),
userAgent);
}
/// @return the maybe-updated [Account] reference. Callers must use it to avoid stale reads and updates.
private Account checkMfa(final Account account, @Nullable final String webAuthn, @Nullable final Integer totp) throws RateLimitExceededException, MfaFailureException {
final boolean hasTotp = account.getMfaKeys().values().stream().anyMatch(k -> k instanceof AnnotatedTotpKey);
final boolean hasWebAuthn = account.getMfaKeys().values().stream().anyMatch(k -> k instanceof AnnotatedWebAuthnCredential);
if (!hasTotp && !hasWebAuthn) {
if (totp != null || webAuthn != null) {
throw new MfaFailureException(null, false);
}
return account;
}
if (totp != null || webAuthn != null) {
rateLimiters.getCheckMfaLimiter().validate(account.getAccountIdentifier());
}
final Optional<Account> updatedAccount;
if (hasWebAuthn && webAuthn != null) {
updatedAccount = accounts.verifyWebAuthnAuthentication(account, webAuthn);
} else {
updatedAccount = Optional.empty();
}
final boolean webAuthnVerified = updatedAccount.isPresent();
final boolean totpVerified = hasTotp && totp != null
&& accounts.verifyTotp(account, clock.instant(), totp);
if (webAuthnVerified || totpVerified) {
return updatedAccount.orElse(account);
}
throw new MfaFailureException(accounts.startWebAuthnAuthentication(account).orElse(null), hasTotp);
}
}
@@ -5,7 +5,6 @@
package org.whispersystems.textsecuregcm.controllers;
import com.google.common.annotations.VisibleForTesting;
import io.dropwizard.auth.Auth;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
@@ -22,45 +21,21 @@ import jakarta.ws.rs.core.EntityTag;
import jakarta.ws.rs.core.HttpHeaders;
import jakarta.ws.rs.core.MediaType;
import jakarta.ws.rs.core.Response;
import java.nio.ByteBuffer;
import java.nio.charset.StandardCharsets;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.util.Arrays;
import java.util.HexFormat;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.UUID;
import java.util.stream.Collectors;
import java.util.stream.Stream;
import javax.annotation.Nullable;
import org.apache.commons.lang3.tuple.Pair;
import org.whispersystems.textsecuregcm.auth.AuthenticatedDevice;
import org.whispersystems.textsecuregcm.entities.RemoteConfigurationResponse;
import org.whispersystems.textsecuregcm.storage.RemoteConfig;
import org.whispersystems.textsecuregcm.storage.RemoteConfigsManager;
import org.whispersystems.textsecuregcm.util.Conversions;
import org.whispersystems.textsecuregcm.util.Util;
import org.whispersystems.textsecuregcm.util.ua.ClientPlatform;
import org.whispersystems.textsecuregcm.util.ua.UnrecognizedUserAgentException;
import org.whispersystems.textsecuregcm.util.ua.UserAgentUtil;
@Path("/v2/config")
@Tag(name = "Remote Config")
public class RemoteConfigController {
private final RemoteConfigsManager remoteConfigsManager;
private final Map<String, String> globalConfig;
private static final String GLOBAL_CONFIG_PREFIX = "global.";
private static final Set<String> PLATFORM_PREFIXES = Arrays.stream(ClientPlatform.values())
.map(p -> p.name().toLowerCase())
.collect(Collectors.toSet());
public RemoteConfigController(RemoteConfigsManager remoteConfigsManager, Map<String, String> globalConfig) {
public RemoteConfigController(RemoteConfigsManager remoteConfigsManager) {
this.remoteConfigsManager = remoteConfigsManager;
this.globalConfig = globalConfig;
}
@GET
@@ -88,69 +63,17 @@ public class RemoteConfigController {
@HeaderParam(HttpHeaders.USER_AGENT)
String userAgent
) {
final String platformPrefix = platformPrefix(userAgent);
final List<RemoteConfig> remoteConfigs = remoteConfigsManager.getAll();
try {
MessageDigest digest = MessageDigest.getInstance("SHA-256");
final Map<String, String> configs = remoteConfigsManager.getConfigForAccount(auth.accountIdentifier(), userAgent);
final Map<String, String> configs = Stream.concat(
remoteConfigs.stream()
.filter(config -> {
final String firstNameComponent = config.getName().split("\\.", 2)[0];
return firstNameComponent.equals(platformPrefix) || !PLATFORM_PREFIXES.contains(firstNameComponent);
})
.map(
config -> {
final byte[] hashKey = config.getHashKey() != null
? config.getHashKey().getBytes(StandardCharsets.UTF_8)
: config.getName().getBytes(StandardCharsets.UTF_8);
boolean inBucket = isInBucket(digest, auth.accountIdentifier(), hashKey, config.getPercentage(), config.getUuids());
final String value = inBucket ? config.getValue() : config.getDefaultValue();
return Pair.of(config.getName(), value == null ? String.valueOf(inBucket) : value);
}),
globalConfig.entrySet().stream()
.map(e -> Pair.of(GLOBAL_CONFIG_PREFIX + e.getKey(), e.getValue())))
.collect(Collectors.toMap(Pair::getLeft, Pair::getRight));
final EntityTag newETag = new EntityTag(HexFormat.of().toHexDigits(configs.hashCode()));
if (newETag.equals(eTag)) {
return Response.notModified(eTag).build();
}
return Response.ok(new RemoteConfigurationResponse(configs))
.tag(newETag)
.build();
} catch (NoSuchAlgorithmException e) {
throw new AssertionError(e);
}
}
private static String platformPrefix(final String userAgent) {
try {
return UserAgentUtil.parseUserAgentString(userAgent).platform().name().toLowerCase();
} catch (UnrecognizedUserAgentException e) {
return null;
}
}
@VisibleForTesting
public static boolean isInBucket(MessageDigest digest, UUID uid, byte[] hashKey, int configPercentage,
Set<UUID> uuidsInBucket) {
if (uuidsInBucket.contains(uid)) {
return true;
final EntityTag newETag = new EntityTag(HexFormat.of().toHexDigits(configs.hashCode()));
if (newETag.equals(eTag)) {
return Response.notModified(eTag).build();
}
ByteBuffer bb = ByteBuffer.allocate(16);
bb.putLong(uid.getMostSignificantBits());
bb.putLong(uid.getLeastSignificantBits());
digest.update(bb.array());
byte[] hash = digest.digest(hashKey);
int bucket = (int) (Util.ensureNonNegativeLong(Conversions.byteArrayToLong(hash)) % 100);
return bucket < configPercentage;
return Response.ok(new RemoteConfigurationResponse(configs))
.tag(newETag)
.build();
}
}
@@ -28,6 +28,7 @@ import java.time.Clock;
import java.time.Duration;
import java.time.Instant;
import java.util.Comparator;
import java.util.HashSet;
import java.util.List;
import java.util.Optional;
import java.util.stream.Collectors;
@@ -118,14 +119,14 @@ public class SecureValueRecovery2Controller {
@HeaderParam(HttpHeaders.USER_AGENT) final String userAgent,
@NotNull @Valid final AuthCheckRequest request) {
final List<ExternalServiceCredentialsSelector.CredentialInfo> credentials = ExternalServiceCredentialsSelector.check(
request.tokens(),
new HashSet<>(request.tokens()),
backupServiceCredentialGenerator,
MAX_AGE.getSeconds());
// the username associated with the provided number
final Optional<String> matchingUsername = accountsManager
.getByE164(request.number())
.map(Account::getUuid)
.map(Account::getAccountIdentifier)
.map(backupServiceCredentialGenerator::generateForUuid)
.map(ExternalServiceCredentials::username);
@@ -49,7 +49,6 @@ import jakarta.ws.rs.core.MediaType;
import jakarta.ws.rs.core.Response;
import jakarta.ws.rs.core.Response.Status;
import java.io.IOException;
import java.io.UncheckedIOException;
import java.math.BigDecimal;
import java.time.Clock;
import java.time.Instant;
@@ -66,37 +65,39 @@ import org.signal.libsignal.zkgroup.receipts.ReceiptCredentialResponse;
import org.whispersystems.textsecuregcm.auth.AuthenticatedDevice;
import org.whispersystems.textsecuregcm.auth.DonationPermitHeader;
import org.whispersystems.textsecuregcm.badges.BadgeTranslator;
import org.whispersystems.textsecuregcm.configuration.LoginPurchaseConfiguration;
import org.whispersystems.textsecuregcm.configuration.OneTimeDonationConfiguration;
import org.whispersystems.textsecuregcm.configuration.SubscriptionConfiguration;
import org.whispersystems.textsecuregcm.configuration.SubscriptionLevelConfiguration;
import org.whispersystems.textsecuregcm.grpc.SubscriptionsUtil;
import org.whispersystems.textsecuregcm.limits.RateLimitedByIp;
import org.whispersystems.textsecuregcm.limits.RateLimiters;
import org.whispersystems.textsecuregcm.mappers.SubscriptionExceptionMapper;
import org.whispersystems.textsecuregcm.mappers.PurchaseExceptionMapper;
import org.whispersystems.textsecuregcm.metrics.MetricsUtil;
import org.whispersystems.textsecuregcm.metrics.UserAgentTagUtil;
import org.whispersystems.textsecuregcm.storage.DonationPermitsManager;
import org.whispersystems.textsecuregcm.storage.SubscriberCredentials;
import org.whispersystems.textsecuregcm.storage.SubscriptionManager;
import org.whispersystems.textsecuregcm.storage.Subscriptions;
import org.whispersystems.textsecuregcm.subscriptions.AppleAppStoreManager;
import org.whispersystems.textsecuregcm.subscriptions.BankMandateTranslator;
import org.whispersystems.textsecuregcm.subscriptions.BankTransferType;
import org.whispersystems.textsecuregcm.subscriptions.BraintreeManager;
import org.whispersystems.textsecuregcm.subscriptions.ChargeFailure;
import org.whispersystems.textsecuregcm.subscriptions.CurrencyConfiguration;
import org.whispersystems.textsecuregcm.subscriptions.CustomerAwareSubscriptionPaymentProcessor;
import org.whispersystems.textsecuregcm.subscriptions.GooglePlayBillingManager;
import org.whispersystems.textsecuregcm.subscriptions.LevelConfiguration;
import org.whispersystems.textsecuregcm.subscriptions.PaymentMethod;
import org.whispersystems.textsecuregcm.subscriptions.PaymentProvider;
import org.whispersystems.textsecuregcm.subscriptions.ProcessorCustomer;
import org.whispersystems.textsecuregcm.subscriptions.StripeManager;
import org.whispersystems.textsecuregcm.subscriptions.SubscriptionException;
import org.whispersystems.textsecuregcm.subscriptions.SubscriptionInvalidArgumentsException;
import org.whispersystems.textsecuregcm.subscriptions.SubscriptionInvalidLevelException;
import org.whispersystems.textsecuregcm.subscriptions.SubscriptionPaymentRequiresActionException;
import org.whispersystems.textsecuregcm.subscriptions.SubscriptionReceiptRequestedForOpenPaymentException;
import org.whispersystems.textsecuregcm.purchases.AppleAppStoreManager;
import org.whispersystems.textsecuregcm.purchases.BankMandateTranslator;
import org.whispersystems.textsecuregcm.purchases.BankTransferType;
import org.whispersystems.textsecuregcm.purchases.BraintreeManager;
import org.whispersystems.textsecuregcm.purchases.ChargeFailure;
import org.whispersystems.textsecuregcm.purchases.CurrencyConfiguration;
import org.whispersystems.textsecuregcm.purchases.CustomerAwareSubscriptionPaymentProcessor;
import org.whispersystems.textsecuregcm.purchases.GooglePlayBillingManager;
import org.whispersystems.textsecuregcm.purchases.LevelConfiguration;
import org.whispersystems.textsecuregcm.purchases.PaymentMethod;
import org.whispersystems.textsecuregcm.purchases.PaymentProvider;
import org.whispersystems.textsecuregcm.purchases.ProcessorCustomer;
import org.whispersystems.textsecuregcm.purchases.ReceiptLevel;
import org.whispersystems.textsecuregcm.purchases.StripeManager;
import org.whispersystems.textsecuregcm.purchases.PurchaseException;
import org.whispersystems.textsecuregcm.purchases.PurchaseInvalidArgumentsException;
import org.whispersystems.textsecuregcm.purchases.PurchaseInvalidLevelException;
import org.whispersystems.textsecuregcm.purchases.PurchasePaymentRequiresActionException;
import org.whispersystems.textsecuregcm.purchases.PurchaseReceiptRequestedForOpenPaymentException;
import org.whispersystems.textsecuregcm.util.HeaderUtils;
@Path("/v1/subscription")
@@ -106,6 +107,7 @@ public class SubscriptionController {
private final Clock clock;
private final SubscriptionConfiguration subscriptionConfiguration;
private final OneTimeDonationConfiguration oneTimeDonationConfiguration;
private final LoginPurchaseConfiguration loginPurchaseConfiguration;
private final SubscriptionManager subscriptionManager;
private final StripeManager stripeManager;
private final BraintreeManager braintreeManager;
@@ -124,6 +126,7 @@ public class SubscriptionController {
Clock clock,
SubscriptionConfiguration subscriptionConfiguration,
OneTimeDonationConfiguration oneTimeDonationConfiguration,
LoginPurchaseConfiguration loginPurchaseConfiguration,
SubscriptionManager subscriptionManager,
StripeManager stripeManager,
BraintreeManager braintreeManager,
@@ -137,6 +140,7 @@ public class SubscriptionController {
this.clock = Objects.requireNonNull(clock);
this.subscriptionConfiguration = Objects.requireNonNull(subscriptionConfiguration);
this.oneTimeDonationConfiguration = Objects.requireNonNull(oneTimeDonationConfiguration);
this.loginPurchaseConfiguration = Objects.requireNonNull(loginPurchaseConfiguration);
this.stripeManager = Objects.requireNonNull(stripeManager);
this.braintreeManager = Objects.requireNonNull(braintreeManager);
this.googlePlayBillingManager = Objects.requireNonNull(googlePlayBillingManager);
@@ -167,6 +171,10 @@ public class SubscriptionController {
buildDonationLevelsConfiguration(subscriptionConfiguration, oneTimeDonationConfiguration, badgeTranslator,
acceptableLanguages),
new BackupConfiguration(backupLevels, subscriptionConfiguration.getbackupFreeTierMediaDuration().toDays()),
new LoginConfiguration(ReceiptLevel.LOGIN.getValue(),
loginPurchaseConfiguration.playProductId(),
loginPurchaseConfiguration.playOptionId(),
loginPurchaseConfiguration.appStoreProductId()),
oneTimeDonationConfiguration.sepaMaximumEuros());
}
@@ -189,7 +197,7 @@ public class SubscriptionController {
@ManagedAsync
public Response deleteSubscriber(
@Auth Optional<AuthenticatedDevice> authenticatedAccount,
@PathParam("subscriberId") String subscriberId) throws SubscriptionException, RateLimitExceededException {
@PathParam("subscriberId") String subscriberId) throws PurchaseException, RateLimitExceededException {
SubscriberCredentials subscriberCredentials =
SubscriberCredentials.process(authenticatedAccount, subscriberId, clock);
subscriptionManager.deleteSubscriber(subscriberCredentials);
@@ -221,7 +229,7 @@ public class SubscriptionController {
@HeaderParam(HttpHeaders.USER_AGENT) @Nullable final String userAgent,
@PathParam("subscriberId") String subscriberId) throws SubscriptionException {
@PathParam("subscriberId") String subscriberId) throws PurchaseException {
SubscriberCredentials subscriberCredentials =
SubscriberCredentials.process(authenticatedAccount, subscriberId, clock);
@@ -234,7 +242,7 @@ public class SubscriptionController {
return false;
}
})
.orElse(true);
.orElse(false);
subscriptionManager.updateSubscriber(subscriberCredentials, creationPermitted);
return Response.ok().build();
@@ -248,6 +256,16 @@ public class SubscriptionController {
@Path("/{subscriberId}/create_payment_method")
@Consumes(MediaType.APPLICATION_JSON)
@Produces(MediaType.APPLICATION_JSON)
@Operation(summary = "Create a payment method", description = """
Creates a payment method setup token with the payment processor and returns a client secret that can be used to
complete the payment method setup.
""")
@ApiResponse(responseCode = "200", description = "The payment method was created", content = @Content(schema = @Schema(implementation = CreatePaymentMethodResponse.class)))
@ApiResponse(responseCode = "400", description = "The requested payment method type is not supported by this endpoint")
@ApiResponse(responseCode = "401", description = "Donation permit was invalid or already spent")
@ApiResponse(responseCode = "403", description = "subscriberId authentication failure OR account authentication is present")
@ApiResponse(responseCode = "404", description = "subscriberId is malformed OR the subscriber does not exist")
@ApiResponse(responseCode = "409", description = "The subscriber is already associated with a different payment processor")
@ManagedAsync
@RateLimitedByIp(RateLimiters.For.ADD_SUBSCRIPTION_PAYMENT_METHOD)
public CreatePaymentMethodResponse createPaymentMethod(
@@ -259,7 +277,7 @@ public class SubscriptionController {
@PathParam("subscriberId") String subscriberId,
@QueryParam("type") @DefaultValue("CARD") PaymentMethod paymentMethodType,
@HeaderParam(HttpHeaders.USER_AGENT) @Nullable final String userAgentString) throws SubscriptionException {
@HeaderParam(HttpHeaders.USER_AGENT) @Nullable final String userAgentString) throws PurchaseException {
SubscriberCredentials subscriberCredentials =
SubscriberCredentials.process(authenticatedAccount, subscriberId, clock);
@@ -283,7 +301,7 @@ public class SubscriptionController {
return false;
}
})
.orElse(true);
.orElse(false);
if (!spendSuccessful) {
throw new WebApplicationException(Response.Status.UNAUTHORIZED);
@@ -314,7 +332,7 @@ public class SubscriptionController {
@NotNull @Valid CreatePayPalBillingAgreementRequest request,
@Context ContainerRequestContext containerRequestContext,
@HeaderParam(HttpHeaders.USER_AGENT) @Nullable final String userAgentString)
throws SubscriptionException, IOException {
throws PurchaseException, IOException {
final SubscriberCredentials subscriberCredentials =
SubscriberCredentials.process(authenticatedAccount, subscriberId, clock);
@@ -347,7 +365,7 @@ public class SubscriptionController {
@Auth Optional<AuthenticatedDevice> authenticatedAccount,
@PathParam("subscriberId") String subscriberId,
@PathParam("processor") PaymentProvider processor,
@PathParam("paymentMethodToken") @NotEmpty String paymentMethodToken) throws SubscriptionException, IOException {
@PathParam("paymentMethodToken") @NotEmpty String paymentMethodToken) throws PurchaseException, IOException {
SubscriberCredentials subscriberCredentials =
SubscriberCredentials.process(authenticatedAccount, subscriberId, clock);
@@ -387,7 +405,7 @@ public class SubscriptionController {
@PathParam("subscriberId") String subscriberId,
@PathParam("level") long level,
@PathParam("currency") String currency,
@PathParam("idempotencyKey") String idempotencyKey) throws SubscriptionException {
@PathParam("idempotencyKey") String idempotencyKey) throws PurchaseException {
SubscriberCredentials subscriberCredentials =
SubscriberCredentials.process(authenticatedAccount, subscriberId, clock);
try {
@@ -406,19 +424,19 @@ public class SubscriptionController {
subscriptionManager.updateSubscriptionLevelForCustomer(subscriberCredentials, record, manager, level,
currency, idempotencyKey, subscriptionTemplateId, this::subscriptionsAreSameType);
return new SetSubscriptionLevelSuccessResponse(level);
} catch (SubscriptionInvalidLevelException e) {
} catch (PurchaseInvalidLevelException e) {
throw new BadRequestException(Response.status(Response.Status.BAD_REQUEST)
.entity(new SubscriptionController.SetSubscriptionLevelErrorResponse(List.of(
new SubscriptionController.SetSubscriptionLevelErrorResponse.Error(
SubscriptionController.SetSubscriptionLevelErrorResponse.Error.Type.UNSUPPORTED_LEVEL,
null))))
.build());
} catch (SubscriptionPaymentRequiresActionException e) {
} catch (PurchasePaymentRequiresActionException e) {
throw new BadRequestException(Response.status(Response.Status.BAD_REQUEST)
.entity(new SetSubscriptionLevelErrorResponse(List.of(new SetSubscriptionLevelErrorResponse.Error(
SetSubscriptionLevelErrorResponse.Error.Type.PAYMENT_REQUIRES_ACTION, null))))
.build());
} catch (SubscriptionInvalidArgumentsException e) {
} catch (PurchaseInvalidArgumentsException e) {
throw new BadRequestException(Response.status(Response.Status.BAD_REQUEST)
.entity(new SetSubscriptionLevelErrorResponse(List.of(new SetSubscriptionLevelErrorResponse.Error(
SetSubscriptionLevelErrorResponse.Error.Type.INVALID_ARGUMENTS, e.getMessage()))))
@@ -458,7 +476,7 @@ public class SubscriptionController {
public SetSubscriptionLevelSuccessResponse setAppStoreSubscription(
@Auth Optional<AuthenticatedDevice> authenticatedAccount,
@PathParam("subscriberId") String subscriberId,
@PathParam("originalTransactionId") String originalTransactionId) throws SubscriptionException, RateLimitExceededException {
@PathParam("originalTransactionId") String originalTransactionId) throws PurchaseException, RateLimitExceededException {
final SubscriberCredentials subscriberCredentials =
SubscriberCredentials.process(authenticatedAccount, subscriberId, clock);
@@ -502,7 +520,7 @@ public class SubscriptionController {
public SetSubscriptionLevelSuccessResponse setPlayStoreSubscription(
@Auth Optional<AuthenticatedDevice> authenticatedAccount,
@PathParam("subscriberId") String subscriberId,
@PathParam("purchaseToken") String purchaseToken) throws SubscriptionException, RateLimitExceededException {
@PathParam("purchaseToken") String purchaseToken) throws PurchaseException, RateLimitExceededException {
final SubscriberCredentials subscriberCredentials =
SubscriberCredentials.process(authenticatedAccount, subscriberId, clock);
@@ -522,9 +540,22 @@ public class SubscriptionController {
Map<Long, LevelConfiguration> levels,
@Schema(description = "Backup specific configuration")
BackupConfiguration backup,
@Schema(description = "Signal Login specific configuration")
LoginConfiguration login,
@Schema(description = "The maximum value of a one-time donation SEPA transaction")
BigDecimal sepaMaximumEuros) {}
@Schema(description = "Configuration for one-time Signal Login purchases")
public record LoginConfiguration(
@Schema(description = "The receipt level associated with a Signal Login purchase")
long level,
@Schema(description = "The play billing productID associated with a Signal Login purchase")
String playProductId,
@Schema(description = "The play billing optionID to use to purchase a Signal Login")
String playOptionId,
@Schema(description = "The App Store productID associated with a Signal Login purchase")
String appStoreProductId) {}
public record BackupConfiguration(
@Schema(description = "A map of numeric backup level IDs to level-specific backup configuration")
Map<String, BackupLevelConfiguration> levels,
@@ -595,7 +626,7 @@ public class SubscriptionController {
String currency,
@Schema(
description = "The amount paid for the subscription in the currency's smallest unit",
description = "The amount paid for the subscription in the currency's minor unit",
externalDocs = @ExternalDocumentation(description = "Stripe Currencies", url = "https://docs.stripe.com/currencies"))
BigDecimal amount,
@@ -634,7 +665,7 @@ public class SubscriptionController {
@ManagedAsync
public GetSubscriptionInformationResponse getSubscriptionInformation(
@Auth Optional<AuthenticatedDevice> authenticatedAccount,
@PathParam("subscriberId") String subscriberId) throws SubscriptionException, RateLimitExceededException {
@PathParam("subscriberId") String subscriberId) throws PurchaseException, RateLimitExceededException {
SubscriberCredentials subscriberCredentials =
SubscriberCredentials.process(authenticatedAccount, subscriberId, clock);
return subscriptionManager.getSubscriptionInformation( subscriberCredentials)
@@ -647,7 +678,7 @@ public class SubscriptionController {
subscriptionInformation.active(),
subscriptionInformation.cancelAtPeriodEnd(),
subscriptionInformation.price().currency(),
subscriptionInformation.price().amount(),
BigDecimal.valueOf(subscriptionInformation.price().amount()),
subscriptionInformation.status().getApiValue(),
subscriptionInformation.paymentProvider(),
subscriptionInformation.paymentMethod(),
@@ -657,12 +688,12 @@ public class SubscriptionController {
.orElseGet(() -> new GetSubscriptionInformationResponse(null, null));
}
public record GetReceiptCredentialsRequest(
public record GetReceiptCredentialRequest(
@Schema(description = "A ReceiptCredentialRequest encoded in standard base64 with padding")
@NotEmpty byte[] receiptCredentialRequest) {
}
public record GetReceiptCredentialsResponse(
public record GetReceiptCredentialResponse(
@Schema(description = "A ReceiptCredentialResponse encoded in standard base64 with padding")
@NotEmpty byte[] receiptCredentialResponse) {
}
@@ -680,7 +711,7 @@ public class SubscriptionController {
invoice. Clients SHOULD retry requests at this endpoint with the same ReceiptCredentialRequest value until
receiving a response. After receiving a response, clients should then compute the ReceiptCredentialPresentation
and redeem it at the receipt redemption endpoint. Once the first attempt is made there, the same
ReceiptCredentialRequest MUST NOT be used again to request receipt credentials.
ReceiptCredentialRequest MUST NOT be used again to request a receipt credential.
Note that you may in fact redeem TWO or more invoices for the same ReceiptCredentialRequest while retrying this
operation if a later invoice gets paid while you are retrying. However, the returned receipt is always for the
@@ -708,7 +739,7 @@ public class SubscriptionController {
}
}
""",
implementation = SubscriptionExceptionMapper.ChargeFailureResponse.class)))
implementation = PurchaseExceptionMapper.ChargeFailureResponse.class)))
@ApiResponse(responseCode = "403", description = "subscriberId authentication failure OR account authentication is present")
@ApiResponse(responseCode = "404", description = "subscriberId is not found OR malformed OR no subscription setup on the subscriber id")
@ApiResponse(responseCode = "409", description = "latest paid receipt on subscription was already redeemed for a receipt credential but with a different receipt credential request")
@@ -716,16 +747,17 @@ public class SubscriptionController {
name = "Retry-After",
description = "If present, a positive integer indicating the number of seconds before a subsequent attempt could succeed"))
@ManagedAsync
public Response createSubscriptionReceiptCredentials(
public Response createSubscriptionReceiptCredential(
@Auth Optional<AuthenticatedDevice> authenticatedAccount,
@HeaderParam(HttpHeaders.USER_AGENT) final String userAgent,
@PathParam("subscriberId") String subscriberId,
@NotNull @Valid GetReceiptCredentialsRequest request) throws SubscriptionException, RateLimitExceededException {
@NotNull @Valid GetReceiptCredentialRequest request) throws PurchaseException, RateLimitExceededException {
SubscriberCredentials subscriberCredentials = SubscriberCredentials.process(authenticatedAccount, subscriberId, clock);
try {
final SubscriptionManager.ReceiptResult receiptCredential = subscriptionManager.createReceiptCredentials(
final SubscriptionManager.ReceiptResult receiptCredential = subscriptionManager.createReceiptCredential(
subscriberCredentials, request.receiptCredentialRequest(),
r -> SubscriptionsUtil.receiptExpirationWithGracePeriod(subscriptionConfiguration, r));
r -> SubscriptionsUtil.receiptExpirationWithGracePeriod(subscriptionConfiguration, r),
userAgent);
final ReceiptCredentialResponse receiptCredentialResponse = receiptCredential.receiptCredentialResponse();
final CustomerAwareSubscriptionPaymentProcessor.ReceiptItem receipt = receiptCredential.receiptItem();
@@ -738,8 +770,8 @@ public class SubscriptionController {
.toLowerCase(Locale.ROOT)),
UserAgentTagUtil.getPlatformTag(userAgent)))
.increment();
return Response.ok(new GetReceiptCredentialsResponse(receiptCredentialResponse.serialize())).build();
} catch (SubscriptionReceiptRequestedForOpenPaymentException e) {
return Response.ok(new GetReceiptCredentialResponse(receiptCredentialResponse.serialize())).build();
} catch (PurchaseReceiptRequestedForOpenPaymentException e) {
return Response.noContent().build();
}
}
@@ -751,7 +783,7 @@ public class SubscriptionController {
public Response setDefaultPaymentMethodForIdeal(
@Auth Optional<AuthenticatedDevice> authenticatedAccount,
@PathParam("subscriberId") String subscriberId,
@PathParam("setupIntentId") @NotEmpty String setupIntentId) throws SubscriptionException, IOException {
@PathParam("setupIntentId") @NotEmpty String setupIntentId) throws PurchaseException, IOException {
SubscriberCredentials subscriberCredentials =
SubscriberCredentials.process(authenticatedAccount, subscriberId, clock);
@@ -762,7 +794,7 @@ public class SubscriptionController {
private void setDefaultPaymentMethod(final CustomerAwareSubscriptionPaymentProcessor manager,
final String paymentMethodId,
final SubscriberCredentials requestData) throws SubscriptionException, IOException {
final SubscriberCredentials requestData) throws PurchaseException, IOException {
try {
final Subscriptions.Record record = subscriptionManager.getSubscriber(requestData);
@@ -773,7 +805,7 @@ public class SubscriptionController {
manager
.setDefaultPaymentMethodForCustomer(processorCustomer.customerId(), paymentMethodId, record.subscriptionId);
} catch (final SubscriptionInvalidArgumentsException e) {
} catch (final PurchaseInvalidArgumentsException e) {
// Here, invalid arguments must mean that the client has made requests out of order, and needs to finish
// setting up the paymentMethod first
throw new ClientErrorException(Status.CONFLICT);
@@ -7,7 +7,6 @@ package org.whispersystems.textsecuregcm.controllers;
import static org.whispersystems.textsecuregcm.metrics.MetricsUtil.name;
import com.google.common.annotations.VisibleForTesting;
import com.google.i18n.phonenumbers.NumberParseException;
import com.google.i18n.phonenumbers.PhoneNumberUtil;
import com.google.i18n.phonenumbers.Phonenumber;
@@ -73,9 +72,7 @@ import org.whispersystems.textsecuregcm.entities.SubmitVerificationCodeRequest;
import org.whispersystems.textsecuregcm.entities.UpdateVerificationSessionRequest;
import org.whispersystems.textsecuregcm.entities.VerificationCodeRequest;
import org.whispersystems.textsecuregcm.entities.VerificationSessionResponse;
import org.whispersystems.textsecuregcm.experiment.ExperimentEnrollmentManager;
import org.whispersystems.textsecuregcm.filters.RemoteAddressFilter;
import org.whispersystems.textsecuregcm.identity.IdentityType;
import org.whispersystems.textsecuregcm.limits.RateLimiters;
import org.whispersystems.textsecuregcm.mappers.RegistrationServiceSenderExceptionMapper;
import org.whispersystems.textsecuregcm.metrics.CaptchaMetrics;
@@ -97,7 +94,7 @@ import org.whispersystems.textsecuregcm.storage.Account;
import org.whispersystems.textsecuregcm.storage.AccountsManager;
import org.whispersystems.textsecuregcm.storage.DynamicConfigurationManager;
import org.whispersystems.textsecuregcm.storage.PhoneNumberIdentifiers;
import org.whispersystems.textsecuregcm.storage.RegistrationRecoveryPasswordsManager;
import org.whispersystems.textsecuregcm.storage.PhoneNumberRecoveryPasswordsManager;
import org.whispersystems.textsecuregcm.storage.VerificationSessionManager;
import org.whispersystems.textsecuregcm.telephony.CarrierData;
import org.whispersystems.textsecuregcm.telephony.CarrierDataException;
@@ -132,48 +129,42 @@ public class VerificationController {
private static final String EXISTING_ACCOUNT_PLATFORM = "existingAccountPlatform";
private static final String EXISTING_ACCOUNT_RECENTLY_SEEN_TAG_NAME = "existingAccountRecentlySeen";
@VisibleForTesting
static final String VERIFICATION_CODE_PUSH_NOTIFICATION_EXPERIMENT_NAME = "verificationCodePushNotification";
private final RegistrationServiceClient registrationServiceClient;
private final VerificationSessionManager verificationSessionManager;
private final PushNotificationManager pushNotificationManager;
private final RegistrationCaptchaManager registrationCaptchaManager;
private final RegistrationRecoveryPasswordsManager registrationRecoveryPasswordsManager;
private final PhoneNumberRecoveryPasswordsManager phoneNumberRecoveryPasswordsManager;
private final PhoneNumberIdentifiers phoneNumberIdentifiers;
private final RateLimiters rateLimiters;
private final AccountsManager accountsManager;
private final CarrierDataProvider carrierDataProvider;
private final RegistrationFraudChecker registrationFraudChecker;
private final DynamicConfigurationManager<DynamicConfiguration> dynamicConfigurationManager;
private final ExperimentEnrollmentManager experimentEnrollmentManager;
private final Clock clock;
public VerificationController(final RegistrationServiceClient registrationServiceClient,
final VerificationSessionManager verificationSessionManager,
final PushNotificationManager pushNotificationManager,
final RegistrationCaptchaManager registrationCaptchaManager,
final RegistrationRecoveryPasswordsManager registrationRecoveryPasswordsManager,
final PhoneNumberRecoveryPasswordsManager phoneNumberRecoveryPasswordsManager,
final PhoneNumberIdentifiers phoneNumberIdentifiers,
final RateLimiters rateLimiters,
final AccountsManager accountsManager,
final CarrierDataProvider carrierDataProvider,
final RegistrationFraudChecker registrationFraudChecker,
final DynamicConfigurationManager<DynamicConfiguration> dynamicConfigurationManager,
final ExperimentEnrollmentManager experimentEnrollmentManager,
final Clock clock) {
this.registrationServiceClient = registrationServiceClient;
this.verificationSessionManager = verificationSessionManager;
this.pushNotificationManager = pushNotificationManager;
this.registrationCaptchaManager = registrationCaptchaManager;
this.registrationRecoveryPasswordsManager = registrationRecoveryPasswordsManager;
this.phoneNumberRecoveryPasswordsManager = phoneNumberRecoveryPasswordsManager;
this.phoneNumberIdentifiers = phoneNumberIdentifiers;
this.rateLimiters = rateLimiters;
this.accountsManager = accountsManager;
this.carrierDataProvider = carrierDataProvider;
this.registrationFraudChecker = registrationFraudChecker;
this.dynamicConfigurationManager = dynamicConfigurationManager;
this.experimentEnrollmentManager = experimentEnrollmentManager;
this.clock = clock;
}
@@ -665,8 +656,6 @@ public class VerificationController {
}
accountsManager.getByE164(registrationServiceSession.number())
.filter(existingAccount ->
experimentEnrollmentManager.isEnrolled(existingAccount.getIdentifier(IdentityType.ACI), VERIFICATION_CODE_PUSH_NOTIFICATION_EXPERIMENT_NAME))
.ifPresent(existingAccount -> {
try {
pushNotificationManager.sendVerificationCodeRequestedNotifications(existingAccount, clock.instant());
@@ -749,7 +738,10 @@ public class VerificationController {
// the RRP. It's possible the client will not actually be able to register (e.g. failed reglock challenge), and
// so we will have removed the RRP unnecessarily. The impact of this is low, since the owner of the RRP
// can always just fallback to session-based verification.
existingRRP = registrationRecoveryPasswordsManager.remove(phoneNumberIdentifiers.getPhoneNumberIdentifier(registrationServiceSession.number()).join());
//
// Note that we do not remove the recovery password from the account itself because re-creation is imminent, and
// that process will overwrite the recovery password (along with the rest of the account record).
existingRRP = phoneNumberRecoveryPasswordsManager.remove(phoneNumberIdentifiers.getPhoneNumberIdentifier(registrationServiceSession.number()).join());
}
Optional<Account> maybeExistingAccount;
@@ -824,7 +816,10 @@ public class VerificationController {
// the RRP. It's possible the client will not actually be able to register (e.g. failed reglock challenge), and
// so we will have removed the RRP unnecessarily. The impact of this is low, since the owner of the RRP
// can always just fallback to session-based verification.
registrationRecoveryPasswordsManager.remove(phoneNumberIdentifiers.getPhoneNumberIdentifier(registrationServiceSession.number()).join());
//
// Note that we do not remove the recovery password from the account itself because re-creation is imminent, and
// that process will overwrite the recovery password (along with the rest of the account record).
phoneNumberRecoveryPasswordsManager.remove(phoneNumberIdentifiers.getPhoneNumberIdentifier(registrationServiceSession.number()).join());
}
return registrationServiceSession;
@@ -38,7 +38,7 @@ public class FixerClient {
HttpResponse.BodyHandlers.ofString());
if (response.statusCode() < 200 || response.statusCode() >= 300) {
throw new FixerException("Bad response: " + response.statusCode() + " " + response.toString());
throw new FixerException("Bad response: " + response.statusCode() + " " + response.toString().replaceAll(apiKey, "***"));
}
final FixerResponse parsedResponse = SystemMapper.jsonMapper().readValue(response.body(), FixerResponse.class);
@@ -14,6 +14,7 @@ import jakarta.validation.constraints.AssertTrue;
import java.util.Optional;
import java.util.Set;
import javax.annotation.Nullable;
import org.apache.commons.lang3.ArrayUtils;
import org.whispersystems.textsecuregcm.auth.UnidentifiedAccessUtil;
import org.whispersystems.textsecuregcm.storage.DeviceCapability;
import org.whispersystems.textsecuregcm.util.ByteArrayAdapter;
@@ -52,15 +53,17 @@ public class AccountAttributes {
public AccountAttributes(
final boolean fetchesMessages,
final int registrationId,
final int phoneNumberIdentifierRegistrationId,
final Integer phoneNumberIdentifierRegistrationId,
final byte[] name,
final String registrationLock,
final boolean discoverableByPhoneNumber,
final Set<DeviceCapability> capabilities) {
final Set<DeviceCapability> capabilities,
@Nullable final byte[] recoveryPassword) {
this.deviceAttributes = new DeviceAttributes(fetchesMessages, registrationId, phoneNumberIdentifierRegistrationId, name, capabilities);
this.registrationLock = registrationLock;
this.discoverableByPhoneNumber = discoverableByPhoneNumber;
this.recoveryPassword = recoveryPassword;
}
public boolean getFetchesMessages() {
@@ -71,8 +74,8 @@ public class AccountAttributes {
return deviceAttributes.registrationId();
}
public int getPhoneNumberIdentityRegistrationId() {
return deviceAttributes.phoneNumberIdentityRegistrationId();
public Optional<Integer> getPhoneNumberIdentityRegistrationId() {
return Optional.ofNullable(deviceAttributes.phoneNumberIdentityRegistrationId());
}
public byte[] getName() {
@@ -101,7 +104,7 @@ public class AccountAttributes {
}
public Optional<byte[]> recoveryPassword() {
return Optional.ofNullable(recoveryPassword);
return Optional.ofNullable(recoveryPassword).filter(ArrayUtils::isNotEmpty);
}
@VisibleForTesting
@@ -128,6 +131,11 @@ public class AccountAttributes {
return this;
}
public AccountAttributes setDiscoverableByPhoneNumber(final boolean discoverableByPhoneNumber) {
this.discoverableByPhoneNumber = discoverableByPhoneNumber;
return this;
}
@AssertTrue
@Schema(hidden = true)
public boolean isUnrestrictedUakValid() {
@@ -13,6 +13,7 @@ import io.swagger.v3.oas.annotations.media.Schema;
import java.time.Instant;
import java.time.temporal.ChronoUnit;
import java.util.List;
import java.util.Optional;
import java.util.UUID;
import javax.annotation.Nullable;
import org.whispersystems.textsecuregcm.storage.AccountBadge;
@@ -36,21 +37,24 @@ public record AccountDataReportResponse(UUID reportId,
builder.append(String.format("""
Report ID: %s
Report timestamp: %s
""",
reportId,
reportTimestamp.truncatedTo(ChronoUnit.SECONDS)));
// account
builder.append(String.format("""
# Account
Phone number: %s
Allow sealed sender from anyone: %s
Find account by phone number: %s
""",
data.account.phoneNumber(),
data.account.allowSealedSenderFromAnyone(),
data.account.findAccountByPhoneNumber()));
builder.append("# Account\n");
data.account.phoneNumber().ifPresent(phoneNumber -> {
builder.append(String.format("""
Phone number: %s
Find account by phone number: %s
""",
phoneNumber,
data.account.findAccountByPhoneNumber()));
});
builder.append(String.format("Allow sealed sender from anyone: %s%n", data.account.allowSealedSenderFromAnyone()));
// badges
builder.append("Badges:");
@@ -93,9 +97,10 @@ public record AccountDataReportResponse(UUID reportId,
}
public record AccountDataReport(String phoneNumber, List<BadgeDataReport> badges, boolean allowSealedSenderFromAnyone,
public record AccountDataReport(Optional<String> phoneNumber,
List<BadgeDataReport> badges,
boolean allowSealedSenderFromAnyone,
boolean findAccountByPhoneNumber) {
}
public record DeviceDataReport(byte id,
@@ -8,6 +8,7 @@ package org.whispersystems.textsecuregcm.entities;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.Optional;
import java.util.UUID;
import javax.annotation.Nullable;
import org.whispersystems.textsecuregcm.util.ByteArrayBase64UrlAdapter;
@@ -16,11 +17,11 @@ public record AccountIdentityResponse(
@Schema(description = "the account identifier for this account")
UUID uuid,
@Schema(description = "the phone number associated with this account")
String number,
@Schema(description = "the phone number associated with this account; may be null if this account does not have a phone number")
Optional<String> number,
@Schema(description = "the account identifier for this account's phone-number identity")
UUID pni,
@Schema(description = "the account identifier for this account's phone-number identity; may be null if this account does not have a phone number")
Optional<UUID> pni,
@Schema(description = "a hash of this account's username, if set")
@JsonSerialize(using = ByteArrayBase64UrlAdapter.Serializing.class)
@@ -34,5 +35,8 @@ public record AccountIdentityResponse(
boolean storageCapable,
@Schema(description = "entitlements for this account and their current expirations")
Entitlements entitlements) {
Entitlements entitlements,
@Schema(description = "salt to generate PNI auth credentials for accounts without a phone number; null if this account has a phone number")
@Nullable byte[] authCredentialSalt) {
}
@@ -4,7 +4,8 @@
*/
package org.whispersystems.textsecuregcm.entities;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
public record ApnRegistrationId(@NotEmpty String apnRegistrationId) {
public record ApnRegistrationId(@NotBlank @Size(max = 1024) String apnRegistrationId) {
}
@@ -1,10 +1,8 @@
package org.whispersystems.textsecuregcm.entities;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.Valid;
import jakarta.validation.constraints.NotNull;
import java.util.Optional;
public record DeviceActivationRequest(
@@ -15,12 +13,10 @@ public record DeviceActivationRequest(
""")
ECSignedPreKey aciSignedPreKey,
@NotNull
@Valid
@Schema(requiredMode = Schema.RequiredMode.REQUIRED, description = """
A signed EC pre-key to be associated with this account's PNI.
@Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = """
If the account has a phone number, a signed EC pre-key to be associated with this account's PNI.
""")
ECSignedPreKey pniSignedPreKey,
Optional<@Valid ECSignedPreKey> pniSignedPreKey,
@NotNull
@Valid
@@ -29,12 +25,10 @@ public record DeviceActivationRequest(
""")
KEMSignedPreKey aciPqLastResortPreKey,
@NotNull
@Valid
@Schema(requiredMode = Schema.RequiredMode.REQUIRED, description = """
A signed Kyber-1024 "last resort" pre-key to be associated with this account's PNI.
@Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = """
If the account has a phone number, a signed Kyber-1024 "last resort" pre-key to be associated with this account's PNI.
""")
KEMSignedPreKey pniPqLastResortPreKey,
Optional<@Valid KEMSignedPreKey> pniPqLastResortPreKey,
@Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = """
An APNs token set for the account's primary device. If provided, the account's primary
@@ -13,6 +13,7 @@ import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.AssertTrue;
import jakarta.validation.constraints.Size;
import java.util.Optional;
import java.util.Set;
import javax.annotation.Nullable;
import org.whispersystems.textsecuregcm.storage.DeviceCapability;
@@ -24,16 +25,16 @@ public record DeviceAttributes(
int registrationId,
@JsonProperty("pniRegistrationId") int phoneNumberIdentityRegistrationId,
@JsonProperty("pniRegistrationId")
@Nullable
Integer phoneNumberIdentityRegistrationId,
@JsonSerialize(using = ByteArrayAdapter.Serializing.class)
@JsonDeserialize(using = ByteArrayAdapter.Deserializing.class)
@Size(max = 225)
byte[] name,
@JsonSerialize(using = DeviceCapabilityAdapter.Serializer.class)
@JsonDeserialize(using = DeviceCapabilityAdapter.Deserializer.class)
@Nullable
Set<DeviceCapability> capabilities) {
@@ -41,6 +42,7 @@ public record DeviceAttributes(
@AssertTrue
@Schema(hidden = true)
public boolean isEachRegistrationIdValid() {
return validRegistrationId(registrationId) && validRegistrationId(phoneNumberIdentityRegistrationId);
return validRegistrationId(registrationId) &&
(phoneNumberIdentityRegistrationId == null || validRegistrationId(phoneNumberIdentityRegistrationId));
}
}
@@ -8,7 +8,6 @@ package org.whispersystems.textsecuregcm.entities;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import io.swagger.v3.oas.annotations.media.Schema;
import org.whispersystems.textsecuregcm.identity.IdentityType;
import org.whispersystems.textsecuregcm.storage.Device;
import org.whispersystems.textsecuregcm.util.ByteArrayAdapter;
import org.whispersystems.textsecuregcm.util.ByteArrayBase64WithPaddingAdapter;
@@ -33,7 +32,10 @@ public record DeviceInfo(long id,
byte[] createdAtCiphertext) {
public static DeviceInfo forDevice(final Device device) {
return new DeviceInfo(device.getId(), device.getName(), device.getLastSeen(), device.getRegistrationId(
IdentityType.ACI), device.getCreatedAtCiphertext());
return new DeviceInfo(device.getId(),
device.getName(),
device.getLastSeen(),
device.getAccountRegistrationId(),
device.getCreatedAtCiphertext());
}
}
@@ -4,7 +4,8 @@
*/
package org.whispersystems.textsecuregcm.entities;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
public record GcmRegistrationId(@NotEmpty String gcmRegistrationId) {
public record GcmRegistrationId(@NotBlank @Size(max = 1024) String gcmRegistrationId) {
}
@@ -6,7 +6,6 @@ package org.whispersystems.textsecuregcm.entities;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.google.protobuf.ByteString;
import com.webauthn4j.converter.jackson.deserializer.json.ByteArrayBase64Deserializer;
import io.micrometer.core.instrument.Metrics;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.AssertTrue;
@@ -19,12 +18,13 @@ import javax.annotation.Nullable;
import org.whispersystems.textsecuregcm.identity.AciServiceIdentifier;
import org.whispersystems.textsecuregcm.identity.ServiceIdentifier;
import org.whispersystems.textsecuregcm.metrics.MetricsUtil;
import org.whispersystems.textsecuregcm.util.ByteArrayAdapter;
public record IncomingMessage(int type,
byte destinationDeviceId,
int destinationRegistrationId,
@JsonDeserialize(using = ByteArrayBase64Deserializer.class)
@JsonDeserialize(using = ByteArrayAdapter.Deserializing.class)
@NotNull
// Note that max size is validated elsewhere in the interest of controlling responses and
// reporting additional metrics.
@@ -33,9 +33,9 @@ public record LinkDeviceRequest(@Schema(requiredMode = Schema.RequiredMode.REQUI
public LinkDeviceRequest(@JsonProperty("verificationCode") String verificationCode,
@JsonProperty("accountAttributes") DeviceAttributes deviceAttributes,
@JsonProperty("aciSignedPreKey") @NotNull @Valid ECSignedPreKey aciSignedPreKey,
@JsonProperty("pniSignedPreKey") @NotNull @Valid ECSignedPreKey pniSignedPreKey,
@JsonProperty("pniSignedPreKey") Optional<@Valid ECSignedPreKey> pniSignedPreKey,
@JsonProperty("aciPqLastResortPreKey") @NotNull @Valid KEMSignedPreKey aciPqLastResortPreKey,
@JsonProperty("pniPqLastResortPreKey") @NotNull @Valid KEMSignedPreKey pniPqLastResortPreKey,
@JsonProperty("pniPqLastResortPreKey") Optional<@Valid KEMSignedPreKey> pniPqLastResortPreKey,
@JsonProperty("apnToken") Optional<@Valid ApnRegistrationId> apnToken,
@JsonProperty("gcmToken") Optional<@Valid GcmRegistrationId> gcmToken) {
@@ -5,7 +5,8 @@
package org.whispersystems.textsecuregcm.entities;
import java.util.Optional;
import java.util.UUID;
public record LinkDeviceResponse(UUID uuid, UUID pni, byte deviceId) {
public record LinkDeviceResponse(UUID uuid, Optional<UUID> pni, byte deviceId) {
}
Loaded 100 of 524 files, more files were not shown because too many files have changed in this diff. Show more