bitbucket-push-and-pull-request-plugin icon indicating copy to clipboard operation
bitbucket-push-and-pull-request-plugin copied to clipboard

Build Status not propagating to Bitbucket On Prem

Open cyberemissary opened this issue 1 year ago • 1 comments

As of the security fix in 2.8.4 the build status notifications stopped propagating to our bitbucket server.

It might be something to do with clone links, our repo is configured to only allow ssh clone, so this code fragment seems to not set the base url as it is restricted by the http check image

Relevant part of hook payload:

 "links": {
          "clone": [
            {
              "href": "ssh://[email protected]/path/to/repo.git",
              "name": "ssh"
            }
          ],
          "self": [
            {
              "href": "https://ourhost.com/users/user/repos/reponame/browse"
            }
          ]
        }

cyberemissary avatar May 14 '24 19:05 cyberemissary

I think, I could create a PR for this but need to know if we should fallback to the "self" link or try to build a base url from the SSH one. If SSH one should we force it to be SSL?

cyberemissary avatar May 14 '24 19:05 cyberemissary

I would love to dig into this issue further

julioc-p avatar Aug 16 '24 14:08 julioc-p

A new field will be added to specify the url to propagate. The self link cannot be used since it is a security risk.

julioc-p avatar Aug 23 '24 08:08 julioc-p