Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
Merge remote-tracking branch 'origin/main' into feat/ai-product
Sheen Capadngane7b3b9efa34e
diff --cc backend/src/ee/services/audit-log/audit-log-types.tsindex a245fb79d6,57b736c401..26d9357402--- a/backend/src/ee/services/audit-log/audit-log-types.ts+++ b/backend/src/ee/services/audit-log/audit-log-types.ts@@@ -590,32 -591,19 +591,46 @@@ export enum EventTypeATTEMPT_ACME_CHALLENGE = "attempt-acme-challenge",FAIL_ACME_CHALLENGE = "fail-acme-challenge",+ // MCP Endpoints+ MCP_ENDPOINT_CREATE = "mcp-endpoint-create",+ MCP_ENDPOINT_UPDATE = "mcp-endpoint-update",+ MCP_ENDPOINT_DELETE = "mcp-endpoint-delete",+ MCP_ENDPOINT_GET = "mcp-endpoint-get",+ MCP_ENDPOINT_LIST = "mcp-endpoint-list",+ MCP_ENDPOINT_LIST_TOOLS = "mcp-endpoint-list-tools",+ MCP_ENDPOINT_ENABLE_TOOL = "mcp-endpoint-enable-tool",+ MCP_ENDPOINT_DISABLE_TOOL = "mcp-endpoint-disable-tool",+ MCP_ENDPOINT_BULK_UPDATE_TOOLS = "mcp-endpoint-bulk-update-tools",+ MCP_ENDPOINT_OAUTH_CLIENT_REGISTER = "mcp-endpoint-oauth-client-register",+ MCP_ENDPOINT_OAUTH_AUTHORIZE = "mcp-endpoint-oauth-authorize",+ MCP_ENDPOINT_CONNECT = "mcp-endpoint-connect",+ MCP_ENDPOINT_SAVE_USER_CREDENTIAL = "mcp-endpoint-save-user-credential",++ // MCP Servers+ MCP_SERVER_CREATE = "mcp-server-create",+ MCP_SERVER_UPDATE = "mcp-server-update",+ MCP_SERVER_DELETE = "mcp-server-delete",+ MCP_SERVER_GET = "mcp-server-get",+ MCP_SERVER_LIST = "mcp-server-list",+ MCP_SERVER_LIST_TOOLS = "mcp-server-list-tools",+ MCP_SERVER_SYNC_TOOLS = "mcp-server-sync-tools",++ // MCP Activity Logs- MCP_ACTIVITY_LOG_LIST = "mcp-activity-log-list"++ MCP_ACTIVITY_LOG_LIST = "mcp-activity-log-list",+++ // Dynamic Secrets+ CREATE_DYNAMIC_SECRET = "create-dynamic-secret",+ UPDATE_DYNAMIC_SECRET = "update-dynamic-secret",+ DELETE_DYNAMIC_SECRET = "delete-dynamic-secret",+ GET_DYNAMIC_SECRET = "get-dynamic-secret",+ LIST_DYNAMIC_SECRETS = "list-dynamic-secrets",++ // Dynamic Secret Leases+ CREATE_DYNAMIC_SECRET_LEASE = "create-dynamic-secret-lease",+ DELETE_DYNAMIC_SECRET_LEASE = "delete-dynamic-secret-lease",+ RENEW_DYNAMIC_SECRET_LEASE = "renew-dynamic-secret-lease",+ LIST_DYNAMIC_SECRET_LEASES = "list-dynamic-secret-leases",+ GET_DYNAMIC_SECRET_LEASE = "get-dynamic-secret-lease"}export const filterableSecretEvents: EventType[] = [@@@ -4514,193 -4514,157 +4541,344 @@@ interface FailAcmeChallengeEvent};}+interface McpEndpointCreateEvent {+ type: EventType.MCP_ENDPOINT_CREATE;+ metadata: {+ endpointId: string;+ name: string;+ description?: string;+ serverIds: string[];+ };+}++interface McpEndpointUpdateEvent {+ type: EventType.MCP_ENDPOINT_UPDATE;+ metadata: {+ endpointId: string;+ name?: string;+ description?: string;+ serverIds?: string[];+ piiFiltering?: boolean;+ };+}++interface McpEndpointDeleteEvent {+ type: EventType.MCP_ENDPOINT_DELETE;+ metadata: {+ endpointId: string;+ name: string;+ };+}++interface McpEndpointGetEvent {+ type: EventType.MCP_ENDPOINT_GET;+ metadata: {+ endpointId: string;+ name: string;+ };+}++interface McpEndpointListEvent {+ type: EventType.MCP_ENDPOINT_LIST;+ metadata: {+ count: number;+ };+}++interface McpEndpointListToolsEvent {+ type: EventType.MCP_ENDPOINT_LIST_TOOLS;+ metadata: {+ endpointId: string;+ endpointName: string;+ toolCount: number;+ };+}++interface McpEndpointEnableToolEvent {+ type: EventType.MCP_ENDPOINT_ENABLE_TOOL;+ metadata: {+ endpointId: string;+ endpointName: string;+ serverToolId: string;+ toolName: string;+ };+}++interface McpEndpointDisableToolEvent {+ type: EventType.MCP_ENDPOINT_DISABLE_TOOL;+ metadata: {+ endpointId: string;+ endpointName: string;+ serverToolId: string;+ toolName: string;+ };+}++interface McpEndpointBulkUpdateToolsEvent {+ type: EventType.MCP_ENDPOINT_BULK_UPDATE_TOOLS;+ metadata: {+ endpointId: string;+ endpointName: string;+ toolsUpdated: number;+ };+}++interface McpEndpointOAuthClientRegisterEvent {+ type: EventType.MCP_ENDPOINT_OAUTH_CLIENT_REGISTER;+ metadata: {+ endpointId: string;+ endpointName: string;+ clientId: string;+ clientName: string;+ };+}++interface McpEndpointOAuthAuthorizeEvent {+ type: EventType.MCP_ENDPOINT_OAUTH_AUTHORIZE;+ metadata: {+ endpointId: string;+ endpointName: string;+ clientId: string;+ };+}++interface McpEndpointConnectEvent {+ type: EventType.MCP_ENDPOINT_CONNECT;+ metadata: {+ endpointId: string;+ endpointName: string;+ userId: string;+ };+}++interface McpEndpointSaveUserCredentialEvent {+ type: EventType.MCP_ENDPOINT_SAVE_USER_CREDENTIAL;+ metadata: {+ endpointId: string;+ endpointName: string;+ serverId: string;+ serverName: string;+ };+}++interface McpServerCreateEvent {+ type: EventType.MCP_SERVER_CREATE;+ metadata: {+ serverId: string;+ name: string;+ url: string;+ credentialMode: string;+ authMethod: string;+ };+}++interface McpServerUpdateEvent {+ type: EventType.MCP_SERVER_UPDATE;+ metadata: {+ serverId: string;+ name: string;+ };+}++interface McpServerDeleteEvent {+ type: EventType.MCP_SERVER_DELETE;+ metadata: {+ serverId: string;+ name: string;+ };+}++interface McpServerGetEvent {+ type: EventType.MCP_SERVER_GET;+ metadata: {+ serverId: string;+ name: string;+ };+}++interface McpServerListEvent {+ type: EventType.MCP_SERVER_LIST;+ metadata: {+ count: number;+ };+}++interface McpServerListToolsEvent {+ type: EventType.MCP_SERVER_LIST_TOOLS;+ metadata: {+ serverId: string;+ serverName: string;+ toolCount: number;+ };+}++interface McpServerSyncToolsEvent {+ type: EventType.MCP_SERVER_SYNC_TOOLS;+ metadata: {+ serverId: string;+ serverName: string;+ toolCount: number;+ };+}++interface McpActivityLogListEvent {+ type: EventType.MCP_ACTIVITY_LOG_LIST;+ metadata: {+ count: number;+ };+}++ interface GetDynamicSecretLeaseEvent {+ type: EventType.GET_DYNAMIC_SECRET_LEASE;+ metadata: {+ dynamicSecretName: string;+ dynamicSecretId: string;+ dynamicSecretType: string;++ leaseId: string;+ leaseExternalEntityId: string;+ leaseExpireAt: Date;++ projectId: string;+ environment: string;+ secretPath: string;+ };+ }++ interface RenewDynamicSecretLeaseEvent {+ type: EventType.RENEW_DYNAMIC_SECRET_LEASE;+ metadata: {+ dynamicSecretName: string;+ dynamicSecretId: string;+ dynamicSecretType: string;++ leaseId: string;+ leaseExternalEntityId: string;+ newLeaseExpireAt: Date;++ environment: string;+ secretPath: string;+ projectId: string;+ };+ }++ interface CreateDynamicSecretLeaseEvent {+ type: EventType.CREATE_DYNAMIC_SECRET_LEASE;+ metadata: {+ dynamicSecretName: string;+ dynamicSecretId: string;+ dynamicSecretType: string;++ leaseId: string;+ leaseExternalEntityId: string;+ leaseExpireAt: Date;++ environment: string;+ secretPath: string;+ projectId: string;+ };+ }++ interface DeleteDynamicSecretLeaseEvent {+ type: EventType.DELETE_DYNAMIC_SECRET_LEASE;+ metadata: {+ dynamicSecretName: string;+ dynamicSecretId: string;+ dynamicSecretType: string;++ leaseId: string;+ leaseExternalEntityId: string;+ leaseStatus?: string | null;++ environment: string;+ secretPath: string;+ projectId: string;++ isForced: boolean;+ };+ }++ interface CreateDynamicSecretEvent {+ type: EventType.CREATE_DYNAMIC_SECRET;+ metadata: {+ dynamicSecretName: string;+ dynamicSecretType: string;+ dynamicSecretId: string;+ defaultTTL: string;+ maxTTL?: string | null;+ gatewayV2Id?: string | null;+ usernameTemplate?: string | null;++ environment: string;+ secretPath: string;+ projectId: string;+ };+ }++ interface UpdateDynamicSecretEvent {+ type: EventType.UPDATE_DYNAMIC_SECRET;+ metadata: {+ dynamicSecretName: string;+ dynamicSecretId: string;+ dynamicSecretType: string;+ updatedFields: string[];++ environment: string;+ secretPath: string;+ projectId: string;+ };+ }++ interface DeleteDynamicSecretEvent {+ type: EventType.DELETE_DYNAMIC_SECRET;+ metadata: {+ dynamicSecretName: string;+ dynamicSecretId: string;+ dynamicSecretType: string;++ environment: string;+ secretPath: string;+ projectId: string;+ };+ }++ interface GetDynamicSecretEvent {+ type: EventType.GET_DYNAMIC_SECRET;+ metadata: {+ dynamicSecretName: string;+ dynamicSecretId: string;+ dynamicSecretType: string;++ environment: string;+ secretPath: string;+ projectId: string;+ };+ }++ interface ListDynamicSecretsEvent {+ type: EventType.LIST_DYNAMIC_SECRETS;+ metadata: {+ environment: string;+ secretPath: string;+ projectId: string;+ };+ }++ interface ListDynamicSecretLeasesEvent {+ type: EventType.LIST_DYNAMIC_SECRET_LEASES;+ metadata: {+ dynamicSecretName: string;+ dynamicSecretId: string;+ dynamicSecretType: string;++ environment: string;+ secretPath: string;+ projectId: string;++ leaseCount: number;+ };+ }+export type Event =| CreateSubOrganizationEvent| UpdateSubOrganizationEvent@@@ -5111,24 -5076,13 +5290,34 @@@| PassedAcmeChallengeEvent| AttemptAcmeChallengeEvent| FailAcmeChallengeEvent+ | McpEndpointCreateEvent+ | McpEndpointUpdateEvent+ | McpEndpointDeleteEvent+ | McpEndpointGetEvent+ | McpEndpointListEvent+ | McpEndpointListToolsEvent+ | McpEndpointEnableToolEvent+ | McpEndpointDisableToolEvent+ | McpEndpointBulkUpdateToolsEvent+ | McpEndpointOAuthClientRegisterEvent+ | McpEndpointOAuthAuthorizeEvent+ | McpEndpointConnectEvent+ | McpEndpointSaveUserCredentialEvent+ | McpServerCreateEvent+ | McpServerUpdateEvent+ | McpServerDeleteEvent+ | McpServerGetEvent+ | McpServerListEvent+ | McpServerListToolsEvent+ | McpServerSyncToolsEvent- | McpActivityLogListEvent;++ | McpActivityLogListEvent+ | CreateDynamicSecretEvent+ | UpdateDynamicSecretEvent+ | DeleteDynamicSecretEvent+ | GetDynamicSecretEvent+ | ListDynamicSecretsEvent+ | ListDynamicSecretLeasesEvent+ | CreateDynamicSecretLeaseEvent+ | DeleteDynamicSecretLeaseEvent+ | RenewDynamicSecretLeaseEvent+ | GetDynamicSecretLeaseEvent;diff --cc frontend/src/hooks/api/auditLogs/constants.tsxindex 3ecc39664b,888bb05f30..2ea0ecf1eb--- a/frontend/src/hooks/api/auditLogs/constants.tsx+++ b/frontend/src/hooks/api/auditLogs/constants.tsx@@@ -308,32 -308,17 +308,43 @@@ export const eventToNameMap: { [K in Ev[EventType.APPROVAL_REQUEST_GRANT_GET]: "Get Approval Request Grant",[EventType.APPROVAL_REQUEST_GRANT_REVOKE]: "Revoke Approval Request Grant",+ // MCP Endpoints+ [EventType.MCP_ENDPOINT_CREATE]: "Create MCP Endpoint",+ [EventType.MCP_ENDPOINT_UPDATE]: "Update MCP Endpoint",+ [EventType.MCP_ENDPOINT_DELETE]: "Delete MCP Endpoint",+ [EventType.MCP_ENDPOINT_GET]: "Get MCP Endpoint",+ [EventType.MCP_ENDPOINT_LIST]: "List MCP Endpoints",+ [EventType.MCP_ENDPOINT_LIST_TOOLS]: "List MCP Endpoint Tools",+ [EventType.MCP_ENDPOINT_ENABLE_TOOL]: "Enable MCP Endpoint Tool",+ [EventType.MCP_ENDPOINT_DISABLE_TOOL]: "Disable MCP Endpoint Tool",+ [EventType.MCP_ENDPOINT_BULK_UPDATE_TOOLS]: "Bulk Update MCP Endpoint Tools",+ [EventType.MCP_ENDPOINT_OAUTH_CLIENT_REGISTER]: "Register MCP OAuth Client",+ [EventType.MCP_ENDPOINT_OAUTH_AUTHORIZE]: "Authorize MCP OAuth Client",+ [EventType.MCP_ENDPOINT_CONNECT]: "Connect to MCP Endpoint",+ [EventType.MCP_ENDPOINT_SAVE_USER_CREDENTIAL]: "Save MCP Server User Credential",++ // MCP Servers+ [EventType.MCP_SERVER_CREATE]: "Create MCP Server",+ [EventType.MCP_SERVER_UPDATE]: "Update MCP Server",+ [EventType.MCP_SERVER_DELETE]: "Delete MCP Server",+ [EventType.MCP_SERVER_GET]: "Get MCP Server",+ [EventType.MCP_SERVER_LIST]: "List MCP Servers",+ [EventType.MCP_SERVER_LIST_TOOLS]: "List MCP Server Tools",+ [EventType.MCP_SERVER_SYNC_TOOLS]: "Sync MCP Server Tools",++ // MCP Activity Logs- [EventType.MCP_ACTIVITY_LOG_LIST]: "List MCP Activity Logs"++ [EventType.MCP_ACTIVITY_LOG_LIST]: "List MCP Activity Logs",+ [EventType.CREATE_DYNAMIC_SECRET]: "Create Dynamic Secret",+ [EventType.UPDATE_DYNAMIC_SECRET]: "Update Dynamic Secret",+ [EventType.DELETE_DYNAMIC_SECRET]: "Delete Dynamic Secret",+ [EventType.GET_DYNAMIC_SECRET]: "Get Dynamic Secret",+ [EventType.LIST_DYNAMIC_SECRETS]: "List Dynamic Secrets",++ [EventType.CREATE_DYNAMIC_SECRET_LEASE]: "Create Dynamic Secret Lease",+ [EventType.DELETE_DYNAMIC_SECRET_LEASE]: "Delete Dynamic Secret Lease",+ [EventType.RENEW_DYNAMIC_SECRET_LEASE]: "Renew Dynamic Secret Lease",+ [EventType.LIST_DYNAMIC_SECRET_LEASES]: "List Dynamic Secret Leases",+ [EventType.GET_DYNAMIC_SECRET_LEASE]: "Get Dynamic Secret Lease"};export const userAgentTypeToNameMap: { [K in UserAgentType]: string } = {diff --cc frontend/src/hooks/api/auditLogs/enums.tsxindex acb5134811,d83fc5e28b..5a9e5f123c--- a/frontend/src/hooks/api/auditLogs/enums.tsx+++ b/frontend/src/hooks/api/auditLogs/enums.tsx@@@ -301,30 -301,17 +301,44 @@@ export enum EventTypeAPPROVAL_REQUEST_GRANT_GET = "approval-request-grant-get",APPROVAL_REQUEST_GRANT_REVOKE = "approval-request-grant-revoke",+ // MCP Endpoints+ MCP_ENDPOINT_CREATE = "mcp-endpoint-create",+ MCP_ENDPOINT_UPDATE = "mcp-endpoint-update",+ MCP_ENDPOINT_DELETE = "mcp-endpoint-delete",+ MCP_ENDPOINT_GET = "mcp-endpoint-get",+ MCP_ENDPOINT_LIST = "mcp-endpoint-list",+ MCP_ENDPOINT_LIST_TOOLS = "mcp-endpoint-list-tools",+ MCP_ENDPOINT_ENABLE_TOOL = "mcp-endpoint-enable-tool",+ MCP_ENDPOINT_DISABLE_TOOL = "mcp-endpoint-disable-tool",+ MCP_ENDPOINT_BULK_UPDATE_TOOLS = "mcp-endpoint-bulk-update-tools",+ MCP_ENDPOINT_OAUTH_CLIENT_REGISTER = "mcp-endpoint-oauth-client-register",+ MCP_ENDPOINT_OAUTH_AUTHORIZE = "mcp-endpoint-oauth-authorize",+ MCP_ENDPOINT_CONNECT = "mcp-endpoint-connect",+ MCP_ENDPOINT_SAVE_USER_CREDENTIAL = "mcp-endpoint-save-user-credential",++ // MCP Servers+ MCP_SERVER_CREATE = "mcp-server-create",+ MCP_SERVER_UPDATE = "mcp-server-update",+ MCP_SERVER_DELETE = "mcp-server-delete",+ MCP_SERVER_GET = "mcp-server-get",+ MCP_SERVER_LIST = "mcp-server-list",+ MCP_SERVER_LIST_TOOLS = "mcp-server-list-tools",+ MCP_SERVER_SYNC_TOOLS = "mcp-server-sync-tools",++ // MCP Activity Logs- MCP_ACTIVITY_LOG_LIST = "mcp-activity-log-list"++ MCP_ACTIVITY_LOG_LIST = "mcp-activity-log-list",+++ // Dynamic Secrets+ CREATE_DYNAMIC_SECRET = "create-dynamic-secret",+ UPDATE_DYNAMIC_SECRET = "update-dynamic-secret",+ DELETE_DYNAMIC_SECRET = "delete-dynamic-secret",+ GET_DYNAMIC_SECRET = "get-dynamic-secret",+ LIST_DYNAMIC_SECRETS = "list-dynamic-secrets",++ // Dynamic Secret Leases+ CREATE_DYNAMIC_SECRET_LEASE = "create-dynamic-secret-lease",+ DELETE_DYNAMIC_SECRET_LEASE = "delete-dynamic-secret-lease",+ RENEW_DYNAMIC_SECRET_LEASE = "renew-dynamic-secret-lease",+ LIST_DYNAMIC_SECRET_LEASES = "list-dynamic-secret-leases",+ GET_DYNAMIC_SECRET_LEASE = "get-dynamic-secret-lease"}