Skip to content
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

Feat/public did endpoints for agents behind mediators #1899

Conversation

cjhowland
Copy link
Contributor

This PR supports publishing endpoint information with routing keys in accordance with the did:sov specification. Routing keys are retrieved from mediation_id if specified, or else a default mediator. If no mediated connection is present, routingKeys defaults to an empty array.

This PR allows for publishing DIDs with routing keys; PR #1863 allows for resolving DIDs with routing keys.

Copy link
Contributor

@dbluhm dbluhm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the thorough tests! I have just one minor change request.

@dbluhm
Copy link
Contributor

dbluhm commented Aug 16, 2022

To further comment on the necessity of this PR, without this, an ACA-Py instance configured to operate behind a mediator is currently unable to publish accurate endpoint information for forming DIDComm connections through its public DID.

@codecov-commenter
Copy link

codecov-commenter commented Aug 16, 2022

Codecov Report

Merging #1899 (e1e8d77) into main (2a0e088) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main    #1899   +/-   ##
=======================================
  Coverage   93.67%   93.68%           
=======================================
  Files         539      539           
  Lines       34145    34162   +17     
=======================================
+ Hits        31984    32003   +19     
+ Misses       2161     2159    -2     

@dbluhm
Copy link
Contributor

dbluhm commented Aug 16, 2022

The SonarCloud analysis is new. It's complaining about test values. @cjhowland we could probably appease it by just changing the example endpoint to something like https://example.com.

@WadeBarnes
Copy link
Contributor

WadeBarnes commented Aug 16, 2022

The SonarCloud analysis is new. It's complaining about test values. @cjhowland we could probably appease it by just changing the example endpoint to something like https://example.com.

Yes, it's new. It just got added to some of the Indy and Aries projects today. It's not a required check yet, so it won't block merging.

@dbluhm
Copy link
Contributor

dbluhm commented Aug 16, 2022

Should/Can we configure it to ignore tests? I suppose if we leave it as a not required check, maybe it's not a problem but "fixing" the code duplication warnings for the tests would be inappropriate, IMO. Maybe I just have an aversion to seeing red X's on PRs that I'm approving 🙂

@WadeBarnes
Copy link
Contributor

Should/Can we configure it to ignore tests? I suppose if we leave it as a not required check, maybe it's not a problem but "fixing" the code duplication warnings for the tests would be inappropriate, IMO. Maybe I just have an aversion to seeing red X's on PRs that I'm approving 🙂

Yes, the settings can be adjusted by adding a config file. Example config file; https://github.com/hyperledger/blockchain-explorer/blob/8c85d2a6b0f3b7af88c80ce2fd3f252138d09343/.sonarcloud.properties

@cjhowland cjhowland force-pushed the feat/public-did-endpts-with-routing-keys branch from e965441 to 14fbf7c Compare August 16, 2022 20:14
@dbluhm
Copy link
Contributor

dbluhm commented Aug 18, 2022

Char is OOTO so I'll take a look at test failures today.

@WadeBarnes
Copy link
Contributor

More suggestions here; #1896 (comment)

@sonarqubecloud
Copy link

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 4 Code Smells

No Coverage information No Coverage information
10.5% 10.5% Duplication

Copy link
Contributor

@dbluhm dbluhm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@swcurran swcurran force-pushed the feat/public-did-endpts-with-routing-keys branch from e1e8d77 to 34090a3 Compare August 23, 2022 21:31
@swcurran swcurran merged commit a8101e1 into openwallet-foundation:main Aug 23, 2022
@ianco
Copy link
Contributor

ianco commented Aug 31, 2022

Please see PR bcgov/von-network#233

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants