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

Perform a base64 decode on secret before saving to disk #113

Open
hongkongkiwi opened this issue May 6, 2024 · 2 comments
Open

Perform a base64 decode on secret before saving to disk #113

hongkongkiwi opened this issue May 6, 2024 · 2 comments

Comments

@hongkongkiwi
Copy link

Suggestion for a really useful feature that would make my life easier.

I have a DER encoded certificate which is encoded as base64 that I'm storing in the cloud.

It would be really great to have a flag which gets novops to run a base64 decode on the object after downloading it to get it back to a binary file (obviously this is only really appropriate when the secret is put into a file, not an environment variable).

This allows binary files to be used as secrets in various cases. I imagine this is also useful when dealing with encrypted blobs when the end device handles decryption.

@PierreBeucher
Copy link
Owner

That's an interesting use case ! To make this more generic, how about a kind of "post-processing" so it can be base64 decode or something else, such as:

environments:
  dev:
    variables:
      - name: MY_B64_VAR
        value: ZGVjb2RlLW1lCg== 
        postprocess:
          base64decode: 

I'm not sure about the postprocess, but an option like this on the item itself seems a possible way of implementing this.

@hongkongkiwi
Copy link
Author

Yes, postprocess could work here. I guess having an option for other postprocess could be good, that could lead into having local decryption too easy enough as it's just another postprocessor.

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

No branches or pull requests

2 participants