weizhouapache commented on PR #8791: URL: https://github.com/apache/cloudstack/pull/8791#issuecomment-1998055575
> @weizhouapache sorry I didn't quite understand why the gzip in between. refer to https://cloudinit.readthedocs.io/en/latest/explanation/format.html#gzip-compressed-content Gzip compressed content Content found to be gzip compressed will be uncompressed. The uncompressed data will then be used as if it were not compressed. This is typically useful because user data is limited to ~16384 [[1]](https://cloudinit.readthedocs.io/en/latest/explanation/format.html#id4) bytes. > Because without it i.e., `echo "Apache CloudStack" | base64 -w0` if this is provided as input to the userdata param, we don't see the issue. That said, don't mind adding the checkbox. But I see an issue with decoding it when viewing it in the details view... since its is a gzip encoded string, it attempts to decode it and it would appear as: > >  I think it is OK as the userdata is binary. moreover, if an user input a base64-encoded string on UI, we do not know if the user wants the string to be the userdata, or decode it as userdata, it would be good to ask the user to tell us. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
