Skip to content

Conversation

@imrivera
Copy link

@imrivera imrivera commented Sep 17, 2024

There was a problem when an Azure key contained a null byte, the result when decoding base64 was trimmed and part of the key was lost.

Also if the decoded binary key started or ended with white space, some bytes would be discarded.

This PR fixes both problems

"my-storage-account",
"zUfvsKXc6+2RMJCwvnElnG/"
"Kk7wxQ8V4TPXIuZ53qFwJNtpLUEjYdBe9iGTkMgwUGFHVfFgn2qkgoqDP/b3OAg==",
"zUfvsKXcAO2RMJCwvnElnG/"
Copy link
Author

Choose a reason for hiding this comment

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

Now this key contains a NULL byte when decoded, and it ends in \r to check that the request signing is correctly done

@imrivera imrivera force-pushed the fix_azure_key_signing_in_xbcloud branch from d2f7dc8 to cd7678c Compare September 17, 2024 14:34
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.

1 participant