Update for Bitbucket API tokens.

Review Request #14809 — Created Feb. 10, 2026 and submitted

Information

Review Board
release-7.1.x

Reviewers

Bitbucket is shifting away from app passwords towards the new Atlassian
API tokens. It's already impossible to create new passwords, and they
will stop working in June of this year.

API tokens work very similar to app passwords (both are fundamentally
just HTTP Basic auth), but there are two changes necessary:

  • Usernames are now e-mail addresses (where before they were explicitly
    not e-mail addresses).
  • API tokens only work with the https://api.bitbucket.org/ endpoint, and
    not the https://bitbucket.org/api/ endpoint.

This change fixes up our form and API URL to handle this. Docs have been
updated, along with a big notice at the top.

I've also snuck in a fix for the GitHub PAT instructions to open the
link in a new tab.

  • Added a new Bitbucket account using API tokens and verified that API
    calls worked as expected.
  • Ran unit tests.
  • Built the user manual.
Summary ID
Update for Bitbucket API tokens.
Bitbucket is shifting away from app passwords towards the new Atlassian API tokens. It's already impossible to create new passwords, and they will stop working in June of this year. API tokens work very similar to app passwords (both are fundamentally just HTTP Basic auth), but there are two changes necessary: - Usernames are now e-mail addresses (where before they were explicitly *not* e-mail addresses). - API tokens only work with the https://api.bitbucket.org/ endpoint, and not the https://bitbucket.org/api/ endpoint. This change fixes up our form and API URL to handle this. Docs have been updated, along with a big notice at the top. I've also snuck in a fix for the GitHub PAT instructions to open the link in a new tab. Testing Done: - Added a new Bitbucket account using API tokens and verified that API calls worked as expected. - Ran unit tests. - Built the user manual.
wtlxzsuwpqvyvnupkxlrpxlvrnykouws
Description From Last Updated

How does this affect existing setups? We don't want to immediately break users after upgrade.

chipx86chipx86

We should mention which releases support this.

chipx86chipx86

Instead of saying all of this information directly in the help text, should we link to the docs above instead? …

maubinmaubin
maubin
  1. 
      
  2. reviewboard/hostingsvcs/bitbucket.py (Diff revision 1)
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
    Show all issues

    Instead of saying all of this information directly in the help text, should we link to the docs above instead? That way if anything ever changes, like the URLs for example, then we can deploy new docs and this help text will still be correct. But if we put the info here directly, the help text will be wrong until we do the next Review Board release.

    1. We can't be prescient here--I think we're probably okay for a while, but theoretical future changes on Bitbucket's end may affect only docs or may affect our implementation (like this one did). Given that it's probably equally likely either way, I'd prefer to let people click a single link here to get where they need to go, instead of needing to click through to our docs and then read more before clicking other links. The likelihood of people actually reading anything is already low, and reading multiple things is almost zero.

    2. Good point.

  3. 
      
chipx86
  1. 
      
  2. Show all issues

    How does this affect existing setups? We don't want to immediately break users after upgrade.

    1. Existing repos with app passwords should continue to work until June.

  3. Show all issues

    We should mention which releases support this.

  4. 
      
david
david
maubin
  1. 
      
  2. 
      
david
Review request changed
Status:
Completed
Change Summary:
Pushed to release-7.1.x (2cf1f9c)