Add recipe for rcsofttech/audit-trail-bundle (#1929)

Co-authored-by: rahul chavan <rcsoftech85@gmail.com>
This commit is contained in:
rahul chavan
2026-02-03 06:31:31 +05:30
committed by GitHub
parent ffc4863403
commit 5fde44be98
2 changed files with 86 additions and 0 deletions

View File

@@ -0,0 +1,63 @@
audit_trail:
# Enable or disable the audit trail bundle globally
enabled: true
# Database table customization
# table_prefix: ''
# table_suffix: ''
# Timezone for audit logs (default: UTC)
# timezone: UTC
# Number of days to keep audit logs before they are eligible for cleanup
# retention_days: 365
# Tracking options
# track_ip_address: true
# track_user_agent: true
# Soft delete handling
# enable_soft_delete: true
# soft_delete_field: deletedAt
# Hard delete handling
# enable_hard_delete: true
# Transport behavior
# defer_transport_until_commit: true
# fail_on_transport_error: false
# fallback_to_database: true
# Properties to ignore globally for all entities
ignored_properties:
- updatedAt
- updated_at
# Entities to ignore globally
# ignored_entities: []
# Transport configuration
transports:
# Save audit logs to the local database via Doctrine
doctrine: true
# Send audit logs to a remote HTTP endpoint
# http:
# enabled: false
# endpoint: 'https://api.example.com/audit'
# headers: []
# timeout: 5
# Dispatch audit logs via Symfony Messenger
# queue:
# enabled: false
# bus: null
# api_key: null
# Integrity check for audit logs (HMAC signature)
integrity:
enabled: false
# The secret key used for HMAC signature.
# It's recommended to use the generated environment variable.
secret: '%env(AUDIT_TRAIL_INTEGRITY_SECRET)%'
algorithm: sha256

View File

@@ -0,0 +1,23 @@
{
"bundles": {
"Rcsofttech\\AuditTrailBundle\\AuditTrailBundle": [
"all"
]
},
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/"
},
"env": {
"AUDIT_TRAIL_INTEGRITY_SECRET": "generate(32)"
},
"post-install-output": [
"<bg=blue;fg=white> </>",
"<bg=blue;fg=white> AuditTrailBundle </>",
"<bg=blue;fg=white> </>",
"",
" * Check <comment>config/packages/audit_trail.yaml</> and customize it",
" * Run <comment>php bin/console doctrine:migrations:migrate</> to apply the changes",
"",
" * Read the documentation at <comment>https://github.com/rcsofttech85/AuditTrailBundle</>"
]
}