-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't setup github integration on a sentry onpremise installation #12670
Comments
The github integration requires the creation of a github-app, and a number of configuration options to be set. The options that need to be set can be found here and can be setup in you sentry.yaml file. |
@markstory thanks for pointing me in the right direction. Probably there's a doc missing explaining how to do that. |
@markstory What urls are needed for auth and webhook? Edit: |
The auth callback is |
Any news here? |
@arizz96 What kind of news are you looking for? |
@markstory I've encountered this issue and I'm trying to solve it. Can you please help me on that? |
@arizz96 Here is what I did to set mine up:
github.apps-install-url: ${urlPrefix}/extensions/github/setup/
github.integration-app-id: ${githubAppId}
github.integration-hook-secret: ${webhookSecret}
github.integration-private-key: "${privateKey}"
github-app.id: ${githubAppId}
github-app.name: ${githubAppName}
github-app.webhook-secret: ${webhookSecret}
github-app.private-key: "${privateKey}"
github-app.client-id: ${githubAppClientId}
github-app.client-secret: ${githubAppClientSecret}
PS: This should be written down somewhere not in a github issue |
If anyone has the time on-premise docs can be found here |
@markstory I'll work on it, but should I include a full guide or just list the different configuration options? |
Some context on how to get the integration configured is probably a good start. |
@dotconnor guide works for me. Thanks!
|
@chinskiy I included removing the newlines with \n above and in the docs here: getsentry/sentry-docs@529d793#diff-55a17b3c7313e07c55f9777ef6553e1eR35 |
I'm following the setup guide described in the issue, I just have one question: What permissions should I give to the app? It's not described anywhere |
Also, I don't know if that is elated to my permissions question, but after installing the integration, when I try to add a repository, nothing happens. |
If you already have the official sentry app installed, you can look there for the permissions.
… On Apr 20, 2019, at 12:25 PM, Thiago Bellini Ribeiro ***@***.***> wrote:
Also, I don't know if that is elated to my permissions question, but after installing the integration, when I try to add a repository, nothing happens.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Regarding to this, this error is appearing in my I think I have given all the required permissions to the app as the repositories appear just fine. The issue happen when I click to add one of them |
@bellini666 You need the following permissions:
I subscribed to all events After you update the permissions and even if you don't, remove your github integration and then re-add it, you should be able to add repos then |
@dotconnor thanks, that solved my issue :) Probably those permissions should also be added to the documentation IMO |
Closing as the documentation guide should be live soon. Thanks everyone who helped out with this 👏 |
With the help of this guide I was able to get the GitHub integration working on my on-premises Sentry installation. Thank you! But I cannot figure out how to turn on SSO via GitHub. Judging from the integration documentation this should be possible? I have created a custom Sentry Docker image with my
I can see "GitHub" listed as SSO provider in "Oorganization Settings" > "Auth", but clicking on "configure" results in a 404 at GitHub. This is the URL:
When I remove the quotes around
I believe that I am very close at solving it and I bet it is some stupic configuration mistake that I have made. Any help would be greatly appreciated. |
I have managed to get one step further by changing the value of "User authorization callback URL" to Now my Sentry installation wants me to select an Organization from a drop down list, which is empty. 😕 |
Okay, I got it working, but the last piece of the puzzle is still unclear. There were two changes that might be responsible:
|
The doc claims that
When no webhook secret is configured in GH, then the webhook requests will not include the |
So you're saying in reality it was the missing webhook and the documentation is (slightly) wrong? Is there an issue for that, yet? |
For anyone else struggling, make sure you have both of:
set to the correct private key. I found it easiest to pass an environment variable with the private key containing literal newlines (unescaped) base64 encoded, then use:
and ensure there is no reference to the private key in |
@inversion It didn't work for me! SENTRY_OPTIONS['github.integration-private-key'] = base64.b64decode(env('SENTRY_GITHUB_APP_PRIVATE_KEY'))
SENTRY_OPTIONS['github-app.private-key'] = base64.b64decode(env('SENTRY_GITHUB_APP_PRIVATE_KEY'))
print(SENTRY_OPTIONS['github.integration-private-key'])
print('value of '+SENTRY_OPTIONS['github-app.private-key']) But with this i kept getting the same exception that it Could not deserialize key data. |
@ahmedspiir it should look exactly like this (randomly generated) key, without leading blank lines or trailing newlines:
|
Important Details
How are you running Sentry?
Description
Tried to setup github integration but nothing happened.
Steps to Reproduce
Install
button. A new window will be opened inside the github marketplaceWhat you expected to happen
The repository should be linked
Possible Solution
I think it actually linked to the sentry.io installation, which created an account for me. That's not what I want.
The text was updated successfully, but these errors were encountered: