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

Secret manager bad decode base64 of data #445

Open
omer-shtivi opened this issue Oct 5, 2023 · 1 comment
Open

Secret manager bad decode base64 of data #445

omer-shtivi opened this issue Oct 5, 2023 · 1 comment

Comments

@omer-shtivi
Copy link

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:

#[serde_as(as = "Option<::client::serde::urlsafe_base64::Wrapper>")]
pub data: Option<Vec<u8>>,

Confirmed from version: 5.0.2+20230114

@Byron
Copy link
Owner

Byron commented Oct 5, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants