Fix for secret-sync import secrets creating a new version for secrets that did not change

This commit is contained in:
carlosmonastyrski
2025-05-22 13:02:38 -03:00
parent 2b948a18f3
commit 2b21c9d348

View File

@@ -362,7 +362,7 @@ export const secretSyncQueueFactory = ({
if (Object.hasOwn(secretMap, key)) {
// Only update secrets if the source value is not empty
if (value) {
if (value && value !== secretMap[key].value) {
secretsToUpdate.push(secret);
if (importBehavior === SecretSyncImportBehavior.PrioritizeDestination) importedSecretMap[key] = secretData;
}