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

Add configuration to support broker SSL #156

Closed
wants to merge 1 commit into from
Closed

Conversation

eapache
Copy link
Contributor

@eapache eapache commented Oct 10, 2014

Possibly implements #154, if my assumptions about the implementation are
correct.

@joestein @wvanbergen

@eapache
Copy link
Contributor Author

eapache commented Oct 10, 2014

Interesting, it looks like tls.DialWithDialer (which appears to be necessary for TLS connections with a dial timeout) is only in 1.3 and later. How do we feel about requiring a newer go version at this point?

@wvanbergen
Copy link
Contributor

I think it's OK, given that we also plan to break backwards compatibility for the producer and potentially the consumer.

Maybe we can create a branch for the last commit that is 1.1 & 1.2 compatible?

@wvanbergen
Copy link
Contributor

We should wait with merging before we can test this behavior as well; that will likely require the compiled release of 0.8.3 to be available for download.

@eapache
Copy link
Contributor Author

eapache commented Oct 11, 2014

I like the idea of maintaining a compat branch for a while for old go versions, and the old consumer/producer API. Definitely waiting for something to test with before merging this, I just wrote it now because interfaces made it so darn easy :)

@eapache eapache mentioned this pull request Nov 16, 2014
5 tasks
@eapache eapache force-pushed the support-ssl branch 2 times, most recently from 72c818b to 0480ee3 Compare March 6, 2015 16:38

TLS struct {
Enable bool // Whether or not to use TLS when connecting to the broker (defaults to false).
Config *tls.Config // The TLS configuration to use for secure connections if specified by UseTLS (defaults to nil).
Copy link
Contributor

Choose a reason for hiding this comment

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

godoc: UseTLS is probably an old name, and should be Enable?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch, this was left over from a rebase before unified config.

Possibly implements #154, if my assumptions about the implementation are
correct.
@eapache
Copy link
Contributor Author

eapache commented Jul 28, 2015

@wvanbergen @uovobw Rebased this branch correctly and added a note about compat guarantees. If this looks good to everyone I'll merge it.

@wvanbergen
Copy link
Contributor

🎉 Does it use a default config if you leave the config set to nil?

I'd like to wait for a confirmation that this works as expected for @uovobw before merging.

@eapache
Copy link
Contributor Author

eapache commented Jul 28, 2015

DialWithDialer interprets a nil configuration as equivalent to the zero configuration; see the documentation of Config for the defaults.

@uovobw
Copy link
Contributor

uovobw commented Jul 28, 2015

@wvanbergen thanks for the trust but i no longer have the infrastructure in place to test this completely (since broker-originating connections do not support ssl) and currently do not have time to setup a local broker and test against this. if this merge is not urgent i think i can on this in a couple of days. thanks for the feedback guys

@wvanbergen
Copy link
Contributor

@uovobw Given that you are the only person we know of that needs this feature, you can take your time :)

@eapache eapache closed this Aug 6, 2015
@eapache eapache deleted the support-ssl branch August 6, 2015 16:09
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.

3 participants