Has anyone successfully deployed Bitbucket Auto Runners on K8s using API tokens? Any advice on troubleshooting this 401 error would be greatly appreciated – especially if it's a common gotcha with token scopes or endpoint compatibility. It works with app password, however app password will be deprecated. The error:
Unauthorized. Check your bitbucket credentials. Status code 401: {"type": "error", "error": { "message": "Token is invalid, expired, or not supported for this endpoint." }}
I'm using this links:
base64 encode: https://support.atlassian.com/bitbucket-cloud/docs/autoscaler-for-runners-on-kubernetes/
I'm following this link: https://community.atlassian.com/forums/Bitbucket-questions/Bitbucket-runners-autoscaler-doesn-t-accept-API-Token/qaq-p/3084658
My kustomization.yaml:
I created this api key (the last accessed field was changed when I tried to run the autoscaler):
As suggested here https://community.atlassian.com/forums/Bitbucket-questions/Bitbucket-runners-autoscaler-doesn-t-accept-API-Token/qaq-p/3084658?utm_source=atlcomm&utm_medium=email&utm_campaign=mentions_reply&utm_content=topic, creating an API token and select the scopes admin and runner solved the problem, I was using the plain Create API Token option.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.