Skip to content

Commit 8ac0b10

Browse files
authored
Merge pull request #140 from objectstack-ai/copilot/add-audit-log-plugin
2 parents 2a5afab + ae7a2d2 commit 8ac0b10

File tree

14 files changed

+2577
-1
lines changed

14 files changed

+2577
-1
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ dist
99

1010
# VitePress cache
1111
docs/.vitepress/cache
12-
docs/.vitepress/dist
12+
docs/.vitepress/dist
13+
package-lock.json
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
# Changelog
2+
3+
All notable changes to @objectos/plugin-audit-log will be documented in this file.
4+
5+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7+
8+
## [0.1.0] - 2026-01-29
9+
10+
### Added
11+
12+
-**Audit Event Recording (审计事件记录)**
13+
- Automatic capture of all CRUD operations
14+
- Create, Read, Update, Delete event tracking
15+
- Comprehensive metadata capture (user, timestamp, resource)
16+
- Event filtering and querying capabilities
17+
18+
-**Audit Tracking (审计跟踪)**
19+
- User action tracking (who did what, when, where)
20+
- IP address and user agent tracking
21+
- Session tracking
22+
- Date range queries
23+
- User-based filtering
24+
- Pagination support
25+
26+
-**Field History (字段历史)**
27+
- Field-level change tracking
28+
- Before/after value capture
29+
- Field-specific history queries
30+
- Complete audit trail for records
31+
32+
- **Plugin Infrastructure**
33+
- Full plugin lifecycle support (install, enable, disable, uninstall)
34+
- Event-driven architecture integration
35+
- Configurable audit scope
36+
- Sensitive field exclusion
37+
- In-memory storage implementation
38+
- Custom storage interface
39+
40+
- **API**
41+
- `queryEvents()` - Query audit events with filters
42+
- `getAuditTrail()` - Get complete audit trail for a record
43+
- `getFieldHistory()` - Get change history for a specific field
44+
- `getAuditLogAPI()` - Helper to access the plugin API
45+
46+
- **Configuration Options**
47+
- Enable/disable audit logging
48+
- Specify audited objects
49+
- Exclude sensitive fields
50+
- Configure retention policy
51+
- Custom storage implementation
52+
53+
- **Documentation**
54+
- Comprehensive README with examples
55+
- Integration guide
56+
- API documentation
57+
- Best practices
58+
59+
- **Testing**
60+
- 100% test coverage for core functionality
61+
- Plugin lifecycle tests
62+
- Audit event recording tests
63+
- Audit tracking tests
64+
- Field history tests
65+
- Storage implementation tests
66+
67+
### Notes
68+
69+
This is the initial release implementing all three required features:
70+
1. 审计事件记录 (Audit Event Recording)
71+
2. 审计跟踪 (Audit Tracking)
72+
3. 字段历史 (Field History)

0 commit comments

Comments
 (0)