-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
SSH for Postgres Destination #5743
Conversation
/test connector=connectors/destination-postgres
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The decorator wrapping approach seems clever and pretty clean. Code makes sense overall.
|
||
private final Destination delegate; | ||
|
||
public SshWrappedJdbcDestination(final Destination delegate) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to the name of the class, if it is only for JDBC destination, shoudn't the argument be of type JdbcDestination
or a less permissive type?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good call. I actually think the name of this class should be more permissive. Just call it SshWrappedDestination
. Ultimately there's nothing here going on that can't work for anything that we might want to access via ssh tunnel.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have the same question about transparently replacing hostname, but otherwise looks mergable
37f685d
to
437fb14
Compare
817f1fa
to
d43b500
Compare
/test connector=connectors/destination-postgres
|
e63a5a3
to
7df041f
Compare
Co-authored-by: George Claireaux <[email protected]>
/test connector=connectors/destination-postgres
|
/publish connector=bases/base-normalization
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mostly reviewed the normalization changes, lgtm
Co-authored-by: Sherif A. Nada <[email protected]>
/publish connector=connectors/destination-postgres
|
What
How
Recommended reading order
SshDestination.java
SshWrappedJdbcDestination.java
Pre-merge Checklist