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 #183

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dancorne
Copy link

I'd originally opened #131 as a bugfix PR, but then deleted my fork which closed the PR without me realising 😅

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.
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