<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Dimesh Methsara</title>
    <description>The latest articles on DEV Community by Dimesh Methsara (@dimesh_methsara_d40a2c2ad).</description>
    <link>https://dev.to/dimesh_methsara_d40a2c2ad</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4255248%2Fcc08cecb-2b3c-482e-aaf6-c094185ce662.png</url>
      <title>DEV Community: Dimesh Methsara</title>
      <link>https://dev.to/dimesh_methsara_d40a2c2ad</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/dimesh_methsara_d40a2c2ad"/>
    <language>en</language>
    <item>
      <title>"The status page says “Down.” Who gets to see the incident report?"</title>
      <dc:creator>Dimesh Methsara</dc:creator>
      <pubDate>Fri, 20 Nov 2026 08:43:49 +0000</pubDate>
      <link>https://dev.to/dimesh_methsara_d40a2c2ad/the-status-page-says-down-who-gets-to-see-the-incident-report-2nf4</link>
      <guid>https://dev.to/dimesh_methsara_d40a2c2ad/the-status-page-says-down-who-gets-to-see-the-incident-report-2nf4</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fchoreolabs.com%2Fsites%2Fdefault%2Ffiles%2Fchoreo-share%2Fapi-manager-6e0c1419.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fchoreolabs.com%2Fsites%2Fdefault%2Ffiles%2Fchoreo-share%2Fapi-manager-6e0c1419.jpg" alt="Choreo Labs API Manager" width="800" height="420"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;How I used Choreo API Manager to make one OpsPulse endpoint public and keep incident records behind OAuth 2.0.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;By Dimesh Methsara Opanayaka&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/Dimeshmethsara/opspulse-api-management" rel="noopener noreferrer"&gt;View the OpsPulse project on GitHub&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;One of my OpsPulse tests returned &lt;code&gt;HTTP 200 OK&lt;/code&gt; and &lt;code&gt;"overallStatus": "Down"&lt;/code&gt; in the same response. Both were correct. The gateway had delivered the status report successfully. The report itself said that a simulated service was down.&lt;/p&gt;

&lt;p&gt;That response captured the design question behind OpsPulse, an incident-management API I built with ASP.NET Core. Anyone checking a status page should be able to answer “Is there a problem?” Reading the incident records behind that answer, or opening a new incident, requires a different level of access. I wanted to see how precisely I could draw that line in Choreo API Manager.&lt;/p&gt;

&lt;h2&gt;
  
  
  The decision hiding inside a wildcard
&lt;/h2&gt;

&lt;p&gt;I started with a local API called &lt;code&gt;OpsPulseAPI&lt;/code&gt;. My ASP.NET Core service listened on port &lt;code&gt;5080&lt;/code&gt;, and clients called the API Manager gateway over HTTPS on port &lt;code&gt;8243&lt;/code&gt;. In Publisher, the initial resource list included a wildcard path, &lt;code&gt;/*&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;That wildcard made me pause. Both the public status check and the incident list use &lt;code&gt;GET&lt;/code&gt;. If I made a catch-all GET operation public, the HTTP method alone would give the gateway no way to express the distinction I cared about. I needed to name the paths explicitly.&lt;/p&gt;

&lt;p&gt;In &lt;strong&gt;Publisher → API Configurations → Resources&lt;/strong&gt;, I defined the operations, expanded &lt;code&gt;GET /api/status&lt;/code&gt;, and switched off security for that operation. I kept OAuth 2.0 enabled on both incident operations. Then I deployed the revision to my local gateway, published the API, and used a subscribed application in the Developer Portal to obtain a test token.&lt;/p&gt;

&lt;h2&gt;
  
  
  Three requests through the same gateway
&lt;/h2&gt;

&lt;p&gt;I ran all three tests against &lt;code&gt;https://localhost:8243/opspulse/1.0.0&lt;/code&gt;. Calling that address mattered. A request sent straight to port &lt;code&gt;5080&lt;/code&gt; would exercise the backend and skip the gateway policy I wanted to test.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Request&lt;/th&gt;
&lt;th&gt;Credentials sent&lt;/th&gt;
&lt;th&gt;What I observed&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;GET /api/status&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;None&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;200 OK&lt;/code&gt;. The JSON included the overall status and a count of two open demo incidents.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;POST /api/incidents&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;None&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;401 Unauthorized&lt;/code&gt;. The gateway reported missing credentials.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;GET /api/incidents&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;OAuth 2.0 bearer token&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;200 OK&lt;/code&gt;. The response contained a JSON array of incident records.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The middle request was the one I cared about most. A successful request with a token tells me the application can return data. It takes a request &lt;strong&gt;without&lt;/strong&gt; credentials to find out what an anonymous caller can do. For that test, an empty JSON object was enough.&lt;/p&gt;

&lt;p&gt;Here are the two anonymous requests as I ran them in PowerShell. I used &lt;code&gt;-k&lt;/code&gt; for the self-signed certificate in this local demo. With a trusted gateway certificate, omit that flag so curl verifies the server.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$base&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"https://localhost:8243/opspulse/1.0.0"&lt;/span&gt;

&lt;span class="n"&gt;curl&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;exe&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;k&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="s2"&gt;"$base/api/status"&lt;/span&gt;

&lt;span class="n"&gt;curl&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;exe&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;k&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="no"&gt;X&lt;/span&gt; &lt;span class="no"&gt;POST&lt;/span&gt; &lt;span class="s2"&gt;"$base/api/incidents"&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="no"&gt;H&lt;/span&gt; &lt;span class="s2"&gt;"Content-Type: application/json"&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;d&lt;/span&gt; &lt;span class="s2"&gt;"{}"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  What the experiment changed for me
&lt;/h2&gt;

&lt;p&gt;Before this project, I might have put a single item on my checklist called “test API authentication.” Now I’d write down the &lt;strong&gt;method, path, and caller&lt;/strong&gt; for each check. My successful authenticated read and rejected anonymous write covered different operations. Two cases I’d add next are an anonymous attempt to list incidents and an authenticated attempt to create one with a valid payload.&lt;/p&gt;

&lt;p&gt;I’d also review the public response itself. OpsPulse exposed an open-incident count alongside its overall status. Even with the full incident list behind a token, that count tells an outside reader something about the service. The gateway setting prompted a second design decision about which fields belonged on the public side.&lt;/p&gt;

&lt;p&gt;If you were building a public status page, &lt;strong&gt;would you publish the number of open incidents, or just tell users which services are affected?&lt;/strong&gt; I’d be interested in what would make you choose one over the other.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://apim.docs.choreolabs.com/en/latest/" rel="noopener noreferrer"&gt;Choreo API Manager documentation&lt;/a&gt; · &lt;a href="https://apim.docs.wso2.com/en/latest/api-security/runtime/api-authentication/disable-security/" rel="noopener noreferrer"&gt;WSO2 guide to configuring security per resource&lt;/a&gt;&lt;/p&gt;

</description>
      <category>api</category>
      <category>security</category>
      <category>dotnet</category>
      <category>devops</category>
    </item>
  </channel>
</rss>
