[PM-23278] Upgrade user KDF settings to minimums (#5955)

Co-authored-by: David Perez <david@livefront.com>
This commit is contained in:
André Bispo
2025-10-09 08:49:22 +01:00
committed by GitHub
parent 44c373a354
commit d98ff6478f
35 changed files with 1573 additions and 23 deletions

View File

@@ -32,6 +32,7 @@ sealed class FlagKey<out T : Any> {
listOf(
CredentialExchangeProtocolImport,
CredentialExchangeProtocolExport,
ForceUpdateKdfSettings,
CipherKeyEncryption,
)
}
@@ -71,6 +72,14 @@ sealed class FlagKey<out T : Any> {
override val defaultValue: Boolean = false
}
/**
* Data object holding the feature flag key for the Force Update KDF Settings feature.
*/
data object ForceUpdateKdfSettings : FlagKey<Boolean>() {
override val keyName: String = "pm-18021-force-update-kdf-settings"
override val defaultValue: Boolean = false
}
//region Dummy keys for testing
/**
* Data object holding the key for a [Boolean] flag to be used in tests.

View File

@@ -24,6 +24,10 @@ class FlagKeyTest {
FlagKey.BitwardenAuthenticationEnabled.keyName,
"bitwarden-authentication-enabled",
)
assertEquals(
FlagKey.ForceUpdateKdfSettings.keyName,
"pm-18021-force-update-kdf-settings",
)
}
@Test
@@ -34,6 +38,7 @@ class FlagKeyTest {
FlagKey.CredentialExchangeProtocolExport,
FlagKey.CipherKeyEncryption,
FlagKey.BitwardenAuthenticationEnabled,
FlagKey.ForceUpdateKdfSettings,
).all {
!it.defaultValue
},