Byron / google-apis-rs

A binding and CLI generator for all Google APIs
http://byron.github.io/google-apis-rs
Other
1.01k stars 131 forks source link

Secret manager bad decode base64 of data #445

Open omer-shtivi opened 11 months ago

omer-shtivi commented 11 months ago

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

Byron commented 11 months ago

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.