diff --git a/Dockerfile b/Dockerfile index e212aed..e5df0de 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1 +1 @@ -FROM sentry:9.0-onbuild +FROM sentry:9.1-onbuild diff --git a/sentry.conf.py b/sentry.conf.py index e4e0baf..78d96b1 100644 --- a/sentry.conf.py +++ b/sentry.conf.py @@ -29,6 +29,9 @@ # SENTRY_MAILGUN_API_KEY # SENTRY_SINGLE_ORGANIZATION # SENTRY_SECRET_KEY +# SLACK_CLIENT_ID +# SLACK_CLIENT_SECRET +# SLACK_VERIFICATION_TOKEN # GITHUB_APP_ID # GITHUB_API_SECRET # BITBUCKET_CONSUMER_KEY @@ -279,6 +282,15 @@ else: if SENTRY_OPTIONS['mail.enable-replies']: SENTRY_OPTIONS['mail.reply-hostname'] = env('SENTRY_SMTP_HOSTNAME') or '' +##################### +# SLACK INTEGRATION # +##################### +slack = env('SLACK_CLIENT_ID') and env('SLACK_CLIENT_SECRET') +if slack: + SENTRY_OPTIONS['slack.client-id'] = env('SLACK_CLIENT_ID') + SENTRY_OPTIONS['slack.client-secret'] = env('SLACK_CLIENT_SECRET') + SENTRY_OPTIONS['slack.verification-token'] = env('SLACK_VERIFICATION_TOKEN') or '' + # If this value ever becomes compromised, it's important to regenerate your # SENTRY_SECRET_KEY. Changing this value will result in all current sessions # being invalidated. @@ -303,4 +315,4 @@ if 'GITHUB_APP_ID' in os.environ: if 'BITBUCKET_CONSUMER_KEY' in os.environ: BITBUCKET_CONSUMER_KEY = env('BITBUCKET_CONSUMER_KEY') - BITBUCKET_CONSUMER_SECRET = env('BITBUCKET_CONSUMER_SECRET') + BITBUCKET_CONSUMER_SECRET = env('BITBUCKET_CONSUMER_SECRET') \ No newline at end of file