summaryrefslogtreecommitdiff
path: root/doc/examples/cloud-config-chef.txt
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2011-12-22 03:45:48 -0500
committerScott Moser <smoser@ubuntu.com>2011-12-22 03:45:48 -0500
commit7292e8aabf196492d391e73db8bd7346d11b0e63 (patch)
tree088f118fcdc136d1bfd4d26973a121880fc981d0 /doc/examples/cloud-config-chef.txt
parent354854c3a84b586f80da3da7691c3831fa3d7204 (diff)
parent585284eca9e9219c6517eebc02d45edc800cf72d (diff)
downloadvyos-cloud-init-7292e8aabf196492d391e73db8bd7346d11b0e63.tar.gz
vyos-cloud-init-7292e8aabf196492d391e73db8bd7346d11b0e63.zip
fix issue with part-handlers and base64 encoding (LP: #874342)
Previously, * if content came into cloud-init for processing came in via a multipart mime file, and was already base64 encoded, it would get base64 encoded again before being handed to a part-handler. * if it came in via a '#include'd file then it would not be encoded at all. This drops the internal 'parts' array, that was just converted to and then from. Instead, we keep MIME format throughout and keep headers along the way. That means that a message that comes in with 'Content-Transfer-Encoding' set to 'base64' will be decoded before being handed to a part-handler. It also reduces the chance of failure due to content appearing to be an actual email. Previously if content contained colon separated fields, it might be read as headers (email.message_from_string(open("/etc/passwd","r")) would come back as all headers, no payload) The weak point right now is that '#include'd data cannot have mime types associated with it (unless it is a mime formatted content). I had hoped to read user headers and possibly set 'Content-Type' from that. LP: #874342
Diffstat (limited to 'doc/examples/cloud-config-chef.txt')
0 files changed, 0 insertions, 0 deletions