Connect data sources

Your app probably connects to some data source, and it's important to make sure that connection is secure. That data might just be a csv that you have in your GitHub repo, but in many cases it'll be a private data source you connect with via API, on a cloud service, or maybe in your company's VPN.

Streamlit has two primary ways of securely connecting to private data:

  • Secrets management: securely store secrets like API keys and TOML files that you can then access as environment variables in your app.
  • Stable outbound IP addresses: allowlist our outbound IP addresses in your firewall to ensure that only traffic from the Streamlit network can connect to your data stores.

We also have a series of guides on how to connect to:

push_pin

Note

Trouble connecting to data? Need a different way to securely connect? Email support@streamlit.io to chat through options!

Was this page helpful?

editSuggest edits
forum

Still have questions?

Our forums are full of helpful information and Streamlit experts.