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

fix: routing behind mediator #2536

Merged
merged 4 commits into from
Oct 16, 2023

Conversation

dbluhm
Copy link
Contributor

@dbluhm dbluhm commented Oct 7, 2023

This is a reopen of PR #2535 (after I botched my git command...). Thanks again @codespree for the fix.

@dbluhm
Copy link
Contributor Author

dbluhm commented Oct 7, 2023

I'll tack a quick test case onto this PR as a regression test.

@dbluhm dbluhm linked an issue Oct 7, 2023 that may be closed by this pull request
@swcurran
Copy link
Contributor

swcurran commented Oct 7, 2023

@dbluhm — can you cherry pick this into a v0.10.4 branch (or v0.10.3 and I’ll just tag it from there) and I’ll publish an image for testing. Once we have that we can do a 0.10.4.

Thanks @codespree for the fix. Hoping that once I publish an image, you can give it a try.

@dbluhm
Copy link
Contributor Author

dbluhm commented Oct 7, 2023

@swcurran how about a 0.10.x branch and then we can delete the old 0.10.2 and 3 branches?

@swcurran
Copy link
Contributor

swcurran commented Oct 7, 2023

Sure. As long as it is not 0.10.4. That you mean the x literally. If you do mean 4, then add a ”v” in front.

@dbluhm
Copy link
Contributor Author

dbluhm commented Oct 8, 2023

#2537 PR to 0.10.x. I'll let the tests run (I don't expect anything to be different enough between main and 0.10.x to cause issues but just in case) and merge once they complete.

@dbluhm
Copy link
Contributor Author

dbluhm commented Oct 8, 2023

https://github.com/hyperledger/aries-cloudagent-python/tree/0.10.x is now ready for an image publish

@codespree
Copy link
Contributor

https://github.com/hyperledger/aries-cloudagent-python/tree/0.10.x is now ready for an image publish

Looks good! I also verified with a base58 key F7cEyTgzUbFwHsTwC2cK2Zy8bdraeoMY8921gyDmefwK by adding it as a routingKey and the code works well.

In the test case we already have did:key:z6Mko2LnynhGbkPQdZ3PQBUgCmrzdH9aJe7HTs4LKontx8Ge, did:key:z6Mko2LnynhGbkPQdZ3PQBUgCmrzdH9aJe7HTs4LKontx8Ge#z6Mko2LnynhGbkPQdZ3PQBUgCmrzdH9aJe7HTs4LKontx8Ge, perhaps we should add another service with the routingKey as F7cEyTgzUbFwHsTwC2cK2Zy8bdraeoMY8921gyDmefwK. That would cover all cases.

@codespree
Copy link
Contributor

@dbluhm @swcurran I updated my local environments (mediator and web agent) to use the branch created:

pip install git+https://github.com/hyperledger/aries-cloudagent-python.git@0.10.x

I am happy to report that everything works as expected.

@swcurran
Copy link
Contributor

swcurran commented Oct 8, 2023

Should I go ahead with the release? What about the other question about the mediator - #2531?

@codespree
Copy link
Contributor

Should I go ahead with the release? What about the other question about the mediator - #2531?

@swcurran I have tested the mediator from a mobile agent and have also tested message queuing so, from my perspective, a release would be good.

Thanks @dbluhm for providing inputs on debugging and for merging the PR.

codespree and others added 4 commits October 16, 2023 10:20
Signed-off-by: Varun Chatterji <varun@seventhsense.ai>
Signed-off-by: Daniel Bluhm <dbluhm@pm.me>
Signed-off-by: Daniel Bluhm <dbluhm@pm.me>
Signed-off-by: Daniel Bluhm <dbluhm@pm.me>
@sonarcloud
Copy link

sonarcloud bot commented Oct 16, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

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

No Coverage information No Coverage information
No Duplication information No Duplication information

@dbluhm
Copy link
Contributor Author

dbluhm commented Oct 16, 2023

@swcurran I think this is good for a merge, based on @codespree's testing.

@swcurran swcurran merged commit a7d2833 into openwallet-foundation:main Oct 16, 2023
9 checks passed
@dbluhm dbluhm deleted the fix/routing-keys branch January 30, 2024 21:31
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.

Routing for agents behind a aca-py based mediator is broken
3 participants