英文:
Does Azure Functions automatically change variables that contain sensitive data?
问题
我一直在开发一些Azure函数,遇到了Azure函数处理敏感数据的问题,例如护照号码。
我的函数获取这些数据并将其发送到监管机构进行批准。
在本地运行时,一切都正常,但是当部署后,似乎Azure函数修改了存储在其中的变量,请求失败。
我绝对不希望将个人信息输出到日志中,这样很难进行调试。由于在本地运行正常,我相信问题出在Azure函数处理这类事物的方式上。
英文:
I've been developing a handful of azure functions and have came across an issue with the way azure functions is handling sensitive data. e.g. passport numbers
My function takes this data and sends it to a reglatory body for approval.
This works fine locally, however, when depolyed it seems that azure functions is altering the variable this is stored in and the request fails.
I 100% want to avoid outputing personal information into logs so it makes it difficult to debug. Due to it working locally, I'm confident that the problem lies within how Azure Functions is handing such things.
答案1
得分: 0
>Azure Functions是否会自动更改包含敏感数据的变量?
-
我同意@Peter Bons的观点,Azure Functions不会自动更改包含敏感数据的变量。
-
开发人员需要确保敏感数据得到安全处理,并且代码只提供给必要的用户。
-
Azure Functions提供了几种安全处理敏感数据的方法,例如使用Azure Key Vault存储和检索密码、使用环境变量存储敏感数据,以及使用托管标识安全地访问Azure资源。
-
您还可以使用配置部分来存储数据。
如需进一步了解,您可以参考此链接中的解决方案。
英文:
>Does Azure Functions automatically change variables that contain sensitive data?
>
-
I do agree with @Peter Bons that Variables containing sensitive data are not automatically changed by Azure Functions.
-
It is the developer's who need to ensure that sensitive data is handled securely and code given to only required users.
-
Azure Functions provides several secure ways to handle sensitive data, such as using Azure Key Vault to store and retrieve secrets, using environment variables to store sensitive data, and using managed identities to securely access Azure resources.
-
You can also use Configuration Section to store data.
For further you can refer this worked by me.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论