How to Set Up Credentials for Your Notification Channel
A short guide to setting up the credentials required for Randoli's alert notification channels.
Transcript
Hi, I'm Kunal, devil engineer at Randoli. Now, before we can send any type of alerts to Slack, email or any other channel type in Randoli, we first need a secure way to store our channel credentials. In this quick demo, I'll show you how to create a Kubernetes secret that the Randoli agent will use to fetch these credentials at runtime. Now, the easiest way you can get started to create a secret is using av file. Here you can enter all the relevant key names and the key values which are required to set up your specific notification channel. For example, you can see here we have set up a bunch of Slack channels followed by the web hook URL for that specific channel. Similarly, if you're using email as a notification channel, you can also add the SMTP credentials as you can see here and any other relevant credentials which are required by your specific notification channel. Later on, we'll use this key references in the UI to set up that specific notification channel. Now once your environment variable file is ready, you can use the cubectl create command to create the secret where we are fetching the values from the env file that we just created. One important thing to note here is the name of the secret should match this exact value which is randoly- alert-config and the secret has to be created inside the randoly agents name space where you have configured all the other components for the randoly agent. We can hit enter and the secret has been created. Now we can use the cubectl describe command to get a list of all the configured secrets. And now we can use these key names in the UI instead of the actual key value. On the randoly dashboard you can head over to the alerts tab and click on add notification. Once you select a particular channel for example Slack in this case here you can simply enter the key reference from the secret that we have just created. For example, I have entered EKS demo slack and the agent will automatically fetch the relevant key value when you create this particular notification channel. To quickly give you another example, here you can see we have set up an email notification channel and we are giving all the relevant SMTP key refs which is the SMTP host or user and authentication password as well. This is a much more secure way to store your alert credentials inside your own environment. Now, this is a one-time setup that you'll need to do based on the notification channel that you wish to configure. And now we are ready to configure a specific notification channel via the UI. Thank you for watching.