squarescale / squarescale-cli

CLI for squarescale
0 stars 0 forks source link

Impossible to update project LB certificates as no way to know LB id and it is mandatory #155

Closed obourdon closed 1 year ago

obourdon commented 1 year ago

For instance when updating certificates, user need to run

sqsc lb set -project-name sqsc-public/web -cert ./data/le_tls_chain_certificate.pem -secret-key ./data/le_tls_private_key.pem -id LB-ID

and -id parameter is mandatory but there is no CLI command which enabled retrieving this value

obourdon commented 1 year ago

In fact there is

$ sqsc lb list  -project-uuid 4a63967c-0429-4362-a55b-75bc38f4dc4d 
... done
ID  Active  CertificateBody HTTPS   PublicURL
--  ------  --------------- -----   ---------
10446   ✅   ❌       ❌   http://www.498e38cac5c5ceed.projects.squarescale.io

but as there is only one LB attached to a given project we should not pass this

obourdon commented 1 year ago

Should be fixed by https://github.com/squarescale/squarescale-cli/commit/b613268c301b18a301b8feccf09a7f4db3d2dcce

obourdon commented 1 year ago

Fixed