mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 12:27:28 +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)
|
plainText: Buffer.from(decryptedCertificate)
|
||||||
}).cipherTextBlob;
|
}).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)
|
plainText: Buffer.from(decryptedCertificate)
|
||||||
}).cipherTextBlob;
|
}).cipherTextBlob;
|
||||||
|
|
||||||
return { ...el, encryptedCaCertificate };
|
return {
|
||||||
|
...el,
|
||||||
|
accessTokenTrustedIps: JSON.stringify(el.accessTokenTrustedIps),
|
||||||
|
encryptedCaCertificate
|
||||||
|
};
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ import {
|
|||||||
validateOidcBoundClaimsField
|
validateOidcBoundClaimsField
|
||||||
} from "@app/services/identity-oidc-auth/identity-oidc-auth-validators";
|
} from "@app/services/identity-oidc-auth/identity-oidc-auth-validators";
|
||||||
|
|
||||||
const IdentityOidcAuthResponseSchema = IdentityOidcAuthsSchema.omit({
|
const IdentityOidcAuthResponseSchema = IdentityOidcAuthsSchema.pick({
|
||||||
id: true,
|
id: true,
|
||||||
accessTokenTTL: true,
|
accessTokenTTL: true,
|
||||||
accessTokenMaxTTL: true,
|
accessTokenMaxTTL: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user