-
-
Notifications
You must be signed in to change notification settings - Fork 195
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
Support setting MQTT ALPN for use with AWS IoT #752
Comments
From looking at the page it looks like the only thing missing is the bit where it enables ALPN, correct? If so, that should be a fairly easy thing to add (execpt for reaching into the paho-mqtt internals) |
Correct. The code change would be small to support just this one feature. Instead of calling That said, the current yaml object would not follow documentation, which currently matches argument's for paho's My thought would be the yaml would be changed. Instead of following the paho documentation for
Changes:
Yes, looking at Paho's implementation of tls_set, there is a bit going on there that would need to be moved to here to keep behavior the same with respect to defaults. Does the above approach sound good to you? I can either leave |
I have a working implementation for this now; the tls functionality is unchanged. I can add some unit testing for the new functionality. For system testing, it appears |
I see paho-mqtt supports that in 1.6, Tavern is currently tied to <=1.5.1 because they introduced some kind of a regression in a more recent version. I suppose they may have fixed it in a more recent version though? |
We've been using new than that for the past few months with tavern and no issues in the paho side of things. Any opposition to bump that max version up so my PR for this can merge? |
I noticed this got merged into feature-2.0, so I've been trying to get it setup. New to Tavern here as well. I've been struggling with the configuration options. I've tried a ton of combinations, but what I'm working with so far is:
After enabling DEBUG logging, I'm getting the following with my small MQTT test case:
Also tried by adding |
My config looks like this: paho-mqtt:
connect:
host: <account-iot-identifier>-ats.iot.<aws-region>.amazonaws.com Everything else you posted looks fine. Interesting, logs say that TLS is disabled, that might be a remnant from not specifying the |
I'm going to close this as it should have been fixed by the release of version 2.0 (though, it is missing some test coverage) |
When using MQTT and Paho, I used this guide for the setup to communicate with an AWS IoT broker.
When trying to test my client using tavern, I have been unable to connect to an AWS broker, and suspect it may be from the inability to set the TLS ALPN in tavern. The behavior is no response to CONNACK requests, and failure to connect to the broker.
I am happy to add support for this, but would like some guidance on how the yaml should change to support this.
Thanks!
The text was updated successfully, but these errors were encountered: