-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Provide list of injected secrets in environment variables #2088
Comments
In the If the plugin could get a list of secrets then it can load those values from the environment by name and inject them into the in
in
|
@dellintosh I think this change would enable that. I think the following would be a work-around for now: manually creating something like the in .drone.yml: marathon:
image: e20co/drone-marathon
repo: octocat/hello-world
secret_names:
- OCTOCAT_PASSWORD
- DB_URL
- DETONATION_CODE
secrets: [octocat_password, db_url, detonation_code] or even something like
|
@stephansnyt so you know, the latest version of |
@bradrydzewski I would like to tackle this if it's not WIP already. |
The code for this capability is in place, and will be included in 0.9. Variable name is |
Plugin authors would like the ability to see a list of injected secrets. The proposal is that we would provide a
PLUGIN_SECRETS
environment variable that would include a comma-separated list of secrets passed to that plugin.So for the below yaml:
the docker plugin would receive the following environment variables:
cc @stephansnyt @dellintosh
The text was updated successfully, but these errors were encountered: