misc: add kmip metadata field

This commit is contained in:
Sheen Capadngan
2025-10-10 19:56:51 +08:00
parent 01b6c29996
commit 659ed7365d
7 changed files with 36 additions and 8 deletions
+3 -2
View File
@@ -392,7 +392,7 @@ export const kmsServiceFactory = ({
};
const importKeyMaterial = async (
{ key, algorithm, name, isReserved, projectId, orgId, keyUsage }: TImportKeyMaterialDTO,
{ key, algorithm, name, isReserved, projectId, orgId, keyUsage, kmipMetadata }: TImportKeyMaterialDTO,
tx?: Knex
) => {
// daniel: currently we only support imports for encrypt/decrypt keys
@@ -416,7 +416,8 @@ export const kmsServiceFactory = ({
keyUsage: KmsKeyUsage.ENCRYPT_DECRYPT,
orgId,
isReserved,
projectId
projectId,
kmipMetadata
},
db
);
+1
View File
@@ -99,4 +99,5 @@ export type TImportKeyMaterialDTO = {
projectId: string;
orgId: string;
keyUsage: KmsKeyUsage;
kmipMetadata?: Record<string, unknown>;
};