google/secrets-gradle-plugin

Merging in environment variables over top of properties

MatthewFallon opened this issue · 2 comments

New feature request I've noticed. Instead of a defaults file with safe values for CI/CD systems, I would much more often like to be able to inject secrets such as API Keys through environment variables.

Parsing the environment for prefixed environment variables (something like SECRETS_NAME_OF_SECRET) to merge over top of the defaults and merging all of the mappings sensibly before injecting would be insanely helpful for CI/CD systems that also handle deployment to beta testing and the like.

Should add to this that I'm also happy to work on the modification myself if it is to be added 👍

I'm working on something similar to this idea now, probably as a mashup between some ideas from this project and some from https://github.com/uzzu/dotenv-gradle, but it's a hobby project for now, so I don't really have any target for completion yet.