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

SSL issue #53

Closed
iamhasibrahman opened this issue Mar 16, 2016 · 2 comments
Closed

SSL issue #53

iamhasibrahman opened this issue Mar 16, 2016 · 2 comments

Comments

@iamhasibrahman
Copy link

When we use proxy, this is what will happen, right?

Fluent-plugin-Kinesis is writing to our proxy in cleartext (no SSL) and then the proxy is sending it up to Kinesis via SSL, correct.

So we need to handle SSL from Proxy server to AWS Kinesis regional end point??

@riywo
Copy link
Contributor

riywo commented Mar 16, 2016

No. Ruby stdlib Net::HTTP (which is used by AWS SDK for Ruby) uses CONNECT command to order the proxy to create TCP tunnel to remote SSL server. After that, all communication is encrypted. Please tcpdump packets to verify it.

https://en.wikipedia.org/wiki/HTTP_tunnel#HTTP_CONNECT_tunneling
https://github.com/ruby/ruby/blob/ec0198fd8cfee7ae499602235fcf3a9318f9b691/lib/net/http.rb#L911-L920

If your proxy server doesn't support CONNECT command, I don't know how to solve that problem. Please ask to AWS Forum for Ruby development.

https://forums.aws.amazon.com/forum.jspa?forumID=125

@riywo riywo closed this as completed Mar 16, 2016
@iamhasibrahman
Copy link
Author

This is extremely useful. Really appreciate it.

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

No branches or pull requests

2 participants