I’ve been reading the docs about the monday-code-sdk and have a few questions…
Segregation of storage & secure storage
In Storage, data:
is segregated according to the
accountId
andapp
, so data stored by one account is inaccessible by other accounts to provide an additional layer of security.
So far, so good. This all seems quite reasonable.
And in monday terminology, an account is the instance of monday, or tenant, easily identified by a unique origin e.g. https://myexampleaccount.monday.com
In Secure Storage:
The
secureStorage
method stores sensitive customer data for monday-code projects. The data is stored securely and logically segregated, meaning it is stored in smaller categories on the same device to easily grant or block access. It is segregated for your specific app, so data stored by one app is inaccessible by other apps to provide an additional layer of security.
Question 1. The sentence below seems a bit vague. Could this be expanded upon in the documentation please?
The data is stored securely and logically segregated, meaning it is stored in smaller categories on the same device to easily grant or block access.
Question 2. It doesn’t explicitly say in the docs, but can we confirm that secure storage is also segregated according to the
accountId
as well as the app
?
Data retention policy for storage & secure storage
I’m trying to understand what the lifecycle is for storage & secure storage.
Scenario
Let’s say that a developer builds an app which stores some kind of access token for an external system within secure storage on behalf of each user of monday.com who is also a user of the external system.
While the app remains installed, the developer can allow users of the app to delete their access token from secure storage, whereby the app will no longer have access to the external system.
In time, the app is uninstalled and the reinstalled. Later, the app is uninstalled, but this time for good.
Question 3. What happens to the access tokens saved within secure storage?
- I would hope that the data is not immediately removed on uninstall as that would break the app if it was subsequently reinstalled.
- I would also hope that the data does not live forever within monday, and that after a stated period of time, the data for the app would be removed.
Question 4. What is the data retention policy for data from apps which have been uninstalled?
This information should be added to the docs so that app developers have somewhere to point their customers to when it inevitably is requested.
– Thanks for reading, David.