-
-
Notifications
You must be signed in to change notification settings - Fork 140
Grammar for Secret Storage key ID #2355
Copy link
Copy link
Open
Labels
clarificationAn area where the expected behaviour is understood, but the spec could do with being more explicitAn area where the expected behaviour is understood, but the spec could do with being more explicit
Metadata
Metadata
Assignees
Labels
clarificationAn area where the expected behaviour is understood, but the spec could do with being more explicitAn area where the expected behaviour is understood, but the spec could do with being more explicit
Type
Fields
Give feedbackNo fields configured for issues without a type.
Link to problem area: https://spec.matrix.org/v1.18/client-server-api/#storage
Issue
It's not explicitly stated whether the key ID used to identify Secret Storage keys may be an empty string.
At least in the JS-SDK, an empty key ID is treated as an undefined key (source), which is reasonable. Nonetheless, the spec may as well take a stance on it, as technically speaking, there is nothing that prevents an empty string from being a usable key ID.
The Secret Storage key ID is used in the following places:
m.secret_storage.key.[key ID]account data typekeyparameter in them.secret_storage.default_keyaccount data objectencryptedmap in encrypted account data objects