将资源令牌与Bulk Executor SDK结合使用
嗨
我们正在考虑使用Bulk Executor库将数据插入Cosmos DB中,但是我所看到的文档仅提及使用主键.
We're looking into using the Bulk Executor Library to insert data into Cosmos DB, but the documentation I've seen only mentions using master keys.
https://docs.microsoft.com/zh-CN/azure/cosmos-db/bulk-executor-dot-net
https://docs.microsoft.com/en-us/azure/cosmos-db/bulk-executor-dot-net
我宁愿使用资源令牌来访问数据库,以免暴露主密钥(显然,主密钥可以更广泛地访问整个帐户以及管理平面).
I'd prefer to use resource tokens for accessing the database to avoid exposing the master keys (which obviously give much wider access to the whole account, plus the management plane).
我承认我还没有尝试过,但是任何人都可以确认是否传递了一个资源令牌而不是一个主密钥吗?
I'll admit I haven't tried this out, but can anyone confirm that a resource token be passed instead of a master key?
谢谢
Hi Lady Bay Imp,
Hi Lady Bay Imp,
Azure Cosmos DB使用访问密钥,而不使用SAS令牌,例如Azure存储.
Azure Cosmos DB uses access keys and not SAS tokens, such as Azure Storage.
您同时具有读写"和只读"密钥对.主键和辅助键可用于维护应用程序功能(例如辅助键),同时能够旋转其他键(在这种情况下为主键).
You have both Read-Write and Read-Only key pairs. The primary and secondary can be used to maintain application functionality (say the secondary key) while being able to rotate the other key (primary in this case).
如果您还有其他疑问,请告诉我们.
Please let us know if you have any additional questions.
此致
迈克