How do I get rid of "Connect your account te preview links" for Github?
Asked by J. Pablo Fern?ndez:

Whenever I enter a GitHub URL in Confluence I see this:

![github.png](/t5/image/serverpage/image-id/63724iB56509E543C79A14/image-size/large?v=v2&px=999 "github.png")

Clicking on Connect your account to preview links does nothing. Well, it opens a new tab and then does nothing. Something is broken. How do I connect it or somehow get rid of it?


Answers:
author: Andras Racz
body: How can I get rid of the nagging? Regardless of the "feature" working or not, I will not connect Atlassian to my Google, Github, etc account, period. Please accept that and give an option to dismiss the nagging *for good.*

comments: author: Shannon S
body: Hello Andras,

Thank you for following-up on this case.

I created the request below to track this feature:

* [CONFCLOUD-67922](https://jira.atlassian.com/browse/CONFCLOUD-67922) *Ability to dismiss or disable Smart Card behavior for links*

I'm linking it with the internal case, so please add your feedback to that ticket.

There's not a way at the time to cancel the nagging, but you can use the following workaround to just insert as a normal link:
> When inserting the link, be sure to use http:// instead of https://. The Smart Card feature will not be activated, and upon visiting the URL, it will automatically redirect to https:// for these services.
>
> Alternatively, you can press Ctrl + Z (Windows) or Cmd + Z (macOS) (to revert the link to a normal blue link).

I hope that helps, but let me know if you have any trouble.

Shannon


author: Orie Steele
body: In english:  

press Ctrl + Z (Windows) or Cmd + Z (macOS) to revert the link to a normal blue link... after pasting any link into an atlassian box...  

You can fix a link that has been wrapped by atlassian by copy pasting it using copy link address.  

Per <https://www.atlassian.com/trust/roadmap?tab=compliance>  

For what purpose are you requesting users connect external accounts be linked, where can I read about how you will only use this information to "preview links"?  

Are you aware that this "feature" is violating the concept of least privilege and encourage users to disclose information unnecessarily, that might harm them or you?  

<https://www.sec.gov/Archives/edgar/data/1650372/000104746915008972/a2226703zf-1a.htm>  

"If our security measures are breached or unauthorized access to customer data is otherwise obtained, our products may be perceived as insecure, we may lose existing customers or fail to attract new customers, and we may incur significant liabilities."  

<br />

When I paste a google docs link into atlassian, your UI lies, and tells me that "You don't have access to that link"... you then build an OAuth link around my link to my document, that when clicked, discloses to google that i'm using atlassian, and grants atlassian read only access to my google doc... if I will just click accept...  

What you mean to say is "Atlassian can't read your trade secrets or IP behind that link we just noticed you pasted in a chat box... would you like to allow Atlassian to have read-only access to file metadata and file content?"  

This is the scope of the OAuth Request:

|-----------------------------------------------------------------------------------------------------------|
| profile <https://www.googleapis.com/auth/userinfo.email> <https://www.googleapis.com/auth/drive.readonly> |

Want to learn more about OAuth Scopes actually mean?   

<https://developers.google.com/drive/api/v2/about-auth>  

Think about what happens when that google doc contains trade secrets or IP... think about what happens when atlassian is breached and all those access token with read only access are used to steal all atlassian customer's google docs, who didn't realize what they were doing when they harmlessly "Connected an account to preview links".  

Developers are invited to review the graphql events logged associated with "smartLink renderSuccess" which includes gems like:  

nonPrivacySafeAttributes: {linkDomain: \["docs.google.com"\]}  

<https://bitbucket.org/atlassian/atlaskit-mk-2/commits/6e446f687a9f513ff76cafbfa8b0131e7481cb74>  

(link to the file doesn't work... but here is the same commit <https://github.com/pavithracjs/atlassian-ui-library/commit/6e446f687a9f513ff76cafbfa8b0131e7481cb74>)....  

does this mean this information is privacy safe? or not?  

This feature is a lawsuit waiting to happen... Please disable it by default, and never prompt users to grant access to external resources, without properly communicating the risks and liabilities associated with the action your software is proposing.   

If it were possible to disable this behavior I would have just disabled it, instead of posting this detailed explanation of how the "feature" actually works.  

Can we get an ETA on when this will be possible to disable ?  

<br />


author: dmitriy
body: this thing is SUPER ANNOYING. how to disable this feature and keep the ticket comments the same as you write them ?

PS: i do not want to connect my github account

comments: author: Belto
body: If you wish to disable the smart link feature altogether from the comments in Jira you can modify the renderer from **Wiki Style Renderer** to **Text Renderer.**

<https://confluence.atlassian.com/adminjiracloud/specifying-field-behavior-776636443.html>

Also dropping the bug ticket for this here:

<https://jira.atlassian.com/browse/JRACLOUD-72988>


author: Shannon S
body: Thanks to [@Belto](/t5/user/viewprofilepage/user-id/1176297) for providing the workaround for Jira Cloud!

[@J. Pablo Fern?ndez](/t5/user/viewprofilepage/user-id/3530920) [@dmitriy](/t5/user/viewprofilepage/user-id/2233066) [@mitchell balsam](/t5/user/viewprofilepage/user-id/2800648),

This workaround is for Jira only. For anyone who tries this, just be aware that it will disable wiki-style rendering on the field completely.

I just discovered a workaround alternative for both Confluence and Jira. Insert the link with **http://** instead of **https://**. This will break the Smart Card linking feature. For the services I tested, it redirects the user to https:// in the end.

I've created the following feature requests for the ability to disable this message, or to disable the Smart Card behavior for specific links:

* [CONFCLOUD-67922](https://jira.atlassian.com/browse/CONFCLOUD-67922) *Ability to dismiss or disable Smart Card behavior for links* (Confluence Cloud)
* [JRACLOUD-72990](https://jira.atlassian.com/browse/JRACLOUD-72990) *Ability to dismiss or disable Smart Card behavior for links* (Jira Cloud)

Please vote on the request that pertains to your product if this is something you wish to see in the future.

Thank you all for your help on this!

Regards,

Shannon


author: dmitriy
body: [@Belto](/t5/user/viewprofilepage/user-id/1176297)we would like to keep \`wiki style renderer\` because it highlights links to issues

we just do not use github and we are not going to connect github accounts in our jira project. but we do work extensively with open source packages / issues and that's why a lot of our jira tickets contain lots of github links.

is that possible to set up the wiki style renderer itself and disable github integration?

thanks!


author: Belto
body: I can totally understand. Instead of disabling the wiki markup, you can try the workarounds mentioned on [JRACLOUD-72429](https://jira.atlassian.com/browse/JRACLOUD-72429) / [CONFCLOUD-67922](https://jira.atlassian.com/browse/CONFCLOUD-67922)


author: Michael Dockter
body: I agree. Seeing "Connect your account to preview links" is not only annoying but also an invasion into the privacy of the GitHub account.

I get the feeling that the good folks of Atlassian have not thought this through completely. Or if they have, we need to be concerned with nefarious intent.

comments: author: Shannon S
body: Hello Michael,

This particular issue was resolved about a week after [@J. Pablo Fern?ndez](/t5/user/viewprofilepage/user-id/3530920) reported it to me. I can confirm it's fixed for both Jira and Confluence and I no longer get the message when adding my Github link to a page in Confluence or an issue in Jira.

It's very odd that you are encountering it today. Could you please raise a ticket with our [Cloud Support Team](http://support.atlassian.com/contact)? We can have a look at your error logs and try to determine why you might still be seeing this message.

Thank you for your help!

Regards,

Shannon


author: Michael Dockter
body: Are you adding the link as "http://" or "https://"? Because they behave differently.


author: Shannon S
body: Michael,

Thank you for bringing that to my attention. You're right; it appears that it was only resolved for users when they enter github.com/username or <http://github.com/username> and NOT <https://github.com/username>.

I'm bringing this to the attention of the editor team right away and I will let you know what I find out.

Thank you again!

Regards,

Shannon


author: Bruce MacNaughton
body: i'm requesting that you remove this feature or, at a minimum, allow the message to be suppressed link-by-link.

i am not going to connect my github account, so it's a constant nag.

but even i were to connect my account i wouldn't want this preview in many cases. there are times when i am entering a list of urls with some comments; previews only interfere with the message i am trying to convey.

please advise how this can be addressed.

thanks


author: Michael Dockter
body: I, too, would like it removed. Or at least a setting that is turned off initially. (i.e. an advanced user can turn it on in their "settings"). Daily I'm pasting a link and then having to edit it to change "https" to "http".

I know Atlassian wants to create professional software. This feature just doesn't seem professional in its current form.


author: Shannon S
body: [@Bruce MacNaughton](/t5/user/viewprofilepage/user-id/3700241) and [@Michael Dockter](/t5/user/viewprofilepage/user-id/1913791),

Thank you for the follow-up on this thread. Apologies for neglecting to get back to you before the holiday.

I am getting back in touch with the content experience team to see if they have any more information yet on this. I hope to hear something back next week.

Regards,

Shannon


author: Shannon S
body: Hello everyone,

As an update, we're going to start looking into this again now that the holidays are over. It will be an ongoing discussion and I will keep you all updated as I learn more information.

Thank you all!

Regards,

Shannon


author: Andreas Kleiber
body: Awesome [@Shannon S](/t5/user/viewprofilepage/user-id/510046)

I also want to be able to disable this feature. I will never give Atlassian access to all our GitHub repos with access to "code". Why the hell do you create a GitHub app that needs this big scope? You should probably allow the user to specify what Atlassian is allowed to read from GitHub and what not. Giving access to the code so that a "smart link" feature is enabled that can show some "preview" is really crazy.


author: Shannon S
body: Hello Andreas,

Thank you so much for your excellent feedback! I understand that currently the integration is asking for read access is to present links more meaningfully (this is what makes them "Smart"). However, this isn't ideal for everyone.

I've given this feedback to our development team, and we will look into this further. I'm waiting to hear back this week so I can get some examples of threads that we can follow for more details on this, as well as the original issue, in case the bug I showed you earlier isn't the best place to do that.

I'll keep you updated!

Regards,

Shannon


author: Elvar B??varsson
body: The accesses it is requesting is insane. Does Atlassian want to take the responsibility of securing all of this?

**Atlassian Cloud** by **[atlassian](https://github.com/atlassian)** wants to access your **elvarb** account

**Gists** *Read and write* access

**Personal user data** Profile information (read-only)

**Repositories** Public and *private*


author: Shannon S
body: Hello all!

This issue has now been resolved and once I login to my Github account, I no longer see the error message.

Please confirm that the issue is also resolved for you and if you continue to encounter issues, please let me know.

Regards,

Shannon


author: dave lee
body: I found workaround

First, install http request blocker for chrome

<https://chrome.google.com/webstore/detail/http-request-blocker/eckpjmeijpoipmldfbckahppeonkoeko/related?hl=en>

then, block

[\*://yourcompany.atlassian.net/gateway/api/object-resolver/resolve/batch](http://dummy)

That api tries to get data to replace your orginal link to preview img or something.

It will show you original link, insted of annoying message :)


author: landsman
body: Super annoying thing! Please fix it!


author: Juraj Husar
body: This is super annoying!

I figured out that currently only way how to open link is to right click on link and pick "Copy link" from context menu. Or just be very quick while page is loading and link was not yet transformed.

It's not just Github links problem but also Google Docs - Atlassian wants to see all documents in Google Drive what is crazy.

Please please, remove this functionality.


author: Trond Hindenes
body: Any updates on this? We need a way to completely disable this stupid behavior, not just random workarounds that don't always work. Please prioritize this.


author: Tom Patterson
body: Lets vote in HN to get this more serious attention <https://news.ycombinator.com/item?id=23202723>


author: Trond Hindenes
body: Can confirm that the Ctrl+Z workaround does not work on Linux.

We're about to implement Confluence org-wide and are considering postponing until it is possible to disable these "smart links". Is there a target date for this? As far as I can see from the linked Jira issue, this is not being worked on.

comments: author: John Stephens
body: The easiest way we found to resolve this and a number of other questionable features is...to not use any Atlassian products. For us, it was the 'full access for everyone by default' we couldn't get over.


author: Nishant
body: One workaround that's working for me in JIRA is to press ctrl-Z (cmd-Z in Mac) right after the preview appears. The preview should be removed, leaving a normal text link in it's place.


author: Michael Dockter
body: As Shannon said, add comments to <https://jira.atlassian.com/browse/CONFCLOUD-67922> This simply has to be fixed.


author: alexlewin-fareharbor
body: It seems to me that the simplest solution would be for Atlassian to provide a way to turn off preview links entirely.

My team views preview links as a hindrance. We find them useful 0% of the time.


author: lexxdesign
body: Thank You!!! Its Work!


author: Meir Blachman
body: why do I need to connect to my account for public links? this doesn't make any sense. anyone can view these links as they are public


author: mitchell balsam
body: Does not work on linux. Still get the connect your account messages.

comments: author: Shannon S
body: Hello Mitchell,

This issue is occurring when a link to a Github account is pasted into Confluence without adding it manually as a text link.

It is still an open bug without a resolution at this time, but the workaround is to create a text link instead. You can do this using the steps I let [@J. Pablo Fern?ndez](/t5/user/viewprofilepage/user-id/3530920) know about earlier.

Let me know if you have any trouble with this and I'll be happy to help!

Regards,

Shannon


author: Shannon S
body: Hello there,

Welcome to Atlassian Community. It's nice to meet you.

I've been able to replicate the same issue, and I think it should work after you connect your user. So I've raised a bug for the problem below:

* [CONFCLOUD-67601](https://jira.atlassian.com/browse/CONFCLOUD-67601) *Connect your account to preview links error on Github links*

Click **This affects my team** and you will automatically be added to the list of watchers. You will then receive any updates in the future about this bug.

Thank you for your understanding.

Regards,

Shannon

comments: author: J. Pablo Fern?ndez
body: Thank you Shannon.

How do I connect my user?


author: Shannon S
body: You're welcome!

When you click the link, it does take you to Github where you can connect your user, but it seems that Confluence isn't recognizing that. This is the bug. So for the time being, there's not a way to link it on Confluence so that this error message will go away. In the meantime, you'll need to link it as a text link instead.

1. Write some text on the page.
2. Select the text.
3. Type CMD+K (Mac) or CTRL+K (Windows)
4. Paste the Github link.

That will at least allow you to link to Github without the error.

Let me know if you have any questions.

Regards,

Shannon


Tags: confluence-cloud

jira