# Hide credentials

**URL:** <https://discuss.streamlit.io/t/hide-credentials/7153>\
**Category:** Community Cloud\
**Created:** [November 15, 2020, 3:31pm UTC](https://discuss.streamlit.io/t/hide-credentials/7153 "2020-11-15T15:31:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![svenrr](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/svenrr/32/3939_2.png) [@svenrr](https://discuss.streamlit.io/u/svenrr)\
**Post date:** [November 15, 2020, 3:31pm UTC](https://discuss.streamlit.io/t/hide-credentials/7153/1 "2020-11-15T15:31:17Z")

</div>

Good afternoon,  
I am currently using “sharing” of streamlit, but I have scripts where login data is available (for example to APIs). Can this sensitive information be hidden or should I use another service like Heroku?

Thanks!

---

<div class="post-metadata">

**Author:** ![andfanilo](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/andfanilo/32/1040_2.png) [@andfanilo](https://discuss.streamlit.io/u/andfanilo)\
**Post date:** [November 15, 2020, 10:07pm UTC](https://discuss.streamlit.io/t/hide-credentials/7153/2 "2020-11-15T22:07:06Z")

</div>

Hey @svenrr,

Loading secrets (generally from environment variables defined in an admin interface, instead of hardcoded in your scripts) with Streamlit Sharing is a popular request that is being worked on. You can refer to the following threads:

> [@Secrets when using Streamlit Streaming](https://discuss.streamlit.io/t/secrets-when-using-streamlit-streaming/6904):
>
> When I deploy to my own server, I read authentication secrets (e.g., for an API call) in environment variables that are loaded by the application. This way, I can safely use un-modified code that is in a public github repo. Is there a way to set an environment variable when using Streamlit Serving? If not, do you have a recommended approach?

> [@Secrets management](https://discuss.streamlit.io/t/secrets-management/4638):
>
> Is there a way / planned way to load secrets?

> [@How to access Secret token of app deployed on github](https://discuss.streamlit.io/t/how-to-access-secret-token-of-app-deployed-on-github/6753):
>
> My app uses secret access token which I can’t upload on github. Can you please help me how to work around this issue?

Cheers,  
Fanilo

---

<div class="post-metadata">

**Author:** ![randyzwitch](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/randyzwitch/32/58772_2.png) [@randyzwitch](https://discuss.streamlit.io/u/randyzwitch)\
**Post date:** [January 12, 2022, 9:57pm UTC](https://discuss.streamlit.io/t/hide-credentials/7153/3 "2022-01-12T21:57:32Z")

</div>


