You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using bitbucket server (no cloud edition) version 5.6.2.
The atlantis server is started with the following parameter:
"--atlantis-url=http://atlantis.local:4141",
"--bitbucket-base-url=https://bitbucket.local",
"--bitbucket-webhook-secret='b8db1d572aa87921edddb772fda4c8ac54e9de80'",
"--bitbucket-user=phl",
"--bitbucket-token=Nzc0OTkxNTU1REMyOg8BHeT6dFJPKHLBvfFmJrQZzZxR",
"--repo-whitelist=*"
When i test the webhook i got this response (body):
request did not pass validation: missing signature
The request headers sent by the webhook of my bitbucket currently installed is:
X-Request-Id: d872ad25-24fe-4278-a73a-2a10ed6b653d
X-Event-Key: diagnostics:ping
In fact it's the webhook "test-connection" feature that don't send any "X-Hub-Signature" even if we set a webhooksecret.
We should ensure the event "diagnostics:ping" doesn't run any ValidateSignature.
As far as I tested (PR created/modified) i confirm the x-hub-signature is present with all other events yes. I also did a quick test with the latest version of bitbucket server (6.0.0). Here's the headers sent in the request of the test (With webhook secret set)
X-Event-Key: diagnostics:ping
X-Request-Id: 7923e92c-08fa-4ef7-90d0-b1ea9e69f013
Content-Type: application/json
I'm using bitbucket server (no cloud edition) version 5.6.2.
The atlantis server is started with the following parameter:
"--atlantis-url=http://atlantis.local:4141",
"--bitbucket-base-url=https://bitbucket.local",
"--bitbucket-webhook-secret='b8db1d572aa87921edddb772fda4c8ac54e9de80'",
"--bitbucket-user=phl",
"--bitbucket-token=Nzc0OTkxNTU1REMyOg8BHeT6dFJPKHLBvfFmJrQZzZxR",
"--repo-whitelist=*"
When i test the webhook i got this response (body):
request did not pass validation: missing signature
The request headers sent by the webhook of my bitbucket currently installed is:
X-Request-Id: d872ad25-24fe-4278-a73a-2a10ed6b653d
X-Event-Key: diagnostics:ping
As we can see the "X-Hub-Signature" is missing. And this is used for the validation here:
https://github.com/runatlantis/atlantis/blob/v0.4.15/server/events_controller.go#L173
The text was updated successfully, but these errors were encountered: