Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[7.x] [Audit Logging] Add AuditTrail service (#69278) #71003

Merged
merged 1 commit into from
Jul 8, 2020

Commits on Jul 7, 2020

  1. [Audit Logging] Add AuditTrail service (elastic#69278)

    * add generic audit_trail service in core
    
    * expose auditTraik service to plugins
    
    * add auditTrail x-pack plugin
    
    * fix type errors
    
    * update mocks
    
    * expose asScoped interface via start. auditor via  request context
    
    * use type from audit trail service
    
    * wrap getActiveSpace in safeCall only. it throws exception for non-authz
    
    * pass message to log explicitly
    
    * update docs
    
    * create one auditor per request
    
    * wire es client up to auditor
    
    * update docs
    
    * withScope accepts only one scope
    
    * use scoped client in context for callAsInternalUser
    
    * use auditor in scoped cluster client
    
    * adopt auditTrail plugin to new interface. configure log from config
    
    * do not log audit events in console by default
    
    * add audit trail functional tests
    
    * cleanup
    
    * add example
    
    * add mocks for spaces plugin
    
    * add unit tests
    
    * update docs
    
    * test description
    
    * Apply suggestions from code review
    
    apply @jportner suggestions
    
    Co-authored-by: Joe Portner <[email protected]>
    
    * add unit tests
    
    * more robust tests
    
    * make spaces optional
    
    * address comments
    
    * update docs
    
    * fix WebStorm refactoring
    
    Co-authored-by: Joe Portner <[email protected]>
    mshustov and jportner committed Jul 7, 2020
    Configuration menu
    Copy the full SHA
    13c41c0 View commit details
    Browse the repository at this point in the history