From 8086fc099d3f1b29f04af46f4d529498f53f11d8 Mon Sep 17 00:00:00 2001 From: oneshcheret Date: Thu, 20 Oct 2022 19:29:51 +0300 Subject: [PATCH 1/8] Source postgres: disable ssl_mode allow and prefer in CDC mode --- .../source/postgres/PostgresSource.java | 26 ++++++++++++++++ .../postgres/PostgresSourceSSLTest.java | 30 +++++++++++++++++++ 2 files changed, 56 insertions(+) diff --git a/airbyte-integrations/connectors/source-postgres/src/main/java/io/airbyte/integrations/source/postgres/PostgresSource.java b/airbyte-integrations/connectors/source-postgres/src/main/java/io/airbyte/integrations/source/postgres/PostgresSource.java index 0facfaadf8f8..6c694a0018af 100644 --- a/airbyte-integrations/connectors/source-postgres/src/main/java/io/airbyte/integrations/source/postgres/PostgresSource.java +++ b/airbyte-integrations/connectors/source-postgres/src/main/java/io/airbyte/integrations/source/postgres/PostgresSource.java @@ -78,6 +78,9 @@ public class PostgresSource extends AbstractJdbcSource implements Sour private static final int INTERMEDIATE_STATE_EMISSION_FREQUENCY = 10_000; public static final String PARAM_SSLMODE = "sslmode"; + public static final String SSL_MODE = "ssl_mode"; + public static final String SSL_MODE_ALLOW = "allow"; + public static final String SSL_MODE_PREFER = "prefer"; public static final String PARAM_SSL = "ssl"; public static final String PARAM_SSL_TRUE = "true"; public static final String PARAM_SSL_FALSE = "false"; @@ -87,9 +90,13 @@ public class PostgresSource extends AbstractJdbcSource implements Sour public static final String CA_CERTIFICATE_PATH = "ca_certificate_path"; public static final String SSL_KEY = "sslkey"; public static final String SSL_PASSWORD = "sslpassword"; + public static final String MODE = "mode"; static final Map SSL_JDBC_PARAMETERS = ImmutableMap.of( "ssl", "true", "sslmode", "require"); + public static final String REPLICATION_METHOD = "replication_method"; + public static final String METHOD = "method"; + public static final String CDC_METHOD = "CDC"; private List schemas; private final FeatureFlags featureFlags; @@ -464,6 +471,25 @@ public static void main(final String[] args) throws Exception { LOGGER.info("completed source: {}", PostgresSource.class); } + @Override + public AirbyteConnectionStatus check(final JsonNode config) throws Exception { + if (isCdcReplicationMethod(config)){ + String sslModeValue = config.get(SSL_MODE).get(MODE).asText(); + if(SSL_MODE_ALLOW.equals(sslModeValue) || SSL_MODE_PREFER.equals(sslModeValue) ){ + return new AirbyteConnectionStatus() + .withStatus(Status.FAILED) + .withMessage(String.format( + "In CDC replication mode ssl value '%s' is invalid. Please use one of the following SSL modes: disable, require, verify-ca, verify-full", sslModeValue)); + } + } + return super.check(config); + } + + private boolean isCdcReplicationMethod(final JsonNode config) { + JsonNode replication_method = config.get(REPLICATION_METHOD); + return replication_method != null && replication_method.get(METHOD) != null && CDC_METHOD.equals(replication_method.get(METHOD).asText()); + } + @Override protected String toSslJdbcParam(final SslMode sslMode) { return toSslJdbcParamInternal(sslMode); diff --git a/airbyte-integrations/connectors/source-postgres/src/test/java/io/airbyte/integrations/source/postgres/PostgresSourceSSLTest.java b/airbyte-integrations/connectors/source-postgres/src/test/java/io/airbyte/integrations/source/postgres/PostgresSourceSSLTest.java index 2b4cdce416a8..70dfc8726613 100644 --- a/airbyte-integrations/connectors/source-postgres/src/test/java/io/airbyte/integrations/source/postgres/PostgresSourceSSLTest.java +++ b/airbyte-integrations/connectors/source-postgres/src/test/java/io/airbyte/integrations/source/postgres/PostgresSourceSSLTest.java @@ -32,9 +32,11 @@ import io.airbyte.protocol.models.Field; import io.airbyte.protocol.models.JsonSchemaType; import io.airbyte.protocol.models.SyncMode; +import io.airbyte.protocol.models.AirbyteConnectionStatus; import io.airbyte.test.utils.PostgreSQLContainerHelper; import java.math.BigDecimal; import java.util.List; +import java.util.Map; import java.util.Optional; import java.util.Set; import java.util.stream.Collectors; @@ -197,4 +199,32 @@ void testIsCdc() { assertTrue(PostgresUtils.isCdc(config)); } + @Test + void testAllowSSLWithCdcReplicationMethod() throws Exception { + + JsonNode config = getCDCAndSslModeConfig("allow"); + + final AirbyteConnectionStatus actual = new PostgresSource().check(config); + assertEquals(AirbyteConnectionStatus.Status.FAILED, actual.getStatus()); + assertTrue(actual.getMessage().contains("In CDC replication mode ssl value 'allow' is invalid")); + } + + @Test + void testPreferSSLWithCdcReplicationMethod() throws Exception { + + JsonNode config = getCDCAndSslModeConfig("prefer"); + + final AirbyteConnectionStatus actual = new PostgresSource().check(config); + assertEquals(AirbyteConnectionStatus.Status.FAILED, actual.getStatus()); + assertTrue(actual.getMessage().contains("In CDC replication mode ssl value 'prefer' is invalid")); + } + + private JsonNode getCDCAndSslModeConfig(String sslMode){ + return Jsons.jsonNode(ImmutableMap.builder() + .put(JdbcUtils.SSL_KEY, true) + .put(JdbcUtils.SSL_MODE_KEY, Map.of(JdbcUtils.MODE_KEY, sslMode)) + .put("replication_method", Map.of("method", "CDC")) + .build()); + } + } From 48845b542e382433293d597f0765e6ae61b0a414 Mon Sep 17 00:00:00 2001 From: oneshcheret Date: Mon, 24 Oct 2022 12:32:27 +0300 Subject: [PATCH 2/8] Source postgres: code review fixes --- .../source/postgres/PostgresSource.java | 25 ++++++++----------- .../postgres/PostgresSourceSSLTest.java | 14 ++++++----- 2 files changed, 18 insertions(+), 21 deletions(-) diff --git a/airbyte-integrations/connectors/source-postgres/src/main/java/io/airbyte/integrations/source/postgres/PostgresSource.java b/airbyte-integrations/connectors/source-postgres/src/main/java/io/airbyte/integrations/source/postgres/PostgresSource.java index 6c694a0018af..82db507953ee 100644 --- a/airbyte-integrations/connectors/source-postgres/src/main/java/io/airbyte/integrations/source/postgres/PostgresSource.java +++ b/airbyte-integrations/connectors/source-postgres/src/main/java/io/airbyte/integrations/source/postgres/PostgresSource.java @@ -16,6 +16,7 @@ import com.fasterxml.jackson.databind.JsonNode; import com.google.common.annotations.VisibleForTesting; import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; import io.airbyte.commons.features.EnvVariableFeatureFlags; import io.airbyte.commons.features.FeatureFlags; import io.airbyte.commons.functional.CheckedConsumer; @@ -79,8 +80,8 @@ public class PostgresSource extends AbstractJdbcSource implements Sour public static final String PARAM_SSLMODE = "sslmode"; public static final String SSL_MODE = "ssl_mode"; - public static final String SSL_MODE_ALLOW = "allow"; - public static final String SSL_MODE_PREFER = "prefer"; +// public static final String SSL_MODE_ALLOW = "allow"; +// public static final String SSL_MODE_PREFER = "prefer"; public static final String PARAM_SSL = "ssl"; public static final String PARAM_SSL_TRUE = "true"; public static final String PARAM_SSL_FALSE = "false"; @@ -94,11 +95,9 @@ public class PostgresSource extends AbstractJdbcSource implements Sour static final Map SSL_JDBC_PARAMETERS = ImmutableMap.of( "ssl", "true", "sslmode", "require"); - public static final String REPLICATION_METHOD = "replication_method"; - public static final String METHOD = "method"; - public static final String CDC_METHOD = "CDC"; private List schemas; private final FeatureFlags featureFlags; + private static final Set INVALID_CDC_SSL_MODES = ImmutableSet.of("allow", "prefer"); public static Source sshWrappedSource() { return new SshWrappedSource(new PostgresSource(), JdbcUtils.HOST_LIST_KEY, JdbcUtils.PORT_LIST_KEY); @@ -473,23 +472,19 @@ public static void main(final String[] args) throws Exception { @Override public AirbyteConnectionStatus check(final JsonNode config) throws Exception { - if (isCdcReplicationMethod(config)){ + if (PostgresUtils.isCdc(config)) { String sslModeValue = config.get(SSL_MODE).get(MODE).asText(); - if(SSL_MODE_ALLOW.equals(sslModeValue) || SSL_MODE_PREFER.equals(sslModeValue) ){ + if (INVALID_CDC_SSL_MODES.contains(sslModeValue)) { return new AirbyteConnectionStatus() - .withStatus(Status.FAILED) - .withMessage(String.format( - "In CDC replication mode ssl value '%s' is invalid. Please use one of the following SSL modes: disable, require, verify-ca, verify-full", sslModeValue)); + .withStatus(Status.FAILED) + .withMessage(String.format( + "In CDC replication mode ssl value '%s' is invalid. Please use one of the following SSL modes: disable, require, verify-ca, verify-full", + sslModeValue)); } } return super.check(config); } - private boolean isCdcReplicationMethod(final JsonNode config) { - JsonNode replication_method = config.get(REPLICATION_METHOD); - return replication_method != null && replication_method.get(METHOD) != null && CDC_METHOD.equals(replication_method.get(METHOD).asText()); - } - @Override protected String toSslJdbcParam(final SslMode sslMode) { return toSslJdbcParamInternal(sslMode); diff --git a/airbyte-integrations/connectors/source-postgres/src/test/java/io/airbyte/integrations/source/postgres/PostgresSourceSSLTest.java b/airbyte-integrations/connectors/source-postgres/src/test/java/io/airbyte/integrations/source/postgres/PostgresSourceSSLTest.java index 70dfc8726613..b4b7aec93524 100644 --- a/airbyte-integrations/connectors/source-postgres/src/test/java/io/airbyte/integrations/source/postgres/PostgresSourceSSLTest.java +++ b/airbyte-integrations/connectors/source-postgres/src/test/java/io/airbyte/integrations/source/postgres/PostgresSourceSSLTest.java @@ -25,6 +25,7 @@ import io.airbyte.db.factory.DatabaseDriver; import io.airbyte.db.jdbc.JdbcUtils; import io.airbyte.protocol.models.AirbyteCatalog; +import io.airbyte.protocol.models.AirbyteConnectionStatus; import io.airbyte.protocol.models.AirbyteMessage; import io.airbyte.protocol.models.AirbyteStream; import io.airbyte.protocol.models.CatalogHelpers; @@ -32,7 +33,6 @@ import io.airbyte.protocol.models.Field; import io.airbyte.protocol.models.JsonSchemaType; import io.airbyte.protocol.models.SyncMode; -import io.airbyte.protocol.models.AirbyteConnectionStatus; import io.airbyte.test.utils.PostgreSQLContainerHelper; import java.math.BigDecimal; import java.util.List; @@ -219,12 +219,14 @@ void testPreferSSLWithCdcReplicationMethod() throws Exception { assertTrue(actual.getMessage().contains("In CDC replication mode ssl value 'prefer' is invalid")); } - private JsonNode getCDCAndSslModeConfig(String sslMode){ + private JsonNode getCDCAndSslModeConfig(String sslMode) { return Jsons.jsonNode(ImmutableMap.builder() - .put(JdbcUtils.SSL_KEY, true) - .put(JdbcUtils.SSL_MODE_KEY, Map.of(JdbcUtils.MODE_KEY, sslMode)) - .put("replication_method", Map.of("method", "CDC")) - .build()); + .put(JdbcUtils.SSL_KEY, true) + .put(JdbcUtils.SSL_MODE_KEY, Map.of(JdbcUtils.MODE_KEY, sslMode)) + .put("replication_method", Map.of("method", "CDC", + "replication_slot", "slot", + "publication", "ab_pub")) + .build()); } } From f93d25bb86af330186a301b16e6461da04a4f397 Mon Sep 17 00:00:00 2001 From: oneshcheret Date: Mon, 24 Oct 2022 12:58:26 +0300 Subject: [PATCH 3/8] Source postgres: code review fixes --- .../io/airbyte/integrations/source/postgres/PostgresSource.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/airbyte-integrations/connectors/source-postgres/src/main/java/io/airbyte/integrations/source/postgres/PostgresSource.java b/airbyte-integrations/connectors/source-postgres/src/main/java/io/airbyte/integrations/source/postgres/PostgresSource.java index 82db507953ee..1c50b61fa180 100644 --- a/airbyte-integrations/connectors/source-postgres/src/main/java/io/airbyte/integrations/source/postgres/PostgresSource.java +++ b/airbyte-integrations/connectors/source-postgres/src/main/java/io/airbyte/integrations/source/postgres/PostgresSource.java @@ -80,8 +80,6 @@ public class PostgresSource extends AbstractJdbcSource implements Sour public static final String PARAM_SSLMODE = "sslmode"; public static final String SSL_MODE = "ssl_mode"; -// public static final String SSL_MODE_ALLOW = "allow"; -// public static final String SSL_MODE_PREFER = "prefer"; public static final String PARAM_SSL = "ssl"; public static final String PARAM_SSL_TRUE = "true"; public static final String PARAM_SSL_FALSE = "false"; From b797aaa24bdf15e1ec680a8ffd48cb85280581f3 Mon Sep 17 00:00:00 2001 From: oleksandr Date: Tue, 25 Oct 2022 19:28:38 +0300 Subject: [PATCH 4/8] Source postgres: improve ssl mode handling --- .../source/postgres/PostgresSource.java | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/airbyte-integrations/connectors/source-postgres/src/main/java/io/airbyte/integrations/source/postgres/PostgresSource.java b/airbyte-integrations/connectors/source-postgres/src/main/java/io/airbyte/integrations/source/postgres/PostgresSource.java index 1c50b61fa180..ddabe5f727b7 100644 --- a/airbyte-integrations/connectors/source-postgres/src/main/java/io/airbyte/integrations/source/postgres/PostgresSource.java +++ b/airbyte-integrations/connectors/source-postgres/src/main/java/io/airbyte/integrations/source/postgres/PostgresSource.java @@ -471,13 +471,15 @@ public static void main(final String[] args) throws Exception { @Override public AirbyteConnectionStatus check(final JsonNode config) throws Exception { if (PostgresUtils.isCdc(config)) { - String sslModeValue = config.get(SSL_MODE).get(MODE).asText(); - if (INVALID_CDC_SSL_MODES.contains(sslModeValue)) { - return new AirbyteConnectionStatus() - .withStatus(Status.FAILED) - .withMessage(String.format( - "In CDC replication mode ssl value '%s' is invalid. Please use one of the following SSL modes: disable, require, verify-ca, verify-full", - sslModeValue)); + if (config.has(SSL_MODE) && config.get(SSL_MODE).has(MODE)){ + String sslModeValue = config.get(SSL_MODE).get(MODE).asText(); + if (INVALID_CDC_SSL_MODES.contains(sslModeValue)) { + return new AirbyteConnectionStatus() + .withStatus(Status.FAILED) + .withMessage(String.format( + "In CDC replication mode ssl value '%s' is invalid. Please use one of the following SSL modes: disable, require, verify-ca, verify-full", + sslModeValue)); + } } } return super.check(config); From 8a878b910903c309b9f38b2840459e89f0c999d9 Mon Sep 17 00:00:00 2001 From: oleksandr Date: Tue, 25 Oct 2022 23:40:03 +0300 Subject: [PATCH 5/8] Source postgres: bump version --- .../connectors/source-alloydb-strict-encrypt/Dockerfile | 2 +- airbyte-integrations/connectors/source-alloydb/Dockerfile | 2 +- .../connectors/source-postgres-strict-encrypt/Dockerfile | 2 +- airbyte-integrations/connectors/source-postgres/Dockerfile | 2 +- docs/integrations/sources/alloydb.md | 1 + docs/integrations/sources/postgres.md | 1 + 6 files changed, 6 insertions(+), 4 deletions(-) diff --git a/airbyte-integrations/connectors/source-alloydb-strict-encrypt/Dockerfile b/airbyte-integrations/connectors/source-alloydb-strict-encrypt/Dockerfile index 8410e032a8cd..4eae2bdf2c0a 100644 --- a/airbyte-integrations/connectors/source-alloydb-strict-encrypt/Dockerfile +++ b/airbyte-integrations/connectors/source-alloydb-strict-encrypt/Dockerfile @@ -16,5 +16,5 @@ ENV APPLICATION source-alloydb-strict-encrypt COPY --from=build /airbyte /airbyte -LABEL io.airbyte.version=1.0.15 +LABEL io.airbyte.version=1.0.16 LABEL io.airbyte.name=airbyte/source-alloydb-strict-encrypt diff --git a/airbyte-integrations/connectors/source-alloydb/Dockerfile b/airbyte-integrations/connectors/source-alloydb/Dockerfile index 284a1d21d21f..7bffadf916b1 100644 --- a/airbyte-integrations/connectors/source-alloydb/Dockerfile +++ b/airbyte-integrations/connectors/source-alloydb/Dockerfile @@ -16,5 +16,5 @@ ENV APPLICATION source-alloydb COPY --from=build /airbyte /airbyte -LABEL io.airbyte.version=1.0.15 +LABEL io.airbyte.version=1.0.16 LABEL io.airbyte.name=airbyte/source-alloydb diff --git a/airbyte-integrations/connectors/source-postgres-strict-encrypt/Dockerfile b/airbyte-integrations/connectors/source-postgres-strict-encrypt/Dockerfile index 4b79ea19f4b7..41f77a3f95ca 100644 --- a/airbyte-integrations/connectors/source-postgres-strict-encrypt/Dockerfile +++ b/airbyte-integrations/connectors/source-postgres-strict-encrypt/Dockerfile @@ -16,5 +16,5 @@ ENV APPLICATION source-postgres-strict-encrypt COPY --from=build /airbyte /airbyte -LABEL io.airbyte.version=1.0.19 +LABEL io.airbyte.version=1.0.20 LABEL io.airbyte.name=airbyte/source-postgres-strict-encrypt diff --git a/airbyte-integrations/connectors/source-postgres/Dockerfile b/airbyte-integrations/connectors/source-postgres/Dockerfile index 029074f82560..04c905dd55c4 100644 --- a/airbyte-integrations/connectors/source-postgres/Dockerfile +++ b/airbyte-integrations/connectors/source-postgres/Dockerfile @@ -16,5 +16,5 @@ ENV APPLICATION source-postgres COPY --from=build /airbyte /airbyte -LABEL io.airbyte.version=1.0.19 +LABEL io.airbyte.version=1.0.20 LABEL io.airbyte.name=airbyte/source-postgres diff --git a/docs/integrations/sources/alloydb.md b/docs/integrations/sources/alloydb.md index fce3378b4c40..3b50d9ae8bf1 100644 --- a/docs/integrations/sources/alloydb.md +++ b/docs/integrations/sources/alloydb.md @@ -331,6 +331,7 @@ According to Postgres [documentation](https://www.postgresql.org/docs/14/datatyp | Version | Date | Pull Request | Subject | |:--------|:-----------|:---------------------------------------------------------|:-------------------------------------------------| +| 1.0.16 | 2022-10-25 | [18256](https://github.com/airbytehq/airbyte/pull/18256) | Disable allow and prefer ssl modes in CDC mode | | | 2022-10-13 | [15535](https://github.com/airbytehq/airbyte/pull/16238) | Update incremental query to avoid data missing when new data is inserted at the same time as a sync starts under non-CDC incremental mode | | 1.0.15 | 2022-10-11 | [17782](https://github.com/airbytehq/airbyte/pull/17782) | Align with Postgres source v.1.0.15 | | 1.0.0 | 2022-09-15 | [16776](https://github.com/airbytehq/airbyte/pull/16776) | Align with strict-encrypt version | diff --git a/docs/integrations/sources/postgres.md b/docs/integrations/sources/postgres.md index 20fa4a1c7399..53f334d38dbd 100644 --- a/docs/integrations/sources/postgres.md +++ b/docs/integrations/sources/postgres.md @@ -398,6 +398,7 @@ The root causes is that the WALs needed for the incremental sync has been remove | Version | Date | Pull Request | Subject | |:--------|:-----------|:---------------------------------------------------------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| 1.0.20 | 2022-10-25 | [18256](https://github.com/airbytehq/airbyte/pull/18256) | Disable allow and prefer ssl modes in CDC mode | | 1.0.19 | 2022-10-21 | [18263](https://github.com/airbytehq/airbyte/pull/18263) | Fixes bug introduced in [15833](https://github.com/airbytehq/airbyte/pull/15833) and adds better error messaging for SSH tunnel in Destinations | | 1.0.18 | 2022-10-19 | [18087](https://github.com/airbytehq/airbyte/pull/18087) | Better error messaging for configuration errors (SSH configs, choosing an invalid cursor) | | 1.0.17 | 2022-10-17 | [18041](https://github.com/airbytehq/airbyte/pull/18041) | Fixes bug introduced 2022-09-12 with SshTunnel, handles iterator exception properly | From 20efd7d5e4c85cb62b8e045edc795a321145f0d4 Mon Sep 17 00:00:00 2001 From: Octavia Squidington III Date: Tue, 25 Oct 2022 21:01:55 +0000 Subject: [PATCH 6/8] auto-bump connector version --- .../init/src/main/resources/seed/source_definitions.yaml | 2 +- airbyte-config/init/src/main/resources/seed/source_specs.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/airbyte-config/init/src/main/resources/seed/source_definitions.yaml b/airbyte-config/init/src/main/resources/seed/source_definitions.yaml index e4f28b0fc94a..4b6fa6ec5335 100644 --- a/airbyte-config/init/src/main/resources/seed/source_definitions.yaml +++ b/airbyte-config/init/src/main/resources/seed/source_definitions.yaml @@ -17,7 +17,7 @@ - name: AlloyDB for PostgreSQL sourceDefinitionId: 1fa90628-2b9e-11ed-a261-0242ac120002 dockerRepository: airbyte/source-alloydb - dockerImageTag: 1.0.15 + dockerImageTag: 1.0.16 documentationUrl: https://docs.airbyte.com/integrations/sources/alloydb icon: alloydb.svg sourceType: database diff --git a/airbyte-config/init/src/main/resources/seed/source_specs.yaml b/airbyte-config/init/src/main/resources/seed/source_specs.yaml index 348a435fc32e..22eb4ac3e6c6 100644 --- a/airbyte-config/init/src/main/resources/seed/source_specs.yaml +++ b/airbyte-config/init/src/main/resources/seed/source_specs.yaml @@ -198,7 +198,7 @@ supportsNormalization: false supportsDBT: false supported_destination_sync_modes: [] -- dockerImage: "airbyte/source-alloydb:1.0.15" +- dockerImage: "airbyte/source-alloydb:1.0.16" spec: documentationUrl: "https://docs.airbyte.com/integrations/sources/postgres" connectionSpecification: From 0d3d48c1145b78963a41d311e0d6c9c6f94fea5e Mon Sep 17 00:00:00 2001 From: oleksandr Date: Wed, 26 Oct 2022 09:51:09 +0300 Subject: [PATCH 7/8] Source postgres: bump version --- .../connectors/source-postgres-strict-encrypt/Dockerfile | 2 +- airbyte-integrations/connectors/source-postgres/Dockerfile | 2 +- docs/integrations/sources/postgres.md | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/airbyte-integrations/connectors/source-postgres-strict-encrypt/Dockerfile b/airbyte-integrations/connectors/source-postgres-strict-encrypt/Dockerfile index 41f77a3f95ca..4730a7787898 100644 --- a/airbyte-integrations/connectors/source-postgres-strict-encrypt/Dockerfile +++ b/airbyte-integrations/connectors/source-postgres-strict-encrypt/Dockerfile @@ -16,5 +16,5 @@ ENV APPLICATION source-postgres-strict-encrypt COPY --from=build /airbyte /airbyte -LABEL io.airbyte.version=1.0.20 +LABEL io.airbyte.version=1.0.21 LABEL io.airbyte.name=airbyte/source-postgres-strict-encrypt diff --git a/airbyte-integrations/connectors/source-postgres/Dockerfile b/airbyte-integrations/connectors/source-postgres/Dockerfile index 04c905dd55c4..fe732c06f6c5 100644 --- a/airbyte-integrations/connectors/source-postgres/Dockerfile +++ b/airbyte-integrations/connectors/source-postgres/Dockerfile @@ -16,5 +16,5 @@ ENV APPLICATION source-postgres COPY --from=build /airbyte /airbyte -LABEL io.airbyte.version=1.0.20 +LABEL io.airbyte.version=1.0.21 LABEL io.airbyte.name=airbyte/source-postgres diff --git a/docs/integrations/sources/postgres.md b/docs/integrations/sources/postgres.md index a0fb80c91a52..0a603016906f 100644 --- a/docs/integrations/sources/postgres.md +++ b/docs/integrations/sources/postgres.md @@ -398,6 +398,7 @@ The root causes is that the WALs needed for the incremental sync has been remove | Version | Date | Pull Request | Subject | |:--------|:-----------|:-------------------------------------------------------------------------------------------------------------------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| 1.0.21 | 2022-10-25 | [18256](https://github.com/airbytehq/airbyte/pull/18256) | Disable allow and prefer ssl modes in CDC mode | | 1.0.20 | 2022-10-25 | [18383](https://github.com/airbytehq/airbyte/pull/18383) | Better SSH error handling + messages | | 1.0.19 | 2022-10-21 | [18263](https://github.com/airbytehq/airbyte/pull/18263) | Fixes bug introduced in [15833](https://github.com/airbytehq/airbyte/pull/15833) and adds better error messaging for SSH tunnel in Destinations | | 1.0.18 | 2022-10-19 | [18087](https://github.com/airbytehq/airbyte/pull/18087) | Better error messaging for configuration errors (SSH configs, choosing an invalid cursor) | From d6b7a7c56ce6aeb01bcbc9e7805a011432e1fe2b Mon Sep 17 00:00:00 2001 From: Octavia Squidington III Date: Wed, 26 Oct 2022 07:59:17 +0000 Subject: [PATCH 8/8] auto-bump connector version --- .../init/src/main/resources/seed/source_definitions.yaml | 2 +- airbyte-config/init/src/main/resources/seed/source_specs.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/airbyte-config/init/src/main/resources/seed/source_definitions.yaml b/airbyte-config/init/src/main/resources/seed/source_definitions.yaml index 31c6d4234e0b..93af0f4ac89a 100644 --- a/airbyte-config/init/src/main/resources/seed/source_definitions.yaml +++ b/airbyte-config/init/src/main/resources/seed/source_definitions.yaml @@ -864,7 +864,7 @@ - name: Postgres sourceDefinitionId: decd338e-5647-4c0b-adf4-da0e75f5a750 dockerRepository: airbyte/source-postgres - dockerImageTag: 1.0.20 + dockerImageTag: 1.0.21 documentationUrl: https://docs.airbyte.com/integrations/sources/postgres icon: postgresql.svg sourceType: database diff --git a/airbyte-config/init/src/main/resources/seed/source_specs.yaml b/airbyte-config/init/src/main/resources/seed/source_specs.yaml index 71fdbeb882b3..e42c740451bf 100644 --- a/airbyte-config/init/src/main/resources/seed/source_specs.yaml +++ b/airbyte-config/init/src/main/resources/seed/source_specs.yaml @@ -8792,7 +8792,7 @@ supportsNormalization: false supportsDBT: false supported_destination_sync_modes: [] -- dockerImage: "airbyte/source-postgres:1.0.20" +- dockerImage: "airbyte/source-postgres:1.0.21" spec: documentationUrl: "https://docs.airbyte.com/integrations/sources/postgres" connectionSpecification: