mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-02 19:25:51 +00:00
small k8s bug patch
This commit is contained in:
@@ -198,7 +198,7 @@ export const registerIdentityKubernetesRouter = async (server: FastifyZodProvide
|
|||||||
}),
|
}),
|
||||||
response: {
|
response: {
|
||||||
200: z.object({
|
200: z.object({
|
||||||
identityKubernetesAuth: IdentityKubernetesAuthsSchema
|
identityKubernetesAuth: IdentityKubernetesAuthResponseSchema
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -442,7 +442,34 @@ export const identityKubernetesAuthServiceFactory = ({
|
|||||||
|
|
||||||
const updatedKubernetesAuth = await identityKubernetesAuthDAL.updateById(identityKubernetesAuth.id, updateQuery);
|
const updatedKubernetesAuth = await identityKubernetesAuthDAL.updateById(identityKubernetesAuth.id, updateQuery);
|
||||||
|
|
||||||
return { ...updatedKubernetesAuth, orgId: identityMembershipOrg.orgId };
|
const updatedCACert =
|
||||||
|
updatedKubernetesAuth.encryptedCaCert && updatedKubernetesAuth.caCertIV && updatedKubernetesAuth.caCertTag
|
||||||
|
? decryptSymmetric({
|
||||||
|
ciphertext: updatedKubernetesAuth.encryptedCaCert,
|
||||||
|
iv: updatedKubernetesAuth.caCertIV,
|
||||||
|
tag: updatedKubernetesAuth.caCertTag,
|
||||||
|
key
|
||||||
|
})
|
||||||
|
: "";
|
||||||
|
|
||||||
|
const updatedTokenReviewerJwt =
|
||||||
|
updatedKubernetesAuth.encryptedTokenReviewerJwt &&
|
||||||
|
updatedKubernetesAuth.tokenReviewerJwtIV &&
|
||||||
|
updatedKubernetesAuth.tokenReviewerJwtTag
|
||||||
|
? decryptSymmetric({
|
||||||
|
ciphertext: updatedKubernetesAuth.encryptedTokenReviewerJwt,
|
||||||
|
iv: updatedKubernetesAuth.tokenReviewerJwtIV,
|
||||||
|
tag: updatedKubernetesAuth.tokenReviewerJwtTag,
|
||||||
|
key
|
||||||
|
})
|
||||||
|
: "";
|
||||||
|
|
||||||
|
return {
|
||||||
|
...updatedKubernetesAuth,
|
||||||
|
orgId: identityMembershipOrg.orgId,
|
||||||
|
caCert: updatedCACert,
|
||||||
|
tokenReviewerJwt: updatedTokenReviewerJwt
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
const getKubernetesAuth = async ({
|
const getKubernetesAuth = async ({
|
||||||
|
|||||||
Reference in New Issue
Block a user