The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Bitbucket runners autoscaler doesn't accept API Token authentication

Mert Durukan
August 6, 2025

Hi,

We decided to move our Bitbucket runners to our Kubernetes (EKS 1.32) clusters.

I'm using the official guide provided: https://support.atlassian.com/bitbucket-cloud/docs/autoscaler-for-runners-on-kubernetes/

When configuring my Kustomization files, i've decided to use API Token option since the app passwords are being deprecated soon.

No matter what i've tried, my containers always fail to authenticate with following error:

│ ✖ At least one authorization method of (BITBUCKET_USERNAME, BITBUCKET_APP_PASSWORD) or (BITBUCKET_OAUTH_CLIENT_ID, BITBUCKET_OAUTH_CLIENT_SECRET) required. │
│ stream closed EOF for bitbucket-runner-control-plane/runner-controller-564d6979cd-779nc (runner-controller)

 

Even though in the documentation and within the kustomization.yaml file it clearly indicated that Option 2 as API token is supported and even encouraged (here's the code link: https://bitbucket.org/bitbucketpipelines/runners-autoscaler/src/8eb4848d0a3eb3f422cdce2854b304da3c78d2bf/kustomize/values/kustomization.yaml#lines-34)

 

I feel like the official runners-autoscaler project is not up to date and/or guidance documents are wrong. What am i missing or what can i do alternatively if i can't use API token?

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Answer accepted
ext_jan
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 8, 2025

Had the same problem.
⚠️ The image tag (3.7.0) is not up to date.

Try the latest one: 🪧 3.9.0

Mert Durukan
August 12, 2025

Thanks you so much for the tip mate!!! it did indeed solve the problem.

Like ext_jan likes this
Higor Oliveira
September 18, 2025

Hi @Mert Durukan

I'm having a issue with that as well, but my problem is with 401. https://community.atlassian.com/forums/Bitbucket-questions/Bitbucket-Autoscaler-Runners-on-Kubernetes-401-Unauthorized/qaq-p/3112182#M120795

Did you follow any specific step to paste the api tokens or just use the echo | base64 command as the doc says?

Mert Durukan
September 18, 2025

Hi @Higor Oliveira 

Based on your other post and c/p-ed kustomization.yaml, i suggest to double check your token scope, and if the base64 conversion is correctly done. Kustomization file you're using is the default one from Atlassian so not much can be done there and it looked fine to me.

I'm using Hashicorp Vault to store my secrets and inject them into my Runners, so the procedure is a bit different on my side.

Feel free to send me some more details and maybe i can help

Like Higor Oliveira likes this
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events