coreos / ignition

First boot installer and configuration tool
https://coreos.github.io/ignition/
Apache License 2.0
807 stars 243 forks source link

akamai: fix base64 decoding #1893

Closed tormath1 closed 6 days ago

tormath1 commented 1 week ago

trailing \x00 character was making Ignition to fail parsing the config. It is not always the case, that is why we did not catch it earlier: when there is no padding in the base64 payload, everything was working.

https://pkg.go.dev/encoding/base64#Encoding.Decode


cc @nesv

image

(sorry for the screenshot but it's not easy to copy-paste logs from emergency shell)

EDIT: Successfully tested on Flatcar test build with previously failing configuration.

prestist commented 6 days ago

Thank you @tormath1, Great work!