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

Fix fetching binary secrets #131

Closed
wants to merge 1 commit into from
Closed

Fix fetching binary secrets #131

wants to merge 1 commit into from

Conversation

dancorne
Copy link

@dancorne dancorne commented May 2, 2023

The SDK already decodes from base64 automatically so this was attempting to decode again, which fails with the below error:

{"level":"fatal","msg":"cannot read config: illegal base64 data at input byte 0","time":"2023-05-02T08:04:04Z"} 

It looks like the SAM template uses only string secrets so I'm not sure many people would've hit this branch of logic, but we added one of the secrets as binary and SSOSync stopped working.

Resolves #130

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

The SDK handles decoding from base64 so this code was failing for any
binary secrets because it was receiving the decoded string already.
@dancorne dancorne closed this by deleting the head repository Oct 30, 2023
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.

SSOSync fails to get binary secrets
1 participant