Forum Discussion
kaouter
4 months agoFrequent Visitor
Fabric - Airflow Jobs - Notebook Access to Key Vault -mssparkutils.credentials.getSecret returns 403
Hi all, I've been hitting a 403 Forbidden error when calling mssparkutils.credentials.getSecret from a Fabric notebook triggered via Apache Airflow. The error message includes a caller appid (caxxxx...
- 4 months ago
Hi kaouter,
As we discussed on Discord, Fabric uses the security context of the identity that calls the API to trigger the notebook to access the keyvault.
In your case, when you have an airflow SPN triggering the notebook, that SPN is the identity that needs permissions on the keyvault for the notebook to be able to successfully authenicate to the keyvault.
It was great connecting with you on Discord and being able to help!
tayloramy
Super User
4 months agoHi kaouter,
For that suggestion, I recommend you post an Idea and see what happens. https://community.fabric.microsoft.com/t5/Fabric-Ideas/idb-p/fbc_ideas
If it gains traction here then the product team will notice it.