As part of our efforts to continuously enhance Bitbucket Cloud’s security, we’re changing response codes for some requests to private repositories. Users who do not have access to a private repository will receive 404 (not found) response codes instead of 403 (forbidden) response codes to mask the existence of a private repository at a given URL path.
Rolling out these changes will break previous versions of Go due to the fact that the go
command relies on a 403 response to fetch repositories hosted on Bitbucket Cloud. This means that users who use older versions of Go with private repositories, for example CI/CD builds with Go dependencies, will run into 404 errors.
Changes were recently made to GoLang’s source code here to unblock Bitbucket’s rollout of the security patch. To ensure that you will not run into any issues, update GoLang to the latest version.
Ensure you are on a supported version of GoLang: 1.18, 1.17, or 1.16.
If you are using 1.17 or 1.16, ensure you are on the latest patch (1.17.7 or 1.16.14)
Update: We are rolling this out as of June 1st 2022, following the email notification we sent out to affected users on May 9th 2022.
Luke Choe
26 comments