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] Add security support for alerts and actions (#41389) #43592

Merged
merged 1 commit into from
Aug 20, 2019

Commits on Aug 20, 2019

  1. Add security support for alerts and actions (elastic#41389)

    * Initial work
    
    * Cleanup add createAPIKey fn pt1
    
    * Change getServices function to take request as parameter
    
    * Use API key when executing alerts
    
    * Revert task manager using encrypted saved objects
    
    * Store fired actions within a saved object to encrypt API keys
    
    * Fix fireActionId
    
    * Cleanup code, fix type check error
    
    * Add a type for getScopedSavedObjectsClient
    
    * Fix getBasePath and spaceIdToNamespace functions
    
    * Add safety check for API key and action
    
    * Fix integration tests
    
    * Fix broken jest tests
    
    * Cleanup
    
    * Rename generatedApiKey to apiKeyValue
    
    * Ensure access to action record
    
    * Cleanup
    
    * Add unit tests
    
    * Fix variable conflict
    
    * Revert task manager specific code (no longer needed)
    
    * Remove fire terminology
    
    * Move tests to spaces and security folder
    
    * Use ES Archiver to remove spaces (empty_kibana)
    
    * Fix missing pieces
    
    * Convert action tests to run per user
    
    * Convert alerting tests to run per user
    
    * Fix type check issue
    
    * Fix failing test
    
    * Add callCluster and savedObjectsClient authorization tests
    
    * Make savedObjectsClient return 403 for authorization tests
    
    * Cleanup
    
    * Fix test failure
    
    * Common function to get data from test index
    
    * Create ObjectRemover
    
    * Cleanup
    
    * useApiKey now provided to functions instead of relying on condition of two strings
    
    * Fix typo
    
    * Make tests it(...) start with should
    
    * Rename useApiKey to isSecurityEnabled
    
    * Merge apiKeyId and apiKeyValue into one
    
    * Update docs
    
    * Use feature controls for list alert / action types API
    
    * Remove need to add ! in TypeScript for required plugins
    
    * Fix ESLint issue
    
    * Include actions and alertTypeParams into AAD and genereate new API key on update
    
    * Generate random id for API key name attribute
    
    * Include interval in AAD
    
    * Send pre-encoded string
    
    * Fix ExecutorError
    
    * Fix apiKey snapshot
    
    * Fix 'default' typo
    
    * De-compose apiKey
    
    * Refresh API key when enabling / disabling an alert
    
    * Add updatedBy
    
    * Make unauthorized APIs return 404
    mikecote committed Aug 20, 2019
    Configuration menu
    Copy the full SHA
    dd5bf7f View commit details
    Browse the repository at this point in the history