mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 18:27:36 +00:00
misc: updated kmip metadata handling
This commit is contained in:
@@ -129,7 +129,7 @@ export const registerKmipSpecRouter = async (server: FastifyZodProvider) => {
|
|||||||
id: z.string(),
|
id: z.string(),
|
||||||
value: z.string(),
|
value: z.string(),
|
||||||
algorithm: z.string(),
|
algorithm: z.string(),
|
||||||
kmipMetadata: z.record(z.any()).optional()
|
kmipMetadata: z.record(z.any()).nullish()
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -435,7 +435,7 @@ export const registerKmipSpecRouter = async (server: FastifyZodProvider) => {
|
|||||||
key: z.string(),
|
key: z.string(),
|
||||||
name: z.string(),
|
name: z.string(),
|
||||||
algorithm: z.nativeEnum(SymmetricKeyAlgorithm),
|
algorithm: z.nativeEnum(SymmetricKeyAlgorithm),
|
||||||
kmipMetadata: z.record(z.any()).optional()
|
kmipMetadata: z.record(z.any()).nullish()
|
||||||
}),
|
}),
|
||||||
response: {
|
response: {
|
||||||
200: z.object({
|
200: z.object({
|
||||||
|
|||||||
@@ -78,7 +78,7 @@ export type TKmipRegisterDTO = {
|
|||||||
name: string;
|
name: string;
|
||||||
key: string;
|
key: string;
|
||||||
algorithm: SymmetricKeyAlgorithm;
|
algorithm: SymmetricKeyAlgorithm;
|
||||||
kmipMetadata?: Record<string, unknown>;
|
kmipMetadata?: Record<string, unknown> | null;
|
||||||
} & KmipOperationBaseDTO;
|
} & KmipOperationBaseDTO;
|
||||||
|
|
||||||
export type TSetupOrgKmipDTO = {
|
export type TSetupOrgKmipDTO = {
|
||||||
|
|||||||
@@ -99,5 +99,5 @@ export type TImportKeyMaterialDTO = {
|
|||||||
projectId: string;
|
projectId: string;
|
||||||
orgId: string;
|
orgId: string;
|
||||||
keyUsage: KmsKeyUsage;
|
keyUsage: KmsKeyUsage;
|
||||||
kmipMetadata?: Record<string, unknown>;
|
kmipMetadata?: Record<string, unknown> | null;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user