Increse SVR credential validity period to match max account idle duration

This commit is contained in:
Ravi Khadiwala authored and ravi-signal committed 2026-02-23 13:38:20 -05:00
1 parent c0432d828d
commit 8f13beb53b
3 files changed
+34 -31

No files matched your search

@@ -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());
@@ -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";