# Drone 0.8: Using secrets in steps not supporting reading from env vars

**URL:** <https://drone.discourse.group/t/drone-0-8-using-secrets-in-steps-not-supporting-reading-from-env-vars/8895>\
**Category:** Drone Support\
**Created:** [April 16, 2018, 5:30pm UTC](https://drone.discourse.group/t/drone-0-8-using-secrets-in-steps-not-supporting-reading-from-env-vars/8895 "2018-04-16T17:30:47Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![bradrydzewski](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/bradrydzewski/32/3513_2.png) [@bradrydzewski](https://drone.discourse.group/u/bradrydzewski)\
**Post date:** [April 16, 2018, 5:47pm UTC](https://drone.discourse.group/t/drone-0-8-using-secrets-in-steps-not-supporting-reading-from-env-vars/8895/4 "2018-04-16T17:47:36Z")

</div>

> [@On another topic](https://drone.discourse.group/t/2102/2):
>
> However, we still have situations where our plugin attributes can be arbitrary Dict like this:

I describe a pattern for handling this use case here:  
[http://discuss.harness.io/t/how-can-i-pass-secrets-as-build-args-to-plugins-docker-drone-0-8/824/2](http://discuss.harness.io/t/how-can-i-pass-secrets-as-build-args-to-plugins-docker-drone-0-8/824/2)

Note that we use this pattern with the docker plugin, where we need to provide the plugin with an arbitrary dictionary of parameters for build-args, which in some cases may need to be sourced from secrets or the environment.

So you might instead do something like this:

```diff
some-deploy-step:
  image: custom-deploy-plugin
  custom_params:
    param1: something
    param2: something
- param3: $$PASSWORD_STORED_AS_DRONE_SECRET
+ custom_params_from_env: [PASSWORD_STORED_AS_DRONE_SECRET]

```

or this

```diff
some-deploy-step:
  image: custom-deploy-plugin
  custom_params:
    param1: something
    param2: something
- param3: $$PASSWORD_STORED_AS_DRONE_SECRET
+ custom_params_from_env: 
      param3: PASSWORD_STORED_AS_DRONE_SECRET

```

---

_[View the full topic](https://drone.discourse.group/t/drone-0-8-using-secrets-in-steps-not-supporting-reading-from-env-vars/8895)._
