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 MSSQL: Enabled SSL connections #3893

Merged
merged 8 commits into from
Jun 8, 2021
Merged

Source MSSQL: Enabled SSL connections #3893

merged 8 commits into from
Jun 8, 2021

Conversation

heade
Copy link
Contributor

@heade heade commented Jun 4, 2021

What

Ticket: #3618 : Source MSSQL: Enable SSL connections

How

Exposed the configuration in the connector's spec.json which allows a user to choose one of the three configurations:

  1. No SSL
  2. SSL while trusting server certificate (no verification)
  3. SSL without trusting server certificate (with verification)

Constructed the correct JDBC URL based on the configurations input by the user.
Added Acceptance tests to run against the Amazon RDS instance (created in scope of #3619)

Pre-merge Checklist

  • Run integration tests
  • Publish Docker images

Recommended reading order

  1. test.java
  2. component.ts
  3. the rest

@heade heade mentioned this pull request Jun 4, 2021
2 tasks
@heade heade self-assigned this Jun 4, 2021
@heade heade linked an issue Jun 4, 2021 that may be closed by this pull request
13 tasks
@heade heade linked an issue Jun 4, 2021 that may be closed by this pull request
Copy link
Contributor

@sherifnada sherifnada left a comment

Choose a reason for hiding this comment

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

implementation looks good but some blocking comments on tests. Feel free to ship once they are addressed

import java.util.HashMap;
import java.util.List;

public class MssqlRdsSourceAcceptanceTest extends SourceAcceptanceTest {
Copy link
Contributor

Choose a reason for hiding this comment

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

instead of rewriting the entire class, why don't we extend the other acceptance test and make the db configuration overridable? This way we have complete DRY, just change which DB to connect to


@Override
protected void setup(TestDestinationEnv testEnv) throws Exception {
db = new MSSQLServerContainer<>(DockerImageName.parse("airbyte/mssql_ssltest:dev").asCompatibleSubstituteFor("mcr.microsoft.com/mssql/server"))
Copy link
Contributor

Choose a reason for hiding this comment

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

why do we need a docker image if we are testing against RDS?

@heade
Copy link
Contributor Author

heade commented Jun 4, 2021

/test connector=source-mssql

🕑 source-mssql https://github.com/airbytehq/airbyte/actions/runs/907516355
✅ source-mssql https://github.com/airbytehq/airbyte/actions/runs/907516355

@heade
Copy link
Contributor Author

heade commented Jun 8, 2021

/publish connector=connectors/source-mssql

🕑 connectors/source-mssql https://github.com/airbytehq/airbyte/actions/runs/917841532
✅ connectors/source-mssql https://github.com/airbytehq/airbyte/actions/runs/917841532

@heade heade merged commit 1a147e4 into master Jun 8, 2021
@heade heade deleted the ddubinin/3618 branch June 8, 2021 12:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create an MSSQL RDS instance to test SSL connections Source MSSQL: Enable SSL connections
3 participants