2017 © Pedro Peláez
 

project graviton-service-bundle-audit-tracking

Audit tracking bundle to be used in graviton/graviton

image

graviton/graviton-service-bundle-audit-tracking

Audit tracking bundle to be used in graviton/graviton

  • Wednesday, April 18, 2018
  • by narcoticfresh
  • Repository
  • 10 Watchers
  • 1 Stars
  • 1,164 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 10 Versions
  • 3 % Grown

The README.md

GravitonAuditTrackingBundle

Inner Auditing tool bundle

This tool is meant to run as a hidden service in order to know what each user request or modifies. It will not limit nor interfere with the users request but only store the changes and data received. * x-header-audit-thread → id-string-uuid * Api to list thread: /auditing/?eq(thread,string:id-string-uuid)`, (*1)

version

  • v0.1.0: 2016/09/28 First version with basic auditing enabled by default, collection changes.

Configuration

  • Need Graviton ^v0.77.0, so ModelEvent is fired on Document Updates.
  • Setup configuration in AuditTracking/Resources/config/parameters.yml.
parameters:
    graviton_audit_tracking:
        # General on/off switch
        log_enabled: true
        # Localhost and not Real User on/off switch
        log_test_calls: false
        # Store request log also on 400 error
        log_on_failure: false
        # Request methods to be saved, array PUT,POST,DELETE,PATCH...
        requests: []
        # Store full request header request data.
        request_headers: false
        # Store full request content body. if true full lenght, can be limited with a integer
        request_content: false
        # Store reponse basic information. if true full lenght, can be limited with a integer
        response: false
        # Store full response header request data.
        response_headers: false
        # Store response body content
        response_content: false
        # Store data base events, array of events, insert, update, delete
        database: ['insert','update','delete']
        # Store all exception
        exceptions: false
        # Exclude header status exceptions code, 400=bad request, form validation
        exceptions_exclude: [400]
        # Exclude listed URLS, array
        exlude_urls: ["/auditing"]

Testing in Graviton

  • composer require graviton/graviton-service-bundle-audit-tracking
  • Inside graviton load the bundle: GravitonBundleBundle:getBundles - add the load of this new bundle
  • Enable in config the log_test_calls: true ( also, so you use the bundle in dev mode )

Enabling in a Wrapper

  • Enable in resources/configuration.sh the new bundle: \\Graviton\\AuditTrackingBundle\\GravitonAuditTrackingBundle
  • composer require graviton/graviton-service-bundle-audit-tracking
  • sh dev-cleanstart.sh

The Versions

18/04 2018

dev-master

9999999-dev

Audit tracking bundle to be used in graviton/graviton

  Sources   Download

MIT GPL

The Requires

 

The Development Requires

18/04 2018

v0.3.3

0.3.3.0

Audit tracking bundle to be used in graviton/graviton

  Sources   Download

MIT

The Requires

 

The Development Requires

18/04 2018

dev-develop

dev-develop

Audit tracking bundle to be used in graviton/graviton

  Sources   Download

MIT GPL

The Requires

 

The Development Requires

18/04 2018

v0.3.2

0.3.2.0

Audit tracking bundle to be used in graviton/graviton

  Sources   Download

MIT

The Requires

 

The Development Requires

31/10 2017

v0.3.1

0.3.1.0

Audit tracking bundle to be used in graviton/graviton

  Sources   Download

GPL

The Requires

 

The Development Requires

12/05 2017

v0.3.0

0.3.0.0

Audit tracking bundle to be used in graviton/graviton

  Sources   Download

GPL

The Requires

 

The Development Requires

28/02 2017

v0.2.0

0.2.0.0

Audit tracking bundle to be used in graviton/graviton

  Sources   Download

GPL

The Requires

 

The Development Requires

11/11 2016

v0.1.2

0.1.2.0

Audit tracking bundle to be used in graviton/graviton

  Sources   Download

GPL

The Requires

 

The Development Requires

29/09 2016

v0.1.1

0.1.1.0

Audit tracking bundle to be used in graviton/graviton

  Sources   Download

GPL

The Requires

 

The Development Requires

28/09 2016

v0.1.0

0.1.0.0

Audit tracking bundle to be used in graviton/graviton

  Sources   Download

GPL

The Requires

 

The Development Requires