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:
- AWS S3
- Microsoft SQL Server
- Firestore (blog)
- Private Google Sheet
- Public Google Sheet
- Deta Base
- Google Cloud Storage
Trouble connecting to data? Need a different way to securely connect? Reach out on our Community forum to chat through options!