Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
docs(kms): signing api endpoints
Daniel Hougaardc4c065ea9e34
diff --git a/backend/src/lib/api-docs/constants.ts b/backend/src/lib/api-docs/constants.tsindex ac9acf3d1f..f60b4223d6 100644--- a/backend/src/lib/api-docs/constants.ts+++ b/backend/src/lib/api-docs/constants.ts@@ -1641,7 +1641,7 @@ export const KMS = {},VERIFY: {keyId: "The ID of the key to verify the data with.",- data: "The data in string format to be verified (base64 encoded).",+ data: "The data in string format to be verified (base64 encoded). For data larger than 4096 bytes you must first create a digest of the data and then pass the digest in the data parameter.",signature: "The signature to be verified (base64 encoded)."}};diff --git a/backend/src/server/routes/v1/cmek-router.ts b/backend/src/server/routes/v1/cmek-router.tsindex 5ad568fd35..0ade455ec5 100644--- a/backend/src/server/routes/v1/cmek-router.ts+++ b/backend/src/server/routes/v1/cmek-router.ts@@ -414,7 +414,7 @@ export const registerCmekRouter = async (server: FastifyZodProvider) => {rateLimit: readLimit},schema: {- description: "Get public key for a KMS key",+ description: "Get the public key for a KMS key that is used for signing and verifying data.",params: z.object({keyId: z.string().uuid().describe(KMS.GET_PUBLIC_KEY.keyId)}),@@ -444,7 +444,7 @@ export const registerCmekRouter = async (server: FastifyZodProvider) => {rateLimit: readLimit},schema: {- description: "List signing algorithms for a KMS key",+ description: "List all available signing algorithms for a KMS key",params: z.object({keyId: z.string().uuid().describe(KMS.LIST_SIGNING_ALGORITHMS.keyId)}),@@ -472,7 +472,7 @@ export const registerCmekRouter = async (server: FastifyZodProvider) => {rateLimit: writeLimit},schema: {- description: "Sign data with KMS key",+ description: "Sign data with a KMS key.",params: z.object({keyId: z.string().uuid().describe(KMS.SIGN.keyId)}),@@ -519,7 +519,7 @@ export const registerCmekRouter = async (server: FastifyZodProvider) => {rateLimit: writeLimit},schema: {- description: "Verify data with KMS key",+ description: "Verify data signatures with a KMS key.",params: z.object({keyId: z.string().uuid().describe(KMS.VERIFY.keyId)}),diff --git a/docs/api-reference/endpoints/kms/keys/decrypt.mdx b/docs/api-reference/endpoints/kms/encryption/decrypt.mdxsimilarity index 100%rename from docs/api-reference/endpoints/kms/keys/decrypt.mdxrename to docs/api-reference/endpoints/kms/encryption/decrypt.mdxdiff --git a/docs/api-reference/endpoints/kms/keys/encrypt.mdx b/docs/api-reference/endpoints/kms/encryption/encrypt.mdxsimilarity index 100%rename from docs/api-reference/endpoints/kms/keys/encrypt.mdxrename to docs/api-reference/endpoints/kms/encryption/encrypt.mdxdiff --git a/docs/api-reference/endpoints/kms/signing/public-key.mdx b/docs/api-reference/endpoints/kms/signing/public-key.mdxnew file mode 100644index 0000000000..4c8e1fda5f--- /dev/null+++ b/docs/api-reference/endpoints/kms/signing/public-key.mdx@@ -0,0 +1,4 @@+---+title: "Retrieve Public Key"+openapi: "GET /api/v1/kms/keys/{keyId}/public-key"+---diff --git a/docs/api-reference/endpoints/kms/signing/sign.mdx b/docs/api-reference/endpoints/kms/signing/sign.mdxnew file mode 100644index 0000000000..ebeca59248--- /dev/null+++ b/docs/api-reference/endpoints/kms/signing/sign.mdx@@ -0,0 +1,4 @@+---+title: "Sign Data"+openapi: "POST /api/v1/kms/keys/{keyId}/sign"+---diff --git a/docs/api-reference/endpoints/kms/signing/signing-algorithms.mdx b/docs/api-reference/endpoints/kms/signing/signing-algorithms.mdxnew file mode 100644index 0000000000..0a09ef9e0f--- /dev/null+++ b/docs/api-reference/endpoints/kms/signing/signing-algorithms.mdx@@ -0,0 +1,4 @@+---+title: "List Signing Algorithms"+openapi: "GET /api/v1/kms/keys/{keyId}/signing-algorithms"+---diff --git a/docs/api-reference/endpoints/kms/signing/verify.mdx b/docs/api-reference/endpoints/kms/signing/verify.mdxnew file mode 100644index 0000000000..a76270fc30--- /dev/null+++ b/docs/api-reference/endpoints/kms/signing/verify.mdx@@ -0,0 +1,4 @@+---+title: "Verify Signature"+openapi: "POST /api/v1/kms/keys/{keyId}/verify"+---diff --git a/docs/mint.json b/docs/mint.jsonindex 478db02768..b455967ba7 100644--- a/docs/mint.json+++ b/docs/mint.json@@ -1176,9 +1176,23 @@"api-reference/endpoints/kms/keys/get-by-name","api-reference/endpoints/kms/keys/create","api-reference/endpoints/kms/keys/update",- "api-reference/endpoints/kms/keys/delete",- "api-reference/endpoints/kms/keys/encrypt",- "api-reference/endpoints/kms/keys/decrypt"+ "api-reference/endpoints/kms/keys/delete"+ ]+ },+ {+ "group": "Encryption",+ "pages": [+ "api-reference/endpoints/kms/encryption/encrypt",+ "api-reference/endpoints/kms/encryption/decrypt"+ ]+ },+ {+ "group": "Signing",+ "pages": [+ "api-reference/endpoints/kms/signing/sign",+ "api-reference/endpoints/kms/signing/verify",+ "api-reference/endpoints/kms/signing/public-key",+ "api-reference/endpoints/kms/signing/signing-algorithms"]}]