-
Notifications
You must be signed in to change notification settings - Fork 515
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
Delete unused ConnRecord generated - OOB invitation (use_exising_connection)
#1521
Conversation
Is it not possible to identify the invitation that Bob is responding to with the "reuse" message, and directly delete that invitation for this use case? I would think the thread ID of the message identifies the original invitation, allowing it to be removed. The "flush..." tactic seems overly broad for the scenario and potentially problematic. I would definitely not want to have a fixed time for the "flush" -- it should be an easily changed variable at minimum, and likely configurable. |
@swcurran I like the approach of using I can update |
Hmm...I don't see a need to revise the RFC. It looks to me like the RFC requires that Invitation ID be the What is it that you are seeing needs to be updated in the RFC? I definitely think that it would be useful to clarify the RFC to talk about deleting a hanging invitation when reuse is used, to help future implementers, but I don't see a change to the spec. |
There are 2 different invitation ids needed in the reuse message workflow:
The current structure of |
Another option, could be to assign the received invitation id as the |
There shouldn't be a hack needed. The Hmmm...maybe it is the Admin API that needs some work to tell the controller that the invitation that was sent out is now associated with this other connectionID? |
Signed-off-by: Shaanjot Gill <gill.shaanjots@gmail.com>
Thanks @swcurran for the clarification, my initial implementation of |
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.
LGTM will leave to @swcurran to review/merge
On reusing an existing connection, when the inviter accepts reuse and deletes the hanging connection, it does not update the existing connection. So the identifier for the |
Signed-off-by: Shaanjot Gill <gill.shaanjots@gmail.com>
Signed-off-by: Shaanjot Gill <gill.shaanjots@gmail.com>
Signed-off-by: Shaanjot Gill gill.shaanjots@gmail.com
use_existing_connection
#1511Alice and Bob
] have an active connection setup (using an OOB public DID invitation)Alice
send another OOB invitation (public) toBob
Bob
accepts it withuse_existing_connection
option, then onAlice
side, the invitation and associated connection generated remain unused.This PR implementsflush_stale_connections
function, which deletes allConnRecords
withstate: invitation
andinvitation_mode: once
which were last updatedat least 3 hours
back. The trigger for this function is creating an OOB invitation, so whenever a newOOB invitation
is created then this cleanup is performed. Does this strategy sound reasonable?reuse
message and used it to accomplish deletion ofhanging
connections.