Skip to content

Commit 8903b92

Browse files
author
rahul chavan
committed
Add recipe for rcsofttech/audit-trail-bundle
1 parent 41f6eaa commit 8903b92

File tree

2 files changed

+86
-0
lines changed

2 files changed

+86
-0
lines changed
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
audit_trail:
2+
# Enable or disable the audit trail bundle globally
3+
enabled: true
4+
5+
# Database table customization
6+
# table_prefix: ''
7+
# table_suffix: ''
8+
9+
# Timezone for audit logs (default: UTC)
10+
# timezone: UTC
11+
12+
# Number of days to keep audit logs before they are eligible for cleanup
13+
# retention_days: 365
14+
15+
# Tracking options
16+
# track_ip_address: true
17+
# track_user_agent: true
18+
19+
# Soft delete handling
20+
# enable_soft_delete: true
21+
# soft_delete_field: deletedAt
22+
23+
# Hard delete handling
24+
# enable_hard_delete: true
25+
26+
# Transport behavior
27+
# defer_transport_until_commit: true
28+
# fail_on_transport_error: false
29+
# fallback_to_database: true
30+
31+
# Properties to ignore globally for all entities
32+
ignored_properties:
33+
- updatedAt
34+
- updated_at
35+
36+
# Entities to ignore globally
37+
# ignored_entities: []
38+
39+
# Transport configuration
40+
transports:
41+
# Save audit logs to the local database via Doctrine
42+
doctrine: true
43+
44+
# Send audit logs to a remote HTTP endpoint
45+
# http:
46+
# enabled: false
47+
# endpoint: 'https://api.example.com/audit'
48+
# headers: []
49+
# timeout: 5
50+
51+
# Dispatch audit logs via Symfony Messenger
52+
# queue:
53+
# enabled: false
54+
# bus: null
55+
# api_key: null
56+
57+
# Integrity check for audit logs (HMAC signature)
58+
integrity:
59+
enabled: false
60+
# The secret key used for HMAC signature.
61+
# It's recommended to use the generated environment variable.
62+
secret: '%env(AUDIT_TRAIL_INTEGRITY_SECRET)%'
63+
algorithm: sha256
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"bundles": {
3+
"Rcsofttech\\AuditTrailBundle\\AuditTrailBundle": [
4+
"all"
5+
]
6+
},
7+
"copy-from-recipe": {
8+
"config/": "%CONFIG_DIR%/"
9+
},
10+
"env": {
11+
"AUDIT_TRAIL_INTEGRITY_SECRET": "generate(32)"
12+
},
13+
"post-install-output": [
14+
"<bg=blue;fg=white> </>",
15+
"<bg=blue;fg=white> AuditTrailBundle </>",
16+
"<bg=blue;fg=white> </>",
17+
"",
18+
" * Check <comment>config/packages/audit_trail.yaml</> and customize it",
19+
" * Run <comment>php bin/console doctrine:migrations:migrate</> to apply the changes",
20+
"",
21+
" * Read the documentation at <comment>https://github.com/rcsofttech85/AuditTrailBundle</>"
22+
]
23+
}

0 commit comments

Comments
 (0)