保護 Cloud Firestore 中的資料

Cloud Firestore 根據您使用的用戶端程式庫,透過不同機制提供強大的存取權管理和驗證功能。

行動與網路用戶端程式庫

如果是行動和網頁用戶端程式庫,請使用 Firebase Authentication 和 Cloud Firestore Security Rules 處理無伺服器驗證、授權和資料驗證。瞭解如何使用 Cloud Firestore Security Rules,在使用 Android、Apple、Web、Flutter、Unity 和 C++ 用戶端程式庫時保護資料。

使用 Firebase App Check,確保只有您的應用程式可以存取 Cloud Firestore 資料。

如果應用程式使用 Cloud Storage for Firebase,請使用 Cloud Firestore 定義條件,限制可由 Cloud Storage Security Rules 存取的資料庫文件中 Cloud Storage 資源的存取權。

伺服器用戶端程式庫

如果是伺服器用戶端程式庫,請使用 Identity and Access Management (IAM) 管理資料庫存取權。瞭解如何使用 IAM 保護 Java、Python、Node.js 和 Go 用戶端程式庫的資料。