-
Notifications
You must be signed in to change notification settings - Fork 49
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
Fix randomblind attribute names in credential request #151
base: master
Are you sure you want to change the base?
Conversation
…request and a test for it
Are we talking about the logs of the IRMA server or about the logs in the IRMA app? And how is it possible that it currently works then if the wrong indices are used for the random blind attributes? That's still a bit unclear to me. |
Then, is it necessary to roll this out with a backwards compatibility layer to prevent breakage of server users using this? |
@ivard it's atleast in the logs of the irma server, since it logs the credential request. It's not logged in the app afaik. The indices were never wrong, it's the translation from index to attribute identifier. @sietseringers that would probably be best. If I'm not mistaken randomblind was introduced before chained sessions in |
If it is at all possible to do this without such an upgrade path by guiding partners using this in demo, then I would prefer that. Those that use this in pilot/demo, do they have real app users trying their demo, or is it just a bunch of developers playing with demo's? |
It's real (probably production) app users. I've asked how far along they are with their pilots and they've said they will be done within 2 weeks. After then it's safe for this to land in a production app (not that this happens this fast, but still). For the next experiments, I'll help them with the right versions. I'll notify here when this PR becomes relevant again. |
I've given this some more thought and came to the conclusion that we cannot solve this nicely (without users who get stuck during issuance) without some legacy code, since we cannot force users to upgrade their app/irmago version. On the other hand it is easier to help new issuers (there are currently none in the pbdf scheme) of randomblind attributes to upgrade to a version of the server works with all apps, by basically sending the attribute identifiers that the app expects (dependant on protocol negotiation, to check if the app has the fix or not). |
A sloppy mistake by me: The names included in the credential request for verifying that the client and server have identical random blind attributes identifiers were off by one due to the fact that function that returns the indices was including the metadata attribute. Verification was still correct as both the client and the server had this bug, but it shows the wrong id in the logs.
Servers that have this patch cannot do randomblind issuance with apps that do not have this version of irmago yet and vice versa as verification will mismatch.