Owner and ID fields

Hi @alexander-wix @tiaan @yisrael-wix ,

I have been looking at the security of wix and data collections on websites, I have noted that when a Wix Site is live, Wix says that users can edit and update the javascript code and can view the data collections and information on these collections. I need to have a collection readable by everyone but don’t want everyone being able to see all the data, especially malicious site visitors. For this I am now implementing encryption before data is saved and encryption for when data is called by a query or get data.

What i need to know if there where ever to be malicious site visitor what fields in the data collection can they and cant they see? would they be able to see the collections Owner/ID fields?

Best wishes,

Si

Where do you read this?
“Wix says that users can edit and update the javascript code and can view the data collections and information on these collections.”

It doesn’t matter where exactly, because it’s true anyway.
Data on your browser can be viewed by users who know where to look for it (the average user doesn’t know how to do it).
That’s why you should run queries and tasks on the backend if they contain data that shouldn’t be viewed by the users.

2 Likes

@jonatandor35 This is very true, but are there any fields that cannot be seen within a collection by the client side, for example the Owner field, because surely that is the most important field? if this is visible to all if all can view a data collection then surely if you hold private information it could be found using the owner field? this is why I am encrypting all data that I receive from customers. please do let me know thought if a field such as Owner can not be seen by malicious users?

@simonadams the experts you mentioned in the first line of your post will probably be able to answer this question.

@jonatandor35 Many thanks unfortunately the experts don’t respond to my questions on the forum any more, not sure as to why. However it would be good for all to know the answer so I will await their response. @Alexander (Wix) @Tiaan - wix-coders.com @Yisrael (Wix)

@simonadams try after the weekend.

has anyone got any answers to this? @yisrael-wix @alexander-wix @brett-haralson

Hey my friend - Let me see what I can do. :slight_smile:

@brett-haralson Thank you.

1 Like

Brett asked me to put some light on the subject. So, few things to know:

  1. We don’t hide fields based on where the query originates. All of the fields in the item are available in the frontend, including _owner .
  2. The only fields we do hide are fields marked as deleted. They are unavailable to both backend and frontend until restored.
  3. If only some of the fields should be visible to frontend, as suggested above, query should be performed in the backend and only public fields should be returned to frontend. But be careful to not directly update the item from the frontend in this case. Using wixData.update(…) or wixData.save(…) would lose the fields that were not passed up.

@giedrius-grazevicius Many thanks for the response, so with having a collection open to all to read, how would it be best to make sure not everyone could read all items of the collection or even one item if they were a malicious site visitor? At present I have the site with https so that should secure browser to server connection but how do I make sure that all data is the safest it can be. It’s pretty key to what I am trying to achieve. Si