mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-18 00:51:15 +00:00
misc: add kmip metadata field
This commit is contained in:
@@ -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
|
||||
);
|
||||
|
||||
@@ -99,4 +99,5 @@ export type TImportKeyMaterialDTO = {
|
||||
projectId: string;
|
||||
orgId: string;
|
||||
keyUsage: KmsKeyUsage;
|
||||
kmipMetadata?: Record<string, unknown>;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user