-
Notifications
You must be signed in to change notification settings - Fork 513
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
Add support for revocable credentials in vc_di handler #2967
Add support for revocable credentials in vc_di handler #2967
Conversation
Signed-off-by: EmadAnwer <emadanwer.official@gmail.com>
37bba4d
to
8cda03b
Compare
This line is incorrect: https://github.com/hyperledger/aries-cloudagent-python/pull/2967/files#diff-f7d9c8d89f2442a02ac7a5924be4046e195d411791e4cbfd0fd9e7e2ecb987adL557
You can fetch these attributes from the credential, see for example: (Not the most elegant approach but you can use it as an example) |
0b61e3d
to
7a146aa
Compare
if attempt > 0: | ||
LOGGER.info( | ||
"Retrying credential creation for revocation registry %s", | ||
cred_def_id, |
Check failure
Code scanning / CodeQL
Clear-text logging of sensitive information High
sensitive data (secret)
This expression logs
sensitive data (secret)
This expression logs
sensitive data (secret)
7a146aa
to
3fbaea1
Compare
Signed-off-by: EmadAnwer <emadanwer.official@gmail.com>
3fbaea1
to
cff8b99
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @EmadAnwer I've doen a very quick review of the code and it looks ok, I need to review in a bit more detail and get one other dev to do a review.
In the meantime can you add a description to the pull request? It will help anyone who needs to review, and also in the future if someone needs to look back to see what was done it will give them some context. (Also release note re built based on the PR descriptions.)
Also there are a few code issues reported by one of the scanning tools, if you can take a look ...
I've built a couple of integration tests so I'll send those to you once I get them working :-S
Signed-off-by: Ian Costanzo <ian@anon-solutions.ca>
Integration tests for vc_di issue and revocation
FYI the SonarCloud errors (if you don't have access to the details) are:
The coverage is just related to the unit tests. The duplication is on the new |
Thanks for reviewing, im editing it and i will push asap |
c3bcfef
to
727f8a8
Compare
@EmadAnwer the coverage test is still failing on the There are a couple of unit tests already that are marked as "skipped" (since they were added before revocation was implemented, I suspect just copied form the Otherwise everything in the PR looks good to me. |
@ianco Thanks for the review and suggestions, sure I will take a look into it and update the PR |
@EmadAnwer it looks like the most recent commit (removing the dup code) is missing the DCO signoff |
46ceff8
to
077ab9b
Compare
61166ad
to
727f8a8
Compare
Signed-off-by: EmadAnwer <emadanwer.official@gmail.com>
727f8a8
to
aff4b18
Compare
- test_create_offer - test_create_request - test_issue_credential_revocable - test_match_sent_cred_def_id_error - test_store_credential Signed-off-by: EmadAnwer <emadanwer.official@gmail.com>
Quality Gate passedIssues Measures |
@@ -64,9 +64,10 @@ Feature: RFC 0453 Aries agent issue credential | |||
|
|||
@WalletType_Askar_AnonCreds @SwitchCredTypeTest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add an @Release
tag here? So the tests run on our nightly and pre-release workflows.
When "Acme" sends a request with explicit revocation status for proof presentation <Proof_request> to "Bob" | ||
Then "Acme" has the proof verified | ||
|
||
@WalletType_Askar_AnonCreds @SwitchCredTypeTest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should probably have these as automated tests as well with the @Release
tag.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would like to have this automatically integration tested with the @Release
workflow. But, everything looks good 👍
Similar to work I'm doing right now, I want to make sure revocation registry rotation and other operations are working correctly in anoncreds. See https://github.com/hyperledger/aries-cloudagent-python/blob/main/aries_cloudagent/anoncreds/revocation.py#L875. This isn't in scope for this task. I will look at it separately.
@jamshale I've merged the PR, I'll look at updating the tags on the integration tests later ... |
This pull request supports issuing revocable verifiable credentials in the vc_di handler.
The main changes include:
vc_di/handler.py
issue_credential to include revocation missing dataThis allows Aries to support the W3C Verifiable Credentials Data Model, including revocation of issued credentials. It enables revocable credential issuance and presentation via the vc_di protocols.