Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

akamai: fix base64 decoding #1893

Merged
merged 1 commit into from
Jun 26, 2024
Merged

akamai: fix base64 decoding #1893

merged 1 commit into from
Jun 26, 2024

Conversation

tormath1
Copy link
Contributor

@tormath1 tormath1 commented Jun 24, 2024

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.

Copy link
Collaborator

@prestist prestist left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for working on this!
Everything LGTM minus a super small nit!

docs/release-notes.md Outdated Show resolved Hide resolved
internal/providers/akamai/akamai.go Show resolved Hide resolved
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

Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
@prestist prestist merged commit 7387789 into coreos:main Jun 26, 2024
9 checks passed
@prestist
Copy link
Collaborator

Thank you @tormath1, Great work!

@tormath1 tormath1 deleted the tormath1/akamai branch June 26, 2024 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants