From 65bc5e32574937a843f9ca156a5d34327daf01ba Mon Sep 17 00:00:00 2001 From: Ameya Lokare Date: Wed, 19 Aug 2026 12:21:45 -0700 Subject: [PATCH] Use the correct shared secret for minting storage service credentials in gRPC --- .../textsecuregcm/grpc/ExternalServiceDefinitions.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/service/src/main/java/org/whispersystems/textsecuregcm/grpc/ExternalServiceDefinitions.java b/service/src/main/java/org/whispersystems/textsecuregcm/grpc/ExternalServiceDefinitions.java index 7c66dfd3c..2958501ad 100644 --- a/service/src/main/java/org/whispersystems/textsecuregcm/grpc/ExternalServiceDefinitions.java +++ b/service/src/main/java/org/whispersystems/textsecuregcm/grpc/ExternalServiceDefinitions.java @@ -18,6 +18,7 @@ import org.whispersystems.textsecuregcm.WhisperServerConfiguration; import org.whispersystems.textsecuregcm.auth.ExternalServiceCredentialsGenerator; import org.whispersystems.textsecuregcm.configuration.DirectoryV2ClientConfiguration; import org.whispersystems.textsecuregcm.configuration.PaymentsServiceConfiguration; +import org.whispersystems.textsecuregcm.configuration.SecureStorageServiceConfiguration; import org.whispersystems.textsecuregcm.configuration.SecureValueRecoveryConfiguration; public enum ExternalServiceDefinitions { @@ -48,7 +49,7 @@ public enum ExternalServiceDefinitions { .build(); }), STORAGE(ExternalServiceType.EXTERNAL_SERVICE_TYPE_STORAGE, (chatConfig, _) -> { - final PaymentsServiceConfiguration cfg = chatConfig.getPaymentsServiceConfiguration(); + final SecureStorageServiceConfiguration cfg = chatConfig.getSecureStorageServiceConfiguration(); return ExternalServiceCredentialsGenerator .builder(cfg.userAuthenticationTokenSharedSecret()) .prependUsername(true)