mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-15 15:41:27 +00:00
Add frontend audit log ui for pki alerting / collection
This commit is contained in:
@@ -323,6 +323,65 @@ export const LogsTableRow = ({ auditLog }: Props) => {
|
||||
<p>{`Email: ${event.metadata.email}`}</p>
|
||||
</Td>
|
||||
);
|
||||
case EventType.CREATE_PKI_ALERT:
|
||||
case EventType.UPDATE_PKI_ALERT:
|
||||
return (
|
||||
<Td>
|
||||
<p>{`Alert ID: ${event.metadata.pkiAlertId}`}</p>
|
||||
<p>{`Name: ${event.metadata.name}`}</p>
|
||||
<p>{`Alert Before Days: ${event.metadata.alertBeforeDays}`}</p>
|
||||
</Td>
|
||||
);
|
||||
case EventType.GET_PKI_ALERT:
|
||||
case EventType.DELETE_PKI_ALERT:
|
||||
return (
|
||||
<Td>
|
||||
<p>{`Alert ID: ${event.metadata.pkiAlertId}`}</p>
|
||||
</Td>
|
||||
);
|
||||
case EventType.CREATE_PKI_COLLECTION:
|
||||
return (
|
||||
<Td>
|
||||
<p>{`Collection ID: ${event.metadata.pkiCollectionId}`}</p>
|
||||
<p>{`Name: ${event.metadata.name}`}</p>
|
||||
</Td>
|
||||
);
|
||||
case EventType.UPDATE_PKI_COLLECTION:
|
||||
return (
|
||||
<Td>
|
||||
<p>{`Collection ID: ${event.metadata.pkiCollectionId}`}</p>
|
||||
<p>{`Name: ${event.metadata.name}`}</p>
|
||||
</Td>
|
||||
);
|
||||
case EventType.GET_PKI_COLLECTION:
|
||||
case EventType.DELETE_PKI_COLLECTION:
|
||||
return (
|
||||
<Td>
|
||||
<p>{`Collection ID: ${event.metadata.pkiCollectionId}`}</p>
|
||||
</Td>
|
||||
);
|
||||
case EventType.GET_PKI_COLLECTION_ITEMS:
|
||||
return (
|
||||
<Td>
|
||||
<p>{`Collection ID: ${event.metadata.pkiCollectionId}`}</p>
|
||||
</Td>
|
||||
);
|
||||
case EventType.ADD_PKI_COLLECTION_ITEM:
|
||||
return (
|
||||
<Td>
|
||||
<p>{`Collection ID: ${event.metadata.pkiCollectionId}`}</p>
|
||||
<p>{`Collection Item ID: ${event.metadata.pkiCollectionItemId}`}</p>
|
||||
<p>{`Type: ${event.metadata.type}`}</p>
|
||||
<p>{`Item ID: ${event.metadata.itemId}`}</p>
|
||||
</Td>
|
||||
);
|
||||
case EventType.DELETE_PKI_COLLECTION_ITEM:
|
||||
return (
|
||||
<Td>
|
||||
<p>{`Collection ID: ${event.metadata.pkiCollectionId}`}</p>
|
||||
<p>{`Collection Item ID: ${event.metadata.pkiCollectionItemId}`}</p>
|
||||
</Td>
|
||||
);
|
||||
case EventType.CREATE_CA:
|
||||
case EventType.GET_CA:
|
||||
case EventType.UPDATE_CA:
|
||||
|
||||
+2
@@ -51,6 +51,8 @@ export const formSchema = z.object({
|
||||
"ip-allowlist": generalPermissionSchema,
|
||||
"certificate-authorities": generalPermissionSchema,
|
||||
certificates: generalPermissionSchema,
|
||||
"pki-alerts": generalPermissionSchema,
|
||||
"pki-collections": generalPermissionSchema,
|
||||
// akhilmhdh: refactor all keys like below
|
||||
[ProjectPermissionSub.SecretApproval]: generalPermissionSchema,
|
||||
workspace: z
|
||||
|
||||
+8
@@ -81,6 +81,14 @@ const SINGLE_PERMISSION_LIST = [
|
||||
title: "Certificates",
|
||||
formName: "certificates"
|
||||
},
|
||||
{
|
||||
title: "PKI Collections",
|
||||
formName: "pki-collections"
|
||||
},
|
||||
{
|
||||
title: "PKI Alerts",
|
||||
formName: "pki-alerts"
|
||||
},
|
||||
{
|
||||
title: "Secret Rollback",
|
||||
formName: "secret-rollback"
|
||||
|
||||
Reference in New Issue
Block a user