Authentication required / 403 No valid crumb ... #210
Unanswered
ololologist
asked this question in
Q&A
Replies: 2 comments
-
read https://confluence.atlassian.com/bitbucketserver/manage-webhooks-938025878.html already? what is the output of your payload check in BB? |
Beta Was this translation helpful? Give feedback.
0 replies
-
I am also hitting the same issue, Could you please solve this. I guess the issue is the URL is not working, I have created the hook http:///myhook/ when I try to enter the url on the browsert it's reporting not found `
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
we are trying to trigger our SeedJob when a PR is merged to the master branch in our BitBucket repo. Here is what has been done.
Jenkins
Our Jenkins is running inside a private subnet in AWS VPC on Ubuntu Server 20.04.2 LTS, so we have tried to follow these instruction and apply smee.io delivery service.
We have installed smee-client and we use the following line to bind it with Jenkins webhook endpoint
# smee --url https://smee.io/%smee_string% --target http://127.0.0.1:8080/bitbucket-hook/
Forwarding https://smee.io/%smee_string% to http://127.0.0.1:8080/bitbucket-hook/
Connected https://smee.io/%smee_string%
BitBucket
We have created a webhook in the BB repo
BitBucket -> Repository -> Repository Settings -> Webhooks -> Add webhook
and we can see that the payloads can actually reach smee.io
Anyway when a BB event payload I can see following errors in the log
Error: cannot POST /bitbucket-hook/ (403)
...
Error 403 No valid crumb was included in the request
full log
After adding
-Dhudson.security.csrf.GlobalCrumbIssuerConfiguration.DISABLE_CSRF_PROTECTION=true
to/etc/default/jenkins
and restarting Jenkins the error log shows the followingError: cannot POST /bitbucket-hook/ (403)
...
Authentication required
full log
Could anyone please kindly guide me to any solution possible?
Beta Was this translation helpful? Give feedback.
All reactions