-
Notifications
You must be signed in to change notification settings - Fork 636
Open
Labels
component/pluginsThis issue or PR relates to pluginsThis issue or PR relates to pluginsimprovementtype/feature-requestThis issue is a proposal for something newThis issue is a proposal for something newtype/refactorThis issue is to refactor existing codeThis issue is to refactor existing code
Description
What and why to refactor
Currently, the Bitbucket plugin in Apache DevLake relies on “App passwords” for authentication to Bitbucket Cloud. Bitbucket has announced that on September 9, 2025, creation of App passwords will be discontinued, and on June 9, 2026, all existing App passwords will be deactivated. After these dates, any DevLake connections using App passwords will break and fail to sync Bitbucket data.
To ensure uninterrupted operation and long-term support for Bitbucket integrations, we need to refactor the plugin to support the new Bitbucket API tokens authentication mechanism.
Describe the solution you’d like
- Support API token authentication
- Add a new authentication mode in the Bitbucket connector configuration to accept API tokens in lieu of App passwords.
- Update the DevLake client library to include the
Authorization: Bearer <API_TOKEN>
header when connecting to Bitbucket Cloud.
- Migration path and validation
- Detect at runtime which credential type is provided (App password vs. API token) and validate accordingly.
- Provide clear error messages if an App password is used post-deprecation or if an API token lacks required scopes.
- Documentation updates
- Revise the “Connecting Bitbucket” docs to walk users through generating API tokens, the required scopes (Account:Read, Workspace membership:Read, Repositories:Read, Projects:Read, Pull requests:Read, Issues:Read, Pipelines:Read, Runners:Read), and updating their DevLake blueprint.
- Backward compatibility and defaults
- Preserve existing App password support until June 9, 2026 but display deprecation warnings in logs and the UI.
- Default new installations to require API tokens only.
Related issues
None
Additional context
Bitbucket’s in-product warning when creating App passwords:

dosubot, klesh and gazidizdaroglu
Metadata
Metadata
Assignees
Labels
component/pluginsThis issue or PR relates to pluginsThis issue or PR relates to pluginsimprovementtype/feature-requestThis issue is a proposal for something newThis issue is a proposal for something newtype/refactorThis issue is to refactor existing codeThis issue is to refactor existing code