将资源令牌与Bulk Executor SDK结合使用 [英] Using Resource Tokens with Bulk Executor SDK

查看:78
本文介绍了将资源令牌与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.

此致

迈克

 


这篇关于将资源令牌与Bulk Executor SDK结合使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆