# Capitalization of secrets

**URL:** <https://community.fly.io/t/capitalization-of-secrets/1627>\
**Category:** General\
**Created:** [June 2, 2021, 7:59am UTC](https://community.fly.io/t/capitalization-of-secrets/1627 "2021-06-02T07:59:26Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jsierles](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/jsierles/32/595_2.png) [@jsierles](https://community.fly.io/u/jsierles)\
**Post date:** [June 2, 2021, 7:59am UTC](https://community.fly.io/t/capitalization-of-secrets/1627/1 "2021-06-02T07:59:26Z")

</div>

The title sounds intriguing, I know. But I’m merely requesting that `fly secret set THIS_var` does not force capitalization to `THIS_VAR` on the instances. The reason: some Docker images [like this one](https://github.com/pschiffe/docker-pdns) depend on this capitalization to function correctly.

Also, the CLI behavior is slightly confusing:

```auto

$ fly secrets unset PDNS_api_key
Error No change detected to secrets

$ fly secrets list
NAME DIGEST DATE
PDNS_api_key 827ccb0eea8a706c4c34a16891f84e7b 2021-05-31T17:08:15Z

$ fly secrets unset PDNS_API_KEY
Release v16 created

```

---

<div class="post-metadata">

**Author:** ![jerome](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/jerome/32/17_2.png) [@jerome](https://community.fly.io/u/jerome)\
**Post date:** [June 2, 2021, 1:33pm UTC](https://community.fly.io/t/capitalization-of-secrets/1627/2 "2021-06-02T13:33:48Z")

</div>

I agree. We upcased everything at some point to prevent user errors. Some apps do use case-sensitive environment variables though.

We have an upcoming feature to list current env for an app (including redacted secrets names). Meaning this will be easier to debug.

I’m looking into fixing this right now. Will also consult the team 🙂

---

<div class="post-metadata">

**Author:** ![jerome](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/jerome/32/17_2.png) [@jerome](https://community.fly.io/u/jerome)\
**Post date:** [June 3, 2021, 6:06pm UTC](https://community.fly.io/t/capitalization-of-secrets/1627/3 "2021-06-03T18:06:20Z")

</div>

I’ve just deployed a fix for this. Feel free to give it a shot!

---

<div class="post-metadata">

**Author:** ![blanst](https://avatars.discourse-cdn.com/v4/letter/b/b5e925/32.png) [@blanst](https://community.fly.io/u/blanst)\
**Post date:** [August 2, 2021, 6:05pm UTC](https://community.fly.io/t/capitalization-of-secrets/1627/4 "2021-08-02T18:05:39Z")

</div>

Just got bitten by this. When I `fly list secrets`, the secret’s name is in lowercase, exactly as I typed it in. If I ssh into a running instance, I can see the env var for the secret is in uppercase.

---

<div class="post-metadata">

**Author:** ![jerome](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/jerome/32/17_2.png) [@jerome](https://community.fly.io/u/jerome)\
**Post date:** [August 2, 2021, 6:31pm UTC](https://community.fly.io/t/capitalization-of-secrets/1627/5 "2021-08-02T18:31:27Z")

</div>

I’ve deployed a change that will (unfortunately) upcase all secrets in our database so as to not break older deploys.

I’ve found where we were still upcasing secret names. The fix has been rolled out, can you try setting a new secret and seeing if the case is preserved?

---

<div class="post-metadata">

**Author:** ![blanst](https://avatars.discourse-cdn.com/v4/letter/b/b5e925/32.png) [@blanst](https://community.fly.io/u/blanst)\
**Post date:** [August 2, 2021, 6:47pm UTC](https://community.fly.io/t/capitalization-of-secrets/1627/6 "2021-08-02T18:47:32Z")

</div>

Works correctly now, thanks!
