feat: resolved migration failing due to json

This commit is contained in:
=
2024-12-01 23:00:07 +05:30
parent cbbafcfa42
commit 1e4164e1c2
3 changed files with 12 additions and 3 deletions

View File

@@ -137,7 +137,12 @@ const reencryptIdentityK8sAuth = async (knex: Knex) => {
plainText: Buffer.from(decryptedCertificate)
}).cipherTextBlob;
return { ...el, encryptedKubernetesCaCertificate, encryptedKubernetesTokenReviewerJwt };
return {
...el,
accessTokenTrustedIps: JSON.stringify(el.accessTokenTrustedIps),
encryptedKubernetesCaCertificate,
encryptedKubernetesTokenReviewerJwt
};
}
)
);

View File

@@ -96,7 +96,11 @@ const reencryptIdentityOidcAuth = async (knex: Knex) => {
plainText: Buffer.from(decryptedCertificate)
}).cipherTextBlob;
return { ...el, encryptedCaCertificate };
return {
...el,
accessTokenTrustedIps: JSON.stringify(el.accessTokenTrustedIps),
encryptedCaCertificate
};
}
)
);