-
Notifications
You must be signed in to change notification settings - Fork 521
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
Enable no-transport
mode as startup parameter
#2990
Enable no-transport
mode as startup parameter
#2990
Conversation
Signed-off-by: pstlouis <[email protected]>
Signed-off-by: pstlouis <[email protected]>
Like I mentioned in the ACA-PUG call, I like where this is going. Having the ability to use ACA-Py's credential, DID Resolution, and other capabilities without necessarily using the DIDComm capabilities is really interesting. I think you're already headed in this direction but if no transport is enabled, it is likely not necessary to register any of the protocols. |
…in sessions to 0 if no inbound transport manager Signed-off-by: pstlouis <[email protected]>
…-cloudagent-python into pstlouis/no-transport-mode
Signed-off-by: pstlouis <[email protected]>
Signed-off-by: pstlouis <[email protected]>
Signed-off-by: pstlouis <[email protected]>
…-cloudagent-python into pstlouis/no-transport-mode
Signed-off-by: pstlouis <[email protected]>
Signed-off-by: pstlouis <[email protected]>
Integration tests are consistently failing. The question is whether that's a result of the changes in this PR or not.
It doesn't seem like these changes should impact these scenarios... @jamshale any insights? |
I noticed this but have not dug into it. I'm not sure how this is effecting endorsement but it must be as integration tests are passing on the nightly runs and for other pr's. I can try and see if I can figure anything out. |
I will have a look, no additional tests were added and no changes are expected if the flag is not added. Maybe there's a bad condition check somewhere. |
I haven't tried to debug it yet but these failing tests are trying to use the |
Signed-off-by: pstlouis <[email protected]>
Tests passed, updating the branch |
|
if not self.settings.get("ledger.disabled"): | ||
plugin_registry.register_plugin("aries_cloudagent.ledger") |
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.
@jamshale @dbluhm
Just a heads up, this change causes the LedgerAPI to be dropped from the OpenAPI spec that gets generated with bash scripts/generate-open-api-spec
, since it uses --no-ledger
in its startup args.
Just thought I'd mention. It just means if repo's openapi spec is regenerated, it won't include ledger API. But it should still appear in the swagger.json for an agent that does have ledger configured.
A simple fix is to just revert this line's change. Otherwise, seems like genesis-file / transactions needs to be configured in open-api gen bash script. Seems overkill to do that
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 can revert this, it's not crucial to what I was trying to achieve here. I'll submit a PR, thanks for flagging this!
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.
Cool! Picked it up when generating openapi client off nightly build. Thanks! 👍
This PR adds a
--no-transport
startup parameter for making the agent start without requiring the--enpoint
,--inbound-transport
and--outbound-transport
to be set.The idea was shared during an aca-pug meeting and there was no objection. This can greatly simplify deployment for controllers that do no require didcomm messaging.
Currently it just overrides what is required for startup.
@dbluhm @swcurran @ianco