Skip to content

URL Preview for private URLs with active integrations (GitHub, GitLab, Jira) #18795

@almereyda

Description

@almereyda

Your use case

Posting this here, as this is where the proposal will become visible to a person that is using Element.

What would you like to do?

When pasting a link to an issue in a private GitLab repository, I would like to see an informative URL preview.

This might also be valid for the prime integrations with GitHub and Jira.

Why would you like to do it?

When referencing people to items in private repositories, in rooms with link previews enabled, we are regularly presented with the login screen. Clicking it away is a little tedious and could potentially be avoided.

How would you like to achieve it?

Paste a URL into a private GitLab repository / group / instance.

URL preview knows how to fetch the sensitive metadata.

This could maybe be facilitated by an existing Hookshot integration. Possibly by providing an oEmbed endpoint with a hardly guessable URL that does the resolution against GitLab?

This appears to become more challenging, if multiple integrations to multiple GitLab (GitHub (Enterprise), Jira) instances are considered.

Have you considered any alternatives?

  1. Disabling URL previews for the whole room is a poor workaround.
  2. Using url_preview_url_blacklist in Synapse and adding rules for private instances / groups / repositories there.
  3. Allow Element to build the preview locally via CORS and post it to the channel. Archive URL preview content at the time it is posted to a room #10676

Additional context

References

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions