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
Copy file name to clipboardExpand all lines: audit-service/README.md
+93-4Lines changed: 93 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -221,10 +221,45 @@ go build -o audit-service
221
221
go build -ldflags="-X main.Version=1.0.0 -X main.GitCommit=$(git rev-parse HEAD)" -o audit-service
222
222
```
223
223
224
-
## Deployment
224
+
## Optional Deployment
225
225
226
-
### Docker
226
+
The Audit Service is **optional** and can be deployed separately from the main OpenDIF services. Services (Orchestration Engine, Portal Backend) will function normally without audit logging enabled.
227
227
228
+
### Enabling/Disabling Audit Logging
229
+
230
+
#### Option 1: Disable via Environment Variable
231
+
Set `ENABLE_AUDIT=false` in your service configuration:
232
+
```bash
233
+
# In orchestration-engine/.env or portal-backend/.env
234
+
ENABLE_AUDIT=false
235
+
```
236
+
237
+
#### Option 2: Omit Audit Service URL
238
+
Leave `CHOREO_AUDIT_CONNECTION_SERVICEURL` unset or empty:
239
+
```bash
240
+
# Services will automatically disable audit logging if URL is not configured
241
+
# CHOREO_AUDIT_CONNECTION_SERVICEURL=
242
+
```
243
+
244
+
#### Option 3: Enable Audit Logging
245
+
Set the audit service URL:
246
+
```bash
247
+
# In orchestration-engine/.env or portal-backend/.env
0 commit comments