<?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 Nihar Kalyanam on Medium]]></title>
        <description><![CDATA[Stories by Nihar Kalyanam on Medium]]></description>
        <link>https://medium.com/@nihar_kalyanam?source=rss-129f6889c72a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Zfn5agMLtqNak3UFqlpmgg@2x.jpeg</url>
            <title>Stories by Nihar Kalyanam on Medium</title>
            <link>https://medium.com/@nihar_kalyanam?source=rss-129f6889c72a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 22:59:02 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@nihar_kalyanam/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[Building an AI-Driven Failure Analysis and Ticketing Framework for Identity Governance]]></title>
            <link>https://medium.com/@nihar_kalyanam/building-an-ai-driven-failure-analysis-and-ticketing-framework-for-identity-governance-b1145f26d3a5?source=rss-129f6889c72a------2</link>
            <guid isPermaLink="false">https://medium.com/p/b1145f26d3a5</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[failure-analysis]]></category>
            <category><![CDATA[ami]]></category>
            <category><![CDATA[enterprise-architecture]]></category>
            <category><![CDATA[identity-governance]]></category>
            <dc:creator><![CDATA[Nihar Kalyanam]]></dc:creator>
            <pubDate>Thu, 13 Aug 2026 14:15:56 GMT</pubDate>
            <atom:updated>2026-08-13T14:15:56.780Z</atom:updated>
            <content:encoded><![CDATA[<h4>How AI-assisted analysis, automated ticketing, and operational intelligence can transform enterprise failure management</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*m5RvZvjv0O6wchZ_F-0p-w.png" /></figure><p>Modern enterprise platforms generate enormous amounts of operational data, but identifying <strong>what went wrong, why it happened, and who should act on it</strong> often still requires significant human effort.</p><p>When a transaction or automated process fails, the information needed to investigate it may be spread across system logs, application responses, workflow histories, and other technical records.</p><p>The challenge is not simply detecting that something failed.</p><p>The real challenge is turning that failure into something <strong>understandable and actionable</strong>.</p><p>An engineer may need to interpret a complex error, determine the potential impact, identify the right team, communicate with others, track the resolution, and repeat much of the same investigation when a similar problem occurs again.</p><p>This made me think about a broader question:</p><p><strong><em>What if enterprise platforms could move beyond simply recording failures and actively help teams understand, organize, route, and resolve them?</em></strong></p><p>To explore this idea, I designed and implemented an <strong>AI-driven Failure Analysis and Ticketing Framework</strong> that combines automated failure detection, AI-assisted analysis, structured ticketing, collaboration, and resolution tracking.</p><p>I implemented and validated the framework within an enterprise Identity Governance platform, but the underlying architectural approach is broader: <strong>turning technical failures into structured operational knowledge that can make future incidents easier to understand and resolve.</strong></p><h3>The Operational Gap</h3><p>Identity Governance platforms provide extensive information about provisioning activities through workflows, provisioning results, audit information, and system logs.</p><p>But operationally, failure investigation can still become fragmented.</p><p>In many environments, the process can look something like this:</p><p><strong>Provisioning Request → Failure → Logs → Manual Investigation → Email/Chat → Assignment → Resolution</strong></p><p>This creates several challenges:</p><ul><li>failures can be distributed across different operational views and logs;</li><li>engineers repeatedly inspect technical error messages;</li><li>ownership may need to be determined manually;</li><li>communication can move into email or messaging platforms;</li><li>resolution information may not remain associated with the original failure;</li><li>similar incidents may be investigated repeatedly.</li></ul><p>I wanted to bring these activities closer together.</p><p>Instead of treating a provisioning failure simply as an error message, I started treating it as a <strong>structured operational object with its own lifecycle</strong>.</p><h3>The Idea: Turn a Failure Into an Actionable Ticket</h3><p>The architecture I implemented follows a different model:</p><p><strong>LCM Provisioning Request</strong></p><p>↓</p><p><strong>Provisioning Failure Detected</strong></p><p>↓</p><p><strong>Ticket Automatically Created</strong></p><p>↓</p><p><strong>Failure Context Extracted</strong></p><p>↓</p><p><strong>AI Failure Analysis</strong></p><p>↓</p><p><strong>Root Cause + Recommendation + Severity + Confidence</strong></p><p>↓</p><p><strong>Assignment + Collaboration</strong></p><p>↓</p><p><strong>Resolution</strong></p><p>The key idea is simple:</p><p><em>A provisioning failure should become actionable the moment IdentityIQ detects it.</em></p><p>This removes the dependency on someone first discovering the failure manually and then reconstructing its context.</p><h3>1. Automatically Capturing LCM Failures</h3><p>The first requirement was automation.</p><p>I integrated ticket creation into the IdentityIQ provisioning workflow so that failed account requests can trigger ticket generation automatically.</p><p>A custom workflow step was introduced after the relevant provisioning processing:</p><pre>&lt;Step icon=&quot;Task&quot;<br>      name=&quot;Create AI Failure Tickets&quot;&gt;</pre><pre>    &lt;Arg name=&quot;project&quot; value=&quot;ref:project&quot;/&gt;<br>    &lt;Arg name=&quot;identityName&quot; value=&quot;ref:identityName&quot;/&gt;<br>    &lt;Arg name=&quot;identityRequestId&quot; value=&quot;ref:identityRequestId&quot;/&gt;<br>    &lt;Arg name=&quot;trace&quot; value=&quot;ref:trace&quot;/&gt;</pre><pre>    &lt;Script&gt;<br>        ...<br>    &lt;/Script&gt;</pre><pre>    &lt;Transition to=&quot;Refresh Identity&quot;/&gt;<br>&lt;/Step&gt;</pre><p>The implementation passes provisioning context to custom processing logic, which evaluates the provisioning result and creates tickets for failures.</p><p>This means failure management starts directly from the provisioning lifecycle instead of depending entirely on a separate manual monitoring process.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-bRL2j97MM8FlvG564VXzA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_wcVY_Utnr9GbTJtM0m8-w.png" /></figure><h3>2. Building a Centralized Failure Dashboard</h3><p>Once failures became tickets, I needed a practical way for operations teams to work with them.</p><p>I created a custom IdentityIQ plugin UI with a ticket dashboard.</p><p>The interface provides:</p><ul><li>ticket listing;</li><li>ticket details;</li><li>status filtering;</li><li>pagination;</li><li>assignment information;</li><li>severity indicators;</li><li>AI analysis;</li><li>chatter/comments;</li><li>resolution actions.</li></ul><p>The dashboard also provides an operational summary of tickets across states such as <strong>Open, Assigned, and Resolved</strong>.</p><p>Instead of moving between logs, requests, emails, and conversations, an engineer can start from one operational view.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dGyOIuHvGvmUJyTnStxtyQ.png" /></figure><h3>3. Adding AI to Failure Analysis</h3><p>Centralizing failures solves the visibility problem, but engineers still have to understand what went wrong.</p><p>That became the next problem I wanted to address.</p><p>I integrated an AI service into the failure-processing flow and provided it with structured failure context.</p><p>Rather than asking the model an unrestricted question, the implementation expects structured analysis containing fields such as:</p><pre>Root Cause<br>Recommendation<br>Severity<br>Confidence<br>Suggested Assignment Group</pre><p>For example, a raw provisioning error may contain connector exceptions, target-system responses, application information, identity information, and failed operations.</p><p>The AI layer interprets that context and produces a more operationally useful explanation.</p><p>This does <strong>not</strong> mean allowing AI to make privileged access decisions.</p><p>The purpose is different.</p><p>The AI acts as an <strong>analysis assistant</strong> for the engineer investigating the failure.</p><p>The engineer remains responsible for validating the analysis and deciding the appropriate remediation.</p><p>That distinction is particularly important in IAM systems.</p><h3>4. Making Provisioning Errors Understandable</h3><p>One challenge I encountered was that raw provisioning information is not always presented in the form an operations engineer wants to see.</p><p>A provisioning plan may contain technical entitlement values rather than meaningful display names.</p><p>So I added logic to extract affected access from the provisioning plan and map raw entitlement values against IdentityIQ ManagedAttribute information.</p><p>Conceptually:</p><pre>Raw Provisioning Value<br>        ↓<br>ManagedAttribute Lookup<br>        ↓<br>Human-Readable Access</pre><p>The ticket can therefore explain not only that provisioning failed, but also <strong>which access was affected</strong>.</p><p>This gives the engineer additional context when evaluating the operational impact of the failure.</p><h3>5. Assignment and Ownership</h3><p>Analysis without ownership still leaves an operational gap.</p><p>Tickets therefore support assignment to appropriate users or groups directly from the interface.</p><p>The AI analysis can also provide a <strong>suggested assignment group</strong> based on the available failure context.</p><p>The important word here is <em>suggested</em>.</p><p>The architecture keeps assignment under operational control rather than blindly delegating ownership decisions to the model.</p><p>This creates a useful separation:</p><p><strong>AI recommends → Engineer validates → System tracks</strong></p><p>That pattern can be valuable for introducing AI into enterprise IAM environments where accountability remains essential.</p><h3>6. Bringing Collaboration Into the Failure Lifecycle</h3><p>Provisioning incidents often require collaboration.</p><p>An IAM engineer may need help from an application owner, Active Directory team, database team, or another support group.</p><p>If those conversations happen entirely outside IdentityIQ, valuable troubleshooting context can become disconnected from the failure.</p><p>To address this, I built a chatter-style comment system directly into the plugin.</p><p>It supports:</p><ul><li>multiple comments;</li><li>user attribution;</li><li>timestamps;</li><li>IdentityIQ user search;</li><li>@mentions.</li></ul><p>When a user is mentioned, the system can notify that person by email and provide access to the relevant ticket.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*P67o8PpEDPuQ-_XL3WuLrA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5Mlax5zOC7Ga2K0vY1RLtA.png" /></figure><p>Now the conversation becomes part of the ticket’s operational history rather than disappearing into a separate communication channel.</p><h3>7. Designing for AI Failure Too</h3><p>One architectural decision was especially important:</p><p><strong><em>The ticketing process must not depend on AI being available.</em></strong></p><p>AI services can fail.</p><p>APIs can time out. Credentials can expire. Network connectivity can disappear. Responses can be malformed.</p><p>An IAM provisioning workflow should not become unstable because an auxiliary AI capability is unavailable.</p><p>The implementation therefore handles conditions including:</p><ul><li>missing values;</li><li>null fields;</li><li>large error messages;</li><li>API failures;</li><li>malformed or unavailable AI responses.</li></ul><p>The guiding principle was:</p><p><strong>Core ticketing continues even when AI analysis fails.</strong></p><p>This creates a useful enterprise pattern:</p><p><strong><em>AI should enhance the workflow, not become a single point of failure for the workflow.</em></strong></p><h3>8. Plugin Architecture</h3><p>The solution uses a standard IdentityIQ plugin structure with a combination of UI, Java backend services, REST APIs, workflow integration, database persistence, and external AI integration.</p><p>At a high level:</p><pre>SailPoint IdentityIQ<br>        │<br>        ├── LCM Provisioning Workflow<br>        │          │<br>        │          └── Failure Detection<br>        │<br>        ├── Ticket Creation Logic<br>        │          │<br>        │          ├── Failure Context<br>        │          └── Affected Access<br>        │<br>        ├── AI Analysis Layer<br>        │          │<br>        │          ├── Root Cause<br>        │          ├── Recommendation<br>        │          ├── Severity<br>        │          └── Confidence<br>        │<br>        ├── Ticket Persistence<br>        │          │<br>        │          ├── Failure Ticket<br>        │          └── Comments<br>        │<br>        └── IdentityIQ Plugin UI<br>                   │<br>                   ├── Dashboard<br>                   ├── Assignment<br>                   ├── AI Analysis<br>                   ├── Chatter<br>                   └── Resolution</pre><p>For persistence, I created separate structures for failure tickets and ticket comments.</p><p>The backend exposes REST operations for activities including:</p><ul><li>listing tickets;</li><li>retrieving ticket details;</li><li>creating tickets;</li><li>assigning tickets;</li><li>resolving tickets;</li><li>handling comments;</li><li>searching identities.</li></ul><p>This separation makes the solution easier to extend beyond the initial implementation.</p><h3>9. From Failure Management to Operational Knowledge</h3><p>One of the more interesting outcomes of this architecture is something I did not want to stop at simple ticket management.</p><p>Every resolved ticket potentially contains:</p><p><strong>Failure + Context + AI Analysis + Human Discussion + Resolution</strong></p><p>Over time, that becomes useful operational knowledge.</p><p>Instead of investigating every recurring problem from zero, historical incidents could eventually support capabilities such as:</p><ul><li>similar-ticket detection;</li><li>intelligent failure search;</li><li>historical RCA retrieval;</li><li>recurring failure identification;</li><li>smarter assignment recommendations;</li><li>automated knowledge suggestions.</li></ul><p>For example, when a new provisioning failure occurs, a future version could search historical resolved incidents and respond:</p><p><em>A similar failure occurred previously. Here is how it was diagnosed and resolved.</em></p><p>At that point, the system begins moving beyond ticket management toward <strong>IAM operational intelligence</strong>.</p><h3>What Changed?</h3><p>Before this implementation, the operational pattern was largely:</p><p><strong>Failure → Find → Investigate → Communicate → Resolve</strong></p><p>The architecture changes that toward:</p><p><strong>Failure → Capture → Analyze → Assign → Collaborate → Resolve → Learn</strong></p><p>The difference is important.</p><p>The objective isn’t simply to put AI inside IdentityIQ.</p><p>It is to identify a repetitive operational problem and determine where AI can provide useful assistance without removing human accountability or compromising the reliability of the underlying IAM workflow.</p><h3>What I Learned</h3><p>Building this solution reinforced several principles that I believe are important when introducing AI into enterprise identity platforms.</p><h4>AI needs context</h4><p>Sending an isolated exception to an AI model is far less useful than supplying structured provisioning context, application information, affected access, and operational metadata.</p><h4>AI output should be structured</h4><p>Root cause, recommendation, severity, and confidence are much easier for applications to consume than unrestricted conversational responses.</p><h4>AI should assist rather than silently decide</h4><p>Identity operations can affect sensitive enterprise access. Recommendations should therefore remain distinguishable from authoritative IAM decisions.</p><h4>AI failure must not become IAM failure</h4><p>Enterprise workflows need graceful degradation when AI services are unavailable.</p><h4>Resolution history has long-term value</h4><p>The combination of machine analysis and human resolution information can eventually become a useful knowledge layer for IAM operations.</p><h3>Where This Can Go Next</h3><p>The current implementation establishes the foundation for several additional capabilities.</p><p>One direction I am particularly interested in is <strong>similar incident intelligence</strong>.</p><p>When a new provisioning failure occurs, the system could compare it against historical tickets using application, operation, entitlement, exception patterns, and semantic similarity.</p><p>Another direction is controlled automation.</p><p>For well-understood recurring failures, the platform could eventually progress from:</p><p><strong>AI explains what happened</strong></p><p>to:</p><p><strong>AI recommends what should happen</strong></p><p>and, where governance policies permit:</p><p><strong>Automation executes a pre-approved remediation</strong></p><p>That progression must be designed carefully, particularly in identity systems where authorization, auditability, and accountability are critical.</p><h3>Final Thoughts</h3><p>Traditional Identity Governance platforms are very good at enforcing identity processes.</p><p>The next opportunity is making those platforms better at <strong>understanding their own operational failures</strong>.</p><p>With this project, I wanted to explore what happens when provisioning telemetry, structured ticketing, AI-assisted analysis, collaboration, and resolution history are brought together into a single operational workflow.</p><p>The result changes the role of a provisioning failure.</p><p>It is no longer simply an exception waiting for somebody to discover it.</p><p>It becomes a structured incident that can be:</p><p><strong>Captured → Analyzed → Assigned → Discussed → Resolved → Learned From</strong></p><p>The implementation I built using SailPoint IdentityIQ is one example of this broader architectural approach.</p><p>But the larger idea is platform-independent:</p><p><strong><em>Turn every identity provisioning failure into structured knowledge that makes the next failure easier to understand and resolve.</em></strong></p><p>That, in my view, is where AI can provide meaningful value to modern Identity Governance operations.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b1145f26d3a5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I Connected Claude MCP to an Enterprise Identity Database for Natural Language Querying &…]]></title>
            <link>https://pub.towardsai.net/how-i-connected-claude-mcp-to-an-enterprise-identity-database-for-natural-language-querying-352389433719?source=rss-129f6889c72a------2</link>
            <guid isPermaLink="false">https://medium.com/p/352389433719</guid>
            <category><![CDATA[enterprise-software]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[claude]]></category>
            <category><![CDATA[ami]]></category>
            <category><![CDATA[identity-management]]></category>
            <dc:creator><![CDATA[Nihar Kalyanam]]></dc:creator>
            <pubDate>Wed, 24 Jun 2026 00:01:03 GMT</pubDate>
            <atom:updated>2026-06-24T00:01:03.194Z</atom:updated>
            <content:encoded><![CDATA[<h3>How I Connected Claude MCP to an Enterprise Identity Database for Natural Language Querying &amp; Reporting</h3><p><em>Using Model Context Protocol (MCP), dynamic schema discovery, and a secure SQL validation layer to query enterprise identity data with natural language.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AD2HRiyyAZUI-li0klSR_A.png" /></figure><h3>Introduction</h3><p>Over the last few months, I’ve been experimenting with ways to make enterprise data more accessible through AI.</p><p>One challenge I kept running into was querying and reporting. In many enterprise identity platforms, valuable operational data is stored inside relational databases, but accessing that data typically requires knowledge of the schema, SQL expertise, and familiarity with the platform itself.</p><p>A seemingly simple question like: <em>How many failed provisioning transactions occurred last week?</em> can require searching through documentation, identifying the correct tables, understanding status values, and writing a custom SQL query.</p><p><strong><em>For example</em></strong>, an operational team investigating provisioning failures, or a GRC team gathering evidence for an audit, would need to know that status data lives in a column with inconsistent values like “<strong>Error”,</strong> “<strong>Failed</strong>”, or “<strong>Warning</strong>” rather than a single clean term, and would need to write the correct <strong>JOIN</strong> across identity and transaction tables just to get readable names instead of internal IDs.</p><p>Sometimes, going through the UI can take a significant amount of time to load when there are millions of records at the enterprise level.</p><p>At the same time, allowing an AI model unrestricted database access is not something most organizations would be comfortable with. This led me to explore a different approach: combining Model Context Protocol (MCP) with an enterprise identity database to enable natural language reporting while maintaining strict security controls.</p><p>The result was an MCP server capable of understanding a live database schema, generating read-only SQL queries, and returning meaningful answers through a conversational interface.</p><h3>Why MCP?</h3><p>Model Context Protocol (MCP) has quickly become one of the most interesting developments in the AI ecosystem.</p><p>Before MCP, every AI application needed a custom integration for every external tool or data source.</p><p>If you had:</p><ul><li>Multiple AI models</li><li>Multiple databases</li><li>Multiple internal tools</li></ul><p>you quickly ended up maintaining dozens of integrations.</p><p>MCP changes this model by introducing a standard interface between AI systems and external resources.</p><p>Instead of building separate integrations for every combination, tools can expose capabilities through a common protocol and AI models can consume them consistently.</p><p>In this project, MCP became the bridge between Claude and an enterprise identity database.</p><h3>The Goal</h3><p>The goal was straightforward:</p><p>Allow users to ask questions such as:</p><ul><li>How many identities exist in the system?</li><li>Show inactive users.</li><li>List failed provisioning transactions.</li><li>Display pending certification campaigns.</li><li>Find accounts associated with a specific user.</li></ul><p>without requiring any SQL knowledge.</p><p>At the same time, the solution needed to satisfy three requirements:</p><ol><li>Read-only access.</li><li>Dynamic schema awareness.</li><li>Protection against unsafe SQL execution.</li></ol><h3>High-Level Architecture</h3><p>The architecture consists of four major components:</p><h4>1. MCP Server</h4><p>The MCP server acts as the orchestration layer.</p><p>It exposes tools that Claude can invoke whenever it needs information from the database.</p><p>Examples include:</p><ul><li>query_database</li><li>describe_schema</li><li>sample_data</li><li>search_records</li></ul><h4>2. Schema Discovery Engine</h4><p>One of the biggest challenges with AI-generated SQL is schema awareness.</p><p>Most demonstrations rely on hardcoded table definitions.</p><p>That works initially, but quickly becomes difficult to maintain.</p><p>Instead, I implemented automatic schema discovery.</p><p>At startup, the server:</p><ul><li>Reads available tables</li><li>Reads column metadata</li><li>Reads data types</li><li>Identifies commonly used values</li><li>Builds contextual information for the AI model</li></ul><p>This allows the AI to work with the current database structure instead of a manually maintained copy.</p><h4>3. SQL Safety Layer</h4><p>Security was a non-negotiable requirement.</p><p>Every generated query passes through a validation layer before reaching the database.</p><p>Allowed:</p><pre>SELECT ...<br>WITH ...</pre><p>Blocked:</p><pre>INSERT ...<br>UPDATE ...<br>DELETE ...<br>DROP ...<br>ALTER ...<br>TRUNCATE ...</pre><p>Beyond SQL validation, every HTTP and webhook endpoint requires a separate authentication token, distinct from the AI provider’s API key. This ensures that even if someone discovers the server’s address, they cannot invoke any tool without proper authorization.</p><p>The validation layer also enforces row limits to prevent accidental large-scale queries.</p><h4>4. Database Adapter Layer</h4><p>The adapter layer abstracts database connectivity.</p><p>Instead of coupling the implementation to a single database technology, adapters provide a consistent interface.</p><p>This makes it possible to support:</p><ul><li>MySQL</li><li>PostgreSQL</li><li>SQLite</li></ul><p>through configuration rather than code changes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*o_F2vjQbKCsaogEztlLhBw.png" /><figcaption>Architecture diagram</figcaption></figure><h3>Dynamic Schema Discovery</h3><p>One feature that proved particularly valuable was schema discovery.</p><p>Traditional AI-to-database integrations often fail because the model has incomplete knowledge of the schema.</p><p>For example, a user might ask: <em>Show failed provisioning transactions.</em></p><p>The AI has no way of knowing:</p><ul><li>Which table contains provisioning data</li><li>Which column stores status</li><li>What values represent failures</li></ul><p>unless that information is provided.</p><p>To solve this, the MCP server automatically inspects the database during startup.</p><h4>Schema Discovery Process</h4><pre>Database<br>   |<br>Read Tables<br>   |<br>Read Columns<br>   |<br>Read Data Types<br>   |<br>Read Distinct Values<br>   |<br>Generate AI Context</pre><p>The generated metadata becomes part of the prompt supplied to the AI model.</p><p>As a result, the model understands:</p><ul><li>Available tables</li><li>Available columns</li><li>Relationships</li><li>Common values</li></ul><p>before generating SQL.</p><p>This significantly improves accuracy.</p><h3>The Query Lifecycle</h3><p>When a user asks a question, several steps occur behind the scenes.</p><pre>User Question<br>      |<br>      v<br>MCP Tool<br>      |<br>      v<br>Schema Context<br>      |<br>      v<br>Claude Generates SQL<br>      |<br>      v<br>Safety Validation<br>      |<br>      v<br>Database Execution<br>      |<br>      v<br>Response Formatting</pre><p>Let’s walk through an example.</p><p>User question: <em>How many failed provisioning transactions occurred during the last seven days?</em></p><p>The MCP tool builds a prompt containing:</p><ul><li>Database schema</li><li>Known relationships</li><li>Common reporting patterns</li><li>Real status values</li></ul><p>Claude then generates SQL.</p><p>The safety layer validates the query.</p><p>The database executes the query.</p><p>Results are formatted and returned to the user.</p><p>The entire process feels conversational while still leveraging structured database operations.</p><h3>Supporting Multiple Access Models</h3><p>One aspect I wanted to preserve was flexibility.</p><p>The same MCP tools can be consumed through multiple transport mechanisms.</p><h4>Claude Desktop</h4><p>Using STDIO transport, Claude Desktop can communicate directly with the MCP server.</p><p>This provides a seamless conversational experience.</p><pre>import { Server } from &#39;@modelcontextprotocol/sdk/server/index.js&#39;;<br>import { StdioServerTransport } from &#39;@modelcontextprotocol/sdk/server/stdio.js&#39;;<br>import {<br>  CallToolRequestSchema,<br>  ListToolsRequestSchema,<br>} from &#39;@modelcontextprotocol/sdk/types.js&#39;;<br><br>import { config } from &#39;../config/config.js&#39;;<br>import { createAdapter } from &#39;./adapters/adapter-factory.js&#39;;<br>import { createAI } from &#39;./adapters/ai-factory.js&#39;;<br>import { SchemaDiscovery } from &#39;./discovery/schema-discovery.js&#39;;<br>import { SafetyGuard } from &#39;./discovery/safety.js&#39;;<br>import { ToolRegistry } from &#39;./tools/registry.js&#39;;<br><br>async function main() {<br>  console.error(`\n MCP DB Server starting.......`);<br>  console.error(`   DB:    ${config.database.type} / ${config.database.name || config.database.file}`);<br>  console.error(`   AI:    ${config.ai.provider} / ${config.ai.model}`);<br>  console.error(`   Tools: ${config.tools.enabled.join(&#39;, &#39;)}\n`);<br><br>  // Connect to database<br>  const adapter = await createAdapter(config.database);<br><br>  // Discover schema<br>  const schema = new SchemaDiscovery(adapter, config.schema);<br>  if (config.schema.autoDiscover) {<br>    await schema.build();<br>    console.error(`[Schema] ${schema.getSummary()}`);<br>  }<br><br>  // Initialize AI provider<br>  const ai = await createAI(config.ai);<br><br>  // Safety guard<br>  const safety = new SafetyGuard(config.safety);<br><br>  // Shared context passed to all tools<br>  const context = { adapter, schema, ai, safety, safetyConfig: config.safety };<br><br>  // Load tools<br>  const registry = new ToolRegistry();<br>  await registry.load(config.tools.enabled, context);<br>  console.error(`[Tools] Active: ${registry.list().join(&#39;, &#39;)}`);<br><br>  // Create MCP server<br>  const server = new Server(<br>    { name: config.server.name, version: config.server.version },<br>    { capabilities: { tools: {} } }<br>  );<br><br>  // List tools<br>  server.setRequestHandler(ListToolsRequestSchema, async () =&gt; ({<br>    tools: registry.getDefinitions(),<br>  }));<br><br>  // Execute tool<br>  server.setRequestHandler(CallToolRequestSchema, async (request) =&gt; {<br>    const { name, arguments: args } = request.params;<br>    console.error(`[Tool] Calling: ${name}`, JSON.stringify(args));<br>    try {<br>      return await registry.execute(name, args || {});<br>    } catch (e) {<br>      console.error(`[Tool] Error in ${name}:`, e.message);<br>      return {<br>        content: [{ type: &#39;text&#39;, text: `Tool error: ${e.message}` }],<br>        isError: true,<br>      };<br>    }<br>  });<br><br>  // Connect transport<br>  const transport = new StdioServerTransport();<br>  await server.connect(transport);<br>  console.error(`\n MCP server ready. Listening on stdio.\n`);<br>}<br><br>main().catch(e =&gt; {<br>  console.error(&#39;Fatal error:&#39;, e);<br>  process.exit(1);<br>});</pre><h4>REST APIs</h4><p>The MCP tools can also be exposed through HTTP endpoints.</p><p>This enables integration with:</p><ul><li>Internal portals</li><li>Dashboards</li><li>Automation workflows</li></ul><h4>Webhooks</h4><p>Webhook support allows external systems to trigger database-driven AI analysis automatically.</p><p>In the current implementation, the triggering system either supplies the question directly in the payload, or the server applies simple pattern matching against known event shapes (such as a GitHub pull request payload) to infer one. A more mature version of this would let administrators define question templates per event type, rather than relying on inferred defaults.</p><h4>Custom Web UI</h4><p>For users who prefer a browser-based experience, the same functionality can be exposed through a lightweight web interface.</p><p>Because all transports use the same underlying tools, the business logic remains consistent across every access method.</p><pre>import &#39;dotenv/config&#39;;<br>import express from &#39;express&#39;;<br>import cors from &#39;cors&#39;;<br>import { dirname, join } from &#39;path&#39;;<br>import { fileURLToPath } from &#39;url&#39;;<br>import { createAdapter } from &#39;./adapters/adapter-factory.js&#39;;<br>import { createAI } from &#39;./adapters/ai-factory.js&#39;;<br>import { SchemaDiscovery } from &#39;./discovery/schema-discovery.js&#39;;<br>import { SafetyGuard } from &#39;./discovery/safety.js&#39;;<br>import { ToolRegistry } from &#39;./tools/registry.js&#39;;<br><br>const __dirname = dirname(fileURLToPath(import.meta.url));<br><br>// Build config directly from process.env<br>function getConfig() {<br>  return {<br>    database: {<br>      type:           process.env.DB_TYPE           || &#39;mysql&#39;,<br>      host:           process.env.DB_HOST           || &#39;localhost&#39;,<br>      port:           parseInt(process.env.DB_PORT  || &#39;3306&#39;),<br>      name:           process.env.DB_NAME           || &#39;identityiq&#39;,<br>      user:           process.env.DB_USER           || &#39;root&#39;,<br>      password:       process.env.DB_PASSWORD       || &#39;&#39;,<br>      file:           process.env.DB_FILE           || &#39;./data.db&#39;,<br>      tablePrefix:    process.env.DB_TABLE_PREFIX   || &#39;&#39;,<br>      connectionLimit: 10,<br>    },<br>    ai: {<br>      provider:  process.env.AI_PROVIDER  || &#39;anthropic&#39;,<br>      model:     process.env.AI_MODEL     || &#39;claude-sonnet-4-5&#39;,<br>      apiKey:    process.env.ANTHROPIC_API_KEY || process.env.OPENAI_API_KEY || &#39;&#39;,<br>      maxTokens: parseInt(process.env.AI_MAX_TOKENS || &#39;2048&#39;),<br>    },<br>    tools: {<br>      enabled: (process.env.MCP_TOOLS || &#39;query_database,describe_schema,sample_data,search_records&#39;)<br>        .split(&#39;,&#39;).map(t =&gt; t.trim()),<br>    },<br>    schema: {<br>      autoDiscover:      process.env.SCHEMA_AUTO_DISCOVER !== &#39;false&#39;,<br>      maxTablesInContext: parseInt(process.env.SCHEMA_MAX_TABLES || &#39;50&#39;),<br>      enumColumnNames:   (process.env.SCHEMA_ENUM_COLUMNS || &#39;status,state,type,phase,action,op,operation,source,level,completion_status,result,severity,outcome&#39;).split(&#39;,&#39;),<br>      maxEnumValues:     parseInt(process.env.SCHEMA_MAX_ENUM_VALUES || &#39;15&#39;),<br>      skipColumns:       (process.env.SCHEMA_SKIP_COLUMNS || &#39;attributes,xml,extended_attributes,scorecard,preferences,arguments,config&#39;).split(&#39;,&#39;),<br>    },<br>    safety: {<br>      allowedStatements: [&#39;SELECT&#39;, &#39;WITH&#39;],<br>      blockedKeywords:   [&#39;INSERT&#39;, &#39;UPDATE&#39;, &#39;DELETE&#39;, &#39;DROP&#39;, &#39;ALTER&#39;, &#39;CREATE&#39;, &#39;TRUNCATE&#39;],<br>      maxRowsReturned:   parseInt(process.env.MAX_ROWS || &#39;500&#39;),<br>    },<br>  };<br>}<br><br>// Auth<br>const API_TOKEN = process.env.API_TOKEN || &#39;XXXXXXXX&#39;;<br><br>function requireAuth(req, res, next) {<br>  const header = req.headers[&#39;authorization&#39;] || &#39;&#39;;<br>  const token = header.startsWith(&#39;Bearer &#39;) ? header.slice(7) : req.query.token;<br>  if (!token || token !== API_TOKEN) {<br>    return res.status(401).json({ error: &#39;Unauthorized. Pass: Authorization: Bearer &lt;API_TOKEN&gt;&#39; });<br>  }<br>  next();<br>}<br><br>// Webhook verifier<br>function verifyWebhook(req, res, next) {<br>  const secret = process.env.WEBHOOK_SECRET;<br>  if (!secret) return next();<br>  const sig = req.headers[&#39;x-hub-signature-256&#39;] || req.headers[&#39;x-webhook-signature&#39;] || &#39;&#39;;<br>  if (!sig) return res.status(400).json({ error: &#39;Missing webhook signature&#39; });<br>  import(&#39;crypto&#39;).then(({ createHmac }) =&gt; {<br>    const expected = &#39;sha256=&#39; + createHmac(&#39;sha256&#39;, secret).update(JSON.stringify(req.body)).digest(&#39;hex&#39;);<br>    if (sig !== expected) return res.status(403).json({ error: &#39;Invalid webhook signature&#39; });<br>    next();<br>  });<br>}<br><br>// Webhook question extractor<br>function extractQuestionFromWebhook(payload) {<br>  if (payload.pull_request) return `Show recent provisioning activity for user ${payload.pull_request.user?.login}`;<br>  if (payload.issue)        return `Show recent failed provisioning transactions`;<br>  return payload.question || payload.text || payload.message || payload.query || null;<br>}<br><br>// Main<br>async function startHTTPServer() {<br>  console.log(&#39;\n MCP HTTP Server starting...&#39;);<br><br>  const config = getConfig();<br><br>  // Verify key is loaded<br>  console.log(`[ENV] ANTHROPIC_API_KEY loaded: ${config.ai.apiKey ? &#39;YES (&#39; + config.ai.apiKey.slice(0,15) + &#39;...)&#39; : &#39;NO ← CHECK YOUR .env FILE&#39;}`);<br>  console.log(`[ENV] DB_PASSWORD loaded: ${config.database.password ? &#39;YES&#39; : &#39;NO (empty)&#39;}`);<br><br>  const adapter  = await createAdapter(config.database);<br>  const schema   = new SchemaDiscovery(adapter, config.schema);<br>  await schema.build();<br>  const ai       = await createAI(config.ai);<br>  const safety   = new SafetyGuard(config.safety);<br>  const context  = { adapter, schema, ai, safety, safetyConfig: config.safety };<br>  const registry = new ToolRegistry();<br>  await registry.load(config.tools.enabled, context);<br>  console.log(`[Tools] Active: ${registry.list().join(&#39;, &#39;)}`);<br><br>  const app = express();<br>  app.use(cors());<br>  app.use(express.json());<br><br>  // Serve UI<br>  app.use(express.static(join(__dirname, &#39;../ui&#39;)));<br>  app.get(&#39;/&#39;, (req, res) =&gt; res.sendFile(join(__dirname, &#39;../ui/index.html&#39;)));<br><br>  // Health check<br>  app.get(&#39;/health&#39;, async (req, res) =&gt; {<br>    try {<br>      await adapter.ping();<br>      res.json({ status: &#39;ok&#39;, db: `${config.database.type}/${config.database.name}`, ai: `${config.ai.provider}/${config.ai.model}`, tools: registry.list(), schema: schema.getSummary() });<br>    } catch (e) { res.status(500).json({ status: &#39;error&#39;, message: e.message }); }<br>  });<br><br>  // List tools<br>  app.get(&#39;/api/tools&#39;, requireAuth, (req, res) =&gt; res.json({ tools: registry.getDefinitions() }));<br><br>  // Asking in the plain English<br>  app.post(&#39;/api/ask&#39;, requireAuth, async (req, res) =&gt; {<br>    const { question, explain = false } = req.body;<br>    if (!question?.trim()) return res.status(400).json({ error: &#39;question is required&#39; });<br>    try {<br>      const result = await registry.execute(&#39;query_database&#39;, { question, explain });<br>      res.json({ answer: result.content?.[0]?.text || &#39;&#39;, isError: result.isError || false });<br>    } catch (e) { res.status(500).json({ error: e.message }); }<br>  });<br><br>  // Call any tool directly<br>  app.post(&#39;/api/tools/:toolName&#39;, requireAuth, async (req, res) =&gt; {<br>    const { toolName } = req.params;<br>    if (!registry.has(toolName)) return res.status(404).json({ error: `Tool &quot;${toolName}&quot; not found`, available: registry.list() });<br>    try {<br>      const result = await registry.execute(toolName, req.body || {});<br>      res.json({ result: result.content?.[0]?.text, isError: result.isError || false });<br>    } catch (e) { res.status(500).json({ error: e.message }); }<br>  });<br><br>  // Schema<br>  app.get(&#39;/api/schema&#39;, requireAuth, async (req, res) =&gt; {<br>    const result = await registry.execute(&#39;describe_schema&#39;, { summary: req.query.summary === &#39;true&#39; });<br>    res.json({ schema: result.content?.[0]?.text });<br>  });<br><br>  // Webhooks<br>  app.post(&#39;/api/webhook&#39;, verifyWebhook, async (req, res) =&gt; {<br>    const question = extractQuestionFromWebhook(req.body);<br>    if (!question) return res.status(400).json({ error: &#39;Add a &quot;question&quot; field to your webhook payload.&#39; });<br>    console.log(`[Webhook] ${question}`);<br>    try {<br>      const result = await registry.execute(&#39;query_database&#39;, { question });<br>      res.json({ question, answer: result.content?.[0]?.text || &#39;&#39;, timestamp: new Date().toISOString() });<br>    } catch (e) { res.status(500).json({ error: e.message }); }<br>  });<br><br>  const PORT = process.env.HTTP_PORT || 3344;<br>  app.listen(PORT, () =&gt; {<br>    console.log(`\n HTTP server ready`);<br>    console.log(`\n   Open UI:  http://localhost:${PORT}`);<br>    console.log(`     Token:    ${API_TOKEN}`);<br>    console.log(`\n   POST /api/ask  →  { &quot;question&quot;: &quot;how many identities?&quot; }`);<br>  });<br>}<br><br>startHTTPServer().catch(e =&gt; { console.error(&#39;Fatal:&#39;, e.message); process.exit(1); });</pre><h3>Security Considerations</h3><p>Whenever AI interacts with enterprise data, security becomes a critical topic.</p><p>Several safeguards were included.</p><h4>Read-Only Operations</h4><p>Only SELECT statements are allowed.</p><p>All modification commands are blocked.</p><h4>Query Validation</h4><p>Generated SQL is inspected before execution.</p><h4>Row Limits</h4><p>Automatic limits prevent excessive data retrieval.</p><h4>Controlled Tool Access</h4><p>The AI can only interact with capabilities explicitly exposed through MCP tools.</p><p>This significantly reduces risk compared to granting unrestricted database access.</p><h4>Security Validation Pipeline</h4><pre>Generated SQL<br>      |<br>      v<br>Validation Layer<br>      |<br>      +--&gt; Dangerous Command?<br>      |          |<br>      |         Yes<br>      |          |<br>      |       Reject<br>      |<br>      v<br>Execute Query</pre><h3>Final Output</h3><p>Calling MySQL database from Claude Desktop</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uCSJpa9xW-j85HkAPdSitg.png" /></figure><p>Calling MySQL database using MCP from External UI</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xyVOKuOqXqlnynjJ5UkzGw.png" /></figure><h3>Lessons Learned</h3><p>Several lessons emerged during development.</p><h4>Schema Context Matters More Than Model Size</h4><p>Providing accurate schema information had a greater impact on query quality than switching between models.</p><h4>Security Cannot Be an Afterthought</h4><p>AI-generated SQL must always be validated before execution. Trusting generated queries blindly is not a viable enterprise strategy.</p><h4>MCP Simplifies Integration</h4><p>The protocol provides a clean separation between AI models and enterprise systems. This makes the overall architecture easier to maintain and extend.</p><h4>Discovery Beats Hardcoding</h4><p>Automatically learning the schema eliminates a significant maintenance burden. As databases evolve, the AI remains aligned with reality.</p><h3>Where This Can Go Next</h3><p>This project started as an experiment in natural language reporting, but it opens several interesting possibilities.</p><p>Future enhancements could include:</p><ul><li>Retrieval-Augmented Generation (RAG) using platform documentation</li><li>Automatic chart generation from query results</li><li>Multi-database reporting</li><li>AI-assisted troubleshooting</li><li>Operational analytics and trend analysis</li></ul><p>The foundation already exists. The next step is expanding the intelligence available to the AI while preserving security and governance controls.</p><h3>Final Thoughts</h3><p>Connecting AI systems to enterprise databases is not a new idea.</p><p>Doing it safely, accurately, and in a way that remains maintainable over time is the real challenge.</p><p>By combining MCP, automatic schema discovery, a tool-based architecture, and a strict SQL validation layer, it becomes possible to create a natural language interface that can answer meaningful operational questions without exposing the underlying complexity of the database.</p><p>For me, the most interesting takeaway was not that AI could generate SQL.</p><p>It was that, with the right context and guardrails, AI could make enterprise data significantly more accessible while still respecting the security requirements that these environments demand.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=352389433719" width="1" height="1" alt=""><hr><p><a href="https://pub.towardsai.net/how-i-connected-claude-mcp-to-an-enterprise-identity-database-for-natural-language-querying-352389433719">How I Connected Claude MCP to an Enterprise Identity Database for Natural Language Querying &amp;…</a> was originally published in <a href="https://pub.towardsai.net/">Towards AI</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Intelligent CI/CD Platform]]></title>
            <link>https://medium.com/@nihar_kalyanam/intelligent-ci-cd-platform-b49eb8c71049?source=rss-129f6889c72a------2</link>
            <guid isPermaLink="false">https://medium.com/p/b49eb8c71049</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[ci-cd-pipeline]]></category>
            <category><![CDATA[ami]]></category>
            <category><![CDATA[continuous-deployment]]></category>
            <category><![CDATA[sailpoint-identityiq]]></category>
            <dc:creator><![CDATA[Nihar Kalyanam]]></dc:creator>
            <pubDate>Wed, 20 May 2026 05:10:30 GMT</pubDate>
            <atom:updated>2026-05-20T05:10:30.229Z</atom:updated>
            <content:encoded><![CDATA[<h4>Automated Deployment, Root Cause Detection &amp; AI-Driven Failure Analysis</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6cwyD9Ish_Wc4vy47MHcAg.png" /></figure><p>In many enterprise environments, deployment processes are still manual and operationally expensive. Teams often spend significant time deploying artifacts, troubleshooting CI/CD failures, and manually analyzing logs.</p><p>In addition, debugging build failures can become time-consuming due to large Jenkins logs, repeated issues, and lack of centralized failure intelligence.</p><p>I wanted to simplify this process and make deployments more repeatable, reliable, and intelligent. So I built an intelligent CI/CD platform focused on automated deployments and AI-based failure analysis.</p><p>The platform automates deployment workflows, captures CI/CD failures in real time, analyzes logs using AI, and provides root cause analysis with fix suggestions and confidence scoring.</p><p>While the overall platform is designed to be pipeline-agnostic and adaptable for different CI/CD workflows, my current implementation and focus are around SailPoint IdentityIQ plugin deployment automation and operational workflows.</p><h3>The Problem with Traditional Plugin Deployment</h3><p>In most environments, plugin deployment typically looks like this:</p><ul><li>Build plugin</li><li>Generate ZIP</li><li>Login to IIQ</li><li>Upload manually</li><li>Install plugin</li><li>Repeat if failure occurs</li></ul><p>This approach creates multiple challenges:</p><ul><li>Manual effort</li><li>No deployment consistency across environments</li><li>Limited traceability</li><li>Higher production risk</li><li>Time-consuming rollback/reinstall activities</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eChxCpuxWHHFcGz7YtJogw.png" /><figcaption>Existing plugin deployment state in SailPoint IdentityIQ before automated CI/CD execution</figcaption></figure><p>Even after introducing CI/CD pipelines, another major challenge still remained:</p><h3>Debugging CI/CD Failures</h3><p>Jenkins logs are often large and difficult to analyze quickly.</p><p>Some common issues included:</p><ul><li>Engineers spending time scrolling logs</li><li>Root cause not being obvious</li><li>Same failures repeating again and again</li><li>Non-technical users unable to understand failures</li></ul><p>This slows down:</p><ul><li>debugging</li><li>releases</li><li>productivity</li></ul><h3>Automating Plugin Deployment Using Jenkins</h3><p>To solve the deployment problem, I automated the entire plugin deployment flow using Jenkins.</p><p>The platform includes:</p><ul><li>Direct Git integration</li><li>Parameter-driven pipelines</li><li>Automated build and packaging</li><li>Safe reinstall flow</li><li>Production approval gates</li></ul><p>The deployment flow became very simple:</p><p><em>Select Environment → Trigger Pipeline → Deploy Plugin</em></p><p>The pipeline handles:</p><ul><li>uninstall</li><li>reinstall</li><li>verification</li><li>deployment tracking</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cGtCGGiYzlxkiOSN2drsvA.png" /><figcaption>Jenkins-based parameter-driven deployment pipeline for SailPoint IdentityIQ plugins</figcaption></figure><p>This removed the need for manual UI uploads and helped standardize deployments across DEV, QA, and PROD environments.</p><p>Some of the improvements included:</p><ul><li>Repeatable deployments</li><li>Faster release execution</li><li>Better deployment traceability</li><li>Reduced operational effort</li><li>Lower production deployment risk</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6KZ2j96PSZ4CWwxJ3JZZIQ.png" /><figcaption>Successful automated plugin deployment executed through Jenkins pipeline</figcaption></figure><h3>Building AI-Powered Failure Analysis</h3><p>After deployment automation was solved, the next focus area was CI/CD failure analysis.</p><p>I built an AI-powered analysis system called <strong>JenkinsAI</strong>.</p><p>When a build fails:</p><ol><li>Jenkins sends failure events through webhook integration</li><li>Logs are automatically captured</li><li>AI analyzes the failure logs</li><li>The system generates:</li></ol><ul><li>Root cause</li><li>Fix suggestion</li><li>Confidence score</li></ul><p>Instead of manually searching through logs, the platform provides structured failure analysis automatically.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jsKcCZTMJdz1tsXJ7vRUfQ.png" /><figcaption>Real-time CI/CD failure feed with AI-generated analysis and remediation insights</figcaption></figure><h3>“Ask AI” for Interactive Debugging</h3><p>One feature I particularly wanted was conversational debugging.</p><p>So I added an <strong>Ask AI</strong> capability where users can interact with failures using natural language.</p><p>Example questions:</p><ul><li>“Why did this fail?”</li><li>“How to fix this?”</li><li>“What is the root cause?”</li></ul><p>The system supports multi-step conversations over logs and simplifies debugging significantly.</p><p>This made troubleshooting easier even for users who are not deeply familiar with Jenkins logs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9Mfh4kiFuuLdVBFwSln0bw.png" /><figcaption>Conversational debugging using natural language queries over Jenkins failures</figcaption></figure><h3>Failure Pattern Detection &amp; Trend Analysis</h3><p>Another major focus was identifying recurring problems across builds.</p><p>The platform stores:</p><ul><li>failure history</li><li>AI analysis</li><li>recurring patterns</li><li>trend information</li></ul><p>This helps teams identify systemic issues instead of repeatedly fixing the same failures manually.</p><p>The dashboard provides:</p><ul><li>Real-time failure feed</li><li>Failure trends</li><li>AI-generated insights</li><li>Pattern analysis</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JpkDndiegZ1Q9A2W-d70rQ.png" /><figcaption>Failure trend analysis dashboard highlighting recurring CI/CD issues</figcaption></figure><h3>Operational Pipeline Automation</h3><p>In addition to plugin deployment, I also automated operational activities such as:</p><ul><li>Tomcat start</li><li>Tomcat stop</li><li>Tomcat restart</li></ul><p>This helped support end-to-end environment management directly through pipelines.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_ZqrbC4sbiIV6xEMffBQmQ.png" /><figcaption>Operational automation pipelines for Tomcat environment management</figcaption></figure><h3>System Architecture Overview</h3><p>The overall solution includes:</p><ul><li>Jenkins</li><li>Webhook integration</li><li>Backend processing layer</li><li>AI analysis engine</li><li>PostgreSQL storage</li><li>Dashboard visualization</li></ul><p>The workflow captures failures in real time, processes logs automatically, performs AI analysis, stores insights, and visualizes trends through dashboards.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Uy-EDDR9DotVfopce-4nRQ.png" /><figcaption>High-level architecture of the intelligent CI/CD and AI-powered failure analysis platform</figcaption></figure><h3>Business Impact</h3><p>This platform helped:</p><ul><li>Eliminate manual plugin deployment effort</li><li>Reduce CI/CD debugging time</li><li>Improve deployment reliability</li><li>Simplify failure analysis</li><li>Provide centralized intelligence for recurring issues</li></ul><p>The overall goal was to move CI/CD from a traditional deployment pipeline into a more intelligent operational platform that can both deploy and explain failures automatically.</p><p>This approach combines automation and AI to improve reliability, visibility, and operational efficiency in SailPoint IdentityIQ environments.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b49eb8c71049" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Simplifying Data Access in SailPoint IdentityIQ with a DB Workbench]]></title>
            <link>https://medium.com/@nihar_kalyanam/simplifying-data-access-in-sailpoint-identityiq-with-a-db-workbench-028b3cb1fb17?source=rss-129f6889c72a------2</link>
            <guid isPermaLink="false">https://medium.com/p/028b3cb1fb17</guid>
            <category><![CDATA[identity-management]]></category>
            <category><![CDATA[ami]]></category>
            <category><![CDATA[enterprise-software]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[sailpoint-identityiq]]></category>
            <dc:creator><![CDATA[Nihar Kalyanam]]></dc:creator>
            <pubDate>Thu, 09 Apr 2026 04:24:32 GMT</pubDate>
            <atom:updated>2026-04-09T04:24:32.518Z</atom:updated>
            <content:encoded><![CDATA[<h4><em>Enabling secure, controlled, and efficient query access directly from the SailPoint UI </em>with future AI-driven capabilities</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/852/1*mmu8yZC73B2APnhHnQkbAg.png" /></figure><h3>The Problem No One Talks About</h3><p>If you’ve worked with SailPoint IdentityIQ for a while, you already know this, getting data out of the system is not always straightforward.</p><p>In most organizations, when OPS or IAM teams need data:</p><ul><li>They depend on database teams</li><li>Or log into servers directly</li><li>Or run queries with elevated access</li></ul><p>None of these are ideal.</p><p>It slows down day-to-day operations, creates unnecessary dependencies, and sometimes even introduces security risks.</p><p>I kept seeing this pattern repeatedly even for simple tasks like validating records or troubleshooting issues, the effort felt disproportionately high.</p><p>That’s where this idea started.</p><h3>The Idea: Bringing DB Access Into the UI (Safely)</h3><p>What if teams could run queries directly from the SailPoint UI?</p><p>Not unrestricted access. Not risky operations. But a <strong>controlled, secure, and auditable way to query data</strong>.</p><p>That thought led to building the <strong>IAM DB Workbench plugin</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Qx9W7WJoT__4BVvuTM7bsg.png" /></figure><p>The goal was simple:</p><p><em>Enable teams to access data quickly without compromising system stability or security.</em></p><h3>Under the Hood: How It Works</h3><p>Instead of creating a new database connection or exposing credentials, the solution uses SailPoint’s built-in capability:</p><ul><li>context.getConnection() is used to connect to the IdentityIQ database</li><li>No external configuration or credential handling is required</li><li>Everything runs within the existing application context</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EfkDZM8XQoXQNkwiDFtBbg.png" /><figcaption>Code Snippet</figcaption></figure><p>This makes the solution seamless but also something that needs to be handled very carefully.</p><p>During development, even a small misconfiguration at the connection level impacted system behavior. That reinforced an important lesson:</p><p><em>With great access comes the need for strict control.</em></p><h3>Guardrails First: Preventing Risky Operations</h3><p>Allowing database access inside a UI can be dangerous if left unrestricted.</p><p>To ensure safety, the plugin blocks potentially harmful operations such as:</p><ul><li>DELETE</li><li>UPDATE</li><li>DROP</li><li>ALTER</li><li>TRUNCATE</li><li>Certain unrestricted queries like SELECT *</li></ul><p>Any attempt to run these results in a controlled error response.</p><p>At the same time, flexibility is still available and administrators can override restrictions through configuration if needed.</p><p>The default philosophy is simple:</p><p><em>Safety first, flexibility second.</em></p><h3>Performance Matters: Handling Data Responsibly</h3><p>Another critical aspect was performance.</p><p>Uncontrolled queries can:</p><ul><li>Slow down the application</li><li>Impact other users</li><li>Or even cause failures</li></ul><p>To prevent this, the plugin includes:</p><h4>Controlled Pagination</h4><p>Uses LIMIT and OFFSET to return only the required data.</p><h4>Row Exposure Limits</h4><p>Caps the number of records (e.g., 5000 rows) to prevent overload.</p><h4>Query Timeout Protection</h4><p>Ensures long-running queries are automatically stopped. These controls make the system reliable even under heavy usage.</p><h3>Smart Data Export: Built for Real-World Usage</h3><p>Exporting data is often where systems struggle the most.</p><p>Instead of loading large datasets into memory:</p><ul><li>Queries are re-executed in a controlled manner</li><li>Results are streamed as CSV/ZIP files</li><li>JVM memory usage remains stable</li></ul><p>Additionally:</p><ul><li>A secure, time-limited <strong>HMAC-based download token</strong> is used</li><li>Works seamlessly in distributed or multi-node environments</li></ul><p>This makes exports both secure and scalable.</p><h3>Making It Usable: Focus on Experience</h3><p>A technically sound solution is only useful if people can easily use it. So along with backend capabilities, usability was equally important:</p><h4>Schema Explorer</h4><p>Allows users to browse tables and columns without needing deep database knowledge.</p><h4>Theme Support</h4><p>Includes light and dark modes for better usability.</p><h4>Session-Based Caching</h4><p>Metadata like table and column details are cached to avoid repeated long load times.</p><h4>Flexible Pagination UI</h4><p>Supports multiple page sizes for better control over results. These enhancements significantly improve day-to-day usability for teams.</p><h3>Audit &amp; Accountability</h3><p>Even though access is simplified, accountability remains a priority.</p><p>Every query execution:</p><ul><li>Is logged</li><li>Captures user identity</li><li>Stores execution metadata</li></ul><p>This ensures full traceability and aligns with enterprise security expectations.</p><h3>Lessons Learned</h3><p>Building this solution highlighted a few important principles:</p><ul><li>Just because access is possible doesn’t mean it should be unrestricted</li><li>Small mistakes at the database level can impact the entire system</li><li>Performance controls are essential, not optional</li><li>Internal tools benefit greatly from good UX</li></ul><h3>Real Impact</h3><p>This solution directly improves operational efficiency:</p><ul><li>Eliminates dependency on database teams for basic queries</li><li>Enables faster troubleshooting for IAM admins</li><li>Provides APIs for UI teams to extend functionality</li><li>Reduces risks associated with uncontrolled DB access</li></ul><p>It removes friction from everyday IAM workflows.</p><h3>What’s Next</h3><p>I am currently planning to publish this plugin within the SailPoint ecosystem so that it can be leveraged by a wider community.</p><p>The idea is to make it:</p><ul><li>Easy to adopt</li><li>Secure by default</li><li>Flexible for enterprise use cases</li></ul><p>One area I am excited to explore next is adding AI-assisted SQL generation, so users can describe what they need in plain language and get help writing SQL more easily while still keeping the experience secure, controlled, and enterprise-ready.</p><p>There is still room to evolve this further, but this is a strong foundation.</p><h3>Final Thoughts</h3><p>This started as a small attempt to solve a recurring problem.</p><p>But it turned into something more meaningful, a way to simplify how teams interact with complex IAM systems.</p><p><em>Sometimes, the most impactful solutions are not the most complex ones they are the ones that remove everyday friction.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=028b3cb1fb17" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I Built an AI Chatbot for SailPoint IdentityIQ]]></title>
            <link>https://pub.towardsai.net/how-i-built-an-ai-chatbot-for-sailpoint-identityiq-e5cc3c2fac4d?source=rss-129f6889c72a------2</link>
            <guid isPermaLink="false">https://medium.com/p/e5cc3c2fac4d</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[ami]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[enterprise-software]]></category>
            <category><![CDATA[sailpoint-identityiq]]></category>
            <dc:creator><![CDATA[Nihar Kalyanam]]></dc:creator>
            <pubDate>Sat, 14 Mar 2026 12:01:01 GMT</pubDate>
            <atom:updated>2026-03-14T12:01:01.365Z</atom:updated>
            <content:encoded><![CDATA[<h4><em>Exploring how AI can simplify IAM workflows.</em></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tfQpMHHIY5DPCSkcnFqhag.png" /></figure><h3>Introduction</h3><p>Artificial Intelligence is becoming an essential part of modern enterprise platforms. Many organizations are exploring how AI can simplify operations, automate workflows, and improve the user experience. While working with Identity and Access Management systems, I started thinking about how AI could help simplify interactions with SailPoint IdentityIQ. IAM platforms are extremely powerful, but interacting with them can sometimes require navigating multiple screens, understanding workflows, and performing repetitive operational tasks. For IAM engineers this may be normal, but for support teams and application owners it can slow down simple actions such as retrieving identity details or checking approvals.</p><h3>The Idea Behind the Chatbot</h3><p>The idea was to allow users to interact with SailPoint IdentityIQ using natural language. Instead of navigating several menus, users could simply ask questions such as “Show my pending requests” or “Provide my user details.” The chatbot would understand the query, determine the user’s intent, and retrieve the appropriate information directly from IdentityIQ. This conversational approach reduces the complexity of interacting with IAM systems and makes identity governance more accessible to everyday users.</p><h3>Core Features</h3><p>The chatbot integrates with the OpenAI platform to understand natural language queries. When a user sends a message, the AI model analyzes the input and determines the intent behind the request. Based on the identified intent, the request is routed to the appropriate backend method within the SailPoint plugin. The system currently supports several intents including retrieving user details, checking linked accounts, viewing pending requests, identifying birthright roles, retrieving user entitlements, counting active users, retrieving manager relationships, exploring role hierarchies, detecting native account changes, and handling interactive application creation workflows. The chatbot UI itself is lightweight and built using HTML, CSS, and JavaScript. Messages from users appear on the right side while responses from the chatbot appear on the left side, making the conversation easy to follow.</p><h3>System Architecture</h3><p>The architecture connects multiple components together to process user requests. Messages from the chatbot UI are first sent to the backend service where OpenAI analyzes the input and determines the user’s intent. Once the intent is identified, the request is routed to the SailPoint plugin which interacts with IdentityIQ APIs to retrieve or process the requested information. In addition to operational requests, the system also supports a Retrieval Augmented Generation (RAG) approach for answering knowledge-based questions. Relevant IAM documentation, including internal reference documents and project materials, can be indexed and retrieved when users ask informational questions. Instead of relying only on the language model, the chatbot retrieves the most relevant document context and includes it in the prompt sent to the AI model. This ensures responses are grounded in actual documentation rather than purely generated text. By combining intent-based routing for operational tasks and RAG-based retrieval for informational queries, the chatbot can both execute IdentityIQ actions and provide accurate explanations about IAM processes, configurations, and system behavior.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UIp1M2aqYAEXfu_9cLjbpg.png" /><figcaption>Architecture diagram</figcaption></figure><h3>Conversational Workflow</h3><p>One of the most interesting capabilities of the chatbot is the ability to guide users through multi-step actions. For example, when a user wants to create an application, the chatbot begins a guided conversation asking for the required details. The chatbot may first request the application name, then ask for the connector type such as JDBC, Web Services, SCIM, or Active Directory. Based on the selected connector, it asks for configuration fields like connection URLs or credentials. As the user provides information, the chatbot validates the input and collects all required details. Once the configuration is complete, the chatbot summarizes the information and asks the user to confirm before creating the application.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/604/1*lfHqsGhdF8SgNVl5jV88iQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*-uVmWc84m4OfqGYmAOdbqg.png" /><figcaption>Chatbot conversation</figcaption></figure><h3>AI-Powered Knowledge Responses</h3><p>In addition to performing operational tasks, the chatbot can also answer general IAM questions. For example, a user might ask about SailPoint certification campaigns or identity governance concepts. The chatbot uses the OpenAI model to generate responses that explain these topics in simple terms. This approach behaves similarly to Retrieval Augmented Generation (RAG) systems where AI responses are enriched with contextual knowledge. Instead of acting only as a command interface, the chatbot also becomes an intelligent assistant capable of helping users understand IAM processes.</p><h3>Slack Integration</h3><p>Another key feature of the project is Slack integration. Many teams spend most of their time in collaboration platforms rather than administrative portals. To make the chatbot accessible within daily workflows, I integrated Slack into the system using a lightweight Node.js middleware layer. This middleware acts as a bridge between Slack and SailPoint IdentityIQ. It listens for user messages in Slack channels, forwards the request to the chatbot backend, and posts the response back to Slack. The middleware securely authenticates with IdentityIQ using OAuth2 and formats the responses returned from the backend APIs. This allows users to perform actions such as retrieving identity details, checking approvals, or initiating application creation directly from Slack conversations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AaNQt1Kx2hPLf0hWxynk1g.png" /><figcaption>slack integration</figcaption></figure><h3>Why This Matters</h3><p>IAM platforms are critical for enterprise security, but improving how users interact with them can significantly increase productivity. Conversational interfaces reduce the need for users to understand complex UI workflows. Instead of navigating several screens, users can simply ask questions and receive answers immediately. Integrating AI with IAM platforms also opens the door to more intelligent identity systems capable of guiding users through workflows, answering governance questions, and automating repetitive tasks.</p><h3>Final Thoughts</h3><p>Building this AI chatbot for SailPoint IdentityIQ was an exploration into how conversational AI can improve identity governance systems. By combining natural language understanding, intent-based routing, and integrations with collaboration platforms like Slack, it becomes possible to simplify complex IAM workflows while maintaining strong governance controls. As AI continues to evolve, conversational assistants may become a natural extension of enterprise identity platforms, helping organizations manage identities more efficiently and making IAM systems easier for everyone to use.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e5cc3c2fac4d" width="1" height="1" alt=""><hr><p><a href="https://pub.towardsai.net/how-i-built-an-ai-chatbot-for-sailpoint-identityiq-e5cc3c2fac4d">How I Built an AI Chatbot for SailPoint IdentityIQ</a> was originally published in <a href="https://pub.towardsai.net/">Towards AI</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>