<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Pradeep Gopalgowda on Medium]]></title>
        <description><![CDATA[Stories by Pradeep Gopalgowda on Medium]]></description>
        <link>https://medium.com/@pradeep-sg406?source=rss-4dace7918512------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Stories by Pradeep Gopalgowda on Medium</title>
            <link>https://medium.com/@pradeep-sg406?source=rss-4dace7918512------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 11:58:01 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@pradeep-sg406/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Seamless Feature Release without Deployment using IBM Cloud AppConfiguration: An Alternative to…]]></title>
            <link>https://pradeep-sg406.medium.com/seamless-feature-release-without-deployment-using-ibm-cloud-appconfiguration-an-alternative-to-eb5f162058e?source=rss-4dace7918512------2</link>
            <guid isPermaLink="false">https://medium.com/p/eb5f162058e</guid>
            <category><![CDATA[features]]></category>
            <category><![CDATA[launchdarkly]]></category>
            <category><![CDATA[ibm]]></category>
            <category><![CDATA[releases]]></category>
            <category><![CDATA[cloud]]></category>
            <dc:creator><![CDATA[Pradeep Gopalgowda]]></dc:creator>
            <pubDate>Tue, 27 Jun 2023 06:16:40 GMT</pubDate>
            <atom:updated>2023-06-27T06:16:40.137Z</atom:updated>
            <content:encoded><![CDATA[<h3>Seamless Feature Release without Deployment using IBM Cloud AppConfiguration: An Alternative to LaunchDarkly</h3><p>In today’s fast-paced software development landscape, releasing new features quickly and efficiently to meet user demands is crucial. Traditional deployment processes often involve downtime and complex release cycles. However, with IBM Cloud AppConfiguration, you can seamlessly release new features without the need for deployment, minimizing disruptions and maximizing user satisfaction. In this article, we will explore how you can leverage the power of IBM Cloud AppConfiguration to effortlessly release features.</p><p><strong>What is IBM Cloud AppConfiguration?</strong></p><p>IBM Cloud AppConfiguration is a feature management service provided by IBM Cloud. It allows developers to easily control the release of features in their applications without the need for complex deployment processes. With AppConfiguration, developers can toggle feature flags, manage configuration parameters, and target specific user segments for feature rollouts. This flexibility enables agile development, seamless feature releases, and a personalized user experience.</p><p><strong>How does App Configuration work?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AqLk6_V-txdGhJk_n8jJ_w.png" /></figure><p>During normal operation, the AppConfiguration SDK (shown as #2 in Figure 1) handles the automatic delivery of the appropriate flag state or property value into your application from the IBM Cloud AppConfiguration instance (shown as #1 in Figure 1). When initializing, the SDK connects to the AppConfiguration API and fetches the specified collections, segment rules, and targeting rules (shown as #3 in Figure 1). It then evaluates the rules against attribute values that are programmed into your application to select the correct segment and target values. The attributes used by the rules are stored locally, ensuring that confidential information such as social security numbers never leave the local application environment.</p><p>After initialization, the application receives updated values in two ways, depending on whether you are using server-side or client-side SDKs. Server-side SDKs connect to the AppConfiguration service through a WebSocket, and modified values are delivered to your application in real-time. On the other hand, client-side SDKs pull values from the AppConfiguration service upon a lifecycle change, such as being opened or brought to the foreground.</p><p>During normal operation, various metrics are sent back to the AppConfiguration cloud service (shown as #6 in Figure 1), enabling the service to operate properly and allowing you to monitor its performance.</p><p><strong>A Demonstration of the Sample BlueCharge Web Application with IBM Cloud AppConfiguration</strong></p><p>You need an IBM Cloud® account for illustration purposes. If you don’t have an account, <a href="https://cloud.ibm.com/registration/">create one</a>. Log in to your IBM Cloud® account.</p><p><strong>Create an Instance of App Configuration Service</strong></p><p>To create an instance of the App Configuration service, follow these steps:</p><ol><li>Log in to your IBM Cloud account.</li><li>In the <a href="https://cloud.ibm.com/catalog#services">IBM Cloud catalog</a>, search for App Configuration and click on <a href="https://cloud.ibm.com/catalog/services/app-configuration">App Configuration</a>. This will open the service provisioning page.</li><li>Select a region — Currently, Dallas (us-south), London (eu-gb), Sydney (au-syd), and Washington DC (us-east) regions are supported.</li><li>Select a pricing plan, resource group, and configure your resource with a service name, or use the preset name.</li><li>Click Create. A new service instance will be created, and the App Configuration dashboard will be displayed.</li></ol><p><strong>Setup the App Configuration Service Instance</strong></p><p>To set up the App Configuration service instance, follow these steps:</p><ol><li>Download the source code:</li></ol><pre>git clone https://github.com/IBM/appconfiguration-samples.git <br>cd appconfiguration-samples/nodejs</pre><p>2. Install jq, a command-line JSON processor. You can download it from <a href="https://stedolan.github.io/jq/download/">here</a>.</p><p>3. Go to the dashboard of your App Configuration instance in the IBM Cloud UI.</p><p>4. Navigate to the Service Credentials section and generate a new set of credentials. Note down the region, guid, and apikey values. These credentials will be required in the next steps.</p><p>5. From your terminal, execute the <a href="https://github.ibm.com/devx-app-services/appconfiguration-samples/blob/development/common/script/demo.sh">demo.sh</a> script by running the following command:</p><pre>$ cd appconfiguration-samples/common/script<br>$ ./demo.sh</pre><blockquote>If you encounter any permission errors during script execution, provide the appropriate permissions to the file by running chmod +x ./demo.sh. Then, execute the script.</blockquote><p>6. Provide all the required inputs during the script execution. An example is shown in the figure below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WzBrA-rS5MJshI6tyNxOvw.png" /></figure><p>7. The script execution may take some time. It is considered successful only when you see the log ---script run complete--- at the end of your terminal.</p><p>8. This script will create the collections, feature flags, properties, and segments using the default development environment in the instance, which are required for the sample web app called Bluecharge.</p><p><strong>Run the Sample</strong></p><p>To run the sample application, follow these steps:</p><p>Prerequisites:</p><ul><li>Node.js version 14 or newer.</li></ul><ol><li>Provide all the configuration values in the <a href="https://github.ibm.com/devx-app-services/appconfiguration-samples/blob/development/nodejs/.env">.env</a> file.</li><li>Install the dependencies by running npm install from the root folder (appconfiguration-samples/nodejs).</li><li>Run npm start to start the application.</li><li>Access the running application in a browser at <a href="http://localhost:3000/">http://localhost:3000</a>.</li></ol><p>Note: Steps are provided to run the app on Kubernetes:</p><ul><li><a href="https://github.ibm.com/devx-app-services/appconfiguration-samples/blob/development/common/minikube">Using Minikube</a></li><li><a href="https://github.ibm.com/devx-app-services/appconfiguration-samples/blob/development/common/kube">On IKS (IBM Kubernetes Service)</a></li></ul><p><strong>Explore the Key Use-Cases Included in the Sample</strong></p><p>Keep the app running and login with different email IDs at the same time.</p><p><strong>Use case 1: Canary Release</strong></p><p>Keep the default rollout percentage to 50% and turn on the toggle for the Left Navigation feature flag. When you log in to the sample app with the email ID jack@ibm.com, you will see the navigation links on the top positioned to the left side inside the hamburger menu. If you sign out and log in with the email james@ibm.com, you will see the old UI. This is because the user jack falls under the 50% rollout, while the user james doesn&#39;t. Now, increase the rollout percentage to 75%, and both users will see the hamburger menu. This demonstrates how you can perform a canary release by gradually rolling out a change to a small subset of users before making it available to everybody.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y-u_kXqqT4cUvY5pYv5trg.png" /></figure><p><strong>Use case 2: Dark Launch in a Phased Manner</strong></p><p>Keep the default rollout percentage to 0% and turn on the toggle for the Flight Booking feature flag. When you log in with the email ID alice@bluecharge.com, you will see the flight booking button displayed on the home screen banner. This is because for all user emails ending with @bluecharge.com, the feature flag is set to be enabled according to its targeting rules. You can then roll out this feature to a new group called Business Users by increasing the rollout percentage of this group from 0 to 50% in the Edit targeting screen. This means that 50% of the user emails belonging to this group will also see the flight booking button. Finally, you can increase the default rollout percentage from 0 to 100% to make the flight booking button available to all users.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3fmBN1klNtkQKDoHUMXfog.png" /></figure><p><strong>Use case 3: Properties</strong></p><p>Segmentation applied to properties.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tVXRttpipTzQu5k6y9HZXw.png" /></figure><h4>Conclusion</h4><p>IBM Cloud AppConfiguration offers a powerful solution for seamless feature releases without the need for deployment. By leveraging AppConfiguration’s feature management capabilities, developers can release new features quickly, reduce risks associated with deployment, and target specific user groups based on various criteria. With AppConfiguration, you can embrace an agile development approach and ensure a superior user experience. For detailed documentation on the App Configuration service, see <a href="https://cloud.ibm.com/docs/app-configuration">here</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eb5f162058e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unveiling the Truth: Is Podman Truly a Seamless Replacement for Docker?]]></title>
            <link>https://pradeep-sg406.medium.com/unveiling-the-truth-is-podman-truly-a-seamless-replacement-for-docker-ec2b7bca433c?source=rss-4dace7918512------2</link>
            <guid isPermaLink="false">https://medium.com/p/ec2b7bca433c</guid>
            <category><![CDATA[containers]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[podman]]></category>
            <dc:creator><![CDATA[Pradeep Gopalgowda]]></dc:creator>
            <pubDate>Wed, 07 Jun 2023 04:02:52 GMT</pubDate>
            <atom:updated>2023-06-07T05:49:46.434Z</atom:updated>
            <content:encoded><![CDATA[<p>You may have heard that Podman is a drop-in replacement for Docker, but is it truly that simple? Join us in this blog as we explore the practicality of using Podman. We’ll start by working with a ready-to-go Dockerfile and run Podman commands just like you would with Docker. Let’s investigate whether this transition is hassle-free!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*E_j8IhdF85NxwZFrCoIGxg.png" /></figure><p><strong>Introducing Podman:</strong></p><p>Podman is a container engine, much like Docker. However, it operates without a daemon and runs containers as non-root by default, which is more secure. Docker has also made strides in running as a non-root user. According to Podman’s claims, all you need to do is execute the command <strong>alias docker=podman</strong> to add the alias “docker=podman,” and everything will work seamlessly. But is it really that straightforward? In the rest of this blog, we’ll put it to the test. We’ll attempt to build a Dockerfile for a <a href="https://github.com/PradeepGopalgowda/app-id-sample-node-app">sample node application</a>.</p><h3>Installation</h3><p>Installing Podman is quite easy. Just run the following command.</p><pre>$ brew install podman-desktop</pre><p>Verify the correct installation.</p><pre>$ podman --version<br>podman version 4.3.1</pre><p>Initialize Podman: This command is used to initialize a new Podman Machine instance and sets up the necessary configurations and files for the virtual machine.</p><pre>$ podman machine init</pre><pre>$ podman machine start</pre><p>The command “podman machine start” is used to start the previously initialized Podman Machine. This command will power on the virtual machine, allowing you to use it for running containers.</p><h3>Build Dockerfile</h3><p>The first thing to do is to build the container image.</p><pre>$ podman build -t us.icr.io/appiddemo/appid-sample:1 .<br>STEP 1/8: FROM node:16-alpine3.14<br>STEP 2/8: WORKDIR /usr/src/app<br>--&gt; Using cache 25d151d2e4832bef6acac7da35dc3c3a964a9d9c51d0d81a63b7baadc3aaa1c1<br>--&gt; 25d151d2e483<br>STEP 3/8: COPY package.json /usr/src/app<br>--&gt; Using cache a4d062e20567e56de994bff1b5b03d1b6ad1cf82bd6699a8dc7a3c0abf74ec9b<br>--&gt; a4d062e20567<br>STEP 4/8: RUN npm install --production<br>--&gt; Using cache 005898b305a08421407a491e75525631b38062b18f78f9138605fe2fba81441b<br>--&gt; 005898b305a0<br>STEP 5/8: COPY . /usr/src/app<br>--&gt; Using cache 44321d8390d4987601d5a052df8ac46a97d2dc59fc4854d340065b01b791ebaf<br>--&gt; 44321d8390d4<br>STEP 6/8: ENV PORT 80<br>--&gt; Using cache 932dbd7869c70e131b6caf907cace60aa990f57df83c64bcdf44cf4e6204625a<br>--&gt; 932dbd7869c7<br>STEP 7/8: EXPOSE 80 80<br>--&gt; Using cache 3c0315133b133cb1f13af9f7e305b0252ed586dae8d999de8970a8448f71f492<br>--&gt; 3c0315133b13<br>STEP 8/8: CMD [&quot;npm&quot;, &quot;start&quot;]<br>--&gt; Using cache 5c125d5b43c32d8d1bda2f0492b88dea3ef3711cdac0a7b78f9a51fd1ec2b66f<br>COMMIT appid-sample:1<br>--&gt; 5c125d5b43c3<br>Successfully tagged us.icr.io/appiddemo/appid-sample:1</pre><p>Let’s add the alias:</p><pre>$ alias docker=podman</pre><p>Now replace podman with docker to execute the build command:</p><pre>docker build -t us.icr.io/appiddemo/appid-sample:1 .<br>STEP 1/8: FROM node:16-alpine3.14<br>STEP 2/8: WORKDIR /usr/src/app<br>--&gt; Using cache 25d151d2e4832bef6acac7da35dc3c3a964a9d9c51d0d81a63b7baadc3aaa1c1<br>--&gt; 25d151d2e483<br>STEP 3/8: COPY package.json /usr/src/app<br>--&gt; Using cache a4d062e20567e56de994bff1b5b03d1b6ad1cf82bd6699a8dc7a3c0abf74ec9b<br>--&gt; a4d062e20567<br>STEP 4/8: RUN npm install --production<br>--&gt; Using cache 005898b305a08421407a491e75525631b38062b18f78f9138605fe2fba81441b<br>--&gt; 005898b305a0<br>STEP 5/8: COPY . /usr/src/app<br>--&gt; Using cache 44321d8390d4987601d5a052df8ac46a97d2dc59fc4854d340065b01b791ebaf<br>--&gt; 44321d8390d4<br>STEP 6/8: ENV PORT 80<br>--&gt; Using cache 932dbd7869c70e131b6caf907cace60aa990f57df83c64bcdf44cf4e6204625a<br>--&gt; 932dbd7869c7<br>STEP 7/8: EXPOSE 80 80<br>--&gt; Using cache 3c0315133b133cb1f13af9f7e305b0252ed586dae8d999de8970a8448f71f492<br>--&gt; 3c0315133b13<br>STEP 8/8: CMD [&quot;npm&quot;, &quot;start&quot;]<br>--&gt; Using cache 5c125d5b43c32d8d1bda2f0492b88dea3ef3711cdac0a7b78f9a51fd1ec2b66f<br>COMMIT appid-sample:1<br>--&gt; 5c125d5b43c3<br>Successfully tagged us.icr.io/appiddemo/appid-sample:1</pre><p>Verify the list of images with podman and docker:</p><pre>$ podman images<br>REPOSITORY                        TAG            IMAGE ID      CREATED        SIZE<br>us.icr.io/appiddemo/appid-sample  1              5c125d5b43c3  3 days ago     232 MB</pre><pre>$ docker images<br>REPOSITORY                        TAG            IMAGE ID      CREATED        SIZE<br>us.icr.io/appiddemo/appid-sample  1              5c125d5b43c3  3 days ago     232 MB</pre><h3>Start Container</h3><p>Now that you have built the image, it is time to start a container.</p><pre>$ podman run us.icr.io/appiddemo/appid-sample:1<br>&gt; WebSdkExample-Starter@1.0.1 start<br>&gt; node app.js<br>[2023-06-03T23:22:17.358] [INFO] appid-sdk - Initialized</pre><pre>$ docker run us.icr.io/appiddemo/appid-sample:1<br>&gt; WebSdkExample-Starter@1.0.1 start<br>&gt; node app.js<br>[2023-06-03T23:22:17.358] [INFO] appid-sdk - Initialized</pre><p>The main advantage of Podman over Docker is that it does not require a separate daemon process to run containers. With Podman, containers are managed using a client-serverless architecture, which means that containers run directly as child processes of the Podman command. This eliminates the need for a background daemon and simplifies the deployment and management of containers.</p><p><strong>Can Podman be used as a drop-in replacement for Docker when building a Dockerfile?</strong></p><p>Yes, Podman is considered a drop-in replacement for Docker when it comes to building and running containers using a Dockerfile. Podman provides a compatible command-line interface with Docker, allowing you to use familiar commands and workflows.</p><p>To build a Dockerfile with Podman, you can use the build command, similar to Docker&#39;s docker build etc..</p><p>However, it’s worth noting that while Podman aims to be compatible with Docker, there may still be some differences in certain advanced features and behavior between the two tools. Therefore, it’s recommended to thoroughly test your applications when migrating from Docker to Podman to ensure compatibility and proper functioning.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ec2b7bca433c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Proactively Monitoring the Security and Compliance Issues using ServiceNow and PagerDuty Incidents]]></title>
            <link>https://pradeep-sg406.medium.com/proactive-monitoring-the-security-and-compliance-issues-using-servicenow-and-pagerduty-incidents-e1f5b9e909c4?source=rss-4dace7918512------2</link>
            <guid isPermaLink="false">https://medium.com/p/e1f5b9e909c4</guid>
            <category><![CDATA[monitoring]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[servicenow]]></category>
            <category><![CDATA[pagerduty]]></category>
            <category><![CDATA[compliance]]></category>
            <dc:creator><![CDATA[Pradeep Gopalgowda]]></dc:creator>
            <pubDate>Sat, 28 Jan 2023 14:55:59 GMT</pubDate>
            <atom:updated>2023-01-28T14:56:49.593Z</atom:updated>
            <content:encoded><![CDATA[<p>As cloud security adoption has increased, compliance standards have had to evolve, as cloud platforms and services are expected to remain compliant with various international, federal, state, and local security standards, regulations, and laws. A lack of compliance to these rigid rules can lead to legal challenges, penalties, fines, and other negative ramifications.</p><p>Cloud compliance and security is more important than ever as the threat landscape becomes more sophisticated. It can’t be overlooked, ignored, or pushed to the proverbial back burner. It’s a topic that must be proactively monitor and addressed. But it’s undeniably challenging, which makes it an unattractive endeavour for organizations that already have enough technically complex tasks on their organizational to-do lists.</p><p><strong><em>Solution:</em></strong> IBM Cloud Security and Compliance Center help to ensure that your organisation is adhering to the external and internal standards for your industry. By using the Security and Compliance Center to validate the resource configurations in your account against a profile, you can identify potential issues as they arise.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*ZaVHUqyuS0GydOzq2FKohw.png" /></figure><p><strong>What is IBM Cloud Event Notifications?</strong></p><p>IBM Cloud® Event Notifications is an event notification routing service that notifies you to critical events that occur in your IBM Cloud account or triggers automated actions by using webhooks. You can filter and route event notifications from IBM Cloud services like Availability Monitoring, to email, SMS, push notifications and webhooks.</p><p><strong>How events are collected and sent by Security and Compliance Center?</strong></p><p>When an event of interest takes place in the Security and Compliance Center, the service communicates with a connected Event Notifications instance to forward a notification to a <a href="https://cloud.ibm.com/docs/event-notifications?topic=event-notifications-en-destination">supported destination</a>.</p><p>Security and Compliance Center aggregates a list of your pending notifications by <a href="https://cloud.ibm.com/docs/security-compliance?topic=security-compliance-event-notifications&amp;interface=ui#event-notifications-list">event type</a>. The service checks for and dispatches any pending notifications to the connected Event Notifications service as they occur in the system. For example, you might receive notifications that are similar to the following messages:</p><p>· A validation scan of your resources was completed.</p><p>· A new resource was found in your inventory.</p><p>· Control failures exceeded the threshold limit.</p><p>· A Security Insights finding was reported for your account.</p><p><strong>Step 1: Create an IBM Cloud Event Notifications service instance</strong></p><p>1. Log in to your <a href="https://cloud.ibm.com/">IBM Cloud account</a>.</p><p>2. In the <a href="https://cloud.ibm.com/catalog#services">IBM Cloud catalog</a>, search <strong>Event Notifications</strong> &gt; <strong>Event Notifications</strong>.</p><p>3. <strong>Select a Region</strong> from the list of supported region and <strong>Select a pricing plan</strong>.</p><p>4. Provide a <strong>Service name</strong>.</p><p>5. Select a resource group.</p><p>6. Click <strong>Create</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k_N__QdB5uWFX63CPTtj6A.png" /></figure><p><strong>Step 2: Connecting to Event Notifications in the Security and Compliance Center</strong></p><p>After signing into IBM Cloud, you can access the Security and Compliance Center:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*gxXyYApm1apouUZJLXHpEg.png" /></figure><p>1. By clicking the <strong>Menu</strong> icon <strong>&gt; Security and Compliance</strong> in the navigation.</p><p>2. In the Security and Compliance Center navigation, click<strong> Settings</strong>.</p><p>3. In the Event Notifications section, and click <strong>Connect</strong>.</p><p>4. In the side panel, review the source details for the connection. Optionally, provide a description.</p><p>5. Select the resource group and Event Notifications service instance that you want to connect.</p><p><em>If an IAM authorization between Security and Compliance Center and Event Notifications doesn’t exist in your account, a dialog is displayed. Follow the prompts to grant access between the services.</em></p><p><em>To grant access between Security and Compliance Center and Event Notifications, click </em><strong><em>Authorize</em></strong><em>.</em></p><p><em>In the side panel, select </em><strong><em>Event Notifications</em></strong><em> as the target service.</em></p><p><em>From the list of instances, select the Event Notifications service instance that you want to authorize.</em></p><p><em>Select the </em><strong><em>Event Source Manager</em></strong><em> role.</em></p><p><em>Click </em><strong><em>Review</em></strong><em>.</em></p><p><em>Click </em><strong><em>Assign</em></strong><em>.</em></p><p>6. To confirm the connection, click <strong>Connect</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*-4HZxo23UHJ7iiZxcXp0RA.png" /></figure><p>A success message is displayed to indicate that Security and Compliance Center is now connected to Event Notifications. If you need to disconnect from Event Notifications later, you can use the options menu <strong>&gt; Disconnect</strong> to remove the Security and Compliance Center as a source service in the Event Notifications instance.</p><p><strong>Step 3: Verify the Security and Compliance Center source in IBM Cloud Event Notifications</strong></p><p>1. Click the menu icon &gt; <strong>Resource list</strong>.</p><p>2. Open <strong>Services and software</strong>.</p><p>3. Open the <a href="https://cloud.ibm.com/docs/monitoring?topic=monitoring-tutorial-en#en-create-instance">IBM Cloud Event Notifications instance you created.</a></p><p>4. Click <strong>Sources</strong>.</p><p>When you connect to Event Notifications in the Security and Compliance Center UI, a source is automatically added to your IBM Cloud Event Notifications <strong>Sources</strong> list.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oyDIBYtpl_s6-6KA6Bg9_Q.png" /></figure><p><strong>Step 4: Create an IBM Cloud Event Notifications Destination</strong></p><blockquote>Configuring a ServiceNow destination</blockquote><p>To configure a ServiceNow destination, do the following steps:</p><ol><li>From your Event Notifications instance dashboard, click <strong>Destinations</strong>.</li><li>Click <strong>Add +</strong> to add a new destination.</li><li>In the <strong>Add a destination</strong> side panel, provide the following details.</li></ol><ul><li><strong>Name</strong> — Enter a name for your destination.</li><li><strong>Description</strong> — Optionally, enter a description for your destination.</li><li><strong>Type</strong> — Under <strong>Destination</strong>, for the <strong>Type</strong>, select <strong>ServiceNow</strong> from the drop-down as your destination type.</li><li><strong>Instance Name</strong> — Enter the name of your ServiceNow instance.</li><li><strong>Username</strong> — Enter the username to be used for connecting to the ServiceNow instance.</li><li><strong>Password</strong> — Enter the password to be used for authenticating the username mentioned earlier to authenticate in the ServiceNow instance.</li><li><strong>Namespace</strong> defaulting to now and it cannot be changed.</li><li>Event Notifications currently allows creation of entries on “Incident” table only and it cannot be changed.</li><li><strong>URL</strong> gets populated based on the value provided before.</li><li><strong>Client ID</strong> — Enter the client ID needed to retrieve the OAuth access token.</li><li><strong>Client secret</strong> — Enter the client secret required for authenticating the Client ID provided earlier.</li></ul><p><strong>Note: Client ID</strong> and <strong>Client secret</strong> can be fetched from System Oauth -&gt; Application Registries. This is inside your Event Notifications instance console (you can search by clicking on “All”). Make sure it is in active state and applicable for connecting to external clients.</p><ul><li>Click <strong>Add</strong>.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*0Bm8h_bFQhA8U_UIcmKCAg.png" /></figure><blockquote>Configuring a PagerDuty destination</blockquote><p>You can configure a PagerDuty destination in the Destinations tab.</p><p>To configure a PagerDuty destination, do the following steps:</p><p>1. From your Event Notifications instance dashboard, click <strong>Destinations</strong>.</p><p>2. Click <strong>Add +</strong> to add new destination.</p><p>3. In the <strong>Add a destination</strong> side panel, provide the following details.</p><ul><li><strong>Name</strong> — Enter a name for your destination.</li><li><strong>Description</strong> — Optionally, enter a description for your destination.</li><li><strong>Type</strong> — Under <strong>Destination</strong>, for the <strong>Type</strong>, select <strong>Pagerduty</strong> from the drop-down as your destination type.</li><li><strong>API key</strong> — Enter the API key that you have <a href="https://cloud.ibm.com/docs/event-notifications?topic=event-notifications-en-destinations-pagerduty#en-pd-generate-api-key">generated</a> earlier.</li><li><strong>Routing key</strong> — Enter the routing key <a href="https://cloud.ibm.com/docs/event-notifications?topic=event-notifications-en-destinations-pagerduty#en-pd-generate-routing-key">generated</a> earlier.</li></ul><p>4. Click <strong>Add</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*0nw9wKUZ8ClXSQ5snvLlAA.png" /></figure><h3>Step 5: Create an IBM Cloud Event Notifications topic</h3><p>Next you will define an <a href="https://cloud.ibm.com/docs/event-notifications?topic=event-notifications-en-create-en-topic">IBM Cloud Event Notifications topic</a> that will receive an event from Security and Compliance Dashboard.</p><p>1. Click <strong>Topics</strong>.</p><p>2. Click <strong>Create</strong>. The <strong>Topic details</strong> panel opens.</p><p>3. In the <strong>Topic details</strong> enter the following:</p><p>· Enter the <strong>Name</strong> for your topic. For example, SecurityThreat.</p><p>· For <strong>Source</strong> select the IBM Cloud Event Notifications source, which is named the same as your Security and Compliance Dashboard.</p><p>· Select an <strong>Event Type</strong>.</p><p>· Select an <strong>Event subtype</strong>.</p><p>· Select a <strong>Severity</strong>.</p><p>4. Click <strong>Add a condition</strong>. (If you do not click <strong>Add a condition</strong> before you click <strong>Create</strong>, the topic will be created with no conditions associated with it.)</p><p>5. Click <strong>Create</strong>. Your topic will be displayed in the <strong>Topics</strong> list.</p><p><strong>Note: </strong>Click <strong>Add a condition </strong>without selecting any Event Type to send the test event from Security and Compliance Dashboard.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*rwzjO4LeK6ez6VhJbJyCIw.png" /></figure><p><strong>Step 6: Create an IBM Cloud Event Notifications ServiceNow Subscription</strong></p><p>1. Click <strong>Subscriptions</strong>.</p><p>2. Click <strong>Create</strong>. The <strong>Create a subscription</strong> panel opens.</p><p>3. In the <strong>Create a subscription</strong> panel enter the following:</p><p>· Enter the <strong>Name</strong> for your subscription. For example, ServiceNowSubscription/PagerDutySubscription.</p><p>· For <strong>Topic</strong> select the topic you created. For example, SecurityThreat.</p><p>· For <strong>Destination</strong> select <em>ServiceNow/PagerDuty.</em></p><h3>Step 7: Sending a test event to Event Notifications from the SCC Dashboard</h3><p>After you enable notifications for Security and Compliance Center, test your connection to ensure that the events that are generated by Security and Compliance Center are being forwarded to Event Notifications.</p><p>1. In the Security and Compliance Center UI, click <strong>Settings</strong>.</p><p>2. In the Event Notifications section, click <strong>Send test event</strong>.</p><p>A success message is displayed to indicate that the test event was forwarded successfully to Event Notifications.</p><p>You should start receiving ServiceNow and PagerDuty incidents that you configured whenever the criteria defined in both Security and Compliance Center and IBM Cloud Event Notifications match.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*NkYnl4UlSHpye3E7_ouCnw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*fF2QGiE57LSZ1QHIpHPmVA.png" /></figure><p>Cheers! Check out my profile for more such similar tutorials :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e1f5b9e909c4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Create a GitHub issue when your certificates/secrets are about to expire]]></title>
            <link>https://towardsdev.com/create-a-github-issue-when-your-certificates-secrets-are-about-to-expire-1cd16cb92956?source=rss-4dace7918512------2</link>
            <guid isPermaLink="false">https://medium.com/p/1cd16cb92956</guid>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[notifications]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[cloud-functions]]></category>
            <category><![CDATA[secrets]]></category>
            <dc:creator><![CDATA[Pradeep Gopalgowda]]></dc:creator>
            <pubDate>Thu, 05 Jan 2023 09:17:36 GMT</pubDate>
            <atom:updated>2023-01-13T12:49:01.188Z</atom:updated>
            <content:encoded><![CDATA[<p>This tutorial shows you how to create a GitHub issue when your certificates/secrets are about to expire.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GNZPWECTWBsvqZeTQDITuQ.png" /></figure><h3>Step 1: Enable notifications for Secrets Manager</h3><p>To work with Secrets Manager and Event Notifications, you need to create instances of both services in your IBM Cloud account.</p><p>Already have instances of both services in your account? Verify that you have Manager service access or higher on both services so that you can update settings in your instances.</p><ol><li>Log in to the IBM Cloud console.</li><li>Go to the <a href="https://cloud.ibm.com/catalog">IBM Cloud catalog</a>.</li><li><a href="https://cloud.ibm.com/docs/secrets-manager?topic=secrets-manager-create-instance">Create a Secrets Manager service instance</a>.</li><li><a href="https://cloud.ibm.com/docs/event-notifications?topic=event-notifications-en-create-en-instance">Create an Event Notifications service instance</a>.</li></ol><h3>Step 2: Connect your Secrets Manager and Event Notifications instances</h3><p>Start by connecting your Event Notifications and Secrets Manager instances to enable lifecycle notifications for Secrets Manager. You can use the Settings &gt; Event Notifications section in the Secrets Manager UI to connect the services.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vW80Fkq5JU2fTuKHO_h6SA.png" /><figcaption>Connecting to Event Notifications</figcaption></figure><p>Next step is creating a <a href="https://cloud.ibm.com/docs/openwhisk">Cloud Functions</a> action. A Cloud Functions action is a piece of code that can be run in response to a trigger, such as an incoming notification from the Event Notifications service. Your Cloud Functions action can contain code that takes an incoming payload from Event Notifications, which originated as an event in Secrets Manager, and uses it to create a GitHub issue.</p><h3>Step 3: Create a Cloud Functions action</h3><p>To create a Cloud Functions action, you can use the Functions UI.</p><ol><li>In the IBM Cloud console, click the Menu icon &gt; Functions.</li><li>In the navigation, click Actions &gt; Create.</li><li>Give the action a name. For example, <em>sm-notifications-github</em>.</li><li>Choose the default package.</li><li>Select a Node.js runtime.</li><li>Click Create.</li></ol><p><strong><em>Copy the following JavaScript code and update the placeholder values.</em></strong></p><blockquote>const axios = require(‘axios’);<br>const jwtVerify = require(‘jsonwebtoken’).verify;</blockquote><blockquote>// Generate an IAM token<br>async function getIAMToken() {<br> const options = {<br> url: ‘<a href="https://iam.cloud.ibm.com/identity/token&#39;">https://iam.cloud.ibm.com/identity/token&#39;</a>,<br> method: ‘POST’,<br> header: ‘Content-Type: application/x-www-form-urlencoded’,<br> data: ‘grant_type=urn:ibm:params:oauth:grant-type:apikey&amp;apikey=API_KEY’<br> };</blockquote><blockquote>const response = await axios(options);<br> const responseData = response.data;<br> console.log(“\nGenerated an IAM token..”);<br> return responseData.access_token;<br>}</blockquote><blockquote>// Get a public key to verify notifications<br>async function getPublicKey() {<br> const accessToken = await getIAMToken();</blockquote><blockquote>const options = {<br> method: ‘GET’,<br> url: ‘&lt;event_notifications_endpoint_url&gt;/destinations/&lt;destination_id&gt;/public_key’,<br> headers: {<br> ‘authorization’: ‘Bearer ‘ + accessToken<br> }<br> };</blockquote><blockquote>const response = await axios(options);<br> const responseData = response.data;<br> console.log(‘\nRetrieved a public key from Event Notifications..’);<br> return responseData.public_key;<br>}</blockquote><blockquote>function getDate(timestamp) {<br> return new Date(timestamp).toDateString();<br>}</blockquote><blockquote>// Build a GitHub issue description according to the event type<br>function createIssueBody(decodedNotification) {<br> if (decodedNotification.event_type === “test_event”) // Remove this option later if you don’t want to create issues for test events<br> return `This is a test notification from ${decodedNotification.source_service}.`; <br> if (decodedNotification.event_type === “secret_about_to_expire”)<br> return `The following certificate(s) expire on ${getDate(decodedNotification.secrets_expiration_date)}:<br> ${decodedNotification.secrets.reduce((accumulator, currentValue) =&gt; {<br> return accumulator + `<br> &gt; Domain(s): ${currentValue.domains}<br> Secret ID: ${currentValue.secret_id}<br> Secret name: ${currentValue.secret_name}<br> `;<br> }, “”)}`;<br> if (decodedNotification.event_type === “secret_expired”)<br> return `The following certificate(s) have expired:<br> ${decodedNotification.secrets.reduce((accumulator, currentValue) =&gt; {<br> return accumulator + `<br> &gt; Domain(s): ${currentValue.domains}<br> Secret ID: ${currentValue.secret_id}<br> Secret name: ${currentValue.secret_name}<br> `;<br> }, “”)}`;<br>}</blockquote><blockquote>async function main(params) {<br> try {<br> const publicKey = await getPublicKey();</blockquote><blockquote>// Verify the notification data using the retrieved public key<br> const decodedNotification = await jwtVerify(params.__ow_body, publicKey).data.data;<br> console.log(`\nReceived the following event notification from Secrets Manager:\n${JSON.stringify(decodedNotification)}`);</blockquote><blockquote>const body = createIssueBody(decodedNotification);<br> if (!body) {<br> console.log(`\nNo action required for this notification. Event type: ${decodedNotification.event_type}`);<br> return;<br> }</blockquote><blockquote>// Create a GitHub issue with notification data<br> const options = {<br> method: ‘POST’,<br> url: ‘<a href="https://api.github.com/repos/">https://api.github.com/repos/</a>&lt;org_name&gt;/&lt;repo_name&gt;/issues&#39;,<br> headers: {<br> accept: ‘application/vnd.github.v3+json’,<br> authorization: ‘&lt;github_token&gt;’<br> },<br> data: {<br> title: ‘Test issue’,<br> body: body,<br> labels: [‘&lt;label&gt;’, ‘&lt;label&gt;’],<br> assignees: [‘&lt;assignee&gt;’]<br> }<br> };</blockquote><blockquote>await axios(options);<br> console.log(‘\nNotification successfully forwarded to GitHub!’);</blockquote><blockquote>} catch (error) {<br> console.error(error);<br> }<br>}</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kXhs-5lN2Y0G_jlG4Pp6Qw.png" /></figure><p><strong><em>Paste the code into your Functions action.</em></strong></p><ol><li>In the console, go Menu icon &gt; Functions &gt; Actions to return to the Functions UI.</li><li>From your list of actions, select the action that you created.</li><li>Paste the code that you modified.</li><li>Click Save.</li></ol><h3>Step 4: Update your Event Notifications settings</h3><p>Next, update your Event Notifications settings so that the service can begin to forward any incoming events from Secrets Manager to your new Cloud Functions action.</p><p><strong><em>Add your new Cloud Functions URL as a destination</em></strong></p><p>Start by adding your Cloud Functions webhook URL as a new Event Notifications destination.</p><ol><li>In the console, click the Menu icon&gt; Resource list.</li><li>From the list of resources, select your Event Notifications instance.</li><li>In the Event Notifications UI, go to Destinations.</li><li><a href="https://cloud.ibm.com/docs/event-notifications?topic=event-notifications-en-create-en-destination">Create a destination</a> so that your alerts can be forwarded to the Cloud Functions webhook that you created the previous step.</li><li>From the navigation, click Destinations &gt; Add.</li><li>Provide a name for your destination. For example, <em>GitHub</em>.</li><li>Select Cloud Functions as the destination type.</li><li>In the Add a destination side panel, provide the following details.</li></ol><ul><li>Name — Enter a name for your destination.</li><li>Description — Optionally, enter a description for your destination.</li><li>Type — Under Destination, for the Type, select IBM Cloud Functions from the drop-down as your destination type.</li><li>URL — Enter the Cloud Functions incoming webhook URL. This is the URL that you have <a href="https://cloud.ibm.com/docs/event-notifications?topic=event-notifications-en-destinations-cloud-functions#en-generate-cf-incoming-webhook-url">generated</a> .</li><li>API key — Enter the API key that you have <a href="https://cloud.ibm.com/docs/event-notifications?topic=event-notifications-en-destinations-cloud-functions#en-generate-cf-api-key">generated</a>.</li></ul><p>8. Click Add.</p><h3>Step 4: Test your connection to GitHub</h3><p>Finally, verify that you’re able to post your notifications to GitHub. You can use the Settings &gt; Event Notifications section in the Secrets Manager UI to send a test event. Then, check your GitHub repository to view the results.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X8yrH1Fw7smoUjBhqALyKw.png" /><figcaption>Sending a test event to Event Notifications</figcaption></figure><ol><li>In the IBM Cloud console, go to your Secrets Manager instance.</li><li>Go to Settings &gt; Event Notifications, and click Send test event.</li><li>Check the GitHub repository that you defined in the Functions action to verify the results.</li></ol><p>Cheers! Checkout my <a href="https://pradeep-sg406.medium.com/">profile</a> for more such interesting blogs and tutorials :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1cd16cb92956" width="1" height="1" alt=""><hr><p><a href="https://towardsdev.com/create-a-github-issue-when-your-certificates-secrets-are-about-to-expire-1cd16cb92956">Create a GitHub issue when your certificates/secrets are about to expire</a> was originally published in <a href="https://towardsdev.com/">Towards Dev</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Automate Everything -Trigger CD Pipelines using IBM Cloud Event Notifications]]></title>
            <link>https://blog.devops.dev/automate-everything-trigger-cd-pipelines-using-ibm-cloud-event-notifications-2e1dc66ec174?source=rss-4dace7918512------2</link>
            <guid isPermaLink="false">https://medium.com/p/2e1dc66ec174</guid>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[continuous-delivery]]></category>
            <category><![CDATA[ibm]]></category>
            <category><![CDATA[cloud]]></category>
            <dc:creator><![CDATA[Pradeep Gopalgowda]]></dc:creator>
            <pubDate>Sat, 17 Sep 2022 14:34:16 GMT</pubDate>
            <atom:updated>2022-09-21T21:14:48.815Z</atom:updated>
            <content:encoded><![CDATA[<p>There is a use-case where a “parent” pipeline needs to trigger multiple “child” pipelines. The eventual plan is to use a new spec <a href="https://github.com/cdevents">CDEvents</a> for these events emanating from Pipelines. CDEvents is a common specification for Continuous Delivery events, enabling interoperability in the complete software production ecosystem.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/349/0*P4IW-SjqK3AwNB78" /><figcaption>cdevents</figcaption></figure><p>For now this can be easily achieved using IBM Cloud Event Notifications. We can use API or IBM managed sources to send an event to IBM Cloud Event Notifications from the “parent” and then use Webhooks to trigger the “children”. There is a use case the IBM Cloudpak team is looking to implement this parent-children pipelines and they have to go edit the parent every time they have to add a new child.</p><p>In this tutorial, you will learn how to set up IBM Cloud® Security and Compliance Center source to send security event to IBM Cloud Event Notifications to trigger CD pipelines. For this tutorial IBM Cloud Event Notifications is configured to send webhook event to trigger CD pipelines.</p><p>In this tutorial you will configure the following flow:</p><ol><li>An event of interest takes place in the IBM Cloud Security and Compliance Center source.</li><li>IBM Cloud Security and Compliance Center source sends a notification to IBM Cloud Event Notifications.</li><li>IBM Cloud Event Notifications creates a webhook event and trigger the CD pipelines.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2cxEpdgAXmlTaNvhpBEVOw.png" /><figcaption>Flow Diagram</figcaption></figure><h3>Step 1: Create an IBM Cloud Event Notifications service instance</h3><ol><li>Log in to your <a href="https://cloud.ibm.com/">IBM Cloud account</a>.</li><li>In the <a href="https://cloud.ibm.com/catalog#services">IBM Cloud catalog</a>, search <strong>Event Notifications</strong> &gt; <strong>Event Notifications</strong>.</li><li><strong>Select a Region</strong> from the list of supported region and <strong>Select a pricing plan</strong>.</li><li>Provide a <strong>Service name</strong>.</li><li>Select a resource group.</li><li>Click <strong>Create</strong>.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/0*Qt-CsMPJYqfBSheu.png" /><figcaption>IBM Cloud Event Notifications</figcaption></figure><h3>Step 2: Connecting to Event Notifications in the Security and Compliance Center</h3><p>After signing into IBM Cloud, you can access the Security and Compliance Center:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*BeDB_osik4pMYx6t.png" /><figcaption>SCC Global Settings</figcaption></figure><ol><li>By clicking the <strong>Menu</strong> icon <strong>&gt; Security and Compliance</strong> in the navigation.</li><li>In the Security and Compliance Center navigation, click <strong>Global settings</strong>.</li><li>In the Event Notifications section, and click <strong>Connect</strong>.</li><li>In the side panel, review the source details for the connection. Optionally, provide a description.</li><li>Select the resource group and Event Notifications service instance that you want to connect.</li></ol><blockquote><em>If an IAM authorization between Security and Compliance Center and Event Notifications doesn’t exist in your account, a dialog is displayed. Follow the prompts to grant access between the services.</em></blockquote><blockquote><em>To grant access between Security and Compliance Center and Event Notifications, click </em><strong><em>Authorize</em></strong><em>.</em></blockquote><blockquote><em>In the side panel, select </em><strong><em>Event Notifications</em></strong><em> as the target service.</em></blockquote><blockquote><em>From the list of instances, select the Event Notifications service instance that you want to authorize.</em></blockquote><blockquote><em>Select the </em><strong><em>Event Source Manager</em></strong><em> role.</em></blockquote><blockquote><em>Click </em><strong><em>Review</em></strong><em>.</em></blockquote><blockquote><em>Click </em><strong><em>Assign</em></strong><em>.</em></blockquote><p>6. To confirm the connection, click <strong>Connect</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*-xeAap-6jRm2xLDo.png" /><figcaption>Connecting to IBM Cloud Event Notifications</figcaption></figure><p>A success message is displayed to indicate that Security and Compliance Center is now connected to Event Notifications. If you need to disconnect from Event Notifications later, you can use the options menu <strong>&gt; Disconnect</strong> to remove the Security and Compliance Center as a source service in the Event Notifications instance.</p><h3>Step 3: Verify the Security and Compliance Center source in IBM Cloud Event Notifications</h3><p>1. Click the menu icon &gt; <strong>Resource list</strong>.</p><p>2. Open <strong>Services and software</strong>.</p><p>3. Open the <a href="https://cloud.ibm.com/docs/monitoring?topic=monitoring-tutorial-en#en-create-instance">IBM Cloud Event Notifications instance you created.</a></p><p>4. Click <strong>Sources</strong>.</p><p>When you connect to Event Notifications in the Security and Compliance Center UI, a source is automatically added to your IBM Cloud Event Notifications <strong>Sources</strong> list.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Xu-32f1q3WX0Apdx.png" /><figcaption>SCC as a Source</figcaption></figure><h3>Step 4: Create an IBM Cloud Event Notifications Destination</h3><p>In this step you will make sure that an webhook destination exists where notifications will be forwarded.</p><ol><li>Click <strong>Destinations</strong>.</li><li>Add a webhook as a destination, you would click <strong>Add</strong> and provide the generic webhook trigger URL from the <a href="https://cloud.ibm.com/docs/ContinuousDelivery?topic=ContinuousDelivery-tekton-pipelines&amp;interface=ui#configure_tekton_pipeline">CD Tekton pipeline trigger configuration</a>.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_4t8eWUeqCcfIJBlEBujwQ.png" /><figcaption>CD Tekton Webhook Trigger URL</figcaption></figure><h3>Step 5: Create an IBM Cloud Event Notifications topic</h3><p>Next you will define an <a href="https://cloud.ibm.com/docs/event-notifications?topic=event-notifications-en-create-en-topic">IBM Cloud Event Notifications topic</a> that will receive an event from Security and Compliance Center.</p><p>1. Click <strong>Topics</strong>.</p><p>2. Click <strong>Create</strong>. The <strong>Topic details</strong> panel opens.</p><p>3. In the <strong>Topic details</strong> enter the following:</p><ul><li>Enter the <strong>Name</strong> for your topic. For example, VulnerabilityScan.</li><li>For <strong>Source</strong> select the IBM Cloud Event Notifications source, which is the Security and Compliance Center.</li><li>Select an <strong>Event Type</strong>. For this tutorial select Vulnerability Advisor.</li><li>Select an <strong>Event subtype</strong>. For this tutorial select <em>V</em>ulnerabilities found in container images.</li><li>Select a <strong>Severity</strong>. For this tutorial select <em>High Severity</em>.</li></ul><p>4. Click <strong>Add a condition</strong>. (If you do not click <strong>Add a condition</strong> before you click <strong>Create</strong>, the topic will be created with no conditions associated with it.)</p><p>5. Click <strong>Create</strong>. Your topic will be displayed in the <strong>Topics</strong> list.</p><p><strong>Note: </strong>Click <strong>Add a condition </strong>without selecting any Event Type to send the test event from Security and Compliance Center.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*O9Qk9fxiMidfyf-i.png" /><figcaption>Create a topic</figcaption></figure><h3>Step 6: Create an IBM Cloud Event Notifications Webhook Subscription</h3><p>In this step you will configure webhook subscription.</p><ol><li>Click <strong>Subscriptions</strong>.</li><li>Click <strong>Create</strong>. The <strong>Create a subscription</strong> panel opens.</li><li>In the <strong>Create a subscription</strong> panel enter the following:</li></ol><ul><li>Enter the <strong>Name</strong> for your subscription. For example, VulnerabilityAdvisor.</li><li>For <strong>Topic</strong> select the topic you created. For example, VulnerabilityScan.</li><li>For <strong>Destination</strong> select IBM Cloud Webhook service.</li></ul><p>4. Click <strong>Create</strong>. Your subscription will be added to the <strong>Subscriptions</strong> list.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yLYxXe02BRzxYzNLoCaQ7A.png" /><figcaption>Create a Subscription</figcaption></figure><h3>Step 7: Sending a test event to Event Notifications from the UI</h3><p>After you enable notifications for Security and Compliance Center, test your connection to ensure that the events that are generated by Security and Compliance Center are being forwarded to Event Notifications.</p><ol><li>In the Security and Compliance Center UI, click <strong>Global settings</strong>.</li><li>In the Event Notifications section, click <strong>Send test event</strong>.</li></ol><p>A success message is displayed to indicate that the test event was forwarded successfully to Event Notifications.</p><p>When an event of interest takes place in the Security and Compliance Center, you should see the service communicates with a connected Event Notifications instance to trigger the CD Tekton pipelines.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vxNvz44ezyqJJdl9RX1HEg.png" /><figcaption>PipelineRun</figcaption></figure><p>Cheers! For setting up webhooks, check out the <a href="https://cloud.ibm.com/docs/event-notifications?topic=event-notifications-en-destinations-webhook">Event Notifications documentation</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2e1dc66ec174" width="1" height="1" alt=""><hr><p><a href="https://blog.devops.dev/automate-everything-trigger-cd-pipelines-using-ibm-cloud-event-notifications-2e1dc66ec174">Automate Everything -Trigger CD Pipelines using IBM Cloud Event Notifications</a> was originally published in <a href="https://blog.devops.dev/">DevOps.dev</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[IBM Cloud Monitoring using Event Notifications channel]]></title>
            <link>https://pradeep-sg406.medium.com/ibm-cloud-monitoring-using-event-notifications-channel-1b0431f5eb87?source=rss-4dace7918512------2</link>
            <guid isPermaLink="false">https://medium.com/p/1b0431f5eb87</guid>
            <category><![CDATA[notifications]]></category>
            <category><![CDATA[monitoring]]></category>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[alertmanager]]></category>
            <category><![CDATA[ibm]]></category>
            <dc:creator><![CDATA[Pradeep Gopalgowda]]></dc:creator>
            <pubDate>Fri, 22 Jul 2022 07:21:31 GMT</pubDate>
            <atom:updated>2022-07-22T07:21:31.463Z</atom:updated>
            <content:encoded><![CDATA[<p>In this tutorial, you learn how to set up IBM Cloud® Monitoring to send alert notifications to IBM Cloud Event Notifications. For this tutorial IBM Cloud Event Notifications is configured to send email notifications to subscribers.</p><p>In this tutorial you will configure the following flow:</p><ol><li>An alert is raised in IBM Cloud Monitoring.</li><li>IBM Cloud Monitoring sends a notification to IBM Cloud Event Notifications.</li><li>IBM Cloud Event Notifications creates an email and sends the email to the subscribed user.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dVX5GXdeNu4rFNgK9dgZaQ.png" /></figure><h3>Before you begin</h3><p><a href="https://cloud.ibm.com/docs/event-notifications?topic=event-notifications-en-regions-endpoints">IBM Cloud Event Notifications is available in a limited number of regions</a>. Your IBM Cloud Monitoring and IBM Cloud Event Notifications instances must be in the same region to communicate with one another. Because of this, support for integration with IBM Cloud Event Notifications is limited to the regions where IBM Cloud Event Notifications is supported and where IBM Cloud Monitoring is also installed.</p><p>Make sure you have an IBM Cloud Monitoring instance configured and collecting logs in a region where IBM Cloud Event Notifications is supported. For this tutorial we will use us-south.</p><h3>Step 1: Log in to IBM Cloud</h3><p>Log in to your IBM Cloud account.</p><ol><li>Click <a href="https://cloud.ibm.com/login">IBM Cloud dashboard</a> to launch the IBM Cloud dashboard.</li><li>Log in with your user ID and password. The IBM Cloud Dashboard opens.</li></ol><h3>Step 2: Create an IBM Cloud Event Notifications service instance</h3><p>First, create an IBM Cloud Event Notifications service instance by doing the following:</p><ol><li>Click Catalog.</li><li>In Search the catalog enter <em>Event Notifications</em>.</li><li>In the Create tab enter:</li></ol><ul><li>For <em>Select a location</em> select Dallas (us-south).</li><li>For <em>Select a pricing plan</em> select Lite.</li><li>For <em>Service name</em> enter a name of your choice. For example: my_event_notifications.</li><li>For <em>Select a resource group</em> enter your resource group.</li></ul><p>4. Read and agree to the license agreements.</p><p>5. Click Create</p><p>Your IBM Cloud Event Notifications instance is created and is displayed.</p><h3>Step 3: Configure permissions</h3><p>To grant an instance of the IBM Cloud Monitoring service access to an instance of the IBM Cloud Event Notifications service, you must define an authorization where the source service is set to IBM Cloud Monitoring and Resources based on selected attributes; the target service is set to IBM Cloud Event Notifications and Resources based on selected attributes; and the service access includes both <em>Reader</em> and <em>Event Source Manager</em> access.</p><ol><li>Click Manage &gt; Access (IAM).</li><li>Click Authorizations.</li><li>Click Create.</li><li>For Source service select <em>IBM Cloud Monitoring</em>.</li><li>For How do you want to scope the access? select All resources.</li><li>For Target service select <em>Event Notifications</em>.</li><li>For How do you want to scope the access? select All resources.</li><li>For Service access make sure <em>Reader</em> and <em>Event Source Manager</em> are selected.</li><li>Click Authorize.</li></ol><p>For more information on how to define authorizations, see <a href="https://cloud.ibm.com/docs/account?topic=account-serviceauth&amp;interface=ui">Using authorizations to grant access between services</a>.</p><h3>Step 4: Configure a notification source in IBM Cloud Event Notifications</h3><p>To create a notification source in IBM Cloud Event Notifications you will make the configuration change in IBM Cloud Monitoring. When you create the notification channel in IBM Cloud Monitoring it will be available automatically in IBM Cloud Event Notifications.</p><ol><li>Click the menu icon</li><li>In the navigation menu, select Observability.</li><li>Select Monitoring.</li><li>The list of instances that are available on IBM Cloud is displayed.</li><li>Select an instance in the us-south region. Then, click Open dashboard.</li><li>The Web UI opens.</li><li>In the navigation click the circle icon with your initials.</li><li>Click Settings.</li><li>Click Notification Channels.</li><li>Click Add Notification Channel.</li><li>Select <em>IBM Event Notifications</em>.</li><li>For Event Notifications Instance select the <a href="https://cloud.ibm.com/docs/monitoring?topic=monitoring-tutorial-en#en-create-instance">IBM Cloud Event Notifications you created.</a></li><li>For Channel Name give your channge a unique name. For example, my_event_notification_channel.</li><li>For this tutorial leave all options enabled and the Shared With team as the default value.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*bcSr-caGBK_V29dU.png" /><figcaption>New IBM Event Notification Channel</figcaption></figure><p>15. Click Save.</p><p>16. Click the menu icon &gt; Resource list.</p><p>17. Open Services and software.</p><p>18. Open the <a href="https://cloud.ibm.com/docs/monitoring?topic=monitoring-tutorial-en#en-create-instance">IBM Cloud Event Notifications instance you created.</a> For example, my_event_notifications.</p><p>19. Click Sources.</p><p>When you configure the channel in Monitoring, a source, with the same name as your Monitoring instance name, is automatically added to your IBM Cloud Event Notifications Sources list.</p><h3>Step 5: Create an IBM Cloud Event Notifications topic</h3><p>Next you will define an <a href="https://cloud.ibm.com/docs/event-notifications?topic=event-notifications-en-create-en-topic">IBM Cloud Event Notifications topic</a> that will receive the notification from IBM Cloud Monitoring.</p><ol><li>Click Topics.</li><li>Click Create. The Topic details panel opens.</li><li>In the Topic details enter the following:</li></ol><ul><li>Enter the Name for your topic. For example, MyMonitoringTopic.</li><li>For Source select the IBM Cloud Event Notifications source, which is named the same as your IBM Cloud Monitoring instance.</li><li>Select an Event Type. For this tutorial select <em>Alert</em>.</li><li>Select an Event subtype. For this tutorial select <em>Metric</em>.</li><li>Select a Severity. For this tutorial select <em>Info Severity</em>.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*_WckYS0gIyHy7K9h.png" /><figcaption>Topic Details</figcaption></figure><p>4. Click Add a condition.</p><p>5. Click Create. Your topic will be displayed in the Topics list.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*n8dGLhq4xQtLoBE1.png" /><figcaption>Topics List</figcaption></figure><h3>Step 6: Create an IBM Cloud Event Notifications destination</h3><p>In this step you will make sure that an email destination exists where notifications will be forwarded.</p><ol><li>Click Destinations.</li><li>Notice in the Destinations list that, by default, there is an <em>IBM Cloud Email service</em> defined. You do not need to do anything else to configure an email destination.</li></ol><h3>Step 7: Create an IBM Cloud Event Notifications email subscription</h3><p>In this step you will configure who will receive an email when a notification is processed.</p><ol><li>Click Subscriptions.</li><li>Click Create. The Create a subscription panel opens.</li><li>In the Create a subscription panel enter the following:</li></ol><ul><li>Enter the Name for your subscription. For example, MyMonitoringSubscription.</li><li>For Topic select the topic you created. For example, MyMonitoringTopic.</li><li>For Destination select IBM Cloud Email service.</li><li>For Recipients enter a valid email address, for example, MyEmail@MyCompany.com</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*g3A2KG4PTzh0_3lR.png" /><figcaption>Create Subscription</figcaption></figure><p>4. Click Create. Your subscription will be added to the Subscriptions list.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*AQ0B3sjtJmeAj7hE.png" /><figcaption>Subscriptions List</figcaption></figure><h3>Step 8: Create an IBM Cloud Monitoring alert notification</h3><p>Now, create an <a href="https://cloud.ibm.com/docs/monitoring?topic=monitoring-alerts">IBM Cloud Monitoring alert</a> that will trigger the IBM Cloud Event Notifications notification.</p><ol><li>Click the menu icon</li><li>In the navigation menu, select Observability.</li><li>Select Monitoring.</li><li>The list of instances that are available on IBM Cloud is displayed.</li><li>Select the <a href="https://cloud.ibm.com/docs/monitoring?topic=monitoring-tutorial-en#en-notification">IBM Cloud Monitoring instance that you configured to send notifications to IBM Cloud Event Notifications.</a>. Click Open Dashboard.</li><li>Click Alerts.</li><li>Click Add Alert.</li><li>Create an alert that meets the criteria of the <a href="https://cloud.ibm.com/docs/monitoring?topic=monitoring-tutorial-en#en-topic">IBM Cloud Event Notifications topic that you created.</a></li><li>Click Metric.</li><li>For the new alert specify the following:</li></ol><ul><li>For Name specify MyEventNotificationAlert.</li><li>For Severity specify Info.</li><li>Define a metric for you system that you know will trigger an alert.</li><li>Enable the myEventNotificationChannel for the alert.</li></ul><p>11. Click Create.</p><h3>Next steps</h3><p>You should start receiving email notifications at the email address that you configured whenever the criteria defined in both IBM Cloud Monitoring and IBM Cloud Event Notifications match.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1b0431f5eb87" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Set up the slack alerts for your expiring secrets and certificates]]></title>
            <link>https://pradeep-sg406.medium.com/set-up-the-slack-alerts-for-your-expiring-secrets-and-certificates-111bbf8c0521?source=rss-4dace7918512------2</link>
            <guid isPermaLink="false">https://medium.com/p/111bbf8c0521</guid>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[notifications]]></category>
            <category><![CDATA[slack]]></category>
            <category><![CDATA[ibm]]></category>
            <category><![CDATA[secrets]]></category>
            <dc:creator><![CDATA[Pradeep Gopalgowda]]></dc:creator>
            <pubDate>Tue, 31 May 2022 09:20:19 GMT</pubDate>
            <atom:updated>2022-05-31T10:00:26.047Z</atom:updated>
            <content:encoded><![CDATA[<p>In this tutorial, you will learn how to setup slack alerts from an event notification that originated in your IBM Cloud® Secrets Manager service instance which uses an incoming Secrets Manager event to post a notification to Slack channel.</p><blockquote>IBM Cloud Event Notifications supports the native slack integration. No longer need to go thru webhooks!</blockquote><h4>What is IBM Cloud Event Notifications?</h4><p>IBM Cloud® Event Notifications is an event notification routing service that notifies you to critical events that occur in your IBM Cloud account or triggers automated actions by using webhooks. You can filter and route event notifications from IBM Cloud services like Availability Monitoring, to email, SMS, push notifications and webhooks.</p><h4>How events are sent by Secrets Manager?</h4><p>When an event of interest takes place in your Secrets Manager instance, Secrets Manager communicates with a connected Event Notifications instance to forward a notification to a <a href="https://cloud.ibm.com/docs/event-notifications?topic=event-notifications-en-destination">supported destination</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dyQ4qzBCV6Iu9uwuQdIlAQ.png" /><figcaption>Posting a notification to Slack</figcaption></figure><h4>Before you begin</h4><p>Before you get started, you need the following prerequisites:</p><ul><li>A Slack app with an <a href="https://api.slack.com/messaging/webhooks">incoming webhook URL</a> enabled.</li><li>A Slack channel to post your incoming notifications.</li><li>The Slack app must be added to your channel so that incoming messages are displayed. For more information, see the <a href="https://slack.com/help/articles/202035138-Add-apps-to-your-Slack-workspace">Slack documentation</a>.</li></ul><h4>Step 1: Create an IBM Cloud Event Notifications service instance</h4><ol><li>Log in to your <a href="https://cloud.ibm.com/">IBM Cloud account</a>.</li><li>In the <a href="https://cloud.ibm.com/catalog#services">IBM Cloud catalog</a>, search <strong>Event Notifications</strong> &gt; <strong>Event Notifications</strong>.</li><li><strong>Select a Region</strong> from the list of supported region and <strong>Select a pricing plan</strong>.</li><li>Provide a <strong>Service name</strong>.</li><li>Select a resource group.</li><li>Click <strong>Create</strong>.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/0*csUpExixKcQZVmby.png" /><figcaption>IBM Cloud Event Notifications</figcaption></figure><h4>Step 2: Create an IBM Cloud Secrets Manager service instance</h4><ol><li>In the <a href="https://cloud.ibm.com/catalog#services">IBM Cloud catalog</a>, search <strong>Secrets Manager</strong> &gt; <strong>Secrets Manager</strong>.</li><li><strong>Select a Region</strong> from the list of supported region and <strong>Select a pricing plan</strong>.</li><li>Provide a <strong>Service name</strong>.</li><li>Select a resource group.</li><li>Click <strong>Create</strong>.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*JsPudF9Ft7yVbtW9.png" /><figcaption>Secrets Manager</figcaption></figure><h4>Step 3: Connecting to IBM Cloud Event Notifications in the Secrets Manager UI</h4><ol><li>From the Secrets Manager instance, click <strong>Settings</strong>.</li><li>In the Event Notifications section, click <strong>Connect</strong>.</li><li>In the side panel, review the source details for the connection. Optionally, provide a description.</li><li>Select the resource group and Event Notifications service instance that you want to connect.</li><li>If an IAM authorization between Secrets Manager and Event Notifications doesn’t exist in your account, a dialog is displayed. Follow the prompts to grant access between the services.</li></ol><blockquote><em>To grant access between Secrets Manager and Event Notifications, click </em><strong><em>Authorize</em></strong><em>.</em></blockquote><blockquote><em>In the side panel, select </em><strong><em>Event Notifications</em></strong><em> as the target service.</em></blockquote><blockquote><em>From the list of instances, select the Event Notifications service instance that you want to authorize.</em></blockquote><blockquote><em>Select the </em><strong><em>Event Source Manager</em></strong><em> role.</em></blockquote><blockquote><em>Click </em><strong><em>Review</em></strong><em>.</em></blockquote><blockquote><em>Click </em><strong><em>Assign</em></strong><em>.</em></blockquote><p>6. To confirm the connection, click <strong>Connect</strong>.</p><p>A success message is displayed to indicate that Secrets Manager is now connected to Event Notifications.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*G63VKA-cOcFCxRRX.png" /><figcaption>Connecting to IBM Cloud Event Notifications</figcaption></figure><h4>Step 4: Verify the Secrets Manager source in IBM Cloud Event Notifications</h4><p>1. Click the menu icon &gt; <strong>Resource list</strong>.</p><p>2. Open <strong>Services and software</strong>.</p><p>3. Open the <a href="https://cloud.ibm.com/docs/monitoring?topic=monitoring-tutorial-en#en-create-instance">IBM Cloud Event Notifications instance you created.</a></p><p>4. Click <strong>Sources</strong>.</p><p>When you connect to Event Notifications in the Secrets Manager UI, a source, with the same name as your Secrets Manager instance name, is automatically added to your IBM Cloud Event Notifications <strong>Sources</strong> list.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*yhIn9lPgyXx_WCWc.png" /><figcaption>Secret Manager as a source</figcaption></figure><h4>Step 5: Create an IBM Cloud Event Notifications Destination</h4><ol><li>In the Event Notifications UI, go to <strong>Destinations</strong>.</li><li>Create a destination</li></ol><ul><li>From the navigation, click <strong>Destinations &gt; Add</strong>.</li><li>Provide a name for your destination. For example, <em>Slack</em>.</li><li>Select <strong>Webhook</strong> as the destination type.</li><li>Paste the URL that you copied from an <a href="https://api.slack.com/messaging/webhooks">incoming webhook URL</a></li><li>Click Add.</li></ul><h4>Step 6: Create an IBM Cloud Event Notifications topic</h4><p>Next you will define an <a href="https://cloud.ibm.com/docs/event-notifications?topic=event-notifications-en-create-en-topic">IBM Cloud Event Notifications topic</a> that will receive an event from Secret Manager.</p><p>1. Click <strong>Topics</strong>.</p><p>2. Click <strong>Create</strong>. The <strong>Topic details</strong> panel opens.</p><p>3. In the <strong>Topic details</strong> enter the following:</p><ul><li>Enter the <strong>Name</strong> for your topic. For example, MonitorSecretExpiry.</li><li>For <strong>Source</strong> select the IBM Cloud Event Notifications source, which is named the same as your Secrets Manager instance.</li><li>Select an <strong>Event Type</strong>. For this tutorial select <em>Secret about to expire</em>.</li><li>Select an <strong>Event subtype</strong>. For this tutorial select <em>Secret expire in 10 days</em>.</li><li>Select a <strong>Severity</strong>. For this tutorial select <em>High Severity</em>.</li></ul><p>4. Click <strong>Add a condition</strong>. (If you do not click <strong>Add a condition</strong> before you click <strong>Create</strong>, the topic will be created with no conditions associated with it.)</p><p>5. Click <strong>Create</strong>. Your topic will be displayed in the <strong>Topics</strong> list.</p><p><strong>Note: </strong>Click <strong>Add a condition </strong>without selecting any Event Type to send the test event from Secrets Manager UI.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Pwq8BovQGm5TBG0k.png" /><figcaption>Create a topic</figcaption></figure><h4>Step 7: Create an IBM Cloud Event Notifications Slack Subscription</h4><p>In this step you will configure who will receive a slack alert when a notification is processed.</p><ol><li>Click <strong>Subscriptions</strong>.</li><li>Click <strong>Create</strong>. The <strong>Create a subscription</strong> panel opens.</li><li>In the <strong>Create a subscription</strong> panel enter the following:</li></ol><ul><li>Enter the <strong>Name</strong> for your subscription. For example, SecretExpirySubscription.</li><li>For <strong>Topic</strong> select the topic you created. For example, MonitorSecretExpiry.</li><li>For <strong>Destination</strong> select <em>Slack.</em></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Kv1OtrN_bMpv4T-QG6EL3g.png" /><figcaption>Create a Subscription</figcaption></figure><h4>Step 8: Sending test event from Secret Manager UI</h4><p>In this step you will send test event from Secret Manager UI.</p><p>1. Click the menu icon &gt; <strong>Resource list</strong>.</p><p>2. Open <strong>Services and software</strong>.</p><p>3. Open the Secrets Manager instance you created.</p><p>4. Click <strong>Settings</strong>.</p><p>5. Click on <strong>send test event.</strong></p><p>You should start receiving slack alert that you configured whenever the criteria defined in both Secrets Manager and IBM Cloud Event Notifications match.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eWRx4aGryiEiMLjDtprwNw.png" /><figcaption>Slack Alert</figcaption></figure><p>Cheers! Let me know your feedback in the comment section.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=111bbf8c0521" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Secure your Cloud Native application with IBM Cloud App ID]]></title>
            <link>https://pradeep-sg406.medium.com/secure-your-cloud-native-application-with-ibm-cloud-app-id-f68e701942c2?source=rss-4dace7918512------2</link>
            <guid isPermaLink="false">https://medium.com/p/f68e701942c2</guid>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[cloud-native]]></category>
            <category><![CDATA[identity-management]]></category>
            <category><![CDATA[ibm]]></category>
            <dc:creator><![CDATA[Pradeep Gopalgowda]]></dc:creator>
            <pubDate>Mon, 16 May 2022 07:03:50 GMT</pubDate>
            <atom:updated>2022-05-16T07:03:50.794Z</atom:updated>
            <content:encoded><![CDATA[<p>Developer time to value is critical when building applications. What’s even more important is ensuring that the right people are kept out and the right people are allowed in to access the valuable data served by applications. It’s critical in today’s world that the proper tools enable developers to rapidly build applications and provide robust security capabilities. By integrating <a href="https://cloud.ibm.com/catalog/services/app-id">IBM Cloud App ID</a> into your apps, you can secure resources and add authentication even when you don’t have a lot of security experience.</p><p><strong>What is IBM Cloud App ID?</strong></p><p>IBM Cloud App ID is a cloud service that allows developers to easily add authentication and authorization capabilities to their applications while all the operational aspects of the service are handled by the <a href="https://www.ibm.com/cloud">IBM Cloud Platform</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/0*oTE1fpzSBvgu21sR" /><figcaption>IBM Cloud App ID</figcaption></figure><p>App ID is intended for developers that don’t need or want to know anything about various security protocols. The service provides capabilities like Cloud Directory (a highly scalable user repository in the cloud), enterprise identity federation, social login, SSO, customizable Login Widget UI, flexible access controls and user profiles, multi-factor authentication, a set of open-sourced SDKs for easy app instrumentation, and more.</p><p>A major benefit of using App ID is the deep integration with other IBM Cloud components that creates a seamless experience for easy protection of <a href="https://www.ibm.com/cloud/learn/cloud-native">cloud native</a> applications, including <a href="https://www.ibm.com/cloud/container-service">IBM Cloud Kubernetes Service</a>, <a href="https://cloud.ibm.com/functions">Cloud Functions</a>, <a href="https://www.ibm.com/cloud/cloud-foundry">Cloud Foundry</a>, <a href="https://www.ibm.com/cloud/api-connect">API Connect</a>, <a href="https://www.ibm.com/cloud/activity-tracker">Activity Tracker</a>, and more.</p><p><strong>How it works?</strong></p><p>With App ID, you can add a level of security to your apps by requiring users to sign in. You can also use the server SDK or APIs to protect your back-end resources.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*_UhaR1MtmwvbejE0.png" /><figcaption>How App ID works</figcaption></figure><h3><strong>Tutorial: Protecting the Node.js Web applications using IBM Cloud App ID and running in Kubernetes.</strong></h3><p>In this tutorial you will deploy a simple node.js web application in Kubernetes cluster and protect it using the IBM Cloud App ID service.</p><h4>Step 1: Create a service instance</h4><p>Create and bind an instance of App ID to your app to get started.</p><ol><li>Check to be sure that you have the <a href="https://cloud.ibm.com/docs/overview?topic=overview-prereqs-platform">IBM Cloud prerequisites</a>.</li><li>In the IBM Cloud catalog, select App ID. The service configuration screen opens.</li><li>Give your service instance a name, or use the present name.</li><li>Select your pricing plan and click Create.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*t3_cc1Ap_rVau-7WGD6d_Q.png" /><figcaption>App ID</figcaption></figure><p>That’s it! You’re ready to start configuring your application settings.</p><h4>Step 2: Configure a sample app</h4><p><strong>Prerequisites:</strong></p><blockquote>Before you begin make sure that IBM Cloud CLI, docker and kubectl installed and that you have a running Kubernetes cluster. You also need an IBM Cloud container registry namespace (see <a href="https://cloud.ibm.com/kubernetes/registry/main/start">https://cloud.ibm.com/kubernetes/registry/main/start</a>). You can find your registry domain and repository namespace using ibmcloud cr namespaces.</blockquote><ol><li>Download the <a href="https://github.com/PradeepGopalgowda/app-id-sample-node-app">sample node app</a></li><li>Login to IBM Cloud.ibmcloud login --sso</li><li>Run the following command, it will output an export command.ibmcloud ks cluster-config {CLUSTER_NAME}</li><li>Set the KUBECONFIG environment variable. Copy the output from the previous command and paste it in your terminal. The command output looks similar to the following example:export KUBECONFIG=/Users/$USER/.bluemix/plugins/container-service/clusters/mycluster/kube-config-hou02-mycluster.yml</li><li>Bind the instance of App ID to your cluster.ibmcloud ks cluster service bind -c {CLUSTER_NAME} -n default --service {APP_ID_INSTANCE_NAME}</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rL2dJQ-BhvtJE0gtYmJxkQ.png" /></figure><p>6. Find your cluster’s public endpoint {CLUSTER_ENDPOINT}. <em>Note: If you are using the free version of kubernetes (with only 1 worker node) you can use your node’s public IP instead, which you can find using:</em><em>ibmcloud ks workers -c {CLUSTER_NAME}</em></p><p>7. Edit the kube_deployment.yml file.</p><blockquote>Edit the image field of the deployment section to match your image name. The name of your image should be {REGISTRY_DOMAIN}/{REPOSITORY_NAMESPACE}/appid-node-sample:{APP_VERSION}).</blockquote><blockquote>Edit the Binding name field to match yours. It should be binding-{APP_ID_INSTANCE_NAME}.</blockquote><blockquote>Edit redirectUri’s value to include your cluster’s IP. The value should be <a href="http://{cluster_endpoint}/ibm/cloud/appid/callback">http://{CLUSTER_ENDPOINT}/ibm/cloud/appid/callback</a></blockquote><blockquote>Optional: Change the value of metadata.namespace from default to your cluster namespace if you’re using a different namespace.</blockquote><p>8. Build your Docker image.docker build -t {REGISTRY_DOMAIN}/{REPOSITORY_NAMESPACE}/appid-node-sample:{APP_VERSION} .</p><p>9. Push the image.docker push {REGISTRY_DOMAIN}/{REPOSITORY_NAMESPACE}/appid-node-sample:{APP_VERSION}</p><p>10. Deploy by executing kubectl apply -f kube_deployment.yml</p><p>11. Now configure the OAuth redirect URL at the App ID dashboard so it will approve redirecting to your cluster. Go to your App ID instance at <a href="https://cloud.ibm.com/resources">IBM Cloud console</a> and under Manage Authentication-&gt;Authentication Settings-&gt;Add web redirect URLs add the following URL:<a href="https://{cluster_endpoint}:30000/ibm/cloud/appid/callback">https://{CLUSTER_ENDPOINT}:30000/ibm/cloud/appid/callback</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_wQm9CEm_hJ21a20dr_VjQ.png" /><figcaption>Manage Identity Providers</figcaption></figure><p>12. You can see your sample running on Kubernetes in IBM Cloud.open <a href="http://{cluster_endpoint}:30000/">http://{CLUSTER_ENDPOINT}:30000</a></p><p>13. Click on Login</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7lV92UelVFal8LYYYQdHZw.png" /><figcaption>Login page</figcaption></figure><p>14. Click Login with Google</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Cc4h13b7YbYxFfQcLibHoA.png" /><figcaption>Identity Providers</figcaption></figure><p>15. After signing in using Google identity provider, you have successfully authenticated to your Web Application.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HziwgSSSPjSGXXi4PsgKVA.png" /><figcaption>Authentication Success</figcaption></figure><p>Share your thoughts and experience. Thank you and Cheers!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f68e701942c2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Monitor the Security and Compliance posture using Email subscriptions from IBM Cloud Event…]]></title>
            <link>https://pradeep-sg406.medium.com/monitor-the-security-and-compliance-posture-using-ibm-cloud-email-subscription-ad54d96f3b01?source=rss-4dace7918512------2</link>
            <guid isPermaLink="false">https://medium.com/p/ad54d96f3b01</guid>
            <category><![CDATA[security]]></category>
            <category><![CDATA[email]]></category>
            <category><![CDATA[ibm-cloud]]></category>
            <category><![CDATA[compliance]]></category>
            <category><![CDATA[ibm]]></category>
            <dc:creator><![CDATA[Pradeep Gopalgowda]]></dc:creator>
            <pubDate>Thu, 14 Apr 2022 07:03:55 GMT</pubDate>
            <atom:updated>2022-04-20T08:44:12.094Z</atom:updated>
            <content:encoded><![CDATA[<h3>Monitor the Security and Compliance posture using Email subscriptions from IBM Cloud Event Notifications</h3><p>As a security or compliance focal, you can use the IBM Cloud Security and Compliance Center to help ensure that your organisation is adhering to the external and internal standards for your industry. By using the Security and Compliance Center to validate the resource configurations in your account against a profile, you can identify potential issues as they arise.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Gf0WFk6d-Qubh0VX.jpg" /></figure><h3>What is IBM Cloud Event Notifications?</h3><p>IBM Cloud® Event Notifications is an event notification routing service that notifies you to critical events that occur in your IBM Cloud account or triggers automated actions by using webhooks. You can filter and route event notifications from IBM Cloud services like Availability Monitoring, to email, SMS, push notifications and webhooks.</p><h3>How events are collected and sent by Security and Compliance Center?</h3><p>When an event of interest takes place in the Security and Compliance Center, the service communicates with a connected Event Notifications instance to forward a notification to a <a href="https://cloud.ibm.com/docs/event-notifications?topic=event-notifications-en-destination">supported destination</a>.</p><p>Security and Compliance Center aggregates a list of your pending notifications by <a href="https://cloud.ibm.com/docs/security-compliance?topic=security-compliance-event-notifications&amp;interface=ui#event-notifications-list">event type</a>. The service checks for and dispatches any pending notifications to the connected Event Notifications service as they occur in the system. For example, you might receive notifications that are similar to the following messages:</p><ul><li>A validation scan of your resources was completed.</li><li>A new resource was found in your inventory.</li><li>Control failures exceeded the threshold limit.</li><li>A Security Insights finding was reported for your account.</li></ul><h3>Step 1: Create an IBM Cloud Event Notifications service instance</h3><ol><li>Log in to your <a href="https://cloud.ibm.com/">IBM Cloud account</a>.</li><li>In the <a href="https://cloud.ibm.com/catalog#services">IBM Cloud catalog</a>, search <strong>Event Notifications</strong> &gt; <strong>Event Notifications</strong>.</li><li><strong>Select a Region</strong> from the list of supported region and <strong>Select a pricing plan</strong>.</li><li>Provide a <strong>Service name</strong>.</li><li>Select a resource group.</li><li>Click <strong>Create</strong>.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/0*I5VXbRzVb72gZPX9.png" /><figcaption>IBM Cloud Event Notifications</figcaption></figure><h3>Step 2: Connecting to Event Notifications in the Security and Compliance Center</h3><p>After signing into IBM Cloud, you can access the Security and Compliance Center:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1ckGywygBNQ2aMiyUWfxYg.png" /><figcaption>SCC Global Settings</figcaption></figure><ol><li>By clicking the <strong>Menu</strong> icon <strong>&gt; Security and Compliance</strong> in the navigation.</li><li>In the Security and Compliance Center navigation, click <strong>Global settings</strong>.</li><li>In the Event Notifications section, and click <strong>Connect</strong>.</li><li>In the side panel, review the source details for the connection. Optionally, provide a description.</li><li>Select the resource group and Event Notifications service instance that you want to connect.</li></ol><blockquote>If an IAM authorization between Security and Compliance Center and Event Notifications doesn’t exist in your account, a dialog is displayed. Follow the prompts to grant access between the services.</blockquote><blockquote>To grant access between Security and Compliance Center and Event Notifications, click <strong>Authorize</strong>.</blockquote><blockquote>In the side panel, select <strong>Event Notifications</strong> as the target service.</blockquote><blockquote>From the list of instances, select the Event Notifications service instance that you want to authorize.</blockquote><blockquote>Select the <strong>Event Source Manager</strong> role.</blockquote><blockquote>Click <strong>Review</strong>.</blockquote><blockquote>Click <strong>Assign</strong>.</blockquote><p>6. To confirm the connection, click <strong>Connect</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sh783EeaKPNUgQU5OYoJ6w.png" /><figcaption>Connecting to IBM Cloud Event Notifications</figcaption></figure><p>A success message is displayed to indicate that Security and Compliance Center is now connected to Event Notifications. If you need to disconnect from Event Notifications later, you can use the options menu <strong>&gt; Disconnect</strong> to remove the Security and Compliance Center as a source service in the Event Notifications instance.</p><h3>Step 3: Verify the Security and Compliance Center source in IBM Cloud Event Notifications</h3><p>1. Click the menu icon &gt; <strong>Resource list</strong>.</p><p>2. Open <strong>Services and software</strong>.</p><p>3. Open the <a href="https://cloud.ibm.com/docs/monitoring?topic=monitoring-tutorial-en#en-create-instance">IBM Cloud Event Notifications instance you created.</a></p><p>4. Click <strong>Sources</strong>.</p><p>When you connect to Event Notifications in the Security and Compliance Center UI, a source is automatically added to your IBM Cloud Event Notifications <strong>Sources</strong> list.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nu39zJP4E-aX2gu9-B4BvQ.png" /><figcaption>SCC as a Source</figcaption></figure><h3>Step 4: Create an IBM Cloud Event Notifications Destination</h3><p>In this step you will make sure that an email destination exists where notifications will be forwarded.</p><ol><li>Click <strong>Destinations</strong>.</li><li>Notice in the <strong>Destinations</strong> list that, by default, there is an <em>IBM Cloud Email service</em> defined. You do not need to do anything else to configure an email destination.</li></ol><p><strong>Note:</strong> If you wanted to add a webhook as a destination, you would click <strong>Add</strong> and provide the appropriate information in the <strong>Add a destination</strong> panel.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LPfwoR93KNNoCO0kklN4uA.png" /><figcaption>Email Destination</figcaption></figure><h3>Step 5: Create an IBM Cloud Event Notifications topic</h3><p>Next you will define an <a href="https://cloud.ibm.com/docs/event-notifications?topic=event-notifications-en-create-en-topic">IBM Cloud Event Notifications topic</a> that will receive an event from Security and Compliance Center.</p><p>1. Click <strong>Topics</strong>.</p><p>2. Click <strong>Create</strong>. The <strong>Topic details</strong> panel opens.</p><p>3. In the <strong>Topic details</strong> enter the following:</p><ul><li>Enter the <strong>Name</strong> for your topic. For example, VulnerabilityScan.</li><li>For <strong>Source</strong> select the IBM Cloud Event Notifications source, which is the Security and Compliance Center.</li><li>Select an <strong>Event Type</strong>. For this tutorial select Vulnerability Advisor.</li><li>Select an <strong>Event subtype</strong>. For this tutorial select <em>V</em>ulnerabilities found in container images.</li><li>Select a <strong>Severity</strong>. For this tutorial select <em>High Severity</em>.</li></ul><p>4. Click <strong>Add a condition</strong>. (If you do not click <strong>Add a condition</strong> before you click <strong>Create</strong>, the topic will be created with no conditions associated with it.)</p><p>5. Click <strong>Create</strong>. Your topic will be displayed in the <strong>Topics</strong> list.</p><p><strong>Note: </strong>Click <strong>Add a condition </strong>without selecting any Event Type to send the test event from Security and Compliance Center.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dSigzKWxu7KCW1pGrSmspQ.png" /><figcaption>Create a topic</figcaption></figure><h3>Step 6: Create an IBM Cloud Event Notifications Email Subscription</h3><p>In this step you will configure who will receive an email when a notification is processed.</p><ol><li>Click <strong>Subscriptions</strong>.</li><li>Click <strong>Create</strong>. The <strong>Create a subscription</strong> panel opens.</li><li>In the <strong>Create a subscription</strong> panel enter the following:</li></ol><ul><li>Enter the <strong>Name</strong> for your subscription. For example, VulnerabilityAdvisor.</li><li>For <strong>Topic</strong> select the topic you created. For example, VulnerabilityScan.</li><li>For <strong>Destination</strong> select IBM Cloud Email service.</li><li>For <strong>Recipients</strong> enter a valid email address, for example, <a href="/service/mailto:MyEmail@MyCompany.com">MyEmail@MyCompany.com</a></li></ul><p>4. Click <strong>Create</strong>. Your subscription will be added to the <strong>Subscriptions</strong> list.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lIvKREiUwj9SePSmP4dW2g.png" /><figcaption>Create a Subscription</figcaption></figure><h3>Step 7: Sending a test event to Event Notifications from the UI</h3><p>After you enable notifications for Security and Compliance Center, test your connection to ensure that the events that are generated by Security and Compliance Center are being forwarded to Event Notifications.</p><ol><li>In the Security and Compliance Center UI, click <strong>Global settings</strong>.</li><li>In the Event Notifications section, click <strong>Send test event</strong>.</li></ol><p>A success message is displayed to indicate that the test event was forwarded successfully to Event Notifications.</p><p>You should start receiving email notifications at the email address that you configured whenever the criteria defined in both Security and Compliance Center and IBM Cloud Event Notifications match.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PJvWy6_8240EP13NfmKhhQ.png" /><figcaption>Email Notification</figcaption></figure><p>Cheers! For setting up webhooks, check out the <a href="https://cloud.ibm.com/docs/event-notifications?topic=event-notifications-en-destinations-webhook">Event Notifications documentation</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ad54d96f3b01" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Monitor your secret/certificates expiry using IBM Cloud Event Notifications]]></title>
            <link>https://pradeep-sg406.medium.com/how-to-monitor-ibm-cloud-secret-manager-certificates-secrets-expiry-using-ibm-cloud-event-83d0a5a65aec?source=rss-4dace7918512------2</link>
            <guid isPermaLink="false">https://medium.com/p/83d0a5a65aec</guid>
            <category><![CDATA[security]]></category>
            <category><![CDATA[notifications]]></category>
            <category><![CDATA[secrets]]></category>
            <category><![CDATA[compliance]]></category>
            <category><![CDATA[cloud]]></category>
            <dc:creator><![CDATA[Pradeep Gopalgowda]]></dc:creator>
            <pubDate>Mon, 07 Mar 2022 06:28:52 GMT</pubDate>
            <atom:updated>2022-03-07T13:10:56.454Z</atom:updated>
            <content:encoded><![CDATA[<p>Let’s assume you are using a TLS certificates/secrets and you want to monitor the expiry date or any updates on the secrets/certificates. You can send an Email, SMS, Webhook or Push Notifications to your end users using IBM Cloud Event Notifications.</p><h4>What is IBM Cloud Event Notifications?</h4><p>IBM Cloud® Event Notifications is an event notification routing service that notifies you to critical events that occur in your IBM Cloud account or triggers automated actions by using webhooks. You can filter and route event notifications from IBM Cloud services like Availability Monitoring, to email, SMS, push notifications and webhooks.</p><h4>How events are sent by Secrets Manager?</h4><p>When an event of interest takes place in your Secrets Manager instance, Secrets Manager communicates with a connected Event Notifications instance to forward a notification to a <a href="https://cloud.ibm.com/docs/event-notifications?topic=event-notifications-en-destination">supported destination</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2dn-gMXEIJs4L4VdwPAKuw.png" /><figcaption>How events are sent by Secrets Manager</figcaption></figure><p>In this tutorial you will configure the following flow:</p><ol><li>An alert is raised in IBM Cloud Secrets Manager.</li><li>IBM Cloud Secrets Manager sends a notification to IBM Cloud Event Notifications.</li><li>IBM Cloud Event Notifications creates an email and sends the email to the subscribed user.</li></ol><p>Secrets Manager aggregates a list of your pending notifications by <a href="https://cloud.ibm.com/docs/secrets-manager?topic=secrets-manager-event-notifications&amp;interface=ui#event-notifications-list">event type</a>, the type of secret and expiry details if they apply. Every 1–2 minutes, the service checks for and dispatches any pending notifications to the connected Event Notifications service. For example, you might receive notifications that are similar to the following messages:</p><ul><li>You have 5 public certificate secrets that expire in 10 days.</li><li>You have 100 imported certificate secrets that expire in 30 days.</li></ul><p><strong><em>Note: 100 is the maximum number of secrets that you can be notified of in a single event notification.</em></strong></p><h4>Step 1: Create an IBM Cloud Event Notifications service instance</h4><ol><li>Log in to your <a href="https://cloud.ibm.com/">IBM Cloud account</a>.</li><li>In the <a href="https://cloud.ibm.com/catalog#services">IBM Cloud catalog</a>, search <strong>Event Notifications</strong> &gt; <strong>Event Notifications</strong>.</li><li><strong>Select a Region</strong> from the list of supported region and <strong>Select a pricing plan</strong>.</li><li>Provide a <strong>Service name</strong>.</li><li>Select a resource group.</li><li>Click <strong>Create</strong>.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*eYsY0qO2UglcPqcv9kznAA.png" /><figcaption>IBM Cloud Event Notifications</figcaption></figure><h4>Step 2: Create an IBM Cloud Secrets Manager service instance</h4><ol><li>In the <a href="https://cloud.ibm.com/catalog#services">IBM Cloud catalog</a>, search <strong>Secrets Manager</strong> &gt; <strong>Secrets Manager</strong>.</li><li><strong>Select a Region</strong> from the list of supported region and <strong>Select a pricing plan</strong>.</li><li>Provide a <strong>Service name</strong>.</li><li>Select a resource group.</li><li>Click <strong>Create</strong>.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PUfeONdW2KWSTrsp-veh7A.png" /><figcaption>Secrets Manager</figcaption></figure><h4>Step 3: Connecting to IBM Cloud Event Notifications in the Secrets Manager UI</h4><ol><li>From the Secrets Manager instance, click <strong>Settings</strong>.</li><li>In the Event Notifications section, click <strong>Connect</strong>.</li><li>In the side panel, review the source details for the connection. Optionally, provide a description.</li><li>Select the resource group and Event Notifications service instance that you want to connect.</li><li>If an IAM authorization between Secrets Manager and Event Notifications doesn’t exist in your account, a dialog is displayed. Follow the prompts to grant access between the services.</li></ol><blockquote>To grant access between Secrets Manager and Event Notifications, click <strong>Authorize</strong>.</blockquote><blockquote>In the side panel, select <strong>Event Notifications</strong> as the target service.</blockquote><blockquote>From the list of instances, select the Event Notifications service instance that you want to authorize.</blockquote><blockquote>Select the <strong>Event Source Manager</strong> role.</blockquote><blockquote>Click <strong>Review</strong>.</blockquote><blockquote>Click <strong>Assign</strong>.</blockquote><p>6. To confirm the connection, click <strong>Connect</strong>.</p><p>A success message is displayed to indicate that Secrets Manager is now connected to Event Notifications.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Wvmk9NaHVOZP837CpPS8tQ.png" /><figcaption>Connecting to IBM Cloud Event Notifications</figcaption></figure><h4>Step 3: Verify the Secrets Manager source in IBM Cloud Event Notifications</h4><p>1. Click the menu icon &gt; <strong>Resource list</strong>.</p><p>2. Open <strong>Services and software</strong>.</p><p>3. Open the <a href="https://cloud.ibm.com/docs/monitoring?topic=monitoring-tutorial-en#en-create-instance">IBM Cloud Event Notifications instance you created.</a></p><p>4. Click <strong>Sources</strong>.</p><p>When you connect to Event Notifications in the Secrets Manager UI, a source, with the same name as your Secrets Manager instance name, is automatically added to your IBM Cloud Event Notifications <strong>Sources</strong> list.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wyUfpaJ1RI8J17pTPSDrsA.png" /><figcaption>Secret Manager as a source</figcaption></figure><h4>Step 4: Create an IBM Cloud Event Notifications Destination</h4><p>In this step you will make sure that an email destination exists where notifications will be forwarded.</p><ol><li>Click <strong>Destinations</strong>.</li><li>Notice in the <strong>Destinations</strong> list that, by default, there is an <em>IBM Cloud Email service</em> defined. You do not need to do anything else to configure an email destination.</li></ol><p><strong>Note:</strong> If you wanted to add a webhook as a destination, you would click <strong>Add</strong> and provide the appropriate information in the <strong>Add a destination</strong> panel.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nqDuDTHMZEoYZInsAsie4A.png" /><figcaption>Email Destination</figcaption></figure><h4>Step 5: Create an IBM Cloud Event Notifications topic</h4><p>Next you will define an <a href="https://cloud.ibm.com/docs/event-notifications?topic=event-notifications-en-create-en-topic">IBM Cloud Event Notifications topic</a> that will receive an event from Secret Manager.</p><p>1. Click <strong>Topics</strong>.</p><p>2. Click <strong>Create</strong>. The <strong>Topic details</strong> panel opens.</p><p>3. In the <strong>Topic details</strong> enter the following:</p><ul><li>Enter the <strong>Name</strong> for your topic. For example, MonitorSecretExpiry.</li><li>For <strong>Source</strong> select the IBM Cloud Event Notifications source, which is named the same as your Secrets Manager instance.</li><li>Select an <strong>Event Type</strong>. For this tutorial select <em>Secret about to expire</em>.</li><li>Select an <strong>Event subtype</strong>. For this tutorial select <em>Secret expire in 10 days</em>.</li><li>Select a <strong>Severity</strong>. For this tutorial select <em>High Severity</em>.</li></ul><p>4. Click <strong>Add a condition</strong>. (If you do not click <strong>Add a condition</strong> before you click <strong>Create</strong>, the topic will be created with no conditions associated with it.)</p><p>5. Click <strong>Create</strong>. Your topic will be displayed in the <strong>Topics</strong> list.</p><p><strong>Note: </strong>Click <strong>Add a condition </strong>without selecting any Event Type to send the test event from Secrets Manager UI.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xuT2YkloXGW4yoQ8U_SzmQ.png" /><figcaption>Create a topic</figcaption></figure><h4><strong>Step 6: Create an IBM Cloud Event Notifications Email Subscription</strong></h4><p>In this step you will configure who will receive an email when a notification is processed.</p><ol><li>Click <strong>Subscriptions</strong>.</li><li>Click <strong>Create</strong>. The <strong>Create a subscription</strong> panel opens.</li><li>In the <strong>Create a subscription</strong> panel enter the following:</li></ol><ul><li>Enter the <strong>Name</strong> for your subscription. For example, SecretExpirySubscription.</li><li>For <strong>Topic</strong> select the topic you created. For example, MonitorSecretExpiry.</li><li>For <strong>Destination</strong> select IBM Cloud Email service.</li><li>For <strong>Recipients</strong> enter a valid email address, for example, <a href="/service/mailto:MyEmail@MyCompany.com">MyEmail@MyCompany.com</a></li></ul><p>4. Click <strong>Create</strong>. Your subscription will be added to the <strong>Subscriptions</strong> list.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HpnFbEjwtxMhMrVNQsjncw.png" /><figcaption>Create a Subscription</figcaption></figure><h4>Step 7: Sending test event from Secret Manager UI</h4><p>In this step you will send test event from Secret Manager UI.</p><p>1. Click the menu icon &gt; <strong>Resource list</strong>.</p><p>2. Open <strong>Services and software</strong>.</p><p>3. Open the Secrets Manager instance you created.</p><p>4. Click <strong>Settings</strong>.</p><p>5. Click on <strong>send test event.</strong></p><p>You should start receiving email notifications at the email address that you configured whenever the criteria defined in both Secrets Manager and IBM Cloud Event Notifications match.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BO1NdG0LOFWpdtdk_InbZQ.png" /><figcaption>Email Notification</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=83d0a5a65aec" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>