-
Notifications
You must be signed in to change notification settings - Fork 363
Description
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?
- Disabling URL previews for the whole room is a poor workaround.
- Using
url_preview_url_blacklist
in Synapse and adding rules for private instances / groups / repositories there. - 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
- URL Preview GitHub/GitLab file URLs with code snippets element-meta#1295
- Gitter feature parity overview issue roadmap#26
- [WIP] MSC2370: Resolve URL API matrix-org/matrix-spec-proposals#2370
- Use oembed for url previews? matrix-org/synapse#2752
- Link preview should respect robots.txt #3242
- Skip URL previews of login pages #3440
- URL preview whitelisting akin to url_preview_url_blacklist #6205
- Repair URL preview for tweets, may require a logged in Twitter account matrix-org/synapse#7643
- Dynamically fetch
oembed
provider metadata (for url previews) #9877 - Archive URL preview content at the time it is posted to a room #10676
- Handle structured data (JSON-LD / Microdata / RDFa) for URL previews #11540
- Ability to configure User-Agent for URL previews #17873