-
Notifications
You must be signed in to change notification settings - Fork 307
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
feat: kafka over ssh #3007
feat: kafka over ssh #3007
Conversation
495d215
to
815c764
Compare
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #3007 +/- ##
==========================================
+ Coverage 53.79% 53.83% +0.04%
==========================================
Files 348 350 +2
Lines 53846 54003 +157
==========================================
+ Hits 28965 29074 +109
- Misses 23240 23281 +41
- Partials 1641 1648 +7
... and 6 files with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
} | ||
return conn, nil | ||
} | ||
} |
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.
Should we set the net Dialer with Timeout if not defined?
} | |
} | |
dialer.DialFunc = net.Dialer{ | |
Timeout: c.config.DialTimeout, | |
}.DialContext |
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've added a timeout in the SSH config. It works as expected when dialing. If not defined then the timeout in line 47 should apply. Wdyt?
c93ac44
to
4e1b671
Compare
01fb5cb
to
99a5019
Compare
04437b7
to
af20123
Compare
f973f58
to
9a49c25
Compare
b94bdfe
to
e30a9cb
Compare
Description
This PR is to add support for connecting to Kafka via SSH. It is required by a specific customer and control plane prefers not to have SSH keys on their side so for this one we're opting to configure via environment variables only.
The PR was tested manually with a Kafka over SSH on AWS (EC2).
Related Slack conversation.
Sidenote
In order to make the test work I had to make changes to the way Kafka was provisioned so that the advertised listeners were set correctly.
Notion Ticket
< Notion Link >
Security