Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does EFCore support Cosmos DB always encrypt? #28580

Open
jianawu opened this issue Aug 3, 2022 · 6 comments
Open

Does EFCore support Cosmos DB always encrypt? #28580

jianawu opened this issue Aug 3, 2022 · 6 comments

Comments

@jianawu
Copy link

jianawu commented Aug 3, 2022

Ask a question

Hi, I am trying to use cosmosdb with EFCore.
While using, I have to store sensitive data like user name and password. I believe I could straightly use always encrypt with Cosmosdb client. However, I failed to find the way to use this feature in EFCore.

Does EFCore support this feature and how could I achieve that?

Thank you!

@ajcvickers
Copy link
Member

Note for triage: this probably requires creating the client using With Encryption().

https://docs.microsoft.com/en-us/azure/cosmos-db/how-to-always-encrypted?tabs=dotnet#initialize-the-sdk

@jianawu
Copy link
Author

jianawu commented Aug 12, 2022

Hi ajckickers, thanks for your reply! Yes, I believe I should use WithEncryption() and enable policy on container. But, I wonder how could I integrate it in EFCore? I mean where could configure the client and container so that I could use EFCore as usual and encrypt at the same time? Should I write some delegate or overwrite some of the functions while creating db client or handling container?

@ajcvickers
Copy link
Member

@jianawu We will discuss in our next triage meeting.

@jhulbertpmn
Copy link

Very interested in this as well!

@jhulbertpmn
Copy link

Any news on this?

@ajcvickers
Copy link
Member

This issue is in the Backlog milestone. This means that it is not planned for the next release (EF Core 8.0). We will re-assess the backlog following the this release and consider this item at that time. However, keep in mind that there are many other high priority features with which it will be competing for resources. Make sure to vote (👍) for this issue if it is important to you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants