Skip to content

fix(gitlab): Fix AppPlatformEvents hitting Gitlab webhook endpoint#39333

Merged
armenzg merged 1 commit into
masterfrom
armenzg/fix/HTTP_X_GITLAB_EVENT
Sep 27, 2022
Merged

fix(gitlab): Fix AppPlatformEvents hitting Gitlab webhook endpoint#39333
armenzg merged 1 commit into
masterfrom
armenzg/fix/HTTP_X_GITLAB_EVENT

Conversation

@armenzg

@armenzg armenzg commented Sep 27, 2022

Copy link
Copy Markdown
Member

It seems that AppPlatformEvents hits the Gitlab webhook [1] and it does not contain the Gitlab headers. This regression was introduced via #39129.

Fixes SENTRY-W3G

[1]

def headers(self):
request_uuid = uuid4().hex
return {
"Content-Type": "application/json",
"Request-ID": request_uuid,
"Sentry-Hook-Resource": self.resource,
"Sentry-Hook-Timestamp": str(int(time())),
"Sentry-Hook-Signature": self.install.sentry_app.build_signature(self.body),
}

@armenzg armenzg self-assigned this Sep 27, 2022
@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Sep 27, 2022
@armenzg armenzg requested a review from a team September 27, 2022 14:27
@armenzg armenzg marked this pull request as ready for review September 27, 2022 14:27
@armenzg armenzg requested a review from a team September 27, 2022 14:27
@armenzg armenzg enabled auto-merge (squash) September 27, 2022 14:28
@armenzg armenzg merged commit 22a0c41 into master Sep 27, 2022
@armenzg armenzg deleted the armenzg/fix/HTTP_X_GITLAB_EVENT branch September 27, 2022 14:55
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 13, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants