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

Resolved DID Doc cache TTL #3373

Open
dbluhm opened this issue Dec 3, 2024 · 1 comment
Open

Resolved DID Doc cache TTL #3373

dbluhm opened this issue Dec 3, 2024 · 1 comment

Comments

@dbluhm
Copy link
Contributor

dbluhm commented Dec 3, 2024

The DID Resolver caches DID Resolution results for 3600 seconds or 1 hour. In a test environment, we've run into a scenario where a shorter TTL would have been convenient but I have doubts that this translates to any real world scenarios.

For context, the situation we encountered is related to fixes made in #3371. We had an ACA-Py instance with a public DID working with a mediator. In did:sov terms, that means an attrib txn with endpoint and routing keys in it. We then wanted to be able to spin up the ACA-Py instance with a new mediator and then connect again from another agent. The fixes in #3371 enable this but from the other agent, since we'd connected once before, it was using its cached version of the did:sov document, resulting in a failure to connect.

Having a caching layer enables us to use the DID Resolver at multiple layers (credential issuance, verification, DIDComm messaging) without needing to worry too much about the efficiency of retrieving the DID Document.

Interested to hear if others have thoughts on what a good TTL would be.

@dbluhm
Copy link
Contributor Author

dbluhm commented Dec 3, 2024

Discussed on the ACA-Py Maintainers meeting and the general notion was that 1 hour is too short, given the expected lifetime of DID Documents.

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

1 participant