-
Notifications
You must be signed in to change notification settings - Fork 277
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
WAMPCRA does not support salting #2120
Comments
Yeah, I think would be a good first contribution to this project |
Crossbar.io does support salting with WAMP-CRA. pls see https://github.com/crossbario/crossbar-examples/blob/master/authentication/wampcra/static/client.py and and other salting examples, e.g. WAMP-SCRAM does feature salting as well (and is also supported in Crossbar.io) https://github.com/crossbario/crossbar-examples/tree/master/authentication#crossbario-authentication |
it does, pls see the logs there
sorry, I can't see any issue |
Here's my setup:
I have minimized the config https://github.com/crossbario/crossbar-examples/blob/master/authentication/wampcra/static/.crossbar/config.json from examples to this:
The client code is as follow:
Output:
|
I need to mention that with the proposed change, the issue indeed gets resolved. We are writing a WAMP interoperability suite for different languages and came across this issue during that testing. |
what issue? what's the Crossbar.io issue number?
sounds great!! definitely welcome. not sure though: "a WAMP interoperability suite": where can I look? do you want to integrate that with or help add to the CI tests here in Crossbar.io? |
It's this current issue that i have opened #2120 (salt doesn't work with WAMPCRA), You can test the code that i have pasted. |
well, the issue is closed, I don't have time to run your stuff, but as said, it works for me. if you think something is wrong, a proper bug report is needed first, which includes both your new failing example with logs and including logs of the existing example I posted shown to either also fail with the data of your example - or not fail in itself (but then it should, as yours?). once that is there, I would be convinced there is an issue at all. at that point, what we next need is: an automated test integrated into the Crossbar.io CI/CD which demonstrates the issue and allows us then to track its fixture, as well as continue to monitor that no regressions creap in thereafter. once we have the new failing CICD test, finally (in a separate PR) a fix can be merged and integrated! if that sounds like a lot of work and non-trivial: yes, I agree! however, in my experience and judgement, the alternative of "just merge and move on" wild west approach is not appropriate for Crossbar.io at this point anymore, we need the full shebang. if you say, "that is all cool, but too much work/effort for me": sad, but I understand, and that'd be perfectly fine! |
@oberstet I have opened a new issue #2123 which contains the whole setup details and the logs for failing example & a working one also.
Here's the failing CI/CD test #2122, and it should work after merging #2121 |
As mentioned in the wamp proto specification: https://wamp-proto.org/wamp_ap_latest_ietf.html#section-5.2-31,
wampcra
should support salting but crossbar doesn't support it.Steps to reproduce:
My
config.json
file looks like this:The client code to test it:
This should result in error as i have not derived key from salt and passed it directly. But it works fine.
The text was updated successfully, but these errors were encountered: