Problem
Currently, when a CryptPad document is shared via a link, anyone possessing that link can continue accessing the document according to the permissions associated with it. If a link is accidentally disclosed, shared too broadly, or needs to be withdrawn, the only workaround is often to create a new document and migrate the content.
Proposed Feature
For each existing share link, add the ability to:
- Revoke the link, immediately invalidating it.
- Regenerate the link, creating a new URL with the same permissions while invalidating the previous one.
- Optionally perform these actions separately for each link type associated with the document.
Example
A user creates an edit link and sends it to a project team.
Later, the user discovers that the link has circulated outside the intended group.
Instead of duplicating the document, the user could:
- Open the Share dialog.
- Select the affected edit link.
- Click Revoke or Regenerate.
- Send the newly generated link to the intended collaborators.
The document, its history, comments, and associated data would remain unchanged.
Benefits
- Better control over document access.
- Reduced impact of accidental link disclosure.
- Simpler administration of long-lived collaborative documents.
- Avoids unnecessary duplication of pads and loss of continuity.