uffizzi
uffizzi copied to clipboard
Credentials are not updated after repeated calls of the CLI's connect
Relates to https://github.com/UffizziCloud/uffizzi_cli/issues/130
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")
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"}
TESTED on prod - OK
CLI + Platform