Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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

0 votes
Deleted user December 19, 2019

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events