diff --git a/airbyte-workers/src/main/java/io/airbyte/workers/config/SecretPersistenceBeanFactory.java b/airbyte-workers/src/main/java/io/airbyte/workers/config/SecretPersistenceBeanFactory.java index 625b69f7e0ac..2943a5166ed9 100644 --- a/airbyte-workers/src/main/java/io/airbyte/workers/config/SecretPersistenceBeanFactory.java +++ b/airbyte-workers/src/main/java/io/airbyte/workers/config/SecretPersistenceBeanFactory.java @@ -6,7 +6,6 @@ import io.airbyte.config.persistence.split_secrets.GoogleSecretManagerPersistence; import io.airbyte.config.persistence.split_secrets.LocalTestingSecretPersistence; -import io.airbyte.config.persistence.split_secrets.NoOpSecretsHydrator; import io.airbyte.config.persistence.split_secrets.RealSecretsHydrator; import io.airbyte.config.persistence.split_secrets.SecretPersistence; import io.airbyte.config.persistence.split_secrets.SecretsHydrator; @@ -52,8 +51,6 @@ public SecretPersistence localTestingSecretPersistence(@Named("configDatabase") @Singleton @Requires(property = "airbyte.secret.persistence", pattern = "(?i)^google_secret_manager$") - @Requires(property = "airbyte.worker.plane", - pattern = "(?i)^(?!data_plane).*") @Named("secretPersistence") public SecretPersistence googleSecretPersistence(@Value("${airbyte.secret.store.gcp.credentials}") final String credentials, @Value("${airbyte.secret.store.gcp.project-id}") final String projectId) { @@ -73,17 +70,8 @@ public SecretPersistence vaultSecretPersistence(@Value("${airbyte.secret.store.v } @Singleton - @Requires(property = "airbyte.worker.plane", - pattern = "(?i)^(?!data_plane).*") public SecretsHydrator secretsHydrator(@Named("secretPersistence") final SecretPersistence secretPersistence) { return new RealSecretsHydrator(secretPersistence); } - @Singleton - @Requires(property = "airbyte.worker.plane", - pattern = "(?i)^data_plane$") - public SecretsHydrator secretsHydrator() { - return new NoOpSecretsHydrator(); - } - }