1. Date & Task Title
Date: 1 November 2026 (Sunday)
Task Title: Firebase Security Implementation, Staff Directory Data Migration & Backend Verification
2. Task Description
At approximately 8:00 a.m., I began working on the School Staff Management System for SMK Tanjong Puteri. My main focus was preparing the existing Firebase database for the integration of staff directory information. The application is developed using Flutter and Firebase to support staff information management and other school administrative functions.
At around 8:30 a.m., I prepared the development environment for the database migration. During the process, I discovered that some of the required command-line tools, including Python and Google Cloud CLI, were not yet available in my development environment. I worked on installing and configuring these tools so that I could proceed with the planned migration.
After configuring the environment, I connected the tools to the Firebase project, smktp-staff-system, and prepared to examine the existing data before making any changes.
At approximately 9:15 a.m., I performed a read-only inspection of the existing school staff information. This involved examining the staff directory profiles, telephone numbers, and photographs to identify possible conflicts or missing records.
The inspection identified 100 directory profiles, 95 photographs, and 98 private telephone records. I also reviewed the existing staff collection to ensure that the directory migration would not unnecessarily modify or overwrite records already used by the application.
At around 10:15 a.m., I focused on improving the privacy of staff contact information. The original structure contained telephone numbers within general staff records, which raised concerns about whether ordinary users might be able to access information intended only for administrators.
To address this, I continued implementing a structure that separated public staff profiles from private contact information. This included managing general directory information through directoryProfiles and restricted telephone information through protected Firestore collections.
At approximately 11:00 a.m., I tested the updated Firebase security rules using the Firebase Local Emulator Suite. The tests covered different access scenarios involving administrator accounts, ordinary users, and unauthorised requests.
The combined security testing successfully passed 41 out of 41 test cases. These results helped verify that the tested Firestore and Storage access restrictions behaved as intended before deployment.
At around 11:45 a.m., I proceeded with deploying the updated Cloud Firestore and Firebase Storage security rules. This was an important preparation step because the directory migration involved sensitive staff information that needed to be protected.
By approximately 12:30 p.m., I continued preparing the directory import process, including reviewing the information to be migrated and ensuring that existing staff records would remain preserved.
I took my scheduled lunch and rest break from 1:00 p.m. to 2:00 p.m..
After the break, at approximately 2:00 p.m., I continued with the production directory migration. The process involved importing the staff profiles, their corresponding private telephone information, and staff photographs into the appropriate Firebase services.
The import process successfully created 100 public directory documents, 98 private contact documents, and 95 staff photograph objects. The existing staff records were preserved during the operation.
At around 2:50 p.m., I reviewed the import results to ensure that the expected records had been created without unnecessarily overwriting existing information. The import report indicated that no directory records had been skipped or overwritten.
At approximately 3:15 p.m., I reviewed the remaining development tasks. Although the migration and security rule deployment had been completed, further read-only verification and runtime testing of the Flutter application were still necessary.
I also encountered a limitation when preparing to test the Windows application because the required Visual Studio C++ build tools were unavailable. Therefore, the complete application runtime verification remained pending.
I concluded my working day at approximately 3:30 p.m.. Today's work represented significant progress in securing the school's staff information and integrating directory data into the existing Firebase backend.
3. Challenges & Solutions
Challenge 1: Missing Development Tools
The initial challenge involved preparing the required development environment. Python and Google Cloud CLI were not immediately available, preventing me from proceeding with some of the migration operations.
I addressed this by installing and configuring the necessary tools and ensuring that they could be used with the correct Firebase project. This allowed me to continue the migration process.
Challenge 2: Protecting Confidential Staff Information
Another important challenge was ensuring that staff telephone numbers were not unnecessarily exposed through public directory records. The system required different access permissions for ordinary users and administrators.
To address this, I worked on separating public profile information from restricted contact details. I also verified the updated access restrictions using the Firebase Emulators before deploying the security rules.
Challenge 3: Migrating Existing Data Without Losing Records
The migration required careful handling of existing staff information because the production database already contained records used by the application.
I performed read-only inspections before the import, reviewed the expected record counts, and used a migration process intended to preserve existing staff data. The import successfully created the required directory documents and photograph objects without reporting skipped or overwritten records.
Challenge 4: Incomplete Application Runtime Verification
Although the Firebase security tests and directory import were successful, full runtime testing of the Windows application remained incomplete due to the unavailable Visual Studio C++ build tools.
I recorded this limitation as an outstanding development requirement rather than assuming that the application was fully verified.
4. Key Learnings & Skills Gained
- Firebase Data Migration: Gained practical experience importing staff profiles, private contact information, and photographs into Firebase.
- Cloud Firestore: Improved my understanding of managing collections, documents, and database structures.
- Firebase Storage: Learned how staff photographs can be organised and managed separately from database records.
- Data Privacy & Access Control: Strengthened my understanding of separating public information from administrator-only records.
- Security Testing: Successfully validated 41 security test cases using the Firebase Local Emulator Suite.
- Command-Line Tools: Gained experience configuring and using Python, Google Cloud CLI, and Firebase CLI.
- Database Integrity: Learned the importance of inspecting records before migration and preserving existing production data.
- Technical Troubleshooting: Improved my ability to identify missing dependencies and recognise limitations in the application testing environment.
- System Development Planning: Understood that a successful database import must be followed by verification and application testing.
5. Supporting Materials
The following supporting materials may be included as evidence of the Firebase security implementation and directory migration activities. Sensitive staff information, account credentials, and private telephone numbers should be concealed.
Supporting Material 1: Firebase Development Environment
Figure 1: Preparing the development environment for Firebase staff directory migration.
Supporting Material 2: Firebase Security Test Results
Figure 2: Firebase security verification showing 41 out of 41 passing tests.
Supporting Material 3: Staff Directory Migration Results
Figure 3: Successful import of 100 public staff profiles, 98 private contact records, and 95 staff photographs.
Supporting Material 4: Firebase Console
Figure 4: Organised staff directory information in Cloud Firestore and Firebase Storage.
6. Reflection & Next Steps
Today's experience was an important milestone in developing the School Staff Management System. I gained a deeper understanding of the responsibilities involved in modifying an application that manages real school information.
I learned that database development is not only about creating collections and importing records. It also requires careful consideration of data privacy, system security, record accuracy, and compatibility with existing application features.
The process of separating confidential telephone numbers from general directory profiles helped me understand the importance of designing access permissions according to different user roles.
Successfully passing the Firebase security tests and importing the staff directory records gave me greater confidence in using backend development tools. However, the remaining testing requirements reminded me that successful migration does not automatically guarantee that every application feature works correctly.
As the next step, I plan to perform additional verification of the imported directory information and test the Flutter application's ability to retrieve and display staff profiles, photographs, and restricted contact details according to user permissions.
I also aim to resolve the remaining Windows development environment limitation so that application runtime testing can be performed when the required build tools are available.
Overall, this experience strengthened my Firebase management, data migration, security testing, technical troubleshooting, and systematic problem-solving skills. It also helped me appreciate the importance of protecting information when developing systems for real organisations.














