Pre-configured Connectors #58914
Labels
Feature:Actions
Team:ResponseOps
Label for the ResponseOps team (formerly the Cases and Alerting teams)
Projects
Describe a specific use case for the feature:
Today, connectors for actions are created in the UI or via API. We’d like to add the ability to pre-configure connectors, before Kibana has even started:
Describe the feature:
A “preconfigured” connector would be different from a regular connector in the following ways:
Pre-configured connectors are defined in Kibana.yml or directly in code. Sensitive configuration like credentials can use either kibana.yml or the Kibana keystore.
Because these connectors have all the information they need to execute prior to startup, a saved object representation isn’t necessary. They can be stored in-memory on each Kibana server instance.
Example:
Say I’d like to provide 4 out of the box connectors:
Kibana.yml
These connectors would be setup in kibana.yml as follows. Note sensitive properties like passwords can also be stored in the Kibana keystore:
Creating an alert with a pre-configured connector
When a user attaches an action to their alert, they select from a list of available action types.
![image](https://user-images.githubusercontent.com/7903188/75570505-479d4380-5a25-11ea-94bf-983e3d8f0d3d.png)
Select the Slack type. Even though I haven’t yet created a connector, because a pre-configured connector is installed, it’s automatically selected:
![image](https://user-images.githubusercontent.com/7903188/75570536-5552c900-5a25-11ea-9e7b-30b9b536e67c.png)
The dropdown is populated with other pre-configured slack connectors
![image](https://user-images.githubusercontent.com/7903188/75570715-b8446000-5a25-11ea-8ba8-bb8f961429da.png)
The “pre-configured” label distinguishes them from space-aware connectors that use saved objects:
![image](https://user-images.githubusercontent.com/7903188/75570728-c3978b80-5a25-11ea-90dd-057018399d6e.png)
Managing pre-configured connectors
Pre-configured connectors appear in the connector list, regardless of which space the user is in. They are tagged as “pre-configured” and cannot be deleted. Note I've listed Server Log here as a pre-configured connector, it should be converted to one.
![image](https://user-images.githubusercontent.com/7903188/75570904-1ffaab00-5a26-11ea-84a7-763103209a23.png)
Clicking on a pre-configured connector will show the description but not any of the configuration. A message indicates that this is a pre-configured connector and cannot be edited.
![image](https://user-images.githubusercontent.com/7903188/75570925-2ab54000-5a26-11ea-8d36-793f3d923b17.png)
When action types are registered, they can indicate if they can allow pre-configuration, configuration at runtime, or both. In this case, the “Server Log” and “System ABC” action types allow pre-configuration only, so are excluded from the list when creating new connectors:
![image](https://user-images.githubusercontent.com/7903188/75571065-74058f80-5a26-11ea-899a-e057e348a065.png)
The text was updated successfully, but these errors were encountered: