Skip to content
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

What's the recommended way to store login info as secrets? #27

Closed
batmanscode opened this issue Aug 6, 2022 · 2 comments
Closed

What's the recommended way to store login info as secrets? #27

batmanscode opened this issue Aug 6, 2022 · 2 comments

Comments

@batmanscode
Copy link

Using a yaml>toml converter it's possible to store the entire yaml configuration as a secret using streamlit cloud, which works as expected.

For deploying from other services, how can leverage environment variables?

@mkhorasani
Copy link
Owner

Dear @batmanscode, if you are deploying on Streamlit Cloud (Streamlit's own servers) they have their own implementation of environment secrets which you may read more about here. If you are deploying on other servers such as Heroku, each platform may have its own way of storing secrets which you will have to enquire about separately. Hope this helps.

@batmanscode
Copy link
Author

Thanks @mkhorasani . As I said it was easy to store the whole yaml as a secret in Streamlit cloud

For heroku if I wanted to save part of the yaml file as a secret I found this library: https://github.com/mkaranasou/pyaml_env

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants