misc: added handling for non-string vault values for migration

This commit is contained in:
Sheen Capadngan
2025-10-22 03:28:54 +08:00
parent 80aa473bca
commit d24b918a40
2 changed files with 21 additions and 3 deletions
@@ -16,6 +16,7 @@ import { AppConnection } from "../app-connection/app-connection-enums";
import { decryptAppConnectionCredentials } from "../app-connection/app-connection-fns";
import { TAppConnectionServiceFactory } from "../app-connection/app-connection-service";
import {
convertVaultValueToString,
getHCVaultAuthMounts,
getHCVaultKubernetesAuthRoles,
getHCVaultSecretsForPath,
@@ -581,7 +582,7 @@ export const externalMigrationServiceFactory = ({
projectId,
secrets: Object.entries(vaultSecrets).map(([secretKey, secretValue]) => ({
secretKey,
secretValue
secretValue: convertVaultValueToString(secretValue)
}))
});