open-balena-api icon indicating copy to clipboard operation
open-balena-api copied to clipboard

API uses deprecated host envvars

Open hedss opened this issue 5 years ago • 2 comments

Most HOST variables have changed in name in the closed API, (eg. VPN_HOST is now BALENA_VPN_HOST, etc.). We should alter the open API to follow these changes.

hedss avatar Jan 10 '19 16:01 hedss

@hedss did similar changes occur to VPN and registry?

BTW, to handle this, we'll need to:

  1. update open-balena to pass both old and new env vars
  2. update open-balena-api to use the new env vars
  3. update open-balena to remove old env vars

dfunckt avatar Jan 10 '19 16:01 dfunckt

@dfunckt Yes, if you look at https://github.com/balena-io/open-balena-base/pull/62/files you'll see the list of altered HOST names. Each component was changed to rename them from RESIN_ to BALENA_ at the time.

hedss avatar Jan 11 '19 10:01 hedss