google-apis-rs icon indicating copy to clipboard operation
google-apis-rs copied to clipboard

Secret manager bad decode base64 of data

Open omer-shtivi opened this issue 2 years ago • 1 comments

When using secrets_versions_access api, the serde tries to deserialize it as urlsafe, for some secrets it doesn't work as expected. error: Invalid byte 43, offset 19. at line 4 column Unfortunately, I can't provide the full output as it contains the secret. Here is the offending line: https://github.com/Byron/google-apis-rs/blob/eee899d1f8d19757d7f8d50738b2070a3ecea361/gen/secretmanager1/src/api.rs#L732-L733

Confirmed from version: 5.0.2+20230114

omer-shtivi avatar Oct 05 '23 07:10 omer-shtivi

There are a lot of reports with problems due to incorrect deserialization of fields, which was recently adjusted to make one other API work. It should be possible to adjust this per API.

In the mean time, it might be possible to use older versions of the crate that don't have the change, or to vendor the code and apply a patch yourself to adjust the serialization scheme.

Byron avatar Oct 05 '23 07:10 Byron