Skip to content

Source postgres: Add SSL certificates to source postgres - #13840

Merged
andriikorotkov merged 42 commits into
masterfrom
akorotkov/4034_ssl_certificate_postgres
Jul 18, 2022
Merged

andriikorotkov merged 42 commits into
masterfrom
akorotkov/4034_ssl_certificate_postgres

Conversation

@andriikorotkov

Copy link
Copy Markdown
Contributor

What

Add SSL certificates to source and destination postgres

How

2022-06-16_12-51

Recommended reading order

  1. PostgresSource.java
  2. PostgresDestination.java

🚨 User Impact 🚨

No impact

Pre-merge Checklist

Expand the relevant checklist and delete the others.

New Connector

Community member or Airbyter

  • Community member? Grant edit access to maintainers (instructions)
  • Secrets in the connector's spec are annotated with airbyte_secret
  • Unit & integration tests added and passing. Community members, please provide proof of success locally e.g: screenshot or copy-paste unit, integration, and acceptance test output. To run acceptance tests for a Python connector, follow instructions in the README. For java connectors run ./gradlew :airbyte-integrations:connectors:<name>:integrationTest.
  • Code reviews completed
  • Documentation updated
    • Connector's README.md
    • Connector's bootstrap.md. See description and examples
    • docs/integrations/<source or destination>/<name>.md including changelog. See changelog example
    • docs/integrations/README.md
    • airbyte-integrations/builds.md
  • PR name follows PR naming conventions

Airbyter

If this is a community PR, the Airbyte engineer reviewing this PR is responsible for the below items.

  • Create a non-forked branch based on this PR and test the below items on it
  • Build is successful
  • If new credentials are required for use in CI, add them to GSM. Instructions.
  • /test connector=connectors/<name> command is passing
  • New Connector version released on Dockerhub by running the /publish command described here
  • After the connector is published, connector added to connector index as described here
  • Seed specs have been re-generated by building the platform and committing the changes to the seed spec files, as described here
Updating a connector

Community member or Airbyter

  • Grant edit access to maintainers (instructions)
  • Secrets in the connector's spec are annotated with airbyte_secret
  • Unit & integration tests added and passing. Community members, please provide proof of success locally e.g: screenshot or copy-paste unit, integration, and acceptance test output. To run acceptance tests for a Python connector, follow instructions in the README. For java connectors run ./gradlew :airbyte-integrations:connectors:<name>:integrationTest.
  • Code reviews completed
  • Documentation updated
    • Connector's README.md
    • Connector's bootstrap.md. See description and examples
    • Changelog updated in docs/integrations/<source or destination>/<name>.md including changelog. See changelog example
  • PR name follows PR naming conventions

Airbyter

If this is a community PR, the Airbyte engineer reviewing this PR is responsible for the below items.

  • Create a non-forked branch based on this PR and test the below items on it
  • Build is successful
  • If new credentials are required for use in CI, add them to GSM. Instructions.
  • /test connector=connectors/<name> command is passing
  • New Connector version released on Dockerhub and connector version bumped by running the /publish command described here
Connector Generator
  • Issue acceptance criteria met
  • PR name follows PR naming conventions
  • If adding a new generator, add it to the list of scaffold modules being tested
  • The generator test modules (all connectors with -scaffold in their name) have been updated with the latest scaffold by running ./gradlew :airbyte-integrations:connector-templates:generator:testScaffoldTemplates then checking in your changes
  • Documentation which references the generator is updated as needed

Tests

Unit

Put your unit tests output here.

Integration

Put your integration tests output here.

Acceptance

Put your acceptance tests output here.

@andriikorotkov

andriikorotkov commented Jul 7, 2022 •

Copy link
Copy Markdown
Contributor Author

/test connector=connectors/source-postgres

🕑 connectors/source-postgres https://github.com/airbytehq/airbyte/actions/runs/2630492445
✅ connectors/source-postgres https://github.com/airbytehq/airbyte/actions/runs/2630492445
No Python unittests run

Build Passed

Test summary info:

All Passed

@andriikorotkov
andriikorotkov temporarily deployed to more-secrets July 7, 2022 15:07 Inactive
@andriikorotkov
andriikorotkov temporarily deployed to more-secrets July 8, 2022 07:24 Inactive
@andriikorotkov
andriikorotkov temporarily deployed to more-secrets July 8, 2022 08:25 Inactive
@andriikorotkov

andriikorotkov commented Jul 8, 2022 •

Copy link
Copy Markdown
Contributor Author

/test connector=connectors/source-postgres

🕑 connectors/source-postgres https://github.com/airbytehq/airbyte/actions/runs/2635035840
✅ connectors/source-postgres https://github.com/airbytehq/airbyte/actions/runs/2635035840
No Python unittests run

Build Passed

Test summary info:

All Passed

@grishick

Copy link
Copy Markdown
Contributor

Changes look good. However, to be safe, we should close this issue before publishing and merging this.

@grishick Greg Solovyev (grishick) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please rebase before publishing and merging

…4034_ssl_certificate_postgres

� Conflicts:
�	airbyte-integrations/connectors/source-postgres-strict-encrypt/Dockerfile
�	airbyte-integrations/connectors/source-postgres/Dockerfile
�	airbyte-integrations/connectors/source-postgres/src/main/java/io/airbyte/integrations/source/postgres/PostgresSource.java
�	docs/integrations/sources/postgres.md
@andriikorotkov
andriikorotkov requested a review from a team as a code owner July 17, 2022 19:33
@andriikorotkov

andriikorotkov commented Jul 17, 2022 •

Copy link
Copy Markdown
Contributor Author

/test connector=connectors/source-postgres

🕑 connectors/source-postgres https://github.com/airbytehq/airbyte/actions/runs/2686654237
✅ connectors/source-postgres https://github.com/airbytehq/airbyte/actions/runs/2686654237
No Python unittests run

Build Passed

Test summary info:

All Passed

@andriikorotkov
andriikorotkov temporarily deployed to more-secrets July 17, 2022 19:36 Inactive
@andriikorotkov

andriikorotkov commented Jul 18, 2022 •

Copy link
Copy Markdown
Contributor Author

/publish connector=connectors/source-postgres

🕑 Publishing the following connectors:
connectors/source-postgres
https://github.com/airbytehq/airbyte/actions/runs/2688764392


Connector Did it publish? Were definitions generated?
connectors/source-postgres ✅ ✅

if you have connectors that successfully published but failed definition generation, follow step 4 here ▶️

@octavia-squidington-iii
Octavia Squidington III (octavia-squidington-iii) temporarily deployed to more-secrets July 18, 2022 08:39 Inactive
@andriikorotkov

andriikorotkov commented Jul 18, 2022 •

Copy link
Copy Markdown
Contributor Author

/publish connector=connectors/source-postgres-strict-encrypt auto-bump-version=false

🕑 Publishing the following connectors:
connectors/source-postgres-strict-encrypt
https://github.com/airbytehq/airbyte/actions/runs/2689220567


Connector Did it publish? Were definitions generated?
connectors/source-postgres-strict-encrypt ❌ ❌

if you have connectors that successfully published but failed definition generation, follow step 4 here ▶️

@andriikorotkov

andriikorotkov commented Jul 18, 2022 •

Copy link
Copy Markdown
Contributor Author

/publish connector=connectors/source-postgres-strict-encrypt

🕑 Publishing the following connectors:
connectors/source-postgres-strict-encrypt
https://github.com/airbytehq/airbyte/actions/runs/2689278331


Connector Did it publish? Were definitions generated?
connectors/source-postgres-strict-encrypt ❌ ❌

if you have connectors that successfully published but failed definition generation, follow step 4 here ▶️

@andriikorotkov

andriikorotkov commented Jul 18, 2022 •

Copy link
Copy Markdown
Contributor Author

/publish connector=connectors/source-postgres-strict-encrypt auto-bump-version=false

🕑 Publishing the following connectors:
connectors/source-postgres-strict-encrypt
https://github.com/airbytehq/airbyte/actions/runs/2689407971


Connector Did it publish? Were definitions generated?
connectors/source-postgres-strict-encrypt ❌ ❌

if you have connectors that successfully published but failed definition generation, follow step 4 here ▶️

@andriikorotkov

andriikorotkov commented Jul 18, 2022 •

Copy link
Copy Markdown
Contributor Author

/publish connector=connectors/source-postgres-strict-encrypt auto-bump-version=false

🕑 Publishing the following connectors:
connectors/source-postgres-strict-encrypt
https://github.com/airbytehq/airbyte/actions/runs/2689528824


Connector Did it publish? Were definitions generated?
connectors/source-postgres-strict-encrypt ✅ ❌

if you have connectors that successfully published but failed definition generation, follow step 4 here ▶️

@andriikorotkov
andriikorotkov temporarily deployed to more-secrets July 18, 2022 09:35 Inactive
@andriikorotkov
andriikorotkov merged commit 2dc4759 into master Jul 18, 2022
@andriikorotkov
andriikorotkov deleted the akorotkov/4034_ssl_certificate_postgres branch July 18, 2022 09:58
@VitaliiMaltsev

Copy link
Copy Markdown
Contributor

#14574 was merged. Please proceed

This branch was previously deployed

1 inactive deployment
more-secrets — 2b26d0fd Deployed Jul 18, 2022 by andriikorotkov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update acceptance tests for Postgres source/destination with SSL certificates Support Postgres SSL connection

7 participants