mirror of
https://github.com/symfony/recipes-contrib.git
synced 2026-03-23 16:22:19 +01:00
Add recipe for rcsofttech/audit-trail-bundle (#1929)
Co-authored-by: rahul chavan <rcsoftech85@gmail.com>
This commit is contained in:
@@ -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
|
||||
23
rcsofttech/audit-trail-bundle/1.9/manifest.json
Normal file
23
rcsofttech/audit-trail-bundle/1.9/manifest.json
Normal 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</>"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user