fermyon / cloud-plugin

A Spin plugin for the Spin CLI for managing Spin apps in Fermyon Cloud.
https://developer.fermyon.com/cloud/
Apache License 2.0
8 stars 13 forks source link

spin login with an http:// URL should enable --insecure #165

Open bacongobbler opened 11 months ago

bacongobbler commented 11 months ago

When logging into a Fermyon Cloud instance that uses HTTP, spin deploy should be reaching out to http://registry..., not https://registry....

><> spin login --url http://cloud.local.fermyon.link

Copy your one-time code:

Zbrbrb0g

...and open the authorization page in your browser:

http://cloud.local.fermyon.link/device-authorization

Waiting for device authorization...
Device authorized!
><> spin deploy
Uploading spin-key-value version 1.0.0 to Fermyon Cloud...
Error: cannot push Spin application

Caused by:
    0: error sending request for url (https://registry.cloud.local.fermyon.link/v2/spin-key-value/blobs/uploads/): error trying to connect: tcp connect error: Connection refused (os error 111)
    1: error trying to connect: tcp connect error: Connection refused (os error 111)
    2: tcp connect error: Connection refused (os error 111)
    3: Connection refused (os error 111)

Learn more at https://developer.fermyon.com/cloud/faq