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

🎉 Source MySql: Added SSL certificates to MySql Source #15044

Merged
merged 31 commits into from Aug 16, 2022

Conversation

andriikorotkov
Copy link
Contributor

@andriikorotkov andriikorotkov commented Jul 26, 2022

What

2022-08-10_20-57

2022-08-10_20-58_2

2022-08-10_20-58_1

2022-08-10_20-58

How

Describe the solution

Recommended reading order

  1. x.java
  2. y.python

🚨 User Impact 🚨

Are there any breaking changes? What is the end result perceived by the user? If yes, please merge this PR with the 🚨🚨 emoji so changelog authors can further highlight this if needed.

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.

…4599_mysql_source_certificates

� Conflicts:
�	airbyte-integrations/connectors/source-mysql/src/main/java/io/airbyte/integrations/source/mysql/MySqlSource.java
@andriikorotkov andriikorotkov temporarily deployed to more-secrets July 27, 2022 07:32 Inactive
@andriikorotkov andriikorotkov temporarily deployed to more-secrets July 28, 2022 08:16 Inactive
@andriikorotkov andriikorotkov temporarily deployed to more-secrets August 9, 2022 09:40 Inactive
@andriikorotkov andriikorotkov temporarily deployed to more-secrets August 9, 2022 12:12 Inactive
@andriikorotkov andriikorotkov temporarily deployed to more-secrets August 9, 2022 15:21 Inactive
@andriikorotkov andriikorotkov linked an issue Aug 9, 2022 that may be closed by this pull request
@andriikorotkov
Copy link
Contributor Author

andriikorotkov commented Aug 9, 2022

/test connector=connectors/source-mysql

🕑 connectors/source-mysql https://github.com/airbytehq/airbyte/actions/runs/2826542443
❌ connectors/source-mysql https://github.com/airbytehq/airbyte/actions/runs/2826542443
🐛 https://gradle.com/s/pqbtszbbjeigk

Build Failed

Test summary info:

Could not find result summary

@andriikorotkov andriikorotkov temporarily deployed to more-secrets August 10, 2022 07:55 Inactive
@github-actions github-actions bot added the area/documentation Improvements or additions to documentation label Aug 10, 2022
@andriikorotkov
Copy link
Contributor Author

andriikorotkov commented Aug 14, 2022

/test connector=connectors/source-mysql

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

Build Passed

Test summary info:

All Passed

@andriikorotkov andriikorotkov temporarily deployed to more-secrets August 14, 2022 20:41 Inactive
@andriikorotkov andriikorotkov temporarily deployed to more-secrets August 15, 2022 11:50 Inactive
@andriikorotkov andriikorotkov temporarily deployed to more-secrets August 15, 2022 13:40 Inactive
@andriikorotkov
Copy link
Contributor Author

andriikorotkov commented Aug 15, 2022

/test connector=connectors/source-mysql-strict-encrypt

🕑 connectors/source-mysql-strict-encrypt https://github.com/airbytehq/airbyte/actions/runs/2861063000
❌ connectors/source-mysql-strict-encrypt https://github.com/airbytehq/airbyte/actions/runs/2861063000
🐛 https://gradle.com/s/ddureakvby2vk

Build Failed

Test summary info:

Could not find result summary

@andriikorotkov
Copy link
Contributor Author

andriikorotkov commented Aug 15, 2022

/test connector=connectors/source-mysql-strict-encrypt

🕑 connectors/source-mysql-strict-encrypt https://github.com/airbytehq/airbyte/actions/runs/2861200711
✅ connectors/source-mysql-strict-encrypt https://github.com/airbytehq/airbyte/actions/runs/2861200711
No Python unittests run

Build Passed

Test summary info:

All Passed

@andriikorotkov
Copy link
Contributor Author

@subodh1810 I added the necessary property for CDC to work properly with SSL certificates. Also, I added the necessary test for this. If you think this pull request is fine, please approve it.

@andriikorotkov andriikorotkov temporarily deployed to more-secrets August 15, 2022 14:13 Inactive
@andriikorotkov
Copy link
Contributor Author

@subodh1810 also, the changes that were added to Source MySql in your pull request - #15504, I added to source-mysql-strict-encrypt, to the MySqlStrictEncryptJdbcSourceAcceptanceTest class. Now these tests work correctly.

@andriikorotkov
Copy link
Contributor Author

@rodireich I fixed all remarks which you pointed out. Please see this pull request again.

@rodireich
Copy link
Contributor

Thanks Andrii
Just to make sure I get it, this change also covers CDC connections done through debezium.
right?

@andriikorotkov
Copy link
Contributor Author

andriikorotkov commented Aug 16, 2022

/test connector=connectors/source-mysql

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

Build Passed

Test summary info:

All Passed

@andriikorotkov
Copy link
Contributor Author

andriikorotkov commented Aug 16, 2022

/test connector=connectors/source-mysql-strict-encrypt

🕑 connectors/source-mysql-strict-encrypt https://github.com/airbytehq/airbyte/actions/runs/2866744327
✅ connectors/source-mysql-strict-encrypt https://github.com/airbytehq/airbyte/actions/runs/2866744327
No Python unittests run

Build Passed

Test summary info:

All Passed

@andriikorotkov andriikorotkov temporarily deployed to more-secrets August 16, 2022 09:18 Inactive
@andriikorotkov
Copy link
Contributor Author

andriikorotkov commented Aug 16, 2022

Thanks Andrii Just to make sure I get it, this change also covers CDC connections done through debezium. right?

@rodireich Oops, sorry, I didn't push (commit only) a small piece of code where I add additional properties for CDC. Now everything works as it should. Please take another look at this pull request.

@rodireich
Copy link
Contributor

rodireich commented Aug 16, 2022

/publish connector=connectors/source-mysql,connectors/source-mysql-strict-encrypt parallel=true

🕑 Publishing the following connectors:
connectors/source-mysql,connectors/source-mysql-strict-encrypt
https://github.com/airbytehq/airbyte/actions/runs/2870135371


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

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

@rodireich rodireich merged commit e5098e8 into master Aug 16, 2022
@rodireich rodireich deleted the akorotkov/4599_mysql_source_certificates branch August 16, 2022 20:34
rodireich pushed a commit that referenced this pull request Aug 20, 2022
* updated mysql source specification and added field for root and clients SSL certificates

* added SSL mode for mysql source

* fixed code style

* updated run process timeout

* updated method for create keystore and updated tests

* updated normalization version for postgres destination

* updated normalization version for postgres destination

* added tests for connection with certificates

* updated tests for connection with full certificates and added tests for CA certificate

* updated tests

* updated source-mysql-strict-encrypt and updated versions

* updated code style

* updated doc

* updated specs

* fixed minor remarks

* fixed minor remarks

* updated tests

* fixed remarks and updated specification

* fixed mysql sources connectors version

* added CDC + SSL Certificates tests

* added property for CDC and added tests for test SSL with CDC together

* fixed MySqlStrictEncryptJdbcSourceAcceptanceTest for work with datetime format

* added property for CDC and added tests for test SSL with CDC together

* auto-bump connector version [ci skip]

Co-authored-by: Octavia Squidington III <octavia-squidington-iii@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Source MySQL: SSL authentication certificate import
7 participants