secrets-gradle-plugin icon indicating copy to clipboard operation
secrets-gradle-plugin copied to clipboard

Merging in environment variables over top of properties

Open MatthewFallon opened this issue 3 years ago • 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.

MatthewFallon avatar Jul 17 '22 22:07 MatthewFallon

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

MatthewFallon avatar Jul 17 '22 23:07 MatthewFallon

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.

kohenkatz avatar Nov 11 '22 03:11 kohenkatz