What is KubeNotifier?
Running a secure infrastructure means that you need to be on top of any policy violation that happens in your clusters. For that to happen, you can’t wait till you get back and check Magalix dashboards, you need to be notified right away and be able to take action.
KubeNotifier is the way Magalix publishes violation events once they get discovered, these events can be consumed in different ways. The most basic way is to send these events to collaboration tools like Slack, MS Teams, or Jira, so your team is notified of any violation event and take action. The other way is to integrate these actions into a full workflow (for example, using Zapier, or custom events handler) to automate your remediation processes.
How KubeNotifier Works?
To use KubeNotifier, first, you need to create a new notifier. A notifier consists of a name, a webhook URL, and filters. The webhook URL is where Magalix backend sends the violation events whenever they get generated. The filters are how you control which violations get sent out to the webhook URL.
After a notifier is created, when a violation event is generated, the event is evaluated against the notifier filters. The event is pushed to the webhook URL, only if it matches the filter.
You can filter policy violations by Cluster Name, Entity Kind, Policy Severity, Policy Category, Policy Name, or Trigger.
Note: If you are using KubeNotifier to get your team notified of new violations, we recommend that you use Trigger filter and set it to be “On Entity Change”. In order to get only the new violations and not get flooded by the violation events generated in the regular audit check.
Creating a New Notifier
In the left navigation menu, at the bottom. You will be able to see KubeNotifier menu item. Once you click on it, it will take you to a page with a list of all account-created notifiers.
To create a new notifier:
- Click on the “Create Notifier” button.
- Enter a name for the notifier.
- Choose which webhook type you want and provide the URL for that webhook.
- Choose which filters you want.
- Click create.