I followed the tutorial here: Use Microsoft Entra to authenticate users - Streamlit Docs and everything works fine. My question is instead of storing credential info like cookie_secret = “xxx”, client_id = “xxx”, and client_secret = “xxx” in streamlit/secrets.toml, can I store them in Azure Key Vault instead? My app is currently running on a VM on Azure.
of course - you should have a managed identity attached to the VM to access the KV and then implement some logic to call the KV to retrieve the secret.
It is very easy to retrieve any values from azure key vault on python file but I have no idea to retrieve them to streamlit/secrets.tom, otherwise is there any way to pass theses credential vaues to streamlit code in app.py ??? , let 's see in sample tutorial as mentioned , it is run as by built-in module in streamlit