Comment 3 for bug 1884071

Revision history for this message
Bryan Carmichael (bcxxbc) wrote :

Hey Scott,

I don't see how it'd be possible to submit gzip binary data with hetzner cloud as user-data since the user-data field expects a string on hetzner cloud. This means the only way to provide user-data is with base64encoding.

I assumed since other providers with cloud-init allow base64 this would be the way it would work here as well. Cloud-init is a singular separately maintained project included with the OS, so I'd expect the base64 handling be a standard feature handled from within the application itself not something the cloud provider would maintain or add on their own.

Even the terraform modules for templating cloud init hard depend base64 encoding on enabling gzip compression:

Error: base64_encode is mandatory when gzip is enabled

  on main.tf line 1, in data "cloudinit_config" "user_data":
   1: data "cloudinit_config" "user_data" {

I tried changing my mime type to use text/cloud-config-archive instead of text/cloud-config with the same result.