[Azure] Dirty entitlements cache in other services
Entitlements is single most used service in OSDU and as such all services make use of cache to store Entitlements data. We are facing a dirty cache issue in storage with the following workflow:
- User creates a data group DG in Entitlements;
- Immediately, user ingests a record R with DG in ACL. Ingestion is successful.
- Right after, user tries to get or update R and gets a 403 from Storage which is wrong.
The reason for this failure is because Storage caches for 15s the entitlements groups for the user, which may not have the new DG in it, hence the 403. This kind of behavior could happen in any OSDU service caching entitlements data.