mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
feat: resolved migration failing due to json
This commit is contained in:
@@ -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
|
||||
};
|
||||
}
|
||||
)
|
||||
);
|
||||
|
||||
@@ -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
|
||||
};
|
||||
}
|
||||
)
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user