<?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: seshikanthguduri</title>
    <description>The latest articles on DEV Community by seshikanthguduri (@seshikanthguduri).</description>
    <link>https://dev.to/seshikanthguduri</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%2F2297252%2Ffad91df0-5782-4610-bdf6-e1938d9a5fa2.png</url>
      <title>DEV Community: seshikanthguduri</title>
      <link>https://dev.to/seshikanthguduri</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/seshikanthguduri"/>
    <language>en</language>
    <item>
      <title>When Enforcing TLS 1.3 Broke Our CI Builds</title>
      <dc:creator>seshikanthguduri</dc:creator>
      <pubDate>Sun, 06 Dec 2026 00:39:19 +0000</pubDate>
      <link>https://dev.to/seshikanthguduri/when-enforcing-tls-13-broke-our-ci-builds-28pp</link>
      <guid>https://dev.to/seshikanthguduri/when-enforcing-tls-13-broke-our-ci-builds-28pp</guid>
      <description>&lt;p&gt;Originally published on Medium: &lt;a href="https://medium.com/@seshikanthguduri/when-enforcing-tls-1-3-broke-our-ci-builds-d0b026e699eb" rel="noopener noreferrer"&gt;https://medium.com/@seshikanthguduri/when-enforcing-tls-1-3-broke-our-ci-builds-d0b026e699eb&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The registry got more secure. The builds got red. Both were telling the truth.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;TLS 1.3 negotiation: the CI runner asks, the registry answers, and only a shared protocol version opens the tunnel.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Security work has a cruel property: the correct change can still take the pipeline down. We enforced TLS 1.3 on the remote artifact registry that our CI system publishes to. The change was right. It was also the start of a wave of failed Java builds, broken Maven and Gradle publishes, and curl uploads that suddenly could not complete a handshake. Nothing about the failure looked like a TLS version problem at first, which is why it is worth writing down in full.&lt;/p&gt;

&lt;h2&gt;
  
  
  The change that looked safe
&lt;/h2&gt;

&lt;p&gt;The registry endpoint was tightened to require TLS 1.3. Older protocol versions were dropped on purpose: TLS 1.3 removes legacy cipher suites, shortens the handshake, and encrypts more of the negotiation. From the server side, the change is a config line and a restart. From the client side, it is a contract change, and every client that cannot speak TLS 1.3 is now locked out, no matter how valid its credentials are.&lt;/p&gt;

&lt;p&gt;That distinction matters. Authentication failures say "who are you." Protocol failures say "I cannot even talk to you." Our jobs were failing in the second way, but the error messages were generic enough to send the first hours of debugging toward credentials, network rules, and the registry itself.&lt;/p&gt;

&lt;h2&gt;
  
  
  What actually broke, and why
&lt;/h2&gt;

&lt;p&gt;A TLS handshake negotiates the highest protocol version both sides support. When the server offers only TLS 1.3, a client whose maximum is TLS 1.2 has nothing to negotiate. The server terminates the handshake, and the client reports whatever its TLS library feels like reporting, which is rarely "the other side requires TLS 1.3."&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%2Franp6qg5wl3dezrxyqmo.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%2Franp6qg5wl3dezrxyqmo.png" alt=" " width="799" height="559"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;The TLS 1.3 handshake, forward and backward: one round trip, and everything after ServerHello is encrypted.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Java builds were the biggest casualty. Maven and Gradle run on the JVM, and the JVM decides which TLS versions a client offers. That behavior depends on the JDK version and update level. TLS 1.3 support arrived in JDK 11, and was backported to later JDK 8 updates, but plenty of build images still run JDKs whose default client protocols top out at TLS 1.2, or where TLS 1.3 is present but not enabled by default. The job does not know any of this. It just fails to publish the artifact at the end of an otherwise green build, which is the most expensive place to fail: all the compute already happened, and the one step that mattered, delivering the package, is the step that dies.&lt;/p&gt;

&lt;p&gt;The curl failures looked unrelated and were not. Some upload scripts used curl builds linked against older TLS libraries, or pinned protocol flags copied from older examples. A script that explicitly caps the TLS version, or a curl old enough that its library does not know TLS 1.3, fails against a TLS 1.3 only endpoint in exactly the same way, with errors like "SSL connect error" that again point nowhere useful.&lt;/p&gt;

&lt;p&gt;So one server side change produced three symptom families: Java publish failures, Gradle publish failures, and script upload failures. Same root cause, three different error dialects.&lt;/p&gt;

&lt;h2&gt;
  
  
  The fix, in two parts
&lt;/h2&gt;

&lt;p&gt;Part one was the JVM. Java lets you set the client protocol list with the system property jdk.tls.client.protocols. Setting it to "TLSv1.2,TLSv1.3" tells the JVM to offer both, and the handshake settles on 1.3 where the server requires it. The important decision was where to set it. Fixing one project's pipeline file would have fixed one project. Setting it through JAVA_TOOL_OPTIONS and MAVEN_OPTS at the CI level, in the shared runner configuration, meant every Java job inherited the fix without each team editing their build. Platform work should land at the platform layer; this was that principle with a flag attached.&lt;/p&gt;

&lt;p&gt;Part two was the upload scripts. The curl based uploads to the container registry were wrapped in a script that explicitly allows the latest TLS version, so uploads negotiate TLS 1.3 instead of failing against the tightened endpoint. Same pattern as the JVM fix: one shared script, fixed once, instead of a dozen copies drifting in individual repositories.&lt;/p&gt;

&lt;p&gt;Neither fix weakens the security change. The registry still requires TLS 1.3. The clients were taught to speak it.&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%2Fundk8zj6usuelt7tjloj.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%2Fundk8zj6usuelt7tjloj.png" alt=" " width="800" height="426"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Before and after: the same ClientHello, two different outcomes.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The questions everyone asks
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Why not just re-enable TLS 1.2 on the server?&lt;/strong&gt; That is the fastest unblock and the worst fix. It silently reverses the security decision, and it teaches the organization that enforcement is negotiable whenever builds complain. A short, announced transition window with dual support is defensible. A quiet permanent rollback is not.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why did some jobs pass while others failed?&lt;/strong&gt; Because "the CI system" is not one client. Different jobs run different images, different JDKs, and different upload tools. Any job already on a TLS 1.3 capable stack passed untouched. That partial failure pattern is a fingerprint of a client side protocol problem: server outages fail everything, client mismatches fail a subset.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Is this a certificate problem?&lt;/strong&gt; No, and that is the trap. Certificate errors happen after the protocol is agreed. These handshakes died before certificates were even exchanged. When the error appears before authentication, suspect the protocol negotiation first.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Could we have just upgraded every JDK instead?&lt;/strong&gt; Eventually, yes, and that is the durable fix. But a fleet wide JDK upgrade is a program of work with its own breakage risk, measured in weeks. The protocol property is a bridge: it unblocks everyone today on the JDKs they already run, and the upgrade can then happen on a sane schedule instead of during an incident.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why enforce TLS 1.3 at all?&lt;/strong&gt; Because registries hold the artifacts that become production. The path between CI and the registry is part of the supply chain, and "the build was green" means little if the artifact traveled over a protocol with known weak options still enabled. Enforcement is what turns "we support TLS 1.3" from a brochure claim into a fact.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How do you roll this out without breaking everyone next time?&lt;/strong&gt; Stage it. Announce the date, scan which clients connect with which protocol versions while both are still accepted, contact the owners of the laggards, and only then enforce. We learned the ordering the hard way: enforce first, discover clients second is backwards. The telemetry exists in server logs the whole time; the discipline is reading it before the change, not after.&lt;/p&gt;

&lt;h2&gt;
  
  
  What this problem really is
&lt;/h2&gt;

&lt;p&gt;It is tempting to file this under "TLS settings," but the real problem is contract management between a platform and its consumers. Every endpoint a platform serves is a contract, and protocol versions are clauses. Changing a clause without inventorying the signatories breaks people who never agreed to the new terms, and they experience it as an outage you caused, because from their chair, you did.&lt;/p&gt;

&lt;p&gt;The fix took an afternoon. The lesson is permanent: before tightening anything, a protocol, a schema, an API version, list who connects, what they speak, and how you will know when they are ready. Security enforcement and developer experience are not opponents here. Sequencing is what separates them.&lt;/p&gt;

&lt;p&gt;TLS 1.3 was never the problem. Surprising your own clients was.&lt;/p&gt;

</description>
      <category>security</category>
      <category>devops</category>
      <category>java</category>
      <category>tls</category>
    </item>
    <item>
      <title>When Spot Nodes Eat Your CI Pipeline</title>
      <dc:creator>seshikanthguduri</dc:creator>
      <pubDate>Sun, 06 Dec 2026 00:36:38 +0000</pubDate>
      <link>https://dev.to/seshikanthguduri/when-spot-nodes-eat-your-ci-pipeline-26l4</link>
      <guid>https://dev.to/seshikanthguduri/when-spot-nodes-eat-your-ci-pipeline-26l4</guid>
      <description>&lt;p&gt;Originally published on Medium: &lt;a href="https://medium.com/@seshikanthguduri/when-spot-nodes-eat-your-ci-pipeline-1bfc53a7f79b" rel="noopener noreferrer"&gt;https://medium.com/@seshikanthguduri/when-spot-nodes-eat-your-ci-pipeline-1bfc53a7f79b&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Spot vs on-demand in EKS, provisioned by Karpenter: same cluster, two very different capacity promises.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Every platform team eventually learns the same lesson: spot instances are cheap right up until they are not.&lt;/p&gt;

&lt;h2&gt;
  
  
  The setup: all spot, all the time
&lt;/h2&gt;

&lt;p&gt;We ran a busy Kubernetes CI workload on a node pool built entirely on spot capacity. It worked well for a long time, which is exactly the problem. Spot interruptions are rare enough that the risk stays invisible, until one day jobs start failing with errors that look like application problems. In our case the symptom was simple: jobs could not get a node. Pods sat unscheduled or died mid-run, and the error messages pointed everywhere except the real cause.&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%2Fzn2i7ewahknpmz4frj0l.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%2Fzn2i7ewahknpmz4frj0l.png" alt=" " width="799" height="363"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Figure 1 — How CI jobs flowed through the cluster: every job landed on spot capacity.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Read the flow left to right. A pipeline job becomes a pod. The scheduler looks for a node with room. If none exists, Karpenter creates one from the pool. The pool is the quiet decision in this diagram: it defines where capacity comes from. Ours said spot only, which means every node in the chain existed at the cloud provider's pleasure.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where it went wrong
&lt;/h2&gt;

&lt;p&gt;The real cause was capacity. The node provisioner was doing its job correctly. When the cloud provider reclaimed spot capacity, nodes were terminated, and because the pool had no reserved or on-demand capacity behind it, there was nothing guaranteed to replace them. CI is a bad fit for that gamble. A batch job can often retry, but a pipeline is a chain: one lost node can fail a stage, block a merge, and quietly tax every engineer waiting on it.&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%2Fystxmpjcdtsvy3r2cev5.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%2Fystxmpjcdtsvy3r2cev5.png" alt=" " width="799" height="363"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Figure 2 — Where it went wrong: a capacity event upstream became a pipeline failure downstream.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;The chain matters more than any single step. Spot reclamation is normal behavior, and Karpenter terminating the node is correct behavior. The failure is designed in at step zero, when the pool was built with no guaranteed capacity behind it. By the time a job reports that no node is available, the real event is already three steps upstream, which is why the first hours of debugging went toward the jobs themselves.&lt;/p&gt;

&lt;h2&gt;
  
  
  The fix: tier the capacity
&lt;/h2&gt;

&lt;p&gt;The fix was boring, which is usually a sign it is right. We moved the critical pool to on-demand instances, managed through Terraform like everything else in the platform. Failures cleared across the pipeline, not just in the job that first reported the problem.&lt;/p&gt;

&lt;p&gt;That does not mean spot has no place. It means capacity needs tiers, decided on purpose:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Critical, latency-sensitive, or chain-blocking workloads get guaranteed capacity: on-demand or reserved.&lt;/li&gt;
&lt;li&gt;Fault-tolerant, retry-friendly batch work can ride spot and take the savings.&lt;/li&gt;
&lt;li&gt;The tiering has to be codified in infrastructure as code, not left as tribal knowledge, so the next pool is built right by default.&lt;/li&gt;
&lt;/ul&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%2Fcuvv4ysyzc3ms6w9064c.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%2Fcuvv4ysyzc3ms6w9064c.png" alt=" " width="799" height="363"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Figure 3 — The fix: capacity in tiers, decided on purpose.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Taints and tolerations do the routing. The critical pool carries a taint that only pipeline workloads tolerate, so batch jobs cannot drift onto the expensive capacity. The batch pool stays spot and keeps the savings for work that retries cleanly. Neither pool is a console change: both are Terraform, reviewed like any other production change.&lt;/p&gt;

&lt;h2&gt;
  
  
  Measure it, or it happens again
&lt;/h2&gt;

&lt;p&gt;The second lesson is about measurement. "The pipeline feels flaky" is not an SLO. Track scheduling success rate, time pods spend pending, and node termination events per pool. When those numbers exist, the cost conversation changes. You are no longer arguing about instance prices; you are comparing a known compute increase against a known amount of lost engineering time.&lt;/p&gt;

&lt;p&gt;Spot is a tool. Like every tool, it has a load limit. Put it under the wrong workload and it will hold, right up until the day it does not, and that day always arrives during someone else's deadline.&lt;/p&gt;

</description>
      <category>kubernetes</category>
      <category>devops</category>
      <category>aws</category>
      <category>sre</category>
    </item>
  </channel>
</rss>
