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

Add encoding support for secret values in config package #504

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

dgulli
Copy link

@dgulli dgulli commented Dec 20, 2024

  • Introduced a new field Encoding in the Secret struct to specify the encoding type of the secret value, currently supporting "base64".
  • Added a DecodeContent method to handle decoding of the secret content based on the specified encoding.
  • Done this to make it comparable to the way Hashicorp Vault secrets interact with GKE (base64 encoding)

- Introduced a new field `Encoding` in the `Secret` struct to specify the encoding type of the secret value, currently supporting "base64".
- Added a `DecodeContent` method to handle decoding of the secret content based on the specified encoding.
- Update server to handle base64 encoded secrets during mount
- Add test cases for base64 and non-encoded secret scenarios
- Update example configuration template to demonstrate base64 encoding
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.

1 participant