Skip to content

0179: The shared link is shown with its token masked

  • Implementation built

Context and Problem Statement

ADR 0090 shows the authenticated URL, bearer included, in the sharing control. The bearer is then readable by anyone looking at the screen and lands in every screenshot of the footer pane. May the control show the link without showing the credential?

Considered Options

  • Mask the token in the shown text; Copy, Share and Open keep the whole link (chosen).
  • Keep showing the whole link: a screenshot or a glance hands out access.
  • Hide the link: the person could no longer see which address is shared.

Decision Outcome

Chosen option: mask the token in the shown text, because the address stays visible and the credential does not.

  • The sharing control shows the approved URL with #token= followed by a fixed mask, whatever the token's length.
  • Copy, Share and Open still use the whole authenticated URL, under ADR 0090's approval checks.

Consequences

  • Good: looking at or screenshotting the pane no longer discloses access.
  • Bad: the whole link can no longer be selected from the pane by hand when the clipboard is refused; Open still works.

Confirmation

The web unit test of the sharing control fails when the session or device token appears in its text, or when Copy, Share or Open no longer carry it.