Tóm tắt
3 service · 4 gate · firebase emulators:start --only auth,firestore
Chỉ dùng local emulator; không seed demo vào development/staging/production.
V26 gom Auth emulator, Firestore emulator, seed, rules, submit API, audit viewer và CI vào một runtime local có boundary rõ.
3 service · 4 gate · firebase emulators:start --only auth,firestore
Chỉ dùng local emulator; không seed demo vào development/staging/production.
Mô phỏng Firebase Auth và custom claims trong local.
Lưu dữ liệu demo, chạy security rules, kiểm thử write path.
Quan sát dữ liệu local không chứa dữ liệu thật.
Trước khi: deploy security.rules
Security rules chưa bảo vệ đúng boundary participant/organization/audit.
Trước khi: manual QA hoặc API demo
Seed local không đúng collection schema hoặc đang cố seed ngoài emulator.
Trước khi: kết nối API với Firestore adapter thật
Submit path có nguy cơ bỏ qua auth/consent/audit.
Trước khi: mở dashboard audit nội bộ
Audit viewer có nguy cơ lộ dữ liệu cá nhân thô hoặc cho role không phù hợp.