Skip to content

ci: update Bitbucket client for OAuth 2.0 and SSH changes - #2328

Merged
Camila-B merged 1 commit into
GoogleContainerTools:mainfrom
Camila-B:bitbucket
Nov 3, 2026
Merged

Camila-B merged 1 commit into
GoogleContainerTools:mainfrom
Camila-B:bitbucket

Conversation

@Camila-B

@Camila-B Camila-B commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

Bitbucket's October 2026 OAuth 2.0 enforcement rejects legacy OAuth consumers whose owning workspace is no longer active and enforces single-use rotating refresh tokens on new OAuth clients, which breaks concurrent CI runs sharing a static refresh token:

Switch BitbucketClient to use the client_credentials grant type (removing the bitbucket-refresh-token secret lookup), include the response body in token error messages, and update SyncURL to use ssh.bitbucket.org ahead of the bitbucket.org SSH hostname deprecation (https://developer.atlassian.com/cloud/bitbucket/changelog/#CHANGE-3530).

Bitbucket's October 2026 OAuth 2.0 enforcement rejects legacy OAuth consumers whose owning workspace is no longer active and enforces single-use rotating refresh tokens on new OAuth clients, which breaks concurrent CI runs sharing a static refresh token:
- https://community.developer.atlassian.com/t/oauth-2-0-and-api-authentication-changes-for-bitbucket-cloud/99003
- https://developer.atlassian.com/cloud/bitbucket/changelog/#CHANGE-3488

Switch BitbucketClient to use the client_credentials grant type (removing the bitbucket-refresh-token secret lookup), include the response body in token error messages, and update SyncURL to use ssh.bitbucket.org ahead of the bitbucket.org SSH hostname deprecation (https://developer.atlassian.com/cloud/bitbucket/changelog/#CHANGE-3530).

@tiffanny29631 tiffanny29631 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@google-oss-prow

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: tiffanny29631

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@Camila-B
Camila-B merged commit 407df35 into GoogleContainerTools:main Nov 3, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants