Skip to content

Grammar for Secret Storage key ID #2355

@AndrewFerr

Description

@AndrewFerr

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:

  • The m.secret_storage.key.[key ID] account data type
  • The value of the key parameter in the m.secret_storage.default_key account data object
  • The keys of the encrypted map in encrypted account data objects

Metadata

Metadata

Assignees

No one assigned

    Labels

    clarificationAn area where the expected behaviour is understood, but the spec could do with being more explicit

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions