getsentry / sentry

Developer-first error tracking and performance monitoring
https://sentry.io
Other
39.2k stars 4.2k forks source link

The Jira Marketplace button located at Self Hosted > Settings > Integrations > Jira directs to the Jira app for cloud hosted sentry. #61702

Open edgariscoding opened 11 months ago

edgariscoding commented 11 months ago

Self-Hosted Version

23.11.0

CPU Architecture

x86

Docker Version

20.10

Docker Compose Version

2.6

Steps to Reproduce

Go to Self Hosted > Settings > Integrations > Jira and click on the Jira Marketplace button at the top right.

Expected Result

Expected to be able to set up Jira integration for my self hosted Sentry.

Actual Result

I installed the Jira app and at the end I was taken to sentry.io to log in, which is obviously incorrect.

Event ID

No response

cweiske commented 11 months ago

There is some documentation about this at https://forum.sentry.io/t/how-to-configure-jira-cloud-in-your-on-premise-sentry/6720, but it requires a atlassian developer account which costs money: https://community.developer.atlassian.com/t/sentry-self-hosted-require-a-cloud-developer-account-paid/71217

The whole situation looks strangely broken to me.

edgariscoding commented 11 months ago

@cweiske Yeah even Atlassian's employee is confused as to why Sentry would suggest using an Atlassian dev account for production use of Sentry. Why doesnt the Sentry for Jira app just allow the user to input the url of their Sentry server if they don't use sentry.io? weird.

azaslavsky commented 11 months ago

Are you experiencing the same issue seen here? https://github.com/getsentry/sentry/issues/61062

edgariscoding commented 11 months ago

@azaslavsky No, I'm not. It looks like that user is using Sentrio.io so it makes sense for the Sentry for Jira app to redirect them to sentry.io.

I'm self hosted.

getsantry[bot] commented 11 months ago

Assigning to @getsentry/support for routing ⏲️

getsantry[bot] commented 11 months ago

Routing to @getsentry/product-owners-settings-integrations for triage ⏲️

Dhrumil-Sentry commented 11 months ago

@hubertdeng123 can you please help here

hubertdeng123 commented 11 months ago

I am not familiar with this area of code, so this item will need to be backlogged if it indeed is broken as is.

franzos commented 7 months ago

I just dealt with this issue myself.

  1. Check everything is setup properly https://my-sentry-install.com/extensions/jira/descriptor/
  2. Add URL to Jira (Manage Apps > Add application) like here
  3. Jira will do some post-install stuff, which ultimately fails (I'm now at https://my-project-name.atlassian.net/plugins/servlet/ac/my-sentry-install.com.jira/post-install-sentry in my browser)

Looking at the developer the browser logs, I found something like this:

The loading of “https://my-sentry-install.com/extensions/jira/ui-hook/?xdm_e=https%3A%2F%2Fmy-project.atlassian.net&xdm_c=my-sentry-install.com.jira__post-install-sentry&cp=&xdm_deprecated_addon_key_do_not_use=my-sentry-install.jira&lic=none&cv=1001.0.0-SNAPSHOT&jwt=eyJ0eXAiOiJKV1QiLCJhbG....” in a frame is denied by “X-Frame-Options“ directive set to “deny“.

Looked something like this:

swappy-20240416_083908

Clicking the link related to the denied directive, brought me back to my self-hosted sentry instance, where the integration was now complete.

Screenshot 2024-04-16 at 08-57-43 PantherX

danstreeter commented 5 months ago

I'm having the same issue on 24.6.0.dev0 that I installed today.

Neither installing the Sentry Marketplace app within Jira (which redirects to the cloud hosted Sentry.io instance) or the method that @franzos mentioned above (as my Jira instance has no 'Upload App' anymore as per the docs referenced work.

:(