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

Creating a /multitenancy/wallet may ignore wallet_dispatch_type #1742

Closed
tdiesler opened this issue Apr 22, 2022 · 5 comments
Closed

Creating a /multitenancy/wallet may ignore wallet_dispatch_type #1742

tdiesler opened this issue Apr 22, 2022 · 5 comments

Comments

@tdiesler
Copy link
Contributor

When creating a sub-wallet with wallet_dispatch_type=default like this ...

2022-04-22 11:29:00 TRACE [org.hyperledger.aries.BaseClient] (main) - Request{method=POST, url=http://localhost:8031/multitenancy/wallet, headers=[X-API-Key:adminkey]}
2022-04-22 11:29:00 TRACE [org.hyperledger.aries.BaseClient] (main) - RequestBody
{
  "wallet_dispatch_type": "default",
  "wallet_key": "FaberKey",
  "wallet_name": "Faber",
  "wallet_type": "indy"
}

I get a response, which suggests that wallet_dispatch_type=base

2022-04-22 11:29:01 TRACE [org.hyperledger.aries.BaseClient] (main) - Response{protocol=http/1.1, code=200, message=OK, url=http://localhost:8031/multitenancy/wallet}
2022-04-22 11:29:01 TRACE [org.hyperledger.aries.BaseClient] (main) - ResposeBody
{
  "updated_at": "2022-04-22T09:29:00.573828Z",
  "wallet_id": "daccbc17-eb53-422c-beb5-c1687d7a19d4",
  "settings": {
    "wallet.type": "indy",
    "wallet.name": "Faber",
    "wallet.webhook_urls": [],
    "wallet.dispatch_type": "base",
    "wallet.id": "daccbc17-eb53-422c-beb5-c1687d7a19d4"
  },
  "created_at": "2022-04-22T09:29:00.573828Z",
  "key_management_mode": "managed",
  "token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ3YWxsZXRfaWQiOiJkYWNjYmMxNy1lYjUzLTQyMmMtYmViNS1jMTY4N2Q3YTE5ZDQifQ.J43mc6AFSbr2HqlmEE8io2-rryTOzP-8ppO4Pnxf79Q"
}
@swcurran
Copy link
Member

@TimoGlastra or @ianco -- could I get an assessment on this one. Is this an urgent fix -- e.g. 0.7.4?

@swcurran
Copy link
Member

swcurran commented Jun 3, 2022

Reminder about this one. Sorry to be a pain @TimoGlastra or @ianco .

@ianco
Copy link
Member

ianco commented Jun 3, 2022

If no webhooks are specified for the sub-wallet then it automatically uses base:

https://github.com/hyperledger/aries-cloudagent-python/blob/main/aries_cloudagent/multitenant/admin/routes.py#L296

If you specify default then you need to specify a webhook for the sub-wallet.

@swcurran
Copy link
Member

swcurran commented Jun 3, 2022

So perhaps this is a docs issue? Basically the wallet was not configured correctly?

I'm going to mark this as closed so we don't forget, but please reopen for further discussion and ways to address this issue.

@swcurran swcurran closed this as completed Jun 3, 2022
@tdiesler
Copy link
Contributor Author

tdiesler commented Jun 20, 2022

So wallet_dispatch_type only applies to webhooks and not to websocket events?

This issue may be related to ...

#1750 [Security] WebSocket clients can see all events from all sub-wallets

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

No branches or pull requests

3 participants