mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-05 11:26:33 +00:00
docs(kms): signing api endpoints
This commit is contained in:
@@ -1641,7 +1641,7 @@ export const KMS = {
|
|||||||
},
|
},
|
||||||
VERIFY: {
|
VERIFY: {
|
||||||
keyId: "The ID of the key to verify the data with.",
|
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)."
|
signature: "The signature to be verified (base64 encoded)."
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -414,7 +414,7 @@ export const registerCmekRouter = async (server: FastifyZodProvider) => {
|
|||||||
rateLimit: readLimit
|
rateLimit: readLimit
|
||||||
},
|
},
|
||||||
schema: {
|
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({
|
params: z.object({
|
||||||
keyId: z.string().uuid().describe(KMS.GET_PUBLIC_KEY.keyId)
|
keyId: z.string().uuid().describe(KMS.GET_PUBLIC_KEY.keyId)
|
||||||
}),
|
}),
|
||||||
@@ -444,7 +444,7 @@ export const registerCmekRouter = async (server: FastifyZodProvider) => {
|
|||||||
rateLimit: readLimit
|
rateLimit: readLimit
|
||||||
},
|
},
|
||||||
schema: {
|
schema: {
|
||||||
description: "List signing algorithms for a KMS key",
|
description: "List all available signing algorithms for a KMS key",
|
||||||
params: z.object({
|
params: z.object({
|
||||||
keyId: z.string().uuid().describe(KMS.LIST_SIGNING_ALGORITHMS.keyId)
|
keyId: z.string().uuid().describe(KMS.LIST_SIGNING_ALGORITHMS.keyId)
|
||||||
}),
|
}),
|
||||||
@@ -472,7 +472,7 @@ export const registerCmekRouter = async (server: FastifyZodProvider) => {
|
|||||||
rateLimit: writeLimit
|
rateLimit: writeLimit
|
||||||
},
|
},
|
||||||
schema: {
|
schema: {
|
||||||
description: "Sign data with KMS key",
|
description: "Sign data with a KMS key.",
|
||||||
params: z.object({
|
params: z.object({
|
||||||
keyId: z.string().uuid().describe(KMS.SIGN.keyId)
|
keyId: z.string().uuid().describe(KMS.SIGN.keyId)
|
||||||
}),
|
}),
|
||||||
@@ -519,7 +519,7 @@ export const registerCmekRouter = async (server: FastifyZodProvider) => {
|
|||||||
rateLimit: writeLimit
|
rateLimit: writeLimit
|
||||||
},
|
},
|
||||||
schema: {
|
schema: {
|
||||||
description: "Verify data with KMS key",
|
description: "Verify data signatures with a KMS key.",
|
||||||
params: z.object({
|
params: z.object({
|
||||||
keyId: z.string().uuid().describe(KMS.VERIFY.keyId)
|
keyId: z.string().uuid().describe(KMS.VERIFY.keyId)
|
||||||
}),
|
}),
|
||||||
|
|||||||
@@ -0,0 +1,4 @@
|
|||||||
|
---
|
||||||
|
title: "Retrieve Public Key"
|
||||||
|
openapi: "GET /api/v1/kms/keys/{keyId}/public-key"
|
||||||
|
---
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
---
|
||||||
|
title: "Sign Data"
|
||||||
|
openapi: "POST /api/v1/kms/keys/{keyId}/sign"
|
||||||
|
---
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
---
|
||||||
|
title: "List Signing Algorithms"
|
||||||
|
openapi: "GET /api/v1/kms/keys/{keyId}/signing-algorithms"
|
||||||
|
---
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
---
|
||||||
|
title: "Verify Signature"
|
||||||
|
openapi: "POST /api/v1/kms/keys/{keyId}/verify"
|
||||||
|
---
|
||||||
+17
-3
@@ -1176,9 +1176,23 @@
|
|||||||
"api-reference/endpoints/kms/keys/get-by-name",
|
"api-reference/endpoints/kms/keys/get-by-name",
|
||||||
"api-reference/endpoints/kms/keys/create",
|
"api-reference/endpoints/kms/keys/create",
|
||||||
"api-reference/endpoints/kms/keys/update",
|
"api-reference/endpoints/kms/keys/update",
|
||||||
"api-reference/endpoints/kms/keys/delete",
|
"api-reference/endpoints/kms/keys/delete"
|
||||||
"api-reference/endpoints/kms/keys/encrypt",
|
]
|
||||||
"api-reference/endpoints/kms/keys/decrypt"
|
},
|
||||||
|
{
|
||||||
|
"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"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user