mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-05 12:26:38 +00:00
feat: integration synced log event
This commit is contained in:
@@ -298,6 +298,8 @@ export const integrationServiceFactory = ({
|
|||||||
ForbiddenError.from(permission).throwUnlessCan(ProjectPermissionActions.Read, ProjectPermissionSub.Integrations);
|
ForbiddenError.from(permission).throwUnlessCan(ProjectPermissionActions.Read, ProjectPermissionSub.Integrations);
|
||||||
|
|
||||||
await secretQueueService.syncIntegrations({
|
await secretQueueService.syncIntegrations({
|
||||||
|
isManual: true,
|
||||||
|
actorId,
|
||||||
environment: integration.environment.slug,
|
environment: integration.environment.slug,
|
||||||
secretPath: integration.secretPath,
|
secretPath: integration.secretPath,
|
||||||
projectId: integration.projectId
|
projectId: integration.projectId
|
||||||
|
|||||||
@@ -79,7 +79,8 @@ export const eventToNameMap: { [K in EventType]: string } = {
|
|||||||
[EventType.UPDATE_CERTIFICATE_TEMPLATE_EST_CONFIG]:
|
[EventType.UPDATE_CERTIFICATE_TEMPLATE_EST_CONFIG]:
|
||||||
"Update certificate template EST configuration",
|
"Update certificate template EST configuration",
|
||||||
[EventType.UPDATE_PROJECT_SLACK_CONFIG]: "Update project slack configuration",
|
[EventType.UPDATE_PROJECT_SLACK_CONFIG]: "Update project slack configuration",
|
||||||
[EventType.GET_PROJECT_SLACK_CONFIG]: "Get project slack configuration"
|
[EventType.GET_PROJECT_SLACK_CONFIG]: "Get project slack configuration",
|
||||||
|
[EventType.INTEGRATION_SYNCED]: "Integration sync"
|
||||||
};
|
};
|
||||||
|
|
||||||
export const userAgentTTypeoNameMap: { [K in UserAgentType]: string } = {
|
export const userAgentTTypeoNameMap: { [K in UserAgentType]: string } = {
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
export enum ActorType {
|
export enum ActorType {
|
||||||
|
PLATFORM = "platform",
|
||||||
USER = "user",
|
USER = "user",
|
||||||
SERVICE = "service",
|
SERVICE = "service",
|
||||||
IDENTITY = "identity"
|
IDENTITY = "identity"
|
||||||
@@ -91,5 +92,6 @@ export enum EventType {
|
|||||||
UPDATE_CERTIFICATE_TEMPLATE_EST_CONFIG = "update-certificate-template-est-config",
|
UPDATE_CERTIFICATE_TEMPLATE_EST_CONFIG = "update-certificate-template-est-config",
|
||||||
GET_CERTIFICATE_TEMPLATE_EST_CONFIG = "get-certificate-template-est-config",
|
GET_CERTIFICATE_TEMPLATE_EST_CONFIG = "get-certificate-template-est-config",
|
||||||
UPDATE_PROJECT_SLACK_CONFIG = "update-project-slack-config",
|
UPDATE_PROJECT_SLACK_CONFIG = "update-project-slack-config",
|
||||||
GET_PROJECT_SLACK_CONFIG = "get-project-slack-config"
|
GET_PROJECT_SLACK_CONFIG = "get-project-slack-config",
|
||||||
|
INTEGRATION_SYNCED = "integration-synced"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user