Open SandGrainOne opened 2 years ago
@OddArneSaetervik Før vi bruker noe tid på å refine denne ønsker vi avklaring på hvorvidt det er greit å bare slette abonnementer. Burde det gis en beskjed til eier av abonnementet om at det er slettet eller skal det være en slags "grace period" hvor vi beholder abonnementet, men ekskluderer det fra push logikken.
Blocked by
We created an issue to start collecting better insight into this so that we can better evaluate whether we need a feature like this: #602
Description
An invalid subscription is a subscription where the subscriber no longer have access to the related data. Rights and roles changes for different reasons all the time. The Events component should regularily verify that the subscriber still have the necessary rights to access the data.
Subscriptions that never push any events still have a performance cost and over time they might become the majority of subscriptions unless there is a mechanism to delete them.
Additional Information
The idea is to have an Azure function scheduled to run once a day. The logic should perform an authorization check to see if the subscriber still have read access to the data in question. If the result is negative, the function would proceed to delete the subscription.
Possible implementations