← Back to team overview

cloud-init-dev team mailing list archive

Re: [Merge] lp:~kotcauer/cloud-init/cloud-init into lp:cloud-init

 

Hi,
  The idea of supporting user-data in base64 is fine, and common across many other datasources
  However, you can't just attempt to decode user-data as base64 and if that works assume the user wanted you to.
  There could be people providing base64 code to cloud-init that they intended to be ignored by cloud-init.
  This would change that behavior.

  Instead, you should make the user need to indicate that this is base64 somehow.
  I think you can set other variables in opennebula, right?  The solution in other datasources is to just have:
USER_DATA='aGkgbW9tCg=='
USER_DATA_ENCODING="base64"

  where if not found, USER_DATA_ENCODING defaults to None.

-- 
https://code.launchpad.net/~kotcauer/cloud-init/cloud-init/+merge/211341
Your team cloud init development team is requested to review the proposed merge of lp:~kotcauer/cloud-init/cloud-init into lp:cloud-init.


References