Audit Trail si Logging - sebiboga/testlink-upgraded GitHub Wiki
Audit Trail ศi Activity Logging ๐
Ce este Audit Trail?
Audit Trail este un jurnal complet al FIECฤREI acศiuni รฎn TestLink:
Audit Trail = Complete Action Log
Logheazฤ:
โโ Cine a fฤcut actiunea (User)
โโ Ce actiune a fost (Action)
โโ Pe ce a fost (Entity: Test, Plan, Requirement, etc)
โโ Cรขnd a fost (Timestamp)
โโ Ce s-a schimbat (Before/After values)
โโ Status (Success/Failure)
โโ Details (IP, browser, etc)
De ce E Important?
Use Cases:
1. COMPLIANCE & AUDIT
โโ "Cine a ศters cerinศa REQ-050?"
โโ "Cรขnd a fost creat bug-ul BUG-2024-0045?"
โโ Track responsibility
2. TROUBLESHOOTING
โโ "Ce s-a schimbat รฎn ultimele 2 ore?"
โโ "De ce test-ul nu mai merge?"
โโ Trace back changes
3. SECURITY
โโ "Cine a accesat secrets/passwords?"
โโ "Cine a modificat roluri?"
โโ Detect unauthorized access
4. ACCOUNTABILITY
โโ "Cine a schimbat prioritatea?"
โโ Track ownership
โโ Responsibility matrix
Ce Se Logheazฤ?
User & Role Actions
Logged:
โโ User created/deleted
โโ Password changed
โโ Role assigned/changed
โโ Permissions modified
โโ Login attempts (success/failure)
Project Actions
Logged:
โโ Project created/edited/deleted
โโ Features enabled/disabled
โโ Build created/edited
โโ Platform added/removed
โโ Settings changed
โโ Users added/removed from project
Test Case Actions
Logged:
โโ Test case created/edited/deleted
โโ Version created
โโ Linked to requirement/bug
โโ Status changed
โโ Priority changed
โโ Assigned to tester
Test Plan & Execution
Logged:
โโ Test plan created/edited
โโ Test case added/removed from plan
โโ Test execution started
โโ Results recorded (PASS/FAIL/BLOCKED)
โโ Bug reported
โโ Notes added
โโ Re-execution on new build
โโ Tester assignments
Requirement Actions
Logged:
โโ Requirement created/edited/deleted
โโ Status changed (Draft โ Approved โ Tested)
โโ Version created
โโ Test case linked/unlinked
โโ Coverage changed
โโ Stakeholder updates
Integration Actions
Logged:
โโ Bug created in JIRA/Mantis/GitHub
โโ Issue linked with test
โโ Status synced
โโ Comments/notes added
โโ Issue lifecycle tracked
Cum Se Acceseazฤ Audit Trail?
Metoda 1: Global Audit Log
Path: Administrare โ Audit Trail / Activity Log
Vizualizezi: TOATฤ activitatea din sistem
โโ Filtru by User
โโ Filtru by Entity (Test, Plan, Requirement, etc)
โโ Filtru by Action (Create, Edit, Delete)
โโ Filtru by Date Range
โโ Search by keyword
Metoda 2: Entity-Level Audit Trail
Fiecare entitate are propriul audit log:
Test Case TC-050:
โโ Click pe "History" tab
โโ Vezi toate modificฤrile pentru TC-050
Requirement REQ-201:
โโ Click pe "Audit Trail"
โโ Vezi toศi utilizatorii care au modificat
Bug BUG-2024-0045:
โโ Click pe "Activity Log"
โโ Vezi timeline complet
Metoda 3: User Activity Report
Administrare โ User Activity Report
Raport pentru fiecare user:
โโ Actions performed this week/month
โโ Most active hours
โโ Last login
โโ Failed login attempts
โโ Suspicious activity alerts
Exemplu: Audit Trail Entry
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
AUDIT LOG ENTRY #45892
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Timestamp: 2024-02-12 14:23:45
User: maria.ionescu
Action: TEST_CASE_CREATED
Entity Type: Test Case
Entity ID: TC-050
Entity Name: Login cu email ศi parolฤ valide
Details:
โโ Title: "Login cu email ศi parolฤ valide"
โโ Prioritete: Critical
โโ Type: Functional
โโ Status: Ready
โโ Linked Requirements: REQ-001, REQ-002
Changes Made:
โโ Created new test case
โโ Added 5 execution steps
โโ Set preconditions
โโ Created version v1
IP Address: 192.168.1.100
Browser: Chrome 120 (Windows 10)
Session ID: sess_abc123def456
Status: SUCCESS
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
AUDIT LOG ENTRY #45893
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Timestamp: 2024-02-12 14:35:12
User: ion.popescu
Action: TEST_CASE_EXECUTION
Entity Type: Test Case
Entity ID: TC-050
Build: v1.5.0 RC2
Platform: Windows 10 + Chrome
Results:
โโ Status: PASS โ
โโ Duration: 5 minutes
โโ Platform: Windows 10 + Chrome 120
โโ Notes: "Test completed successfully"
Changes Made:
โโ Recorded PASS result
โโ Set timestamp
โโ Saved metrics
โโ Updated coverage
Status: SUCCESS
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
AUDIT LOG ENTRY #45894
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Timestamp: 2024-02-12 15:02:18
User: alexandra.dumitrescu
Action: REQUIREMENT_STATUS_CHANGED
Entity Type: Requirement
Entity ID: REQ-201
Entity Name: Transfer Bani รฎntre Conturi
Changes:
โโ Old Status: Draft
โโ New Status: Approved
โโ Changed by: alexandra.dumitrescu
โโ Reason: "All stakeholders approved"
Linked Tests:
โโ TC-050: PASS
โโ TC-051: PASS
โโ TC-052: BLOCKED (waiting fix)
Status: SUCCESS
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Filtrare Audit Logs
Search Options:
1. By User:
โโ "maria.ionescu"
โโ "All actions by Maria"
2. By Action Type:
โโ TEST_CASE_CREATED
โโ TEST_CASE_EXECUTED
โโ REQUIREMENT_CHANGED
โโ BUG_CREATED
โโ USER_LOGGED_IN
3. By Date Range:
โโ Last 24 hours
โโ Last 7 days
โโ Last 30 days
โโ Custom range
4. By Entity:
โโ Test Case: TC-050
โโ Requirement: REQ-201
โโ Project: Banking v1.5
โโ User: maria.ionescu
5. Keyword Search:
โโ "password"
โโ "delete"
โโ "BUG-2024-0045"
โโ "failed"
Exemplu Filtrare:
Filtrare:
โโ Entity: Test Case TC-050
โโ Date: Last 7 days
โโ Action: ALL
Rezultat:
โโ 2024-02-12 14:23: Created by maria
โโ 2024-02-12 14:35: Executed by ion โ PASS
โโ 2024-02-12 15:10: Linked to REQ-201 by alexandra
โโ 2024-02-13 09:00: Re-executed by vasile โ PASS
Export & Reports
Export Audit Log:
Audit Trail โ Export
Options:
โโ Format: PDF / Excel / CSV
โโ Date Range: Custom
โโ Include: All fields / Selected only
โโ Download
Compliance Reports:
Administrare โ Compliance Reports
Options:
โโ Access Log (who accessed what)
โโ Change Log (what was modified)
โโ User Activity (per user)
โโ Failed Actions (errors/blocks)
โโ Sensitive Operations (deletes, permission changes)
Security & Privacy
Who Can View Audit Logs?
Admin: โ
View ALL audit logs
Manager: โ
View project-level logs
Tester: โ Limited (own executions only)
Viewer: โ No access
Sensitive Data in Logs:
Logged BUT Masked:
โโ Passwords: Never logged
โโ API Keys: Logged but masked (show only last 4 chars)
โโ Secrets: Logged but encrypted
โโ Personal Data: Following GDPR rules
Retention Policy:
Audit Log Retention:
1 Year: Full detail logs
โโ All actions with timestamps
โโ User info
โโ IP addresses
โโ Complete change history
1-7 Years: Archived logs
โโ Summary only
โโ User/Entity info
โโ Reduced detail
7+ Years: Deleted
โโ Per compliance rules
Real-World Example: Investigating Issue
SCENARIO: Bug introduced in v1.5.0 RC1, not in v1.4.0
INVESTIGATION:
Step 1: Find what changed
โโ Audit Trail โ Entity: Test Case TC-050
โโ Date: 2024-02-08 to 2024-02-10
โโ Found: "TC-050 updated by ion.popescu on 2024-02-08"
Step 2: See what changed
โโ Audit Entry shows: "Step 2 changed from X to Y"
โโ Old value โ New value
Step 3: Check when test executed with new version
โโ Test Execution on 2024-02-10 with v1.5.0 RC1
โโ Result: FAIL (was PASS before)
โโ Platform: Windows 10 + Chrome
Step 4: Link to bug report
โโ Bug reported: 2024-02-10 14:35
โโ Related to: TC-050 failure
โโ Cause: Step change by ion.popescu
CONCLUSION:
โโ ion's change on 2024-02-08 broke TC-050 in v1.5.0
โโ Needs investigation + fix
Best Practices
โ DO:
- Review audit logs regularly (daily/weekly)
- Archive old logs (compliance requirement)
- Monitor sensitive operations (deletes, permission changes)
- Investigate failed actions
- Use logs for compliance audits
- Alert on suspicious activity
โ DON'T:
- Ignore audit logs
- Delete audit logs
- Disable logging
- Share logs with unauthorized users
- Use logs for finger-pointing
Audit Trail: Essential pentru compliance ศi troubleshooting! ๐ฏ