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: 

Simple authentication to make the flux operator work with bitbucket cloud

Gerwin van de Steeg
September 29, 2019

Hi,

I've got a minikube Kubernetes installation (test bed, to be replaced with AWS EKS for demo) that i'm trying to use the Flux operator for to deploy code using GitOps workflows (since pushing many things into kubernetes from many different pipelines is a maintenance, configuration, and credential sharing nightmare).

The flux operator uses a git repo to store its configuration (and how you add new resources to the configs) and as such needs both read and write access to the git repo, which it can only do using simple HTTP Basic or SSH authentication.

I've tried many different ways but cannot seem to grant SSH read and write access to the repository, either via SSH urls or HTTP urls, using creds, without creds, using an App Password, etc.  nothing seems to work, always comes back with Unauthorized or auth failures.

I've tried:

  • https://<email>:<pwd>@bitbucket.org/<org>/<repo>.git
  • https://<username>:<pwd>@bitbucket.org/<org>/<repo>.git
  • https://<email>:<app-pwd>@bitbucket.org/<org>/<repo>.git
  • https://<username>:<app-pwd>@bitbucket.org/<org>/<repo>.git
  • https://<app-pwd>@bitbucket.org/<org>/<repo>.git
  • ssh://git@bitbucket.org/<org>/<repo>.git  (with the SSH key generated by fluxcd uploaded to the repo under <repo> -> Settings -> General -> Access Keys)
  • ssh://<username>@bitbucket.org/<org>/<repo>.git
  • git@bitbucket.org:<org>/<repo>.git
  • <app-pwd>@bitbucket.org:<org>/<repo>.git

References:

How does one give full read/write access using basic SSH to a repo in bitbucket cloud.

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Deleted user
December 19, 2019
TAGS
AUG Leaders

Atlassian Community Events