Skip to content

feat(gitops): support OAuth bearer token authentication for Bitbucket…#6966

Open
soolame wants to merge 1 commit into
devtron-labs:mainfrom
soolame:enhancement/enable-gitops-api-token
Open

feat(gitops): support OAuth bearer token authentication for Bitbucket…#6966
soolame wants to merge 1 commit into
devtron-labs:mainfrom
soolame:enhancement/enable-gitops-api-token

Conversation

@soolame

@soolame soolame commented Jun 11, 2026

Copy link
Copy Markdown

… Cloud

Allows authenticating the Bitbucket REST API client via an OAuth Bearer token when the configured username is empty or "x-token-auth". This enables the use of Bitbucket Repository/Project Access Tokens instead of only App Passwords.

  • Updates NewGitBitbucketClient to conditionally instantiate the client using NewOAuthbearerToken or NewBasicAuth depending on the username.

Description

Fixes #

Checklist:

  • The title of the PR states what changed and the related issues number (used for the release note).
  • Does this PR requires documentation updates?
  • I've updated documentation as required by this PR.
  • I have performed a self-review of my own code.
  • I have commented my code, particularly in hard-to-understand areas.
  • I have tested it for all user roles.
  • I have added all the required unit/api test cases.

Does this PR introduce a user-facing change?


… Cloud

Allows authenticating the Bitbucket REST API client via an OAuth Bearer token
when the configured username is empty or "x-token-auth". This enables the
use of Bitbucket Repository/Project Access Tokens instead of only App Passwords.

- Updates NewGitBitbucketClient to conditionally instantiate the client
  using NewOAuthbearerToken or NewBasicAuth depending on the username.
@bito-code-review

Copy link
Copy Markdown

Bito Review Skipped - Source Branch Not Found

Bito didn't review this change because the pull request is no longer valid. It may have been merged, or the source/target branch may no longer exist.

@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant