I have a Firestore database structure set up as shown in image 1. I am looking to allow unauthenticated users of my web application to view the public profiles of plumbers, along with the reviews (image 2) they receive from completed jobs. My main query is regarding how I can securely expose the UID of each user who has posted one of these reviews. I hope that clarifies my question.
rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
match /{document=**} {
allow read, write: if request.auth != null;
}
}
}