You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by Ted Ross <tr...@apache.org> on 2014/08/06 15:27:22 UTC
Review Request 24381: Servers can allow clients to optionally skip the SASL
exchange
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/24381/
-----------------------------------------------------------
Review request for qpid, Andrew Stitcher and Rafael Schloming.
Bugs: PROTON-485
https://issues.apache.org/jira/browse/PROTON-485
Repository: qpid
Description
-------
This patch changes the Proton SASL transport-layer to make it tolerant of peers that may or may not skip the SASL exchange. Some highlights:
- Introduces a new sasl-outcome, PN_SASL_SKIPPED, to indicate that the peer/client skipped the exchange.
- Introduces a new method, pn_sasl_allow_skip, for a server to use to allow the client to skip sasl.
Existing code that uses the SASL transport layer will continue to function the same, except that there will be a better error message in the case of skipped SASL.
Diffs
-----
proton/trunk/proton-c/bindings/python/proton.py 1616212
proton/trunk/proton-c/include/proton/cproton.i 1616212
proton/trunk/proton-c/include/proton/sasl.h 1616212
proton/trunk/proton-c/src/sasl/sasl.c 1616212
proton/trunk/tests/python/proton_tests/sasl.py 1616212
Diff: https://reviews.apache.org/r/24381/diff/
Testing
-------
Unit test added
Thanks,
Ted Ross
Re: Review Request 24381: Servers can allow clients to optionally skip the
SASL exchange
Posted by Andrew Stitcher <as...@apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/24381/#review49737
-----------------------------------------------------------
Ship it!
I think this is a worthwhile improvement, with a couple of caveats (that don't preclude committing it):
1. If the engine is pumped before receiving any incoming frames it will output the amqp sasl header, rather than doing nothing until it knows what the header should be. This is not a new problem, but is perhaps exacerbated by this change.
2. I'm working in this area currently and I think that this code will change again pretty soon.
Another bonus with this change is that it should fix PROTON-562 (or if it doesn't already it would be a small change to make it).
- Andrew Stitcher
On Aug. 6, 2014, 1:27 p.m., Ted Ross wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/24381/
> -----------------------------------------------------------
>
> (Updated Aug. 6, 2014, 1:27 p.m.)
>
>
> Review request for qpid, Andrew Stitcher and Rafael Schloming.
>
>
> Bugs: PROTON-485
> https://issues.apache.org/jira/browse/PROTON-485
>
>
> Repository: qpid
>
>
> Description
> -------
>
> This patch changes the Proton SASL transport-layer to make it tolerant of peers that may or may not skip the SASL exchange. Some highlights:
>
> - Introduces a new sasl-outcome, PN_SASL_SKIPPED, to indicate that the peer/client skipped the exchange.
> - Introduces a new method, pn_sasl_allow_skip, for a server to use to allow the client to skip sasl.
>
> Existing code that uses the SASL transport layer will continue to function the same, except that there will be a better error message in the case of skipped SASL.
>
>
> Diffs
> -----
>
> proton/trunk/proton-c/bindings/python/proton.py 1616212
> proton/trunk/proton-c/include/proton/cproton.i 1616212
> proton/trunk/proton-c/include/proton/sasl.h 1616212
> proton/trunk/proton-c/src/sasl/sasl.c 1616212
> proton/trunk/tests/python/proton_tests/sasl.py 1616212
>
> Diff: https://reviews.apache.org/r/24381/diff/
>
>
> Testing
> -------
>
> Unit test added
>
>
> Thanks,
>
> Ted Ross
>
>
Re: Review Request 24381: Servers can allow clients to optionally skip the
SASL exchange
Posted by Rafael Schloming <rh...@apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/24381/#review49736
-----------------------------------------------------------
Ship it!
Looks good module the parameter comment.
proton/trunk/proton-c/include/proton/sasl.h
<https://reviews.apache.org/r/24381/#comment87045>
I'd suggest adding a true/false parameter here. I think we do (or probably should do that) for most other boolean options.
- Rafael Schloming
On Aug. 6, 2014, 1:27 p.m., Ted Ross wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/24381/
> -----------------------------------------------------------
>
> (Updated Aug. 6, 2014, 1:27 p.m.)
>
>
> Review request for qpid, Andrew Stitcher and Rafael Schloming.
>
>
> Bugs: PROTON-485
> https://issues.apache.org/jira/browse/PROTON-485
>
>
> Repository: qpid
>
>
> Description
> -------
>
> This patch changes the Proton SASL transport-layer to make it tolerant of peers that may or may not skip the SASL exchange. Some highlights:
>
> - Introduces a new sasl-outcome, PN_SASL_SKIPPED, to indicate that the peer/client skipped the exchange.
> - Introduces a new method, pn_sasl_allow_skip, for a server to use to allow the client to skip sasl.
>
> Existing code that uses the SASL transport layer will continue to function the same, except that there will be a better error message in the case of skipped SASL.
>
>
> Diffs
> -----
>
> proton/trunk/proton-c/bindings/python/proton.py 1616212
> proton/trunk/proton-c/include/proton/cproton.i 1616212
> proton/trunk/proton-c/include/proton/sasl.h 1616212
> proton/trunk/proton-c/src/sasl/sasl.c 1616212
> proton/trunk/tests/python/proton_tests/sasl.py 1616212
>
> Diff: https://reviews.apache.org/r/24381/diff/
>
>
> Testing
> -------
>
> Unit test added
>
>
> Thanks,
>
> Ted Ross
>
>