Slack Webhook

Keeperの高度なレポートとアラートの通知をSlackに送信

Slackのセットアップ

Webhook機能を使用すると、以下の手順でSlackチャンネルにカスタムアラートとアクションを送信できます。

  1. https://api.slack.com/appsに移動して、アプリを新規作成します。

  1. アプリに名前を付け、目的のワークスペースを選択して[Create App] (アプリを作成) をクリックします。

  1. [Incoming Webhooks] (着信Webhooks) をクリックします。

  1. Webhookを有効にして、[Add New Webhook to Workspace] (新しいWebhookをワークスペースに追加) をクリックします。

  1. アラートを送信するSlackチャンネルを選択します。[Copy] (コピー) をクリックして、管理コンソールに接続するために必要なWebhookのURLを取得します。

  1. 左側の[Basic Information] (基本情報) セクションで、Keeperアイコンを追加できます。画像を右クリックして保存します。以下のリンクを使用して、Keeperの512 x 512 PNGアイコンをダウンロードします。 https://keeper-email-images.s3.amazonaws.com/common/Keeper_512x512.png

  1. Keeper管理コンソールにログインし、[レポートとアラート] > [アラート]にアクセスして、アラートを新規作成します。目的のイベントタイプと属性を選択しt絵から、[受信者を追加]をクリックします。 以下の例では、すべてのポリシー変更関連イベントが選択されています。

  1. イベント受信者の名前とメールアドレスを入力し、[Webhookを追加]をクリックします。

  1. 手順5のWebhook URLを貼り付けます。

  1. 以下のJSONコンテンツを[HTTPボディ]のフィールドに貼り付けます。

{
  "text":"Keeper Security Event",
  "blocks": [
    {
      "type": "section",
      "fields": [
        {
          "type": "mrkdwn",
          "text": "*Alert Name*\n#alert_name"
        }
      ]
    },
    {
      "type": "section",
      "fields": [
        {
          "type": "mrkdwn",
          "text": "*Event Details*\n#description"
        }
      ]
    },
    {
      "type": "section",
      "fields": [
        {
          "type": "mrkdwn",
          "text": "*IP Address*\n#remote_address"
        },
        {
          "type": "mrkdwn",
          "text": "*Timestamp*\n#timestamp"
        }
      ]
    },
    {
      "type": "actions",
      "elements": [
        {
          "type": "button",
          "text": {
            "type": "plain_text",
            "text":"Vault Login",
            "emoji": true
          },
          "value": "vault",
          "url": "https://keepersecurity.com/vault",
          "action_id": "actionId-1"
        },
        {
          "type": "button",
          "text": {
            "type": "plain_text",
            "text":"Console Login",
            "emoji": true
          },
          "value": "console",
          "url": "https://keepersecurity.com/console",
          "action_id": "actionId-2"
        }
      ]
    }
  ]
}
  1. [保存]をクリックしてアラートを保存します。

以上です。 イベントの送信が開始するまでに最大15分かかる場合があります。HTTPボディは、任意で変更できます。カスタマイズについてはSlackのBlock Kit Builderをご参照ください。

新しいWebhookボディコンテンツの作成とコンテンツの編集が有効になるまでに最大15分かかる場合があります。

共有レコードの通知

特定の共有フォルダにレコードが追加された際に通知を送信するのにも使用できます。

  1. 上記のSlackの設定手順に従って、基本のSlack統合を作成します。

  2. ウェブボルトで、対象の共有フォルダのUIDを取得します。

  1. 管理コンソールで、「共有フォルダへレコードを追加」のイベントを追跡する新しいアラートを作成します。

  1. 属性セクションで、共有フォルダのUIDを貼り付けます。

  1. [受信者を追加]をクリックし、新しいWebhookの受信者を作成します。

  1. 以下のJSONコードをHTTPボディのフィールドに貼り付けます。作成しているアラートに合わせて、「text」フィールドを編集してください。

{
  "text":"Keeper - Added Record to Shared Folder",
  "blocks": [
    {
      "type": "section",
      "fields": [
        {
          "type": "mrkdwn",
          "text": "*Alert Name*\n#alert_name"
        }
      ]
    },
    {
      "type": "section",
      "fields": [
        {
          "type": "mrkdwn",
          "text": "*Event Details*\n#description"
        }
      ]
    },
    {
      "type": "section",
      "fields": [
        {
          "type": "mrkdwn",
          "text": "*IP Address*\n#remote_address"
        },
        {
          "type": "mrkdwn",
          "text": "*Timestamp*\n#timestamp"
        },
        {
          "type": "mrkdwn",
          "text": "*Record UID*\n#record_uid"
        }
      ]
    },
    {
      "type": "actions",
      "elements": [
        {
          "type": "button",
          "text": {
            "type": "plain_text",
            "text":"Open Record",
            "emoji": true
          },
          "value": "vault",
          "url": "https://keepersecurity.com/vault#detail/#record_uid",
          "action_id": "actionId-1"
        },
        {
          "type": "button",
          "text": {
            "type": "plain_text",
            "text":"Console Login",
            "emoji": true
          },
          "value": "console",
          "url": "https://keepersecurity.com/console",
          "action_id": "actionId-2"
        }
      ]
    }
  ]
}

Last updated