azure-sdk-for-python icon indicating copy to clipboard operation
azure-sdk-for-python copied to clipboard

Serverless secure user records

Open ductranit opened this issue 7 years ago • 4 comments

Hi there, I just move to Cosmos from Google Firebase database. I'm trying to setup cosmos python sdk & try to develop a system with user authentication & a user collection to store user data. In Firebase, there is a security rule to protect user record from being read from other users. Something like this:

{
  "rules": {
    "users": {
      "$uid": {
        ".write": "$uid === auth.uid"
      }
    }
  }
}

I wonder is there anything similiar to do this in cosmos without coding? Because I prefer the serverless solution

ductranit avatar Jul 27 '19 13:07 ductranit

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @shurd

ghost avatar Jul 30 '19 22:07 ghost

Hi @ductranit, thank you for the question. Would this authentication be at the document level? This SDK works primarily with control plane operations. If this authentication would be for data plane actions, then the contributors at azure-cosmos-python might be able to help.

shurd avatar Aug 06 '19 00:08 shurd

Hi @ductranit, I am going to close this issue now. If you still need help with this question, you can open a new issue in the data plane SDK azure-cosmos-python. This SDK deals with control plane operations.

shurd avatar Sep 19 '19 21:09 shurd

Thanks for working with Microsoft on GitHub! Tell us how you feel about your experience using the reactions on this comment.

ghost avatar Sep 19 '19 21:09 ghost