openwallet-foundation / credo-ts-ext

Extension libraries for Credo
https://credo.js.org
Apache License 2.0
30 stars 37 forks source link

[rest] disable SingleContextStorageLruCache when agent in multi-tenant mode #275

Open amanji opened 1 week ago

amanji commented 1 week ago

While probably an edge case, this prevents a tenant from being able to issue credentials to another tenant in the same agent instance. Or perhaps worded another way it prevents a tenant from caching a credential definition that has already been previously cached by another tenant. Not sure if there may be scenarios where this is applicable.

TimoGlastra commented 1 week ago

Makes sense! I think we can enable the in-memory cache by default