mirror of
https://github.com/signalapp/Signal-Server.git
synced 2026-12-02 13:06:53 +00:00
Increse SVR credential validity period to match max account idle duration
This commit is contained in:
1 parent
c0432d828d
commit
8f13beb53b
3 files changed
+34
-31
No files matched your search
+2
-1
@@ -44,6 +44,7 @@ import org.whispersystems.textsecuregcm.metrics.MetricsUtil;
|
||||
import org.whispersystems.textsecuregcm.metrics.UserAgentTagUtil;
|
||||
import org.whispersystems.textsecuregcm.storage.Account;
|
||||
import org.whispersystems.textsecuregcm.storage.AccountsManager;
|
||||
import org.whispersystems.textsecuregcm.workers.RemoveExpiredAccountsCommand;
|
||||
|
||||
@Path("/v2/{name: backup|svr}")
|
||||
@io.swagger.v3.oas.annotations.tags.Tag(name = "Secure Value Recovery")
|
||||
@@ -53,7 +54,7 @@ public class SecureValueRecovery2Controller {
|
||||
MetricsUtil.name(SecureValueRecovery2Controller.class, "credentialAge");
|
||||
|
||||
|
||||
public static final Duration MAX_AGE = Duration.ofDays(30);
|
||||
public static final Duration MAX_AGE = RemoveExpiredAccountsCommand.MAX_IDLE_DURATION;
|
||||
|
||||
public static ExternalServiceCredentialsGenerator credentialsGenerator(final SecureValueRecoveryConfiguration cfg) {
|
||||
return credentialsGenerator(cfg, Clock.systemUTC());
|
||||
|
||||
+1
-1
@@ -26,7 +26,7 @@ public class RemoveExpiredAccountsCommand extends AbstractSinglePassCrawlAccount
|
||||
|
||||
private final Clock clock;
|
||||
|
||||
static final Duration MAX_IDLE_DURATION = Duration.ofDays(120);
|
||||
public static final Duration MAX_IDLE_DURATION = Duration.ofDays(120);
|
||||
|
||||
@VisibleForTesting
|
||||
static final String DRY_RUN_ARGUMENT = "dry-run";
|
||||
|
||||
Reference in new issue
Block a user