Skip to content

Source MSSQL: Enabled SSL connections - #3893

Merged
Daniel Dubinin (heade) merged 8 commits into
masterfrom
ddubinin/3618
Jun 8, 2021
Merged

Source MSSQL: Enabled SSL connections#3893
Daniel Dubinin (heade) merged 8 commits into
masterfrom
ddubinin/3618

Conversation

@heade

@heade Daniel Dubinin (heade) commented Jun 4, 2021

Copy link
Copy Markdown
Contributor

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 Daniel Dubinin (heade) linked an issue Jun 4, 2021 that may be closed by this pull request

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.

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
Copy Markdown
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
Copy Markdown
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

Daniel Dubinin (heade) commented Jun 4, 2021

Copy link
Copy Markdown
Contributor Author

/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

Daniel Dubinin (heade) commented Jun 8, 2021

Copy link
Copy Markdown
Contributor Author

/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

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