# Add support for entering empty secret values

**URL:** <https://discuss.bitrise.io/t/add-support-for-entering-empty-secret-values/17880>\
**Category:** Website\
**Created:** [September 5, 2021, 11:37am UTC](https://discuss.bitrise.io/t/add-support-for-entering-empty-secret-values/17880 "2021-09-05T11:37:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![koral](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/koral/32/357_2.png) [@koral](https://discuss.bitrise.io/u/koral)\
**Post date:** [September 5, 2021, 11:37am UTC](https://discuss.bitrise.io/t/add-support-for-entering-empty-secret-values/17880/1 "2021-09-05T11:37:57Z")

</div>

## Description of the feature request

Secrets cannot be saved on [bitrise.io](http://bitrise.io) when a value is empty.  
As a workaround we can only enable value expansion and use non-existent environment variable as an input.

## Use case / for what or how I would use it

Analogous to those when empty environment variable is distinguished from not set one.

---

<div class="post-metadata">

**Author:** ![pilvikala](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/pilvikala/32/4522_2.png) [@pilvikala](https://discuss.bitrise.io/u/pilvikala)\
**Post date:** [September 21, 2022, 10:53am UTC](https://discuss.bitrise.io/t/add-support-for-entering-empty-secret-values/17880/2 "2022-09-21T10:53:11Z")

</div>

@koral Could you help me understand this a bit better by providing an example of how you treat an empty secret and a non-existent secret differently in your workflows?

---

<div class="post-metadata">

**Author:** ![koral](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/koral/32/357_2.png) [@koral](https://discuss.bitrise.io/u/koral)\
**Post date:** [September 21, 2022, 2:59pm UTC](https://discuss.bitrise.io/t/add-support-for-entering-empty-secret-values/17880/3 "2022-09-21T14:59:27Z")

</div>

One may have a script which distinguishes that. Eg in bash:

```auto
bash-3.2$ FOO=foo
bash-3.2$ echo "${FOO:bar}"
foo
bash-3.2$ echo "${FOO:-bar}"
foo
bash-3.2$ unset FOO
bash-3.2$ echo "${FOO:bar}"

bash-3.2$ echo "${FOO:-bar}"
bar
bash-3.2$

```

In go there is a [os package - os - Go Packages](https://pkg.go.dev/os#LookupEnv) which is used by bitrise: [Sign in to GitHub · GitHub](https://github.com/search?q=org%3Abitrise-steplib+LookupEnv&type=code)
