Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

Merge branch 'main' into igor/eng-4649-create-migration-tool-from-doppler-to-infisical

Danield2abdff0d968
diff --cc backend/src/db/schemas/models.ts
index ea682738f7,b3615c22d3..9bb1e948c1
--- a/backend/src/db/schemas/models.ts
+++ b/backend/src/db/schemas/models.ts
@@@ -236,9 -239,9 +239,10 @@@ export enum TableName
PamAccountDependency = "pam_account_dependencies",
PamResourceRotationRule = "pam_resource_rotation_rules",
PamResourceFavorite = "pam_resource_favorites",
+ PamAccountPolicy = "pam_account_policies",
VaultExternalMigrationConfig = "vault_external_migration_configs",
+ ExternalMigrationConfig = "external_migration_configs",
// PKI ACME
PkiAcmeAccount = "pki_acme_accounts",
diff --cc backend/src/ee/services/audit-log/audit-log-types.ts
index 1dbbdde08f,41d5206eb2..d314388066
--- a/backend/src/ee/services/audit-log/audit-log-types.ts
+++ b/backend/src/ee/services/audit-log/audit-log-types.ts
@@@ -737,10 -754,15 +754,19 @@@ export enum EventType
SECRET_VALIDATION_RULE_UPDATE = "secret-validation-rule-update",
SECRET_VALIDATION_RULE_DELETE = "secret-validation-rule-delete",
+ // External Migration
+ EXTERNAL_MIGRATION_CREATE = "external-migration-create",
+ EXTERNAL_MIGRATION_UPDATE = "external-migration-update",
- EXTERNAL_MIGRATION_DELETE = "external-migration-delete"
++ EXTERNAL_MIGRATION_DELETE = "external-migration-delete",
+ // Email Domains
+ CREATE_EMAIL_DOMAIN = "create-email-domain",
+ VERIFY_EMAIL_DOMAIN = "verify-email-domain",
+ DELETE_EMAIL_DOMAIN = "delete-email-domain",
+
+ // Gateway Enrollment Tokens
+ GATEWAY_CREATE = "gateway-create",
+ GATEWAY_ENROLLMENT_TOKEN_CREATE = "gateway-enrollment-token-create",
+ GATEWAY_ENROLL = "gateway-enroll"
}
// Maps each actor type to the JSONB key that holds the actor's primary ID in actorMetadata.
@@@ -5813,31 -5968,53 +5972,78 @@@ interface SecretValidationRuleDeleteEve
};
}
+interface ExternalMigrationCreateEvent {
+ type: EventType.EXTERNAL_MIGRATION_CREATE;
+ metadata: {
+ configId: string;
+ provider: string;
+ connectionId: string | null;
+ };
+}
+
+interface ExternalMigrationUpdateEvent {
+ type: EventType.EXTERNAL_MIGRATION_UPDATE;
+ metadata: {
+ configId: string;
+ provider: string;
+ connectionId: string | null;
+ };
+}
+
+interface ExternalMigrationDeleteEvent {
+ type: EventType.EXTERNAL_MIGRATION_DELETE;
+ metadata: {
+ configId: string;
+ provider: string;
+ };
+}
+ interface CreateEmailDomainEvent {
+ type: EventType.CREATE_EMAIL_DOMAIN;
+ metadata: {
+ emailDomainId: string;
+ domain: string;
+ };
+ }
+
+ interface VerifyEmailDomainEvent {
+ type: EventType.VERIFY_EMAIL_DOMAIN;
+ metadata: {
+ emailDomainId: string;
+ domain: string;
+ };
+ }
+
+ interface DeleteEmailDomainEvent {
+ type: EventType.DELETE_EMAIL_DOMAIN;
+ metadata: {
+ emailDomainId: string;
+ domain: string;
+ };
+ }
+
+ interface GatewayCreateEvent {
+ type: EventType.GATEWAY_CREATE;
+ metadata: {
+ gatewayId: string;
+ name: string;
+ };
+ }
+
+ interface GatewayEnrollmentTokenCreateEvent {
+ type: EventType.GATEWAY_ENROLLMENT_TOKEN_CREATE;
+ metadata: {
+ tokenId: string;
+ name: string;
+ };
+ }
+
+ interface GatewayEnrollEvent {
+ type: EventType.GATEWAY_ENROLL;
+ metadata: {
+ gatewayId: string;
+ name: string;
+ };
+ }
export type Event =
| CreateSubOrganizationEvent
@@@ -6365,6 -6556,9 +6585,12 @@@
| SecretValidationRuleCreateEvent
| SecretValidationRuleUpdateEvent
| SecretValidationRuleDeleteEvent
+ | ExternalMigrationCreateEvent
+ | ExternalMigrationUpdateEvent
- | ExternalMigrationDeleteEvent;
++ | ExternalMigrationDeleteEvent
+ | CreateEmailDomainEvent
+ | VerifyEmailDomainEvent
+ | DeleteEmailDomainEvent
+ | GatewayCreateEvent
+ | GatewayEnrollmentTokenCreateEvent
+ | GatewayEnrollEvent;