-
Notifications
You must be signed in to change notification settings - Fork 15
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
SFA credential parsing fails for some xml:id
and `URI values
#890
Comments
… signature refid to the credential being signed in SFA credentials.
See my branch https://github.com/ahelsing/geni-tools/tree/tkt890-refid. As a reminder, you run
If this solves the original issue as reported by @dmargery then I'll create a pull request for my fix. |
Hello, I created my own set of certificates and speaks_for cred with an
will fail when run from the master branch, and succeed from https://github.com/ahelsing/geni-tools/tree/tkt890-refid. I will now run the complete speaks_for system test on the live system at sfa.dev.bonfire.grid5000.fr with the geni-tools updated to https://github.com/dmargery/geni-tools/tree/tkt890-refid David |
Test at sfa.dev.bonfire.grid5000.fr succeeds when run from code in https://github.com/dmargery/geni-tools/tree/tkt890-refid an unmodified fork of https://github.com/ahelsing/geni-tools/tree/tkt890-refid. This at least solves the problems I've reported in issue #854 David |
Fix SFA credential use of strip on refid in issue #890
Merged the fix on to develop. Thanks for the testing! |
The SFA credential class fails to parse some signatures.
This issue was originally reported by @dmargery on issue #854
The symptom is that credentials whose refid looks like
_0
/Sig__0
fail to validate.For example,
speaksfor_util
gives an error like this:The problem is that in
credential.py
Signature.decode
usesstrip('Sig_')
, which removes all instances of those characters, when it really wants to remove that prefix if present. The result is that the signature fails to match the credential it is signing.As a test:
In
speaksfor_util
, change the signature template to use a refid of_0
instead ofref0
on line 348.Use that utility to generate a speaks for credential. Then try to validate that credential.
Then you get the error above.
The text was updated successfully, but these errors were encountered: