Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Data plane needs gcp secret hydrator and persistence for replication activity #17149

Merged
merged 7 commits into from
Sep 26, 2022
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,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) {
Expand All @@ -73,17 +71,7 @@ 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();
}

}