<?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: Sam Clark</title>
    <description>The latest articles on DEV Community by Sam Clark (@samrocksc).</description>
    <link>https://dev.to/samrocksc</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%2F99858%2F21ff5718-96c7-4a80-a598-202b14071ff5.jpeg</url>
      <title>DEV Community: Sam Clark</title>
      <link>https://dev.to/samrocksc</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/samrocksc"/>
    <language>en</language>
    <item>
      <title>Security and Being a Good Consultant: Why the Annoying Security Guy Was Right</title>
      <dc:creator>Sam Clark</dc:creator>
      <pubDate>Tue, 17 Nov 2026 10:16:11 +0000</pubDate>
      <link>https://dev.to/samrocksc/security-and-being-a-good-consultant-why-the-annoying-security-guy-was-right-4e9o</link>
      <guid>https://dev.to/samrocksc/security-and-being-a-good-consultant-why-the-annoying-security-guy-was-right-4e9o</guid>
      <description>&lt;p&gt;Security can be confusing, and often times it's actually purposely built to be confusing. An industry doesn't endorse "obfuscation of code" for no reason... right?&lt;/p&gt;

&lt;p&gt;I remember when I first started going to Node.js meetups back in 2011/2012, everything was NEW and EXCITING. There was all this cool stuff like CoffeeScript coming out. The infinite possibilities that Node offered for one single language across the back and frontend. This was a period when the frontier was writing helper modules for an ecosystem no one had any interest in. API surfaces were being formed, and norms solidified that would shape the future of software development.&lt;/p&gt;

&lt;p&gt;During these meetups there was &lt;em&gt;always&lt;/em&gt; one guy complaining about security. It always put a damper on the presenter because their goal was to present the functionality, not fine tune the code. The security guy ALWAYS showed up, and ALWAYS annoyed us. He was the butt of jokes, and he wasn't very sociable. It left a lasting impression for me being new to web development.&lt;/p&gt;

&lt;p&gt;What I didn't realize at the time was that the way he talked about security felt designed to confuse us. It had that classic nerd-sniping quality, whether he meant it that way or was just wired to operate like that 24/7.&lt;/p&gt;

&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%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fo0jtju4ar6bqv4prn90h.png" 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%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fo0jtju4ar6bqv4prn90h.png" alt="Nerd Sniping, xkcd 356" width="740" height="371"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Either way the detrimental effect was I have NEVER taken security professionals seriously until about 4 years ago. I worked for a company and we hired three consultants: scrum, qa, and security. The scrum master was excellent, they were always willing to engage, they understood the mission, and executed well. The QA consultant was AWFUL and dry, preferring to over document over educate, ultimately frustrating us into ending that contract early. The third was the security consultant, and he was &lt;em&gt;excellent&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;He started off by doing a DEEP dive of our infrastructure, onboarding our platform, asking questions. The questions were never hard, and never pointed. They were just gentle social probes. He also asked for opinions. For a while I didn't even think he existed. Then he gave us 3 or 4 presentations, and they landed &lt;strong&gt;solid&lt;/strong&gt;. The first one was the big one: a walkthrough of the OWASP Top 10, what it actually is, why it exists, and how almost every breach we were worried about mapped back to it. He said "80% of security is reading the OWASP Top 10." At this point, I'd heard the term mentioned briefly in the past, but never paid attention. I understood OAuth, JWTs, and encryption, but definitely not the other factors involved.&lt;/p&gt;

&lt;p&gt;I think I took away four things:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Read the OWASP Top 10 at least once a month&lt;/li&gt;
&lt;li&gt;Understand what each threat is in the top 10&lt;/li&gt;
&lt;li&gt;Understand the threat vectors to your product, and build a simple threat model.&lt;/li&gt;
&lt;li&gt;Security is not a single thing... it's a LOT of things, and some are required, and some are not.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;At least 80% of the securing of an application can happen &lt;strong&gt;during iteration&lt;/strong&gt;. The last 20% can normally be assessed, tweaked, and normalized during a security review. This can be as simple as changing token lifetimes, or implementing a private VPC for your data. Either way the concepts are pretty simple for a senior engineer.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why wasn't I doing this before?
&lt;/h2&gt;

&lt;p&gt;Yeah, good question.... I think mainly because the speed at which technology has been moving for the past decade was both a boon and a trap. We didn't focus security because we thought we could just chuck 1,000,000 products over the fence, and see if we were obscure enough to NOT get hacked. I saw this approach from a lot of businesses.&lt;/p&gt;

&lt;h2&gt;
  
  
  The difference between security and regulatory requirements
&lt;/h2&gt;

&lt;p&gt;Security isn't &lt;em&gt;required&lt;/em&gt; in a lot of different industries, it's recommended. Sure there are GDPR Requirements, HIPAA Requirements, and PII Requirements. The problem is that they are requirements, so you feel forced to do them. Eventually we start normalizing the requirements into our daily work because we &lt;strong&gt;must&lt;/strong&gt; not because we want to. So why not implement proper RBAC at the authentication layer instead of building it into your business/data layers? The reason is it's hard to understand sometimes! No one teaches about OAuth, or custom claims. Shit, no one ever alerted me about what a SBOM (Software Bill of Materials) until I started working for a Healthcare client.&lt;/p&gt;

&lt;h2&gt;
  
  
  Layers build security, not requirements
&lt;/h2&gt;

&lt;p&gt;There is a reason that almost every certification in security has extremely vague tests. Sometimes the answer is 45% A, and 10% B. This is by design, and understandable. Security is layered by the priority of the project it's protecting.&lt;/p&gt;

&lt;p&gt;This stuff is not hard, but the problem is deciding where to put your focus. On expansion or security. Sometimes your product doesn't necessitate Role based access control. Sometimes you don't need an SBOM. Knowing when to take the time to implement something like SAST or DAST can depend on factors like budget, and the current state of your QA team. Ultimately understanding your company's budget, and goals is what can dictate your posturing both short and long term.&lt;/p&gt;

&lt;h2&gt;
  
  
  Understanding Business Goals as a Software Engineer
&lt;/h2&gt;

&lt;p&gt;This I think is the final point is that you can approach security as a software engineer as this is part of your tool kit. Take a two step approach.. understand the business, understand the capabilities. Talk to the PM, and ask if the budget (financial and time) facilitates role based implementation at the beginning. Explain that it's easier to start with secure access controls. Talk to your Engineering Manager and ask if it makes sense to start with locked down versions of your packages. The easiest fix we can make in the current climate is literally statically locked versions to our OSS packages.&lt;/p&gt;

&lt;p&gt;Understand each member of the SDLC, what's important to them, and where to ask for time:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;EM/Tech Lead - primarily work to get the product shipped in the time line from the PM. Ask for the permission to facilitate non-functional requirements&lt;/li&gt;
&lt;li&gt;PMs/Product - Primarily focus on delivery of the finished product. Identify changes in functional requirements and the customer's interaction.&lt;/li&gt;
&lt;li&gt;QA - Often the hardest to work with, and the gate keeper to success. Find out where QA is ACTUALLY needed in the process, and implement the QA at this point. Don't let authorization checks happen in the wrong spots. Know when to push back here.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Try and make these your go to funnels for improving your posturing when you are on the ground prompting, or adding new features.&lt;/p&gt;

&lt;h2&gt;
  
  
  Making Security work for you as a Software Engineer
&lt;/h2&gt;

&lt;p&gt;No one wants to deal with a security breach. It's exhausting and frustrating. The best advice I got was also the simplest: read the OWASP Top 10. At least once a month. Do that, and you're already 80% of the way there. The last 20% is just deciding where to put the layers.&lt;/p&gt;

&lt;h2&gt;
  
  
  Citations &amp;amp; References
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://top10.owasp.org/2025/" rel="noopener noreferrer"&gt;OWASP Top 10 2025&lt;/a&gt; - relevant still in the end of 2026... almost every breach has been preventable from this list. You can research almost every concept mentioned in this post there.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://www.ibm.com/de-de/think/topics/sbom" rel="noopener noreferrer"&gt;Software Bill of Materials&lt;/a&gt; - this explanation from IBM is really good, and I strongly recommend it.&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>security</category>
      <category>career</category>
      <category>programming</category>
      <category>consulting</category>
    </item>
    <item>
      <title>The Bare Essentials: MCPs and Authentication</title>
      <dc:creator>Sam Clark</dc:creator>
      <pubDate>Tue, 17 Nov 2026 10:15:32 +0000</pubDate>
      <link>https://dev.to/samrocksc/the-bare-essentials-mcps-and-authentication-43ec</link>
      <guid>https://dev.to/samrocksc/the-bare-essentials-mcps-and-authentication-43ec</guid>
      <description>&lt;p&gt;MCP servers are the industry's hottest form of agentic consumption, and mostly a security nightmare.  Of the servers where authentication could be determined, 38.7% required none: anyone could connect, initialize a session, and enumerate every tool.  Another 22.9% ran wide open on CORS, and only 2.4% had any rate limiting.  Meanwhile 83% of businesses plan to roll out agentic AI, and only 24% have the controls to actually govern it(Cisco AI Readiness Index).  Companies with mature oversight launched agentic AI almost 4x faster: 46% versus 12%(CSA and Google Cloud).  The security pillar and the speed pillar turn out to be the same pillar; I'll cite the reports at the bottom.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;I have spent 15ish professional years in software development, and 20+ as a hobbyist, or side project software developer...There is a wide gap between the security/IT trade and where most developers sit.  I want to bridge this gap.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Customer identity content reaches engineers two ways, and both are broken.  The one-off POC, increasingly AI-generated in an afternoon, demos beautifully, teaches a little, and vanishes with its uncommitted middle: nobody committed the part where the security decisions actually live.  The theoretical kind is all standards, diagrams, and threat models, correct and none of it executable.  Between a Friday demo and a Monday standard, the engineer with an empty editor has almost nothing to walk.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The past few months have made it plain: security gets built side by side with the AI products, not stapled on after.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;This series is the walk for one small, representative case: a Star Wars MCP server, built rung by rung toward layered security.  Everything is committed; each rung lands one concern and the blog follows the commits.  I've broken it into two posts: the next one goes into Coarse Grained Role Based Access Control (RBAC).&lt;/p&gt;

&lt;p&gt;I have created a pretty simple demo here: &lt;a href="https://github.com/samrocksc/a0-mcp-demo" rel="noopener noreferrer"&gt;a0-mcp-demo on GitHub&lt;/a&gt;, it's designed to only be 3 commits, by the end of this series....four.  You can follow along there by switching between commits.&lt;/p&gt;

&lt;h2&gt;
  
  
  Agents, MCPs, etc....they're all just web technologies
&lt;/h2&gt;

&lt;p&gt;Agents, MCPs, and the like are best read as new formats, not a new internet.  For twenty years the browser talked to REST endpoints, and later GraphQL, over HTTP; the agent generation swaps that for an RPC-style layer, the same discipline gRPC brought to services, now aimed at models instead of UIs.  The web part does not vanish: under that layer we are still serving plain web data.  Implementation-wise two technologies carry the traffic: XHR-style HTTP requests move the transport, and JSON-RPC 2.0 decides what the messages actually say.&lt;/p&gt;

&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%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F64axyul15pd0fqjz55vn.png" 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%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F64axyul15pd0fqjz55vn.png" alt="Agents, Auth0, and ACP in the presentation tier, MCPs in the business tier, and data stores in the data tier" width="725" height="384"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Does it line up with three tier architecture
&lt;/h2&gt;

&lt;p&gt;Yes....yes it does, it's almost hand in hand.  The only difference is an MCP is a different technology.  For those of you old enough to remember switching to GraphQL was a similar drive.  We had to adjust from utilizing the full spectrum of calls (GET, POST, PUT, PATCH) to utilizing POST and submitting a query language.  We're doing the exact same thing here, except we're establishing a stream.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Technology Behind This
&lt;/h2&gt;

&lt;p&gt;First up is OAuth2 PKCE: the mechanism that binds all of our services together, this allows a browser to get a token and authorize the server.  Second, we are utilizing Auth0, an incredibly simple and cost efficient way to spin up environments and learn how to build with security in mind.  Our MCP registers as an API with an audience of &lt;code&gt;urn:mcp&lt;/code&gt;, and Auth0 mints the access tokens aimed at that audience.  To bind the technologies together with the MCP we utilize Next.js, which acts as both API and Frontend for the storage of the token.&lt;/p&gt;

&lt;h2&gt;
  
  
  Terms first: authN and authZ are two questions
&lt;/h2&gt;

&lt;p&gt;Authentication, authN, answers: who called this tool, and did they prove it to a standard I trust?  Authorization, authZ, answers: what is that proven caller permitted to do?  The MCP context makes the split concrete. The model asks the client to invoke a tool; the client delivers the call to the server; the server owes two separate answers. A caller can be perfectly authenticated and still be unauthorized. PKCE (proof key for code exchange) rides along with the authorization-code flow: the client mints a one-time secret at login and proves possession at the token exchange instead of shipping a client secret around, which is exactly right for an app with no backend safe, and which modern OAuth expects of every public client. Post one implements authentication, plus the lightest possible authorization: a binary decision.&lt;/p&gt;

&lt;h2&gt;
  
  
  How an MCP is made
&lt;/h2&gt;

&lt;p&gt;The history of RPC is a different blog post.  An MCP server speaks JSON-RPC 2.0 and exposes &lt;strong&gt;tools&lt;/strong&gt;, named operations with typed arguments.  The model decides whether to call one; the client executes the call.  Mine is read-only: &lt;code&gt;getPerson&lt;/code&gt;, &lt;code&gt;searchPeople&lt;/code&gt;, &lt;code&gt;getFilm&lt;/code&gt;, &lt;code&gt;getPlanet&lt;/code&gt;, four lookups over the classic Star Wars schema.  One could make a comparison to a route for the tool call, and a handler for the actual methodology.  For this project I created some Business Logic to help.&lt;/p&gt;

&lt;p&gt;swapi.info serves classic JSON with no auth, no pagination, and no native search, so &lt;code&gt;searchPeople&lt;/code&gt; fetches the roster once, caches briefly, filters locally:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;searchPeople&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;term&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;Promise&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;PersonRef&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;all&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;fetchJson&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;Person&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"/people"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;q&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;term&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;trim&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;toLowerCase&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;all&lt;/span&gt;
    &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;filter&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;toLowerCase&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;includes&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;q&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;slice&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;8&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;map&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nf"&gt;idFromUrl&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;url&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  The software inventory
&lt;/h2&gt;

&lt;p&gt;Three pieces carry the load.  The Next.js frontend facilitates PKCE for the auth process and stores the access token once the callback lands; the session file is gitignored because dev churns module state faster than memory.  The &lt;code&gt;modelcontextprotocol&lt;/code&gt; SDK speaks JSON-RPC 2.0 and hosts the server-side transport.  And zod builds tight contracts that every tool call has to adhere to for its input; which gets extremely important as security moves forward: a validated input line is the cheapest layer you will ever buy.&lt;/p&gt;

&lt;p&gt;All three live in one process.  The first plan had two servers and a poller between them; it worked, and it was not worth it.  The SDK's legacy SSE transport lives inside the Next app itself, on pages-API routes:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;config&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;api&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;bodyParser&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="k"&gt;default&lt;/span&gt; &lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;handler&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;req&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;res&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;transport&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;SSEServerTransport&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"/api/messages"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;res&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;transports&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;set&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;transport&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;sessionId&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;transport&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;res&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;on&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"close"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;transports&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="k"&gt;delete&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;transport&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;sessionId&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;mcp&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;connect&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;transport&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;bodyParser: false&lt;/code&gt; is the trick to remember: the transport reads its POST body from the raw stream itself; a body parser would eat the body and hang the connection.  The client holds &lt;code&gt;GET /api/sse&lt;/code&gt; open; messages ride &lt;code&gt;POST /api/messages?sessionId=...&lt;/code&gt;; every hop is visible in curl.  The transport predates streamable HTTP; this demo stays on it anyway, seeing every hop beats chasing a spec bump.&lt;/p&gt;

&lt;h2&gt;
  
  
  The layers
&lt;/h2&gt;

&lt;p&gt;Security is layers, and none of the controls in this series is the wrong answer; none of them completes security alone.  A login wall without token verification is theater.  Token verification without a permissions model means every authenticated identity reads everything.  Permissions without trustworthy authentication are a list of wishes.  So we stack them, and defense in depth is the name for the stack: each layer holds some ground if its neighbors fail, and the attacker has to beat all of them.  The server helps by construction too: localhost-only, read-only, nothing sensitive behind it.&lt;/p&gt;

&lt;h2&gt;
  
  
  The demonstration
&lt;/h2&gt;

&lt;p&gt;Two windows side by side:  opencode asks for Luke Skywalker and refuses, its refusal printing a login link;  a browser sits at that link while I sign in through Auth0;  then the call held open the whole time finishes with real data, no second prompt, because the server polled the session holder and released it the moment the login landed.&lt;/p&gt;

&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%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fk7j91rsv5driv0hnm12q.png" 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%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fk7j91rsv5driv0hnm12q.png" alt="Opencode on the refusing terminal, the Auth0 sign-in in the browser beside it" width="800" height="288"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The model did not handle the authentication. The human did, in a browser, and the tool call survived the round trip.&lt;/p&gt;

&lt;h2&gt;
  
  
  The authentication layer
&lt;/h2&gt;

&lt;p&gt;No tool call answers until a real session exists. The gate is one wrapper around every tool callback:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="n"&gt;token&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;getHeldToken&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;token&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="n"&gt;linkShown&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;token&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;waitForSession&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;90_000&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;??&lt;/span&gt; &lt;span class="kc"&gt;undefined&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;token&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nf"&gt;loginRequired&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;claims&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;verifyToken&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;token&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The first unauthenticated call refuses instantly, carrying the login link to provide better UX.  Later calls hold and poll, and can complete mid-call when the login lands.  Every held token gets verified fresh on every call: signature and expiry through jose, the issuer taken from the discovery document (Auth0 stamps a trailing slash), and the &lt;code&gt;urn:mcp&lt;/code&gt; audience, which must ride &lt;code&gt;/authorize&lt;/code&gt; or Auth0 aims the token at the wrong thing.&lt;/p&gt;

&lt;p&gt;This is authN, plus the coarsest authZ a server can speak: you may call, or you may not.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where part two goes
&lt;/h2&gt;

&lt;p&gt;The gate tonight treats every identity as royalty: log in and you read Tatooine, Luke, all of it.  Part two layers coarse-grained RBAC: Auth0 bakes a &lt;code&gt;permissions&lt;/code&gt; claim into the token; the person tools demand &lt;code&gt;people:read&lt;/code&gt; while film and planet tools keep answering.  Luke locks behind a permission he has guarded all along.  Same ladder, same repo, one commit at a time.&lt;/p&gt;

&lt;h2&gt;
  
  
  Citations
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://bloomberry.com/blog/we-analyzed-1400-mcp-servers-heres-what-we-learned/" rel="noopener noreferrer"&gt;I analyzed 1400 MCP servers - here's what I learned&lt;/a&gt; - Henley Wing Chiu&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://mcpmanager.ai/blog/mcp-statistics/" rel="noopener noreferrer"&gt;The State of Enterprise MCP and AI Agent Governance 2026&lt;/a&gt; - Becky Brooks&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.cisco.com/c/dam/m/en_us/solutions/ai/readiness-index/2025-m10/documents/cisco-ai-readiness-index-2025-realizing-the-value-of-ai.pdf" rel="noopener noreferrer"&gt;Cisco AI Readiness Index 2025&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://cloudsecurityalliance.org/artifacts/the-state-of-ai-security-and-governance" rel="noopener noreferrer"&gt;State of AI Security and Governance (CSA and Google Cloud)&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>ai</category>
      <category>security</category>
      <category>webdev</category>
      <category>programming</category>
    </item>
    <item>
      <title>Creating vs. Engineering: The Emotional Tax of AI</title>
      <dc:creator>Sam Clark</dc:creator>
      <pubDate>Tue, 17 Nov 2026 10:15:29 +0000</pubDate>
      <link>https://dev.to/samrocksc/creating-vs-engineering-the-emotional-tax-of-ai-4567</link>
      <guid>https://dev.to/samrocksc/creating-vs-engineering-the-emotional-tax-of-ai-4567</guid>
      <description>&lt;h2&gt;
  
  
  The Problem
&lt;/h2&gt;

&lt;p&gt;Alrighty, so this is one that's been sitting in my back pocket for the past year and a half. There's a certain &lt;em&gt;"aroma"&lt;/em&gt; that I get when I go to vibe coded websites, or hell even use vibe coded software. And it's not just me feeling it too, there's a reason &lt;a href="//AI;DR%20is%20an%20actual%20saying%20nowhttps://futurism.com/artificial-intelligence/aidr-meaning"&gt;AI;DR is an actual saying now&lt;/a&gt;. It's because we're all bullshitters, and you can't bullshit a bullshitter.&lt;/p&gt;

&lt;p&gt;I'll follow up with a story: If I think back to the introduction of OpenClaw(then called Clawdbot when I started using it). I remember seeing the API surfaces and configurations change on an almost daily basis. So fast inf act that I just genuinely could not keep up, or care to keep up. Ultimately I just scrapped using it because it just wasn't polished enough.&lt;/p&gt;

&lt;p&gt;This is the type of thing that a person who has coded for 26+ years, and worked as a programmer for 15 years professionally notice as they use it. I appreciate open source software, but I don't think I ever fully knew the reason why. I think the vibe coded generation has really taught me though.&lt;/p&gt;

&lt;p&gt;There is a pretty stark difference between a creation, and an engineered creation. Let's start by looking at Engineering by definition:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Engineering is the creative application of science, math, and practical experience to design, build, and improve things like machines, structures, systems, and processes.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Which is what really inspired me to write this post. I think we're move valuable &lt;em&gt;now&lt;/em&gt; as an engineering collective than we were three years ago. People &lt;em&gt;know&lt;/em&gt; when they're being served&lt;/p&gt;

&lt;h2&gt;
  
  
  Handling the Effects
&lt;/h2&gt;

&lt;p&gt;So I think that we need to break down the effects of Vibe Coding vs. Engineering by their categories:&lt;/p&gt;

&lt;h3&gt;
  
  
  Continuity and Industry Standards Focus More Towards Profitability
&lt;/h3&gt;

&lt;p&gt;What's the point in writing another framework when React is so heavily ingrained into the training of models, there's probably more ingested into an LLM about Dan Abramov &amp;amp; Sophie Alpert than there is about Martin Luther King Jr. at this point. This isn't a great thing to be honest. We can already see the drift towards commercialization reaking havoc on industries.&lt;/p&gt;

&lt;p&gt;One year ago for every major openAI or Meta release of model there was atleast 6-7 Ollama models of less than 20b, which would fit on a standard consumer graphics card. Today, you'd be hard pressed since Gemma4 got released to see any that fit on your 16GB card....and this is sad, because it means innovation has to happen in the workspace, or with those with 5k laying around. This is something we need to constantly be echoing. This keeps the power of LLMs, ML, and NLMs in the hands of billionaires where it will become more closed off from the public.&lt;/p&gt;

&lt;h3&gt;
  
  
  Stagnation of Free Software
&lt;/h3&gt;

&lt;p&gt;I don't mean &lt;em&gt;free&lt;/em&gt; in the Richard Stallman sense. I mean free as in our open source licenses. We're going to probably see a lot less programmatic growth, but using old tooling for more purposes. This is widely being accepted seeing that somehow React has become the &lt;a href="https://2025.stateofreact.com/en-US" rel="noopener noreferrer"&gt;Official Forever Framework&lt;/a&gt;. A lot of what we're seeing industry wide is stagnation at the level of new technology, or the technologies that were prevalent at the time of AI adoption are becoming the primitive of their concept.&lt;/p&gt;

&lt;p&gt;The cost of convenience(AI), is definitely going to result in a loss of innovation....so if you hated React before, you're going to hate it for the next however long. Which leads me to my next point:&lt;/p&gt;

&lt;h3&gt;
  
  
  Security
&lt;/h3&gt;

&lt;p&gt;It used to just be the old smelly guy at your meetup bitching about security...but now it's real. Malicious actors ARE creative, so this new world of uncreative generation and "creation" is going to play right into their hands. We more or less will live in their playing field for a considerable amount of time. Now it's a real threat, it can be from people somehow embedding hidden instruction in text or images via metadata, or more than likely just unicode characters. The threat vectors really aren't changing, it's just that the direction of the threat is moving away from &lt;em&gt;humans&lt;/em&gt; to the &lt;em&gt;agents&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;Because of a lack of innovation in prevention, we'll probably see that we are going to have problems with:&lt;/p&gt;

&lt;h3&gt;
  
  
  Privacy
&lt;/h3&gt;

&lt;p&gt;Less people are going to engage in the public hive mind that was Steering Committees, RFCs, and other public standard bodies. No one's got time for that when they can just ask Claude to take a rip at recreating their payroll system from the ground up.&lt;/p&gt;

&lt;p&gt;Since we're just really at the beginning of this phase, which is about 1.5 years since common adoption, we're really just now starting to see the greater impact of a lot of decisions about what we're making in the industry.&lt;/p&gt;

&lt;p&gt;So, let's steer this whole piece into conclusion by stating there's a lot of optimism and growth around this industry, but there isn't a lot of actual proof of improvement. Instead of streamlining processes we are at a point where we're just replacing them with automation, while not replacing the space left by automation with something productive.&lt;/p&gt;

&lt;p&gt;Frankly, to me there's no real point if you can exploit the time savings, and just convert them into money savings in an industry like tech which relies on innovation.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>programming</category>
      <category>career</category>
      <category>productivity</category>
    </item>
    <item>
      <title>SCA vs. SAST: Understanding the differences</title>
      <dc:creator>Sam Clark</dc:creator>
      <pubDate>Tue, 17 Nov 2026 10:14:50 +0000</pubDate>
      <link>https://dev.to/samrocksc/sca-vs-sast-understanding-the-differences-16i</link>
      <guid>https://dev.to/samrocksc/sca-vs-sast-understanding-the-differences-16i</guid>
      <description>&lt;p&gt;Security is confusing...most of my career when listening to a security professional my eyes would just glaze over, and I'd think about all the cool features next up in my library. Security has a jargon problem. DAST, SAST, SCA, IAST, RASP, SBOM: six acronyms in one paragraph, none of them telling you anything about what the thing actually does, and to anyone outside the field they all blur together into "that AppSec stuff". Of those, SAST and SCA get mistaken for each other most often. They're both called "static analysis", they both show up in vendor dashboards, and they both live in the same pipeline diagrams. Swapping their names is how you end up with a tool that does half the job you think it does. So I'm writing it down.&lt;/p&gt;

&lt;p&gt;While an Engineering Manager I met a security contractor, and he explained security in the easiest possible terms: education. Just knowing what the problem is in Application security is in my opinion 80% of the problem, because the fixes are more often than not changing one character in your software manifest. Education comes with the inherent problem of nerd overload.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Short Version
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;SAST&lt;/strong&gt; looks at &lt;em&gt;your code&lt;/em&gt;. &lt;strong&gt;SCA&lt;/strong&gt; looks at &lt;em&gt;the code you imported&lt;/em&gt;. They run at different stages of the pipeline and miss different bugs. Neither replaces the other, and if you only have one of them, you're blind to roughly half the threat surface.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Each One Actually Does
&lt;/h2&gt;

&lt;h3&gt;
  
  
  SAST, or Static Application Security Testing
&lt;/h3&gt;

&lt;p&gt;SAST scans the source code you wrote. It's looking at your functions, your branches, your data flows.&lt;/p&gt;

&lt;p&gt;Concretely, a SAST tool catches things like:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;SQL injection in a query you hand-rolled on line 47&lt;/li&gt;
&lt;li&gt;Hardcoded secrets in your config&lt;/li&gt;
&lt;li&gt;Insecure deserialization patterns&lt;/li&gt;
&lt;li&gt;Missing authentication checks on a route handler&lt;/li&gt;
&lt;li&gt;Dangerous use of eval, exec, or dynamic require&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;You can think of SAST as code review by a paranoid senior engineer who never sleeps.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The catch: SAST tools analyze patterns. Patterns can be ambiguous. A concat call right next to a SQL string &lt;em&gt;might&lt;/em&gt; be a vuln, or it might be parameterised before it gets there. That's why SAST tends to need tuning, and why false positive rates are the perennial complaint.&lt;/p&gt;

&lt;h3&gt;
  
  
  SCA, or Software Composition Analysis
&lt;/h3&gt;

&lt;p&gt;SCA scans your third-party dependencies. Your package.json, your pom.xml, your requirements.txt, your lockfiles, your transitive deps: everything you pulled in from someone else's repo. SCA in essence is where your first line of defence sits, and it is also a great indicator about the health of your software chain.  At larger companies you will see versions locked at this level.&lt;/p&gt;

&lt;p&gt;Concretely, SCA catches things like:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;"You're on lodash x.y.z CVE-2021-43210. Upgrade to x.y.b."&lt;/li&gt;
&lt;li&gt;License compliance violations (GPL in a proprietary product, missing attributions)&lt;/li&gt;
&lt;li&gt;Outdated packages with known fixes&lt;/li&gt;
&lt;li&gt;Dependency confusion risks&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;You can think of SCA as an audit log reader for someone else's supply chain.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The catch: SCA only knows about what's already known. It checks against CVE databases like NVD. A zero-day in your favourite library won't show up until someone files a CVE, which means by then, you're reading about it on Hacker News along with everyone else.&lt;/p&gt;

&lt;h2&gt;
  
  
  When They Run in the Pipeline
&lt;/h2&gt;

&lt;p&gt;This is where the distinction matters most operationally:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Stage&lt;/th&gt;
&lt;th&gt;Tool&lt;/th&gt;
&lt;th&gt;Why&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Pre-commit / commit hook&lt;/td&gt;
&lt;td&gt;SAST&lt;/td&gt;
&lt;td&gt;Source code is what changed&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Pull request&lt;/td&gt;
&lt;td&gt;Both&lt;/td&gt;
&lt;td&gt;Catch issues before merge&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Build / dependency resolution&lt;/td&gt;
&lt;td&gt;SCA&lt;/td&gt;
&lt;td&gt;This is when the lockfile is locked&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Post-build / artifact&lt;/td&gt;
&lt;td&gt;SAST (deep scan)&lt;/td&gt;
&lt;td&gt;With full call graphs in hand&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Deploy / runtime&lt;/td&gt;
&lt;td&gt;Neither (RASP/DAST territory)&lt;/td&gt;
&lt;td&gt;Out of band&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;A modern pipeline runs SCA on every dependency update and SAST on every commit. Different triggers, different feedback loops, different ownership if you split your AppSec team by domain.&lt;/p&gt;

&lt;h2&gt;
  
  
  Different Failure Profiles
&lt;/h2&gt;

&lt;p&gt;This is the part the vendor decks usually gloss over.&lt;/p&gt;

&lt;p&gt;SAST false positives come from pattern ambiguity. The tool sees a code shape that &lt;em&gt;could&lt;/em&gt; be dangerous and flags it. You spend hours confirming "yes, we sanitise that elsewhere" and triaging the alert. The fix is usually: better rules, more context, custom queries.&lt;/p&gt;

&lt;p&gt;SCA false positives are rarer but stickier. When SCA says "this version has a CVE", it usually means it. The fix isn't always straightforward. Maybe the maintainer hasn't shipped a patch, or the upgrade breaks your API. You're stuck with exposure until something gives.&lt;/p&gt;

&lt;p&gt;SAST false negatives hide in plain sight: business logic flaws. A broken authorisation check looks like a normal if (user.role === 'admin'). The pattern is fine. The logic is wrong. SAST doesn't see it.&lt;/p&gt;

&lt;p&gt;SCA false negatives are zero-days in libraries nobody's audited yet. By definition, you don't know what you don't know.&lt;/p&gt;

&lt;p&gt;Where the two cover for each other is the actual win. SCA catches what you'd never see in-house because nobody reads every changelog. SAST catches what you'd never see at all because it's your own blind spot.&lt;/p&gt;

&lt;h2&gt;
  
  
  A Practical Thought Process that will get your SDLC 80% of the way there with security.
&lt;/h2&gt;

&lt;p&gt;If you're standing up an AppSec program and you have to choose, this is roughly the order I'd argue for:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;SCA first.&lt;/strong&gt; It's faster to set up, generates instant signal (the lockfile is the lockfile), and gives you an SBOM you can hand to auditors, customers, and procurement teams.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;SAST second.&lt;/strong&gt; Once you know what's &lt;em&gt;in&lt;/em&gt; your app, you start caring what's &lt;em&gt;happening&lt;/em&gt; in your app.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;DAST third&lt;/strong&gt; (a future post). Runtime testing against a deployed instance.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;RASP fourth&lt;/strong&gt; (another future post). Defence-in-depth inside the running process.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;I think a lot of times we need to evaluate what's the most important risk to mitigate first and foremost.  A lot of times the easiest is the most important actually.  Supply chain attacks in the age of AI are probably where we need to focus first.&lt;/p&gt;

</description>
      <category>security</category>
      <category>devops</category>
      <category>programming</category>
      <category>webdev</category>
    </item>
    <item>
      <title>The Invisible Handshake: Troubleshooting the CIAM Callback</title>
      <dc:creator>Sam Clark</dc:creator>
      <pubDate>Tue, 17 Nov 2026 10:14:47 +0000</pubDate>
      <link>https://dev.to/samrocksc/the-invisible-handshake-troubleshooting-the-ciam-callback-8lh</link>
      <guid>https://dev.to/samrocksc/the-invisible-handshake-troubleshooting-the-ciam-callback-8lh</guid>
      <description>&lt;h2&gt;
  
  
  The Callback Paradox
&lt;/h2&gt;

&lt;p&gt;In Customer Identity and Access Management (CIAM), the "callback" is not a function call—it is a journey. &lt;/p&gt;

&lt;p&gt;The most fundamental misunderstanding is the belief that the Authorization Server (often called the AS, or the Identity Provider / IdP) "pushes" data directly into your application. It does not. The AS redirects the user's browser to a pre-registered URL. The browser is the courier; the server is merely the dispatcher.&lt;/p&gt;

&lt;p&gt;In CIAM, the callback is a redirect, not an API call. If you treat it as code-to-code communication, you will fail in production because you are ignoring the browser's role as the intermediary.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Mechanics of the Redirect
&lt;/h2&gt;

&lt;p&gt;In a standard flow, your application sends the user to the AS. The AS verifies the user and then redirects the browser back to your &lt;strong&gt;Callback URL&lt;/strong&gt;. &lt;/p&gt;

&lt;p&gt;This is where the dreaded &lt;code&gt;redirect_uri_mismatch&lt;/code&gt; occurs. The AS only delivers the payload if the requested URL matches the registered URI exactly. This is not a bug; it is the primary security mechanism preventing authorization codes from being intercepted by malicious actors.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Federation Trap: Who is the Station?
&lt;/h2&gt;

&lt;p&gt;The most dangerous point of failure occurs during &lt;strong&gt;Identity Federation&lt;/strong&gt;. This is when your Authorization Server (e.g., Auth0) trusts another external IdP (e.g., Google, Azure AD, or a corporate Okta instance) to verify the user.&lt;/p&gt;

&lt;p&gt;I recently worked with a team where the identity flow was completely broken. They had configured Auth0 as their central Authorization Server, but when setting up the federation with their external IdP, they provided their &lt;em&gt;application's&lt;/em&gt; callback URL as the destination.&lt;/p&gt;

&lt;p&gt;They were expecting the external IdP to send the user directly back to their app. &lt;/p&gt;

&lt;p&gt;This is the architectural equivalent of mailing a letter to your house and expecting the post office to deliver it to your desk—without the post office ever knowing where your house is. In a federated flow, the external IdP must send the user back to the &lt;strong&gt;Authorization Server&lt;/strong&gt; (Auth0), not the application. The AS then processes that signal and performs its own second redirect to the app.&lt;/p&gt;

&lt;p&gt;In federation, the external IdP's callback URL must be the endpoint of your Authorization Server. If you point the external IdP directly at your application, you break the chain of trust and the session will never initialize.&lt;/p&gt;

&lt;h2&gt;
  
  
  OAuth2 vs. OIDC: The Payload Divide
&lt;/h2&gt;

&lt;p&gt;Even when the direction is correct, the payload can be wrong. OAuth2 and OIDC use the same redirect mechanism, but they deliver different things.&lt;/p&gt;

&lt;h3&gt;
  
  
  OAuth2 is for Authorization
&lt;/h3&gt;

&lt;p&gt;It provides a key to access a resource (this references the Access Token). It says: "This person is allowed to touch this data."&lt;/p&gt;

&lt;h3&gt;
  
  
  OIDC
&lt;/h3&gt;

&lt;p&gt;OIDC is for Authentication. It is designed to prove identity, this is what the ID Token is for. It says: "This is specifically Sam Clark, and here is his unique identifier."&lt;/p&gt;

&lt;p&gt;OAuth2 gives you a key; OIDC gives you a passport. Confusing a key for a passport is the most common cause of "invalid token" errors in CIAM.&lt;/p&gt;

&lt;h2&gt;
  
  
  Stop Debugging Code, Start Debugging Direction
&lt;/h2&gt;

&lt;p&gt;When a flow fails, stop staring at the logs and start looking at the map.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Who is sending the redirect?&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Where is the browser actually landing?&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Is the destination the Authorization Server or the App?&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you understand that the browser is the courier and the redirect is the handshake, the invisible process becomes visible. In the end if you can figure out these basics, you've kind of set yourself up for success when troubleshooting CIAM IDP flows&lt;/p&gt;

</description>
      <category>identity</category>
      <category>security</category>
      <category>debugging</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Security Scanning for Web devs</title>
      <dc:creator>Sam Clark</dc:creator>
      <pubDate>Tue, 17 Nov 2026 10:14:08 +0000</pubDate>
      <link>https://dev.to/samrocksc/security-scanning-for-web-devs-137k</link>
      <guid>https://dev.to/samrocksc/security-scanning-for-web-devs-137k</guid>
      <description>&lt;p&gt;I recently decided to kind of switch up and diversify my career.  Starting at &lt;a href="https://distology.com" rel="noopener noreferrer"&gt;Distology&lt;/a&gt; as a CIAM Engineer has been eye opening.  It's also been incredibly fun.  I want to share with y'all some things I get to learn on my career path. Today's topic is Security Testing.  I've been working on my Snyk Certifications for an implementation pro, and it's been so much fun.&lt;/p&gt;

&lt;p&gt;Security scanning is one of those things that feels like it should be simple. You run a tool, it finds the holes, you patch them. Reality is a bit more of a mess.&lt;/p&gt;

&lt;p&gt;Enter our two primary pillars of security scanning, and their terrible acronyms:&lt;/p&gt;

&lt;h2&gt;
  
  
  SAST (Static Application Security Testing)
&lt;/h2&gt;

&lt;h2&gt;
  
  
  DAST (Dynamic Application Security Testing)
&lt;/h2&gt;

&lt;p&gt;Remember that each is a security scan, but each takes place in different phases of the Software Development Lifecycle.  One when code is static(pre-deployment), and one after once we are deployed.&lt;/p&gt;

&lt;p&gt;I have spent the last few months tuning both SAST and DAST pipelines for a CIAM project. If I'm being honest as an engineer, I GET why these tools so often fail...it's because we will focus one specific side too much, and it's normally only going to cover &lt;em&gt;part&lt;/em&gt; of our threat surface. &lt;/p&gt;

&lt;p&gt;As software devs, specifically web, we're under duress from the top down constantly to push more, faster, and cheaper. This means the first thing on the chopping block is security most of the time.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;SAST&lt;/strong&gt; is the whitebox approach. I would say this is probably the &lt;em&gt;easiest&lt;/em&gt; to catch, because a lot of this surface is covered by linters, and automatic scans already. It reads your source code, traces the data flow, and flags vulnerabilities before the app ever runs. SQL injection, hardcoded secrets, unsafe deserialization. SAST catches these by following the breadcrumbs through your functions. The tradeoff is noise. It flags patterns that look dangerous but are not, and it misses anything that only appears at runtime.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;DAST&lt;/strong&gt; is the blackbox. It's basically QA, but targeting a lower level. It hits your running application from the outside, crawling endpoints and throwing payloads at them. It finds the gaps SAST cannot see: misconfigured headers, exposed APIs, session handling bugs, and anything that depends on the live state of the app. The tradeoff here is blindness. DAST cannot see inside the logic. If a vulnerability exists but the crawler never reaches the endpoint, DAST stays quiet.&lt;/p&gt;

&lt;p&gt;Here is where I have landed: SAST is for catching stupidity early. DAST is for catching reality later. One guards the code, the other guards the runtime. Running both is non-negotiable if you are handling anything sensitive. At the same time there are some pieces that can be interchanged between phases.&lt;/p&gt;

&lt;p&gt;The gap that still keeps me up at night is the logic that sits between them. SAST sees the code, DAST sees the surface, but neither sees the intent. A perfectly secure function can still be called in a dangerous order. This I think is where things like manual QA or 3rd party Penetration testing comes in.&lt;/p&gt;

&lt;p&gt;This is just a blurb, so I'll add more later!&lt;/p&gt;

</description>
      <category>security</category>
      <category>devops</category>
      <category>programming</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Exploring Guardrails for LLMs with a Functional Pattern</title>
      <dc:creator>Sam Clark</dc:creator>
      <pubDate>Tue, 17 Nov 2026 10:14:05 +0000</pubDate>
      <link>https://dev.to/samrocksc/exploring-guardrails-for-llms-with-a-functional-pattern-4837</link>
      <guid>https://dev.to/samrocksc/exploring-guardrails-for-llms-with-a-functional-pattern-4837</guid>
      <description>&lt;p&gt;I'm not a Cognitive Science nerd....personally, I don't really care much for the usage of coding tools. I view LLMs as basically glorified linters where we can feed specs to it, and it gives us output within the fences we built for it.  The less we fence, the worse it gets.  I personally think understanding the changes an LLM does is the key important factor.  The rate at which bespoke applications are being created means that we have to start gauging &lt;em&gt;every&lt;/em&gt; single tool we use for clarity, extensibility, and machine readability.  I think we need to grade software based on its source, to determine if it holds the internal capability.&lt;/p&gt;

&lt;p&gt;I've had this idea in my back pocket for a while, and this is going to be one of just a few of my thoughts on how to improve this.&lt;/p&gt;

&lt;p&gt;The problem isn't the LLM's ability to write logic. It's the LLMs's struggle with &lt;strong&gt;State&lt;/strong&gt;.  I'm going to start moving to approach the fix in this using tried and true mechanisms as software engineers we've employed for decades.  Perhaps new methodologies will arrive from elsewhere, but we shouldn't abandon what we know when we know that that works.&lt;/p&gt;

&lt;h2&gt;
  
  
  Enter my sample repo &lt;a href="https://github.com/samrocksc/llms-and-guardrails" rel="noopener noreferrer"&gt;LLMs and Guardrails&lt;/a&gt;
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Both of these repositories were built with the same spec criteria, one using Uncle Bob's best advice, functional being guided by the linter&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;...literally, i told the LLM, "You are Bob Martin, ol'Bob, the king of Clean code"&lt;/p&gt;

&lt;p&gt;I created a sample repo to be able to better visualize the concepts.  There are 3 branches, each branch takes a transformative change.  &lt;/p&gt;

&lt;h3&gt;
  
  
  The Metrics I'm Using to Gauge With
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Cyclomatic Complexity&lt;/strong&gt; - I think this is one that really tells us &lt;em&gt;how your average developer can read the code&lt;/em&gt;.  This is probably where I sit personally.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;State Complexity&lt;/strong&gt; - This is an &lt;em&gt;incredibly&lt;/em&gt; dense subject...but I think ultimately this is the lodestone for improving LLM coding predictability.  In essence it predicts calculatable changes that can occur.  Decreasing prior state complexity has an almost negative funnel effect.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Architectural Complexity&lt;/strong&gt; - The number of interdependent components within any system, and also a gauge of how often they interact with eachother.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  The Fog of State: Why OOP is a Liability for AI
&lt;/h2&gt;

&lt;p&gt;OOP has been the industry standard for decades because it's great for humans to organize a system into classes and encapsulated state. But for an LLM, that state is a liability.&lt;/p&gt;

&lt;p&gt;When you ask an AI to modify a method in a class, it isn't just looking at a function. It's trying to maintain a mental map of the entire object's lifecycle. It has to guess:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;What's actually in &lt;code&gt;this.state&lt;/code&gt; right now?&lt;/li&gt;
&lt;li&gt;Which other methods are mutating this property in the background?&lt;/li&gt;
&lt;li&gt;Was the &lt;code&gt;reset()&lt;/code&gt; method called before this operation?&lt;/li&gt;
&lt;li&gt;If I change this property here, what side-effect is going to bite me three calls later?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I call this the "Fog of State." As the session goes on and the context window fills up, the AI starts to "drift." It begins to hallucinate the state of the object, introducing bugs that are nearly impossible to spot at a glance. The AI didn't forget how to code, it just lost its place in the state machine. This isn't a failure of the model's intelligence, but a failure of the architectural surface area we're asking it to reason across. Yeah, this works for a POC, but it's not going to hold up through multiple iterations.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Solution: The "Functional-Lite" Guardrail
&lt;/h2&gt;

&lt;p&gt;The answer isn't to jump into a purely academic, Haskell-style functional world. We just need a &lt;strong&gt;"Functional-Lite"&lt;/strong&gt; approach. &lt;/p&gt;

&lt;p&gt;Essentially: &lt;strong&gt;(Input) -&amp;gt; (Logic) -&amp;gt; (Output)&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;If you strip away the &lt;code&gt;class&lt;/code&gt; keyword and the &lt;code&gt;this&lt;/code&gt; context, you collapse the reasoning surface area. The LLM no longer needs to track a lifecycle; it just needs to understand a transformation. By moving the state &lt;em&gt;out&lt;/em&gt; of the logic and into the data payload, we make the code "boring." And in the world of AI-assisted development, boring is beautiful.&lt;/p&gt;

&lt;h3&gt;
  
  
  The Proof: The GDPR Decision Engine
&lt;/h3&gt;

&lt;p&gt;To put this into numbers, I built a demonstrative API in the &lt;a href="https://github.com/samrocksc/llms-and-guardrails" rel="noopener noreferrer"&gt;llms-and-guardrails&lt;/a&gt; repository. The goal was to process a highly complex GDPR breach notification decision tree, a nightmare of nested conditionals.&lt;/p&gt;

&lt;p&gt;I implemented the engine twice: once using a stateful OOP Evaluator and once using a pure Functional transformation. You can see the raw data and the growth of the \"State Tax\" in the &lt;a href="https://github.com/samrocksc/llms-and-guardrails/blob/main/COMPLEXITY_REPORT.md" rel="noopener noreferrer"&gt;Complexity Analysis Report&lt;/a&gt;.&lt;/p&gt;

&lt;h4&gt;
  
  
  1. The Complexity Tax
&lt;/h4&gt;

&lt;p&gt;Using ESLint's complexity metrics, we found a disparity between the two that any engineer who's worked with both paradigm would know already. The functional implementation had a cyclomatic complexity of &lt;strong&gt;7&lt;/strong&gt;, while the OOP implementation sat at &lt;strong&gt;10&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Wait, why is the OOP version more complex? The business logic (the GDPR rules) is identical.&lt;/p&gt;

&lt;p&gt;The extra 3 points of complexity are the &lt;strong&gt;"State Tax."&lt;/strong&gt; This is the overhead of managing the pointer, the &lt;code&gt;isResolved&lt;/code&gt; flag, and the &lt;code&gt;reset()&lt;/code&gt; logic. It is complexity that serves no business purpose; it only serves the architecture. When you pay this tax, you aren't paying in performance, you're paying in "Cognitive Load."&lt;/p&gt;

&lt;p&gt;The tradeoff used to be readability over efficiency, but when we turn code from a human back to machine readable language, I the argumentative weight for OOP vs. Functional has shifted vastly towards functioanl.&lt;/p&gt;

&lt;h4&gt;
  
  
  2. The "Vibe-Coding" Stress Test
&lt;/h4&gt;

&lt;p&gt;To see how this holds up over time, I did a "Vibe-Coding" run. I asked the AI to rapidly add 8 new features (Confidence Scoring, Temporal Decay, Jurisdiction checks, etc.) without refactoring.&lt;/p&gt;

&lt;p&gt;The results were a perfect study in fragility.&lt;/p&gt;

&lt;p&gt;In the &lt;strong&gt;Functional&lt;/strong&gt; version, adding a feature was just adding a field to the return object. The "plumbing" never changed. The logic remained a pure pipeline. Even with 8 new features, the core &lt;code&gt;evaluate&lt;/code&gt; function remained a simple transformation.&lt;/p&gt;

&lt;p&gt;In the &lt;strong&gt;OOP&lt;/strong&gt; version, the &lt;code&gt;GDPREvaluator&lt;/code&gt; became a "God Object." Every new feature required adding a private property, updating the constructor, and, this is the killer, updating the &lt;code&gt;reset()&lt;/code&gt; method.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// The Fragility of the "Reset"&lt;/span&gt;
&lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="nf"&gt;reset&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;payload&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;Payload&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="k"&gt;void&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kc"&gt;this&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;currentNode&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;rules&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kc"&gt;this&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;isResolved&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kc"&gt;this&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;payload&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;payload&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kc"&gt;this&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;path&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kc"&gt;this&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;confidence&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;payload&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;data_quality_score&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="mf"&gt;1.0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="c1"&gt;// New state&lt;/span&gt;
  &lt;span class="kc"&gt;this&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;jurisdictions&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;payload&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;affected_regions&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'EU'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="c1"&gt;// New state&lt;/span&gt;
  &lt;span class="c1"&gt;// ... 6 more properties&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is where the LLM fails. If the AI forgets to add just &lt;em&gt;one&lt;/em&gt; of these resets, you get a cross-request state leak. Data from the last user suddenly influences the current decision. In a functional world, this bug is mathematically impossible because there is no state to leak. The "vibe" of the code might look the same, but the risk profile has diverged completely.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why I Prefer This Approach
&lt;/h2&gt;

&lt;p&gt;For me, this isn't just about avoiding bugs; it's about &lt;strong&gt;cognitive bandwidth&lt;/strong&gt;. &lt;/p&gt;

&lt;p&gt;When I'm reviewing code or directing an AI, I don't want to spend 50% of my mental energy auditing the "plumbing" of a class. I want to focus on the logic. Functional-Lite allows me to treat the AI as a highly efficient logic engine rather than a temperamental state-manager. It turns the process of coding into a series of verifiable, atomic transformations.&lt;/p&gt;

&lt;p&gt;That said, I'm a pragmatist. I know that in some massive enterprise systems, you might be forced into OOP. Even in those cases, you can still apply these "guardrails" to minimize the damage.&lt;/p&gt;

&lt;p&gt;If you must use OOP, you can still corral the chaos by:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Enforcing Immutability&lt;/strong&gt;: Use &lt;code&gt;Readonly&amp;lt;T&amp;gt;&lt;/code&gt; and forbid parameter reassignment. This stops the "invisible mutation" that makes OOP so unpredictable.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Isolating State&lt;/strong&gt;: Keep the state-mutating "shell" as thin as possible, pushing all actual logic into pure functions that the shell simply calls. This is the "Functional Core, Imperative Shell" pattern.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Strict Lifecycles&lt;/strong&gt;: Use tools to ensure &lt;code&gt;reset&lt;/code&gt; or &lt;code&gt;init&lt;/code&gt; patterns are consistently applied and verified.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  The Tooling: Beyond the Prompt
&lt;/h2&gt;

&lt;p&gt;One of the biggest mistakes people make with AI development is thinking that a "better prompt" will solve architectural fragility. I'm here to say buds.....not true.  Anyone who worked pre-llm can spot llm generated code in moments.&lt;/p&gt;

&lt;p&gt;You can tell an LLM to "be functional" a thousand times, but the moment it gets tired or the context window shifts, it will slip back into its training data's OOP habits. This is the reality of the probabilistic nature of the model fighting against your architectural intent.&lt;/p&gt;

&lt;p&gt;The only solution is &lt;strong&gt;Hard Constraints&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;In the &lt;code&gt;llms-and-guardrails&lt;/code&gt; repo, I used a specific ESLint configuration that targets only the functional directory. It doesn't just suggest patterns, it forbids the tools of state:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Banning &lt;code&gt;ClassDeclaration&lt;/code&gt; and &lt;code&gt;TSInterfaceDeclaration&lt;/code&gt;&lt;/strong&gt;: Forcing the use of &lt;code&gt;type&lt;/code&gt; and pure functions. If the AI tries to use a class, the build fails.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Enforcing &lt;code&gt;no-return-void&lt;/code&gt;&lt;/strong&gt;: Ensuring every function is a transformation that returns a value.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Banning Mutation&lt;/strong&gt;: Using &lt;code&gt;functional/immutable-data&lt;/code&gt; and &lt;code&gt;prefer-immutable-types&lt;/code&gt; to make it an error to change a property on an object.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Param Protection&lt;/strong&gt;: Using &lt;code&gt;no-param-reassign&lt;/code&gt; to treat all inputs as constants.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The Model Factor: Local and Open Weights
&lt;/h2&gt;

&lt;p&gt;Finally, there is the hardware and model choice. While cloud-scale models are impressive, using local, open-weight models (like those run via Ollama) provides a different kind of predictability. It is also more pure, and takes the power &lt;em&gt;away&lt;/em&gt; from giant power brokers.&lt;/p&gt;

&lt;p&gt;When you control the model and the environment, you can tune the sampling parameters (like temperature) to be more deterministic*. When combined with the architectural guardrails mentioned above, you create a "Closed Loop" system: a deterministic model producing code that is constrained by a deterministic linter. &lt;/p&gt;

&lt;p&gt;The synergy between a lean, open-weight model and a strict functional constraint is where true engineering happens. It's not about the &lt;em&gt;size&lt;/em&gt; of the model, but the &lt;em&gt;tightness&lt;/em&gt; of the loop.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion: Architecture as a Prompt
&lt;/h2&gt;

&lt;p&gt;I'll be honest, the more I wrote this article, the more I learned.  I feel confident now I could write more complex code consuming less electricty, computing power, and needing to feed big tech my money.  We need to stop thinking of architecture as something we do &lt;em&gt;before&lt;/em&gt; we code and start thinking of it as the &lt;strong&gt;ultimate prompt&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;The most effective way to "prompt" an AI to write bug-free, maintainable software is to build an environment where it is &lt;em&gt;impossible&lt;/em&gt; to write a stateful bug. Architecture is the set of boundaries that guides the AI's probabilistic guesses toward a deterministic result.&lt;/p&gt;

&lt;p&gt;By adopting Functional-Lite patterns and enforcing them through tooling, we close the Predictability Gap. We stop "vibing" and start engineering.&lt;/p&gt;




&lt;p&gt;*Determinism does not exist with LLMs.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Disclaimer:&lt;/strong&gt; Obviously because of the topic, I co-authored much of this using gemma4:31b-cloud from Ollama Cloud, and the code for the most part is 100% generated. I utilized a derivative of the eslint file that I use with all of my node projects to test everything out. Obviously you can get a lot stricter with both OOP and Functional, but the goal here was to give a reasonable idea of how vibe coding looks over iteration.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  References &amp;amp; Tools
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Implementation Proof&lt;/strong&gt;: &lt;a href="https://github.com/samrocksc/llms-and-guardrails" rel="noopener noreferrer"&gt;llms-and-guardrails repository&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Foundational Concepts&lt;/strong&gt;: Kyle Simpson's &lt;em&gt;Functional-Light JS&lt;/em&gt; — &lt;a href="https://github.com/getify/functional-light-js" rel="noopener noreferrer"&gt;GitHub Repo&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Enforcement Tooling&lt;/strong&gt;: &lt;a href="https://github.com/eslint-functional/eslint-plugin-functional" rel="noopener noreferrer"&gt;eslint-plugin-functional&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Architectural Complexity:&lt;/strong&gt; &lt;a href="https://swizec.com/blog/two-types-of-complexity-and-their-impact/" rel="noopener noreferrer"&gt;https://swizec.com/blog/two-types-of-complexity-and-their-impact/&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;State Complexity:&lt;/strong&gt; &lt;a href="https://en.wikipedia.org/wiki/State_complexity" rel="noopener noreferrer"&gt;https://en.wikipedia.org/wiki/State_complexity&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>ai</category>
      <category>llm</category>
      <category>architecture</category>
      <category>programming</category>
    </item>
    <item>
      <title>Beyond the Session: Understanding Highly Regulated Identity (HRI)</title>
      <dc:creator>Sam Clark</dc:creator>
      <pubDate>Tue, 17 Nov 2026 10:13:26 +0000</pubDate>
      <link>https://dev.to/samrocksc/beyond-the-session-understanding-highly-regulated-identity-hri-2d7a</link>
      <guid>https://dev.to/samrocksc/beyond-the-session-understanding-highly-regulated-identity-hri-2d7a</guid>
      <description>&lt;p&gt;In the world of standard Customer Identity and Access Management (CIAM), we spend a lot of time talking about the "session." We ask, "Is this user logged in?" and "Do they have the right scope?" For most applications, that's enough. But when you move into high-stakes environments, such as critical infrastructure, healthcare, or privileged admin access, the concept of a "session" becomes a liability.&lt;/p&gt;

&lt;p&gt;We commit thousands of authenticated transactions over the internet every day. The problem is that most of these transactions rely on a baseline of trust that is simply too broad. We need to ensure that these actions have proper intent and usage, moving the goalposts from "who is this user?" to "what exactly is this user intending to do right now?"&lt;/p&gt;

&lt;p&gt;The goal in these environments isn't just to know who the user is, but to establish transactional trust.&lt;/p&gt;

&lt;h3&gt;
  
  
  The Flaw in the Standard Flow
&lt;/h3&gt;

&lt;p&gt;Most of us are used to the standard OAuth 2.0 flow. It’s convenient. The client sends the user to the Authorization Server (AS) via a browser, the user logs in, and they're sent back with a token. &lt;/p&gt;

&lt;p&gt;The problem is that this process relies on a browser as the primary messenger. This is "front-channel" trust. Because the request details are passed through a browser, they are visible, susceptible to length limits, and potentially leakable. In a regulated environment, relying on a browser to carry your intent is a security gap. It's a fragile way to handle high-value data.&lt;/p&gt;

&lt;h3&gt;
  
  
  Shifting the Trust: The HRI Approach
&lt;/h3&gt;

&lt;p&gt;Highly Regulated Identity (HRI) changes the entry point. Instead of trusting a browser to tell the server what the user wants to do, HRI moves that conversation to the back-channel.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. PAR (Pushed Authorization Requests)&lt;/strong&gt;&lt;br&gt;
Instead of a long, leaky URL, the client server talks directly to the AS server first. It "pushes" the authorization request server-to-server. The AS returns a tiny, opaque reference ID. When the user finally sees the login screen, a browser is just carrying a reference code, not the actual request. The trust has shifted from the user's agent to a secure server handshake.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. RAR (Rich Authorization Requests)&lt;/strong&gt;&lt;br&gt;
Standard "scopes" are too blunt. Asking for a broad "write" permission is like asking for a key to the whole building. RAR allows for structured intent. Instead of a general scope, the request specifies exactly what is happening, such as a precise change to a sensitive record. The user isn't just consenting to a permission, they are consenting to a specific action.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Sender Constraining (The End of Token Theft)&lt;/strong&gt;&lt;br&gt;
Finally, HRI addresses the "stolen token" problem. Through mTLS or DPoP, the token is cryptographically bound to the specific device that requested it. If an attacker steals the token, it's useless to them because they don't have the private key tied to the origin device.&lt;/p&gt;

&lt;h3&gt;
  
  
  The Business Logic of Trust
&lt;/h3&gt;

&lt;p&gt;For a Product Manager or a stakeholder, HRI isn't just "extra security" or a compliance checkbox for the CISO. It's a business enabler. &lt;/p&gt;

&lt;p&gt;Standard CIAM allows you to build a good app. HRI allows you to build a &lt;em&gt;regulated&lt;/em&gt; app. By moving the trust model from the session to the transaction, you can unlock features that would otherwise be too risky to offer: high-value fund transfers, medical record sharing, or critical system overrides. It turns compliance from a series of checkboxes into a product feature that provides genuine security for the end user.&lt;/p&gt;

&lt;h3&gt;
  
  
  The Bottom Line
&lt;/h3&gt;

&lt;p&gt;HRI is a fundamental shift in how we think about identity. It moves us away from a world where we trust a session, and into a world where we verify the intent of every single high-value action.&lt;/p&gt;

&lt;p&gt;For the practitioner, it means moving beyond the basics of OAuth and embracing a world where the "how" of the request is just as important as the "who" of the user.&lt;/p&gt;

&lt;p&gt;I totally get that reading RFCs is the world's most boring work, but in the case of HRI, these documents have been carefully crafted and really shine a light on how each of these concepts work. If you want to see the engine under the hood, these are the sources.&lt;/p&gt;




&lt;h3&gt;
  
  
  References &amp;amp; Further Reading
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://datatracker.ietf.org/doc/html/rfc9126" rel="noopener noreferrer"&gt;RFC 9126&lt;/a&gt;: OAuth 2.0 Pushed Authorization Requests (PAR)&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://datatracker.ietf.org/doc/html/rfc9396" rel="noopener noreferrer"&gt;RFC 9396&lt;/a&gt;: OAuth 2.0 Rich Authorization Requests (RAR)&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://datatracker.ietf.org/doc/html/rfc8705" rel="noopener noreferrer"&gt;RFC 8705&lt;/a&gt;: OAuth 2.0 Mutual TLS (mTLS) Client Authentication and Certificate-Bound Access Tokens&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://openid.net/specs/fapi-2_0-security-profile.html" rel="noopener noreferrer"&gt;FAPI 2.0&lt;/a&gt;: Financial-grade API Security Profile&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>identity</category>
      <category>security</category>
      <category>architecture</category>
      <category>programming</category>
    </item>
    <item>
      <title>A Layman's Guide to Binary Search</title>
      <dc:creator>Sam Clark</dc:creator>
      <pubDate>Tue, 17 Nov 2026 10:13:23 +0000</pubDate>
      <link>https://dev.to/samrocksc/a-laymans-guide-to-binary-search-1ofk</link>
      <guid>https://dev.to/samrocksc/a-laymans-guide-to-binary-search-1ofk</guid>
      <description>&lt;p&gt;&lt;em&gt;Note: This is not a formal academic lesson. I am not a Computer Science graduate, and I didn't learn this from a textbook. I learned it the hard way through a failed interview and a decade plus of professional intuition. This guide is for the practitioners who care more about how a thing works than what it's called.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Following my last post, I realized that while I finally knew the name of the game, I never actually shared the rules. If you're like me and you've spent years solving problems by intuition rather than by textbook, the term "Binary Search" can feel like a wall. But the logic itself is actually quite simple.&lt;/p&gt;

&lt;p&gt;Think of it not as a complex algorithm, but as a pyramid of elimination.&lt;/p&gt;

&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%2Fcowabunga.dev%2Fassets%2Fbinary-search-pyramid.svg" 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%2Fcowabunga.dev%2Fassets%2Fbinary-search-pyramid.svg" alt="Binary Search Pyramid" width="800" height="600"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  The Foundation: Min, Middle, and Max
&lt;/h3&gt;

&lt;p&gt;At the base of the pyramid, we have three primary anchor points: the Minimum, the Middle, and the Maximum. &lt;/p&gt;

&lt;p&gt;Imagine you are looking for a specific page in a 1,000-page book. You don't start at page one and flip every page. That's a linear search, and it's a waste of time. Instead, you look at the very start (Min), the very end (Max), and then you dive straight into the center (Middle).&lt;/p&gt;

&lt;p&gt;By identifying these three points, you've already defined the boundaries of your world.&lt;/p&gt;

&lt;h3&gt;
  
  
  The Middle Tier: The Great Divide
&lt;/h3&gt;

&lt;p&gt;Once you've found the middle, the magic happens. You ask one simple question: Is the value I'm looking for higher or lower than this middle point?&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;If the value is higher:&lt;/strong&gt; You can instantly throw away the entire left side of the pyramid. Everything from the Min to the Middle is now irrelevant. Your new "Max" becomes the old "Middle."&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;If the value is lower:&lt;/strong&gt; You discard the right side. Everything from the Middle to the Max is gone. Your new "Min" becomes the old "Middle."&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You've just deleted half of your problem.&lt;/p&gt;

&lt;h3&gt;
  
  
  The Apex: The Result
&lt;/h3&gt;

&lt;p&gt;You repeat this process. Middle, compare, discard. Half the data goes away, then a quarter, then an eighth.&lt;/p&gt;

&lt;p&gt;The pyramid narrows quickly. Eventually, the range becomes so small that you reach the top point. At this apex, you either find your value or you realize it simply isn't there.&lt;/p&gt;

&lt;p&gt;The beauty of this approach is its efficiency. In that 1,000-page book, you don't need to look at 1,000 pages. You only need to check about 10.&lt;/p&gt;

&lt;h3&gt;
  
  
  The Binary Instinct
&lt;/h3&gt;

&lt;p&gt;What's fascinating is that we likely do this intuitively all the time. In almost everything we do mathematically, we can throw away 50% of the search space instantly. &lt;/p&gt;

&lt;p&gt;When navigating a graph, you almost immediately know if you need to move right, left, or up, which negates the need to look behind; at most, you're moving in an ordinal direction. In orienteering, knowing that 180 degrees is sufficient for a general direction allows you to ignore a significant portion of your map. In almost every real-world scenario, we are probably performing a mental binary search at an incredibly quick speed.&lt;/p&gt;

&lt;p&gt;Binary search is just the formal name for that instinct: the art of consistently ignoring the half of the world that doesn't contain your answer.&lt;/p&gt;

</description>
      <category>algorithms</category>
      <category>beginners</category>
      <category>programming</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>The Binary Search Blindspot</title>
      <dc:creator>Sam Clark</dc:creator>
      <pubDate>Tue, 17 Nov 2026 10:12:44 +0000</pubDate>
      <link>https://dev.to/samrocksc/the-binary-search-blindspot-49dn</link>
      <guid>https://dev.to/samrocksc/the-binary-search-blindspot-49dn</guid>
      <description>&lt;p&gt;I had spent eleven years getting paid to write code, building supply chains, managing teams, and architecting systems that handled millions of messages. By all objective measures, I was a competent engineer. Then I walked into an interview that reminded me that competence and nomenclature are two very different things.&lt;/p&gt;

&lt;p&gt;It was a company I genuinely wanted to work for. The energy was right, the EM liked me, and the code challenge was brilliantly structured as a series of tiers. You started simple, and as you progressed, the constraints tightened. For the first five rounds, I was flying, moving through the logic with a speed that felt like a victory lap.&lt;/p&gt;

&lt;p&gt;The momentum shifted when the problem required me to retrieve data from a third-party API that was becoming increasingly restrictive. My brain was already working through the resolution; I knew I needed to check the middle value and compare if the result was greater than or less than my target. I was practically dancing through the logic in my head, but I couldn't put a name to it.&lt;/p&gt;

&lt;p&gt;I spent nearly 40% of the time box on a problem that, in hindsight, was a textbook example of a binary search. I wasn't struggling with the logic, but with the label. I was treating the problem as a puzzle to be solved from scratch rather than a pattern to be recognized. For a decade, I had avoided the pretentiousness of "Data Structure" terminology because I simply didn't need it. The term "binary search" had never been useful to me because the act of searching was just something I did. I didn't need the label to write the code.&lt;/p&gt;

&lt;p&gt;Unfortunately, immediately putting together the direction of the interview from the 3 previous challenges to the culmination in a binary search was the goal. I just didn't figure it out in time, and my vernacular just wasn't up for the task that day.&lt;/p&gt;

&lt;p&gt;I felt a deep sense of dismay because I had grown so much over the last year and felt ready. The silence that followed my inability to name the algorithm was an eye-opener, revealing the invisible tax of not being a college graduate. While I had spent eleven years in the trenches of real-world production, I had missed the collegiate shorthand that allows engineers to signal competence to one another.&lt;/p&gt;

&lt;p&gt;I didn't lose that job because I couldn't code. I lost it because I didn't know the name of a concept I was already implementing. It was a humbling moment that revealed a blindspot hidden by my own success. It taught me that there is a profound difference between knowing how a thing works and knowing what it's called. One gets the job done, but the other gets you through the door.&lt;/p&gt;

</description>
      <category>career</category>
      <category>interview</category>
      <category>algorithms</category>
      <category>programming</category>
    </item>
    <item>
      <title>The Developer's Right to Exist</title>
      <dc:creator>Sam Clark</dc:creator>
      <pubDate>Tue, 17 Nov 2026 10:12:41 +0000</pubDate>
      <link>https://dev.to/samrocksc/the-developers-right-to-exist-31p3</link>
      <guid>https://dev.to/samrocksc/the-developers-right-to-exist-31p3</guid>
      <description>&lt;p&gt;In the software engineering world, there is a quiet, persistent pressure to always be progressing. If you aren't mastering a new framework, chasing a Staff Engineer title, or optimizing every waking hour for growth, the industry narrative suggests you are stagnating.&lt;/p&gt;

&lt;p&gt;But there is a difference between stagnation and stability.&lt;/p&gt;

&lt;p&gt;I’ve spent a lot of time lately thinking about the right to exist as a developer. For some of us, there are seasons in life where the goal isn't to become better. Sometimes, it's simply to be enough. Whether it's focusing on parenting, managing health, or just finding a bit of zen in a chaotic world, the need for balance is real.&lt;/p&gt;

&lt;p&gt;I once had a teammate who had zero aspirations to climb the corporate ladder at that point in their life. They were competent, reliable, and happy. I respected that deeply. They worked better because they were working within their own limits instead of fighting against them.&lt;/p&gt;

&lt;p&gt;When we tie a person's job security to a mandatory trajectory of constant growth, we don't get better engineers. We just get more anxious ones.&lt;/p&gt;

&lt;p&gt;This Growth Mindset has been weaponized into a performance metric. We've internalized the idea that if we aren't in a state of perpetual ascent, we're falling. But the reality is that the most critical systems in the world are not designed for infinite growth. They are designed for stability, reliability, and predictability. Why do we demand that our humans operate on a logic that we know would crash any production environment?&lt;/p&gt;

&lt;p&gt;When we ignore our boundaries in favor of a title or a new skill set we don't actually need, we trade our mental clarity for a sense of pseudo-achievement. We start treating our lives like a Jira board, where well-being is just another ticket we keep pushing to the next sprint.&lt;/p&gt;

&lt;p&gt;The truth is that a seasoned engineer who knows exactly where their limits are is far more valuable to a team than a high-performer on the verge of burnout. The former brings a calm, sustainable energy to the room. The latter brings a frantic urgency that often creates more bugs than it solves.&lt;/p&gt;

&lt;p&gt;We need to start valuing the plateau. Because sometimes, professional means observing your own boundaries and realizing that being enough is the most sustainable way to excel.&lt;/p&gt;

</description>
      <category>career</category>
      <category>programming</category>
      <category>mentalhealth</category>
      <category>productivity</category>
    </item>
    <item>
      <title>Learning about CIAM: and why specialization matters</title>
      <dc:creator>Sam Clark</dc:creator>
      <pubDate>Tue, 17 Nov 2026 10:12:10 +0000</pubDate>
      <link>https://dev.to/samrocksc/learning-about-ciam-and-why-specialization-matters-3cc1</link>
      <guid>https://dev.to/samrocksc/learning-about-ciam-and-why-specialization-matters-3cc1</guid>
      <description>&lt;p&gt;I want to preface this post by saying I self-identify as a jack of all trades, master of none. I've been writing code for fun, or for profit for almost 30 years at this point. I've always prided myself on being able to know a little bit about everything. With the advent of LLM's though I think the ability to be a jack of all trades is actually implicit to having a web browser.....so with that I'm beginning to employ different specializations in our field.&lt;/p&gt;

&lt;p&gt;Specialization is going to be crucial to our future as software engineers. It's pretty easy to assume that in the future somewhat mundane tasks like setting up routes, or simple three tier architectures will probably be pretty homogenous. Recently, I've learned about the field of &lt;strong&gt;CIAM&lt;/strong&gt;. It stands for Customer Identity and Access Management. Which, ultimately, is a fancy way of saying "how do we manage our customers' identities and access to our services".&lt;/p&gt;

&lt;p&gt;CIAM is a subset of the broader field of Identity and Access Management (IAM), which typically focuses on managing the identities and access of employees within an organization. Honestly, I had never really thought about any of the key differences between customer and employee identity management until I started learning about CIAM.&lt;/p&gt;

&lt;p&gt;Here are a few key factors that I think make the need to understand this field more important:&lt;/p&gt;

&lt;h2&gt;
  
  
  Scale
&lt;/h2&gt;

&lt;p&gt;When you think of a typical IAM arrangement, you think of tops a few 1000 employees, and a few hundred service accounts. This works well with the tooling already provided from the cloud providers we use. In fact, I think the most elegant implementations I've seen have been via Azure AD, which is a great fit for enterprise IAM. It breaks down though at CIAM scale, where you've got to think about managing millions of users. A government website is probably not going to be using the same IAM strategy as a corporation of 3000.&lt;/p&gt;

&lt;h2&gt;
  
  
  Intent
&lt;/h2&gt;

&lt;p&gt;There are a lot more different use cases for identities in IAM than in CIAM. Login systems for anything from note taking apps to being able to communicate service accounts between two services.&lt;/p&gt;

&lt;h2&gt;
  
  
  Governance
&lt;/h2&gt;

&lt;p&gt;CIAM has to deal with a lot more regulations around data privacy and protection. Things like GDPR, CCPA, and other data protection laws have a big impact on how customer identities are managed and stored. This means that CIAM systems need to be designed with these regulations in mind from the ground up.&lt;/p&gt;

&lt;p&gt;We make the rules in IAM, but in CIAM, the customer makes the rules, and they vote with their their feet. If we don't support their privacy needs, they will go somewhere else. If we don't support their preferred authentication method....they don't sign up, they don't buy your stuff. Pretty simple.&lt;/p&gt;

&lt;h2&gt;
  
  
  User Experience
&lt;/h2&gt;

&lt;p&gt;I'm a former small business owner, and I understand the importance of first impressions. CIAM isn't just about protection, it's also about &lt;em&gt;consumer confidence&lt;/em&gt; in your product. Can you transition a customer from wanting to buy something to buying something seamlessly? If we were to over complicate this process, we risk the customer giving up and going to give their duckets to Jeff Bezos. If we do it well, we build a loyal customer base.&lt;/p&gt;

&lt;p&gt;From what I've learned though so far about the industry, it's often specifically focused around reactivity instead of proactive implementation. This means that being a CIAM engineer is a bit of a specialized role that requires a deep understanding of both identity management and customer experience. Even the most ardent of AI enthusiasts will have to admit that this is a field that requires a human touch, and that it's probably not best served by a generalized AI model.&lt;/p&gt;

&lt;p&gt;Summarizing, I think CIAM is a great example of a field where specialization is going to be crucial in the future. As software engineers, we need to start thinking about how we can become specialists in areas that are not easily automated by AI. CIAM is one of those areas, and I think it's a field that is going to be increasingly important as more and more businesses move online and need to manage customer identities and access. The career outlook for CIAM engineers is pretty strong, and I think it's a field that will be more in line with where the industry is heading.&lt;/p&gt;

</description>
      <category>identity</category>
      <category>career</category>
      <category>security</category>
      <category>programming</category>
    </item>
  </channel>
</rss>
