Kaspersky Container Security

Setting up integration with notification outputs

Kaspersky Container Security can notify users about events while operating in accordance with the response policy settings. To use the notification feature, you should set up an integration of Kaspersky Container Security with one or more notification outputs.

Kaspersky Container Security can use the following outputs:

  • Email
  • Telegram instant messaging system

In this Help section

Viewing the list of email integrations

Adding email integrations

Viewing information about email integration

Viewing list of Telegram integrations

Adding Telegram integrations

Viewing and editing information about Telegram integration

Deleting integrations with notification outputs

Page top
[Topic 250406]

Viewing the list of email integrations

To open a list of configured email integrations,

go to the AdministrationIntegrations → Notifications section and select Email integrations.

You can use the list to do the following:

  • Add new email integrations. Click the Add button located above the list to open the integration settings window.
  • View and change email integration settings — you can open the editing window by clicking the integration name link.
  • Search for an email integration — to perform this search, enter the integration name in the Search field.
  • Delete email integration.
Page top
[Topic 250407]

Adding email integrations

To add an email integration:

  1. Do one of the following:
    • Under AdministrationIntegrations → Notification, in the Email integration section, click the Add new button.
    • In the AdministrationIntegrations → Notifications section, select Email integrations. In the window that opens, click the Add button located above the table.

    The integration settings window opens.

  2. Specify the following information in the form:
    • Name of the integration — displayed in the response policy settings.
    • User name and password of the account used to send messages.
    • SMTP server name.
    • E-mail encryption method.
    • Port that the SMTP server uses.
    • Email address of message sender.
    • Email addresses of message recipients. You can enter one or more addresses in this field.
  3. Click the Save button in the top of the window to save the email integration settings.

Example email integration settings

The following is an example of the settings for integrating Kaspersky Container Security with email.

{

"form": {

"type": "email",

"name": "Email integration",

"username": "username@example.com",

"password": "P@ssword!",

"host": "smtp.company.com",

"port": 465,

"encrypting": "ssl",

"sender": "sender@example.com",

"recipients": [

"user@company.com",

"user1@company.com"

]

}

}

For the encrypting parameter, specify one of the following options:

  • tls
  • ssl
  • null

You can use the configured integration in response policies.

Page top
[Topic 250408]

Viewing information about email integration

To view and change an email integration:

  1. In the Email integrations section under Administration → Integrations → Notifications, click the integration name link in the list of integrations.
  2. In the editing window that opens, change the following integration settings if necessary:
    • Name.
    • User name.
    • Password of the user account that is used to send messages.
    • SMTP server name.
    • E-mail encryption method.
    • Port that the SMTP server uses.
    • Email address of the message sender.
    • Email addresses of message recipients.
  3. Click Save.
Page top
[Topic 254848]

Viewing list of Telegram integrations

Integration with Telegram allows you to configure messaging in the chat with the Telegram bot.

To open the list of the configured Telegram integrations, go to the Administration → Integrations → Notifications section, and select Telegram integrations.

You can use the list to do the following:

Page top
[Topic 250409]

Adding Telegram integrations

To add a Telegram integration:

  1. Do one of the following:
    • Under AdministrationIntegrations → Notifications, in the Telegram integration section, click the Add new button.
    • In the AdministrationIntegrations → Notifications section, select Telegram integrations. In the window that opens, click the Add button located above the table.

    The integration settings window opens.

  2. Specify the following information in the form:
    • Name of the integration — it is displayed in the response policy settings.
    • ID of the chat to post the messages — you can get the ID in the following way:
      1. Write the first message to the message bot. The chat ID is generated the first time a message is sent.
      2. In the address bar of your browser, type:

        https://api.telegram.org/bot<token>/getUpdates

        where <token> is the token of the message bot.

      3. In the received .json response file, find the "ID" value in the "chat" object. This is the chat ID.

      After changing the message history visibility settings for new participants in a Telegram chat, the chat ID is also changed. In this case, you must change the Telegram integration settings and specify the new value for the chat ID.

    • Token of the message bot — you receive this token as a result of executing the /newbot command in the BotFather bot to create a bot. You can also get the token of a previously created bot by running the /token command.
  3. Click the Save button in the top of the window to save the Telegram integration settings.

Example Telegram integration settings

The following is an example of the settings for integrating Kaspersky Container Security with Telegram.

{

"form": {

"type": "telegram",

"name": "Telegram integration",

"chatId": "{{chatId}}",

"botToken": "{{botToken}}"

}

}

You can use the configured integration in response policies.

Page top
[Topic 250410]

Viewing and editing information about Telegram integration

To view and change a Telegram integration:

  1. In the Telegram integrations section under Administration → Integrations Notifications, click the integration name link in the list of integrations.
  2. In the opened editing window, change the following integration settings if necessary:
    • Name.
    • Chat ID.
    • Bot token.
  3. Click Save.
Page top
[Topic 254829]

Deleting integrations with notification outputs

To delete email integration or Telegram integration:

  1. Open the list of the configured email integrations or Telegram integrations.
  2. In the line containing the name of the integration that you want to delete, click the delete icon ("Delete" icon.).
  3. In the window that opens, confirm the deletion.

You cannot delete an integration that is used in one or more response policies.

Page top
[Topic 250411]