You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#340 Part 3: Complete Audit Flow integration and create Audit Interface (#413)
* Add Audit Service to CE and PDP in OE federator
* Update exchange/orchestration-engine/middleware/audit_middleware.go
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
* Refactor audit service enums and logging methods for improved clarity and consistency
* Add CONSENT_CHECK to eventTypes in audit service enum configuration
---------
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: Thanikan <sthanikan2000@gmail.com>
@@ -115,6 +115,31 @@ Copy `.env.example` to `.env` and configure:
115
115
116
116
For PostgreSQL configuration and advanced settings, see [.env.example](.env.example).
117
117
118
+
### Event Type Configuration
119
+
120
+
Event types are configurable via `config/enums.yaml`. This allows you to customize the audit service for your specific use case. The service comes with generic default event types, but you can add project-specific ones.
121
+
122
+
**Default Event Types:**
123
+
-`MANAGEMENT_EVENT` - Administrative operations
124
+
-`USER_MANAGEMENT` - User-related operations
125
+
-`DATA_FETCH` - Data retrieval operations
126
+
127
+
**Customizing Event Types:**
128
+
129
+
Edit `config/enums.yaml` to add your own event types:
130
+
131
+
```yaml
132
+
enums:
133
+
eventTypes:
134
+
- MANAGEMENT_EVENT
135
+
- USER_MANAGEMENT
136
+
- DATA_FETCH
137
+
- YOUR_CUSTOM_EVENT_TYPE
138
+
- ANOTHER_EVENT_TYPE
139
+
```
140
+
141
+
See [config/README.md](config/README.md) for detailed configuration options.
142
+
118
143
## API Endpoints
119
144
120
145
### Core Endpoints
@@ -136,13 +161,13 @@ curl -X POST http://localhost:3001/api/audit-logs \
0 commit comments