Merge pull request #2072 from Infisical/misc/removed-webhook-url-from-audit-logs-table

misc: removed webhook url from audit logs table
This commit is contained in:
Akhil Mohan
2024-07-04 20:53:51 +05:30
committed by GitHub
4 changed files with 3 additions and 15 deletions
@@ -771,7 +771,6 @@ interface CreateWebhookEvent {
webhookId: string; webhookId: string;
environment: string; environment: string;
secretPath: string; secretPath: string;
webhookUrl: string;
isDisabled: boolean; isDisabled: boolean;
}; };
} }
@@ -782,7 +781,6 @@ interface UpdateWebhookStatusEvent {
webhookId: string; webhookId: string;
environment: string; environment: string;
secretPath: string; secretPath: string;
webhookUrl: string;
isDisabled: boolean; isDisabled: boolean;
}; };
} }
@@ -793,7 +791,6 @@ interface DeleteWebhookEvent {
webhookId: string; webhookId: string;
environment: string; environment: string;
secretPath: string; secretPath: string;
webhookUrl: string;
isDisabled: boolean; isDisabled: boolean;
}; };
} }
@@ -81,8 +81,7 @@ export const registerWebhookRouter = async (server: FastifyZodProvider) => {
environment: webhook.environment.slug, environment: webhook.environment.slug,
webhookId: webhook.id, webhookId: webhook.id,
isDisabled: webhook.isDisabled, isDisabled: webhook.isDisabled,
secretPath: webhook.secretPath, secretPath: webhook.secretPath
webhookUrl: webhook.url
} }
} }
}); });
@@ -131,8 +130,7 @@ export const registerWebhookRouter = async (server: FastifyZodProvider) => {
environment: webhook.environment.slug, environment: webhook.environment.slug,
webhookId: webhook.id, webhookId: webhook.id,
isDisabled: webhook.isDisabled, isDisabled: webhook.isDisabled,
secretPath: webhook.secretPath, secretPath: webhook.secretPath
webhookUrl: webhook.url
} }
} }
}); });
@@ -171,8 +169,7 @@ export const registerWebhookRouter = async (server: FastifyZodProvider) => {
environment: webhook.environment.slug, environment: webhook.environment.slug,
webhookId: webhook.id, webhookId: webhook.id,
isDisabled: webhook.isDisabled, isDisabled: webhook.isDisabled,
secretPath: webhook.secretPath, secretPath: webhook.secretPath
webhookUrl: webhook.url
} }
} }
}); });
@@ -362,7 +362,6 @@ interface CreateWebhookEvent {
webhookId: string; webhookId: string;
environment: string; environment: string;
secretPath: string; secretPath: string;
webhookUrl: string;
isDisabled: boolean; isDisabled: boolean;
}; };
} }
@@ -373,7 +372,6 @@ interface UpdateWebhookStatusEvent {
webhookId: string; webhookId: string;
environment: string; environment: string;
secretPath: string; secretPath: string;
webhookUrl: string;
isDisabled: boolean; isDisabled: boolean;
}; };
} }
@@ -384,7 +382,6 @@ interface DeleteWebhookEvent {
webhookId: string; webhookId: string;
environment: string; environment: string;
secretPath: string; secretPath: string;
webhookUrl: string;
isDisabled: boolean; isDisabled: boolean;
}; };
} }
@@ -243,7 +243,6 @@ export const LogsTableRow = ({ auditLog }: Props) => {
<Td> <Td>
<p>{`Environment: ${event.metadata.environment}`}</p> <p>{`Environment: ${event.metadata.environment}`}</p>
<p>{`Secret path: ${event.metadata.secretPath}`}</p> <p>{`Secret path: ${event.metadata.secretPath}`}</p>
<p>{`Webhook URL: ${event.metadata.webhookUrl}`}</p>
<p>{`Disabled: ${event.metadata.isDisabled}`}</p> <p>{`Disabled: ${event.metadata.isDisabled}`}</p>
</Td> </Td>
); );
@@ -252,7 +251,6 @@ export const LogsTableRow = ({ auditLog }: Props) => {
<Td> <Td>
<p>{`Environment: ${event.metadata.environment}`}</p> <p>{`Environment: ${event.metadata.environment}`}</p>
<p>{`Secret path: ${event.metadata.secretPath}`}</p> <p>{`Secret path: ${event.metadata.secretPath}`}</p>
<p>{`Webhook URL: ${event.metadata.webhookUrl}`}</p>
<p>{`Disabled: ${event.metadata.isDisabled}`}</p> <p>{`Disabled: ${event.metadata.isDisabled}`}</p>
</Td> </Td>
); );
@@ -261,7 +259,6 @@ export const LogsTableRow = ({ auditLog }: Props) => {
<Td> <Td>
<p>{`Environment: ${event.metadata.environment}`}</p> <p>{`Environment: ${event.metadata.environment}`}</p>
<p>{`Secret path: ${event.metadata.secretPath}`}</p> <p>{`Secret path: ${event.metadata.secretPath}`}</p>
<p>{`Webhook URL: ${event.metadata.webhookUrl}`}</p>
<p>{`Disabled: ${event.metadata.isDisabled}`}</p> <p>{`Disabled: ${event.metadata.isDisabled}`}</p>
</Td> </Td>
); );