uffizzi icon indicating copy to clipboard operation
uffizzi copied to clipboard

Credentials are not updated after repeated calls of the CLI's connect

Open antlu opened this issue 2 years ago • 3 comments

Relates to https://github.com/UffizziCloud/uffizzi_cli/issues/130

antlu avatar Jul 25 '22 20:07 antlu

How to test: https://github.com/UffizziCloud/uffizzi_cli/issues/130#issuecomment-1195290331

To check in rails console with your email and type of the credentials:

UffizziCore::User.find_by(email: "[email protected]").organizational_account.credentials.find_by(type: "UffizziCore::Credential::DockerHub")

antlu avatar Jul 26 '22 10:07 antlu

TESTED on prod:

CLI connect into APP - OK

# uffizzi connect docker-hub
Username: nealarw
Password:
Successfully connected to Docker Hub.

# uffizzi preview create -o=json compose_1.yml
[✔] Creating containers...
[✔] Deploying preview...
  [✔] webhook-test-app
{"id":"deployment-3","url":"https://deployment-3-default.app.qa-gke.uffizzi.com"}

# uffizzi connect docker-hub --update-credential-if-exists
Updating existing credential.
Username: uffizzitest
Password:
Successfully connected to Docker Hub.

# uffizzi preview update -o=json deployment-3 ccompose_2.yml
[✔] Creating containers...
[✔] Deploying preview...
  [✔] test-private-repo
{"id":"deployment-3","url":"https://deployment-3-default.app.qa-gke.uffizzi.com"}

NealArw avatar Aug 01 '22 14:08 NealArw

TESTED on prod - OK

CLI + Platform

NealArw avatar Aug 02 '22 06:08 NealArw