Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

fix: correct api constant reference for kms docs

Scott Wilsonf82f7ae8d0e0
diff --git a/backend/src/server/routes/v1/cmek-router.ts b/backend/src/server/routes/v1/cmek-router.ts
index b07d7b4902..18d13e67fa 100644
--- a/backend/src/server/routes/v1/cmek-router.ts
+++ b/backend/src/server/routes/v1/cmek-router.ts
@@ -293,10 +293,10 @@ export const registerCmekRouter = async (server: FastifyZodProvider) => {
schema: {
description: "Decrypt data with KMS key",
params: z.object({
- keyId: z.string().uuid().describe(KMS.ENCRYPT.keyId)
+ keyId: z.string().uuid().describe(KMS.DECRYPT.keyId)
}),
body: z.object({
- ciphertext: base64Schema.describe(KMS.ENCRYPT.plaintext)
+ ciphertext: base64Schema.describe(KMS.DECRYPT.ciphertext)
}),
response: {
200: z.object({