google / secrets-gradle-plugin

A Gradle plugin for providing your secrets to your Android project.
Apache License 2.0
1.15k stars 102 forks source link

Merging in environment variables over top of properties #58

Open MatthewFallon opened 2 years ago

MatthewFallon commented 2 years ago

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 commented 2 years ago

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

kohenkatz commented 1 year ago

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.