Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Remove base64 encoding of Secret #59

Merged
merged 3 commits into from
Oct 17, 2020

Conversation

devth
Copy link
Contributor

@devth devth commented Oct 14, 2020

What this PR does / why we need it:

This PR removes base64 encoding. I verified that we do not need to base64 encode:

You do not need to pre-encode it. Simply place your []byte data there

https://kubernetes.slack.com/archives/C0EG7JC6T/p1602695088211400?thread_ts=1602693575.207000&cid=C0EG7JC6T

Also see the docs for Data:
https://github.com/kubernetes/kubernetes/blob/6718c7654d29fafc0ee846247956839e91bce508/staging/src/k8s.io/api/core/v1/types.go#L5626-L5631

Which issue this PR fixes

Fixes #52

Other notes for your reviewer:

Release note:

Remove base64 encoding of Secret

> You do not need to pre-encode it. Simply place your []byte data there

- https://github.com/munnerz

https://kubernetes.slack.com/archives/C0EG7JC6T/p1602695088211400?thread_ts=1602693575.207000&cid=C0EG7JC6T

Also see the docs for `Data`:
https://github.com/kubernetes/kubernetes/blob/6718c7654d29fafc0ee846247956839e91bce508/staging/src/k8s.io/api/core/v1/types.go#L5626-L5631

@mcavoyk
Copy link
Collaborator

mcavoyk commented Oct 16, 2020

Good catch, I would prefer a PR with tests updated.

If needed I should be able to have a PR this weekend with this and tests included.

@devth
Copy link
Contributor Author

devth commented Oct 17, 2020

@mcavoyk I updated the tests ✅

Copy link
Collaborator

@mcavoyk mcavoyk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix

@mcavoyk mcavoyk merged commit 5f74db2 into itscontained:master Oct 17, 2020
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Secret from Vault is double base64 encoded
2 participants