<?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: binadit</title>
    <description>The latest articles on DEV Community by binadit (@binadit).</description>
    <link>https://dev.to/binadit</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%2F3853937%2F7b742322-ef72-44c9-92e2-8a32b6f3aa67.png</url>
      <title>DEV Community: binadit</title>
      <link>https://dev.to/binadit</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/binadit"/>
    <language>en</language>
    <item>
      <title>Best practices for handling patient data under the CLOUD Act</title>
      <dc:creator>binadit</dc:creator>
      <pubDate>Wed, 02 Dec 2026 08:02:45 +0000</pubDate>
      <link>https://dev.to/binadit/best-practices-for-handling-patient-data-under-the-cloud-act-20ek</link>
      <guid>https://dev.to/binadit/best-practices-for-handling-patient-data-under-the-cloud-act-20ek</guid>
      <description>&lt;h1&gt;
  
  
  The CLOUD Act doesn't care which AWS region you picked
&lt;/h1&gt;

&lt;p&gt;Here's a question that breaks a lot of compliance checklists: you've configured your EU data residency settings, your buckets are in Frankfurt, your encryption is enabled at rest and in transit. Are you actually compliant for patient data? Not necessarily. If your provider is a US company, jurisdiction follows the corporate entity, not the data centre.&lt;/p&gt;

&lt;p&gt;This is for anyone building or maintaining systems that touch patient data (referral letters, lab results, appointment metadata) and routes any of it through Gmail, Outlook, Google Drive or OneDrive.&lt;/p&gt;

&lt;h2&gt;
  
  
  The core technical misunderstanding
&lt;/h2&gt;

&lt;p&gt;Most teams treat "data region" and "legal jurisdiction" as the same setting. They aren't.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Microsoft 365 / OneDrive / Teams  -&amp;gt; Microsoft Corporation, Redmond, WA
Google Workspace / Drive / Gmail  -&amp;gt; Google LLC, Mountain View, CA
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Both vendors let you pin storage to an EU region. That setting controls where the disks physically sit. It does not change which country's courts can compel the parent company to produce data. Under the US CLOUD Act (enacted 23 March 2018), a US-jurisdiction provider must hand over data in its possession, custody or control if served with a valid US warrant, subpoena or court order, regardless of where the underlying server lives.&lt;/p&gt;

&lt;p&gt;It doesn't mean your mailbox is being actively monitored. It means the legal reach follows the company, not the storage location. Treat that as a hard constraint when designing data flows for special category data (health data falls under GDPR Article 9).&lt;/p&gt;

&lt;h2&gt;
  
  
  Encryption doesn't solve this problem
&lt;/h2&gt;

&lt;p&gt;If a vendor's answer to "what about the CLOUD Act" is "we encrypt everything," that's a mismatch between question and answer.&lt;/p&gt;

&lt;p&gt;Encryption in transit and at rest protects against external attackers. It does nothing against a lawful order served directly on the provider, because the provider holds the keys. Different threat model entirely. Don't let this get conflated in a security review.&lt;/p&gt;

&lt;h2&gt;
  
  
  Check your actual legal basis, not just your region config
&lt;/h2&gt;

&lt;p&gt;GDPR Chapter V (Articles 44-50) requires an adequacy decision or appropriate safeguards (like SCCs) before personal data can leave the EEA. Article 48 is explicit on this: a foreign government order does not, on its own, make a transfer lawful. Article 24 puts the burden of proof on the controller, i.e., you, not the vendor.&lt;/p&gt;

&lt;p&gt;Pull your current contract and find the answer to: which transfer mechanism does it actually rely on?&lt;/p&gt;

&lt;h2&gt;
  
  
  The framework has a track record worth knowing
&lt;/h2&gt;

&lt;p&gt;Three EU-US frameworks in roughly 25 years:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Safe Harbor&lt;/strong&gt; (2000), struck down 2015&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Privacy Shield&lt;/strong&gt; (2016), struck down in the Schrems II ruling, July 2020&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;EU-US Data Privacy Framework&lt;/strong&gt;, adopted 10 July 2023, currently in force&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The current framework is under legal challenge. The EU General Court dismissed an action (Case T-553/23) on 3 September 2025; an appeal (Case C-703/25 P) was filed 31 October 2025 and is pending before the Court of Justice. No judgment yet, nothing to act on today, but worth tracking if you're the one who gets asked "is our legal basis stable" in an audit.&lt;/p&gt;

&lt;h2&gt;
  
  
  Ask the question directly, get it in writing
&lt;/h2&gt;

&lt;p&gt;On 10 June 2025, Microsoft France's director of public and legal affairs, Anton Carniaux, testified under oath before a French Senate inquiry. Asked whether he could guarantee French citizens' data would never be handed over under a US government order without French authorisation, his answer was: "Non, je ne peux pas le garantir" (no, he could not guarantee it), while noting it hadn't happened so far.&lt;/p&gt;

&lt;p&gt;No major US cloud provider can give a different answer here; the CLOUD Act doesn't leave room for that guarantee. If you haven't put this question to your own vendor in writing, that's a reasonable first step before any migration work.&lt;/p&gt;

&lt;h2&gt;
  
  
  Map data flows, not just storage systems
&lt;/h2&gt;

&lt;p&gt;Your EHR probably gets audited. Your mailbox and shared drives usually don't, and that's often where the real exposure sits:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Referral letters as email attachments&lt;/li&gt;
&lt;li&gt;Calendar invites with patient names in the subject line&lt;/li&gt;
&lt;li&gt;Shared drive folders holding intake forms&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These move protected data outside your primary system constantly, with no dedicated access controls.&lt;/p&gt;

&lt;h2&gt;
  
  
  A practical remediation order
&lt;/h2&gt;

&lt;p&gt;Don't try to migrate everything simultaneously. Prioritize by sensitivity and volume:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Shared intake mailbox&lt;/li&gt;
&lt;li&gt;Referral and lab-result exchange&lt;/li&gt;
&lt;li&gt;Appointment booking system&lt;/li&gt;
&lt;li&gt;Discharge summary storage&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Fixing these four first gets you most of the risk reduction without a full-org migration.&lt;/p&gt;

&lt;h2&gt;
  
  
  A minimal tracking table
&lt;/h2&gt;

&lt;p&gt;Something like this, kept current, covers most audit questions:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Question&lt;/th&gt;
&lt;th&gt;What to record&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Where is data stored&lt;/td&gt;
&lt;td&gt;System name, hosting region&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Who's the legal entity&lt;/td&gt;
&lt;td&gt;Parent company, country, CLOUD Act exposure (yes/no)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Transfer mechanism&lt;/td&gt;
&lt;td&gt;Adequacy decision, SCCs, DPF, or none needed&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Vendor confirmation&lt;/td&gt;
&lt;td&gt;Date requested, date replied, summary&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Review cadence&lt;/td&gt;
&lt;td&gt;Recurring, not one-off&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  If you do migrate, migrate the whole workflow
&lt;/h2&gt;

&lt;p&gt;Patient data isn't in one place. It's in the mailbox, the drive, the calendar, the video consult link, the booking page. Moving email off a US platform while leaving files and scheduling behind solves a fraction of the exposure and leaves you maintaining two systems instead of one.&lt;/p&gt;

&lt;p&gt;Full article with more detail: &lt;a href="https://binadit.com/blog/cloud-act-healthcare-patient-data-email-files" rel="noopener noreferrer"&gt;CLOUD Act and healthcare patient data&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://binadit.com/blog/cloud-act-healthcare-patient-data-email-files" rel="noopener noreferrer"&gt;binadit.com&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

</description>
      <category>aws</category>
      <category>cloud</category>
      <category>security</category>
    </item>
    <item>
      <title>From flat network to zero trust: an infrastructure security hardening case study</title>
      <dc:creator>binadit</dc:creator>
      <pubDate>Fri, 27 Nov 2026 08:04:32 +0000</pubDate>
      <link>https://dev.to/binadit/from-flat-network-to-zero-trust-an-infrastructure-security-hardening-case-study-132g</link>
      <guid>https://dev.to/binadit/from-flat-network-to-zero-trust-an-infrastructure-security-hardening-case-study-132g</guid>
      <description>&lt;h2&gt;
  
  
  The question nobody could answer
&lt;/h2&gt;

&lt;p&gt;A prospective enterprise customer asked a simple due diligence question: if an attacker popped one of your containers, what else could they reach?&lt;/p&gt;

&lt;p&gt;Nobody on a 40-engineer team running a B2B scheduling platform (roughly 9,000 paying seats) could answer with confidence. No breach had happened. The uncertainty itself was the problem, and it's the same uncertainty a lot of growing platforms are sitting on without realizing it.&lt;/p&gt;

&lt;p&gt;This is a condensed breakdown of how we moved that infrastructure from a flat, perimeter-trust network to a zero trust model, in four shippable stages, with no rip-and-replace and no maintenance window.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the flat network actually looked like
&lt;/h2&gt;

&lt;p&gt;Five years of organic growth had produced the usual pattern: a perimeter firewall at the VPC edge, flat routing inside it, and an implicit assumption that anything inside the boundary was safe. We ran a two-week audit to map real traffic flows instead of trusting the architecture diagram, and the two didn't match.&lt;/p&gt;

&lt;p&gt;What we found:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;East-west traffic was wide open.&lt;/strong&gt; Any instance in the VPC could reach any other instance on any port. A compromised billing worker could hit the customer database directly.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No service-to-service auth.&lt;/strong&gt; Internal REST calls between the scheduling engine, notifications, and reporting were plain unauthenticated HTTP. Network location was the only "proof" of identity.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;One shared DB user, full read/write, used by six services.&lt;/strong&gt; Not rotated in over 14 months because nobody wanted to coordinate the restart.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;22 engineers had standing SSH access&lt;/strong&gt; to prod via a shared bastion, key-based, no session recording, no JIT elevation.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Staging and prod shared a Redis cluster&lt;/strong&gt;, isolated only by key prefixing in app code. One prefix bug away from crossing environments.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Flow logs existed but weren't identity-aware.&lt;/strong&gt; No way to answer "which service account ran this query" because the connection pool masked the caller.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;None of this was an active exploit. It was a security posture resting entirely on the perimeter holding and on 22 people never losing an SSH key. That's a single point of failure wearing a defense-in-depth costume.&lt;/p&gt;

&lt;h2&gt;
  
  
  The zero trust guarantees we targeted
&lt;/h2&gt;

&lt;p&gt;Zero trust isn't a product, it's a checklist of verifiable guarantees, independent of network position:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Every inter-service request carries verifiable identity, not just a source IP.&lt;/li&gt;
&lt;li&gt;Access is granted per request based on policy, not permanently based on network location.&lt;/li&gt;
&lt;li&gt;Credentials are short-lived and scoped to minimum necessary action.&lt;/li&gt;
&lt;li&gt;All access is logged with enough identity context to answer "who did what" directly, not by inference.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;We phased this into four independently shippable stages, each reducing blast radius before the next one started. Same philosophy as zero-downtime migrations: every stage leaves the system working and rollback-able.&lt;/p&gt;

&lt;h2&gt;
  
  
  Stage 1: segment the network
&lt;/h2&gt;

&lt;p&gt;We split the flat VPC into trust tiers: public load balancers, app tier, data tier, and a separate management tier for CI/CD and bastion access. Security groups went from "allow internal" to explicit per-service allow-lists.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight hcl"&gt;&lt;code&gt;&lt;span class="n"&gt;resource&lt;/span&gt; &lt;span class="s2"&gt;"aws_security_group_rule"&lt;/span&gt; &lt;span class="s2"&gt;"billing_ingress_from_scheduler"&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;type&lt;/span&gt;                     &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"ingress"&lt;/span&gt;
  &lt;span class="n"&gt;from_port&lt;/span&gt;                &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;8443&lt;/span&gt;
  &lt;span class="n"&gt;to_port&lt;/span&gt;                  &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;8443&lt;/span&gt;
  &lt;span class="n"&gt;protocol&lt;/span&gt;                 &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"tcp"&lt;/span&gt;
  &lt;span class="n"&gt;security_group_id&lt;/span&gt;        &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;aws_security_group&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;billing&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;
  &lt;span class="n"&gt;source_security_group_id&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;aws_security_group&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;scheduler&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;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The billing service's security group went from "allow entire VPC CIDR" to four explicit ingress rules, one per legitimate caller, each scoped to its own port. This alone kills the "any instance reaches any instance" problem. It doesn't solve identity, but it shrinks attack surface immediately, which matters when the rest of the rollout takes weeks.&lt;/p&gt;

&lt;h2&gt;
  
  
  Stage 2: mTLS everywhere
&lt;/h2&gt;

&lt;p&gt;We introduced Linkerd (picked over Istio for lower operational overhead at this team size) to handle mTLS automatically. Every service got a SPIFFE-based identity from the mesh's CA, rotated every 24 hours, zero manual intervention. No app code changes, the sidecar handled the handshake.&lt;/p&gt;

&lt;p&gt;This flips the trust model from "anyone on the internal network is trusted" to "only holders of a valid, short-lived certificate for an authorized identity are trusted," regardless of subnet. A compromised container can't call the billing API just by being on the network anymore. It needs a valid workload identity scoped to allowed routes.&lt;/p&gt;

&lt;h2&gt;
  
  
  Stage 3: kill the shared credential
&lt;/h2&gt;

&lt;p&gt;The single shared DB user got replaced with per-service IAM-based auth, short-lived tokens refreshed every 15 minutes via RDS IAM auth. Each service's DB role was scoped to only the schemas and operations it actually used, verified by replaying three months of query logs against the proposed grants before cutover.&lt;/p&gt;

&lt;p&gt;We found two services using the shared user for ad hoc admin queries unrelated to their function, leftover from a developer's debugging session 18 months prior that never got cleaned up. We only caught this because we audited real query logs instead of trusting the documented access model. Worth remembering next time you're told "access is scoped correctly" without evidence.&lt;/p&gt;

&lt;h2&gt;
  
  
  Stage 4: just-in-time access, real segmentation
&lt;/h2&gt;

&lt;p&gt;Standing SSH got replaced with a JIT access system: engineers request time-boxed access (default 45 minutes) through a Slack-integrated approval flow, backed by short-lived SSH certs signed by an internal CA instead of static keys. All sessions recorded. Shared bastion retired entirely.&lt;/p&gt;

&lt;p&gt;Staging and production Redis moved to physically separate clusters with real network segmentation, killing the key-prefix-as-isolation anti-pattern for good. Every service-to-service call now logs the SPIFFE identity of both caller and callee, so "who did what" is a query, not a guess.&lt;/p&gt;

&lt;h2&gt;
  
  
  Takeaway
&lt;/h2&gt;

&lt;p&gt;If you can't answer "what can a compromised container reach" right now, that's the actual finding, not a hypothetical breach. Fix it in stages, verify identity instead of network position, and make credentials expire before someone has to remember to rotate them.&lt;/p&gt;

&lt;p&gt;Full writeup with more detail: &lt;a href="https://binadit.com/blog/zero-trust-networking-infrastructure-security-hardening-case-study" rel="noopener noreferrer"&gt;Zero trust networking: an infrastructure security hardening case study&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://binadit.com/blog/zero-trust-networking-infrastructure-security-hardening-case-study" rel="noopener noreferrer"&gt;binadit.com&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

</description>
      <category>architecture</category>
      <category>cybersecurity</category>
      <category>infrastructure</category>
      <category>security</category>
    </item>
    <item>
      <title>More servers vs right-sizing: choosing your response to a capacity problem</title>
      <dc:creator>binadit</dc:creator>
      <pubDate>Fri, 20 Nov 2026 08:41:43 +0000</pubDate>
      <link>https://dev.to/binadit/more-servers-vs-right-sizing-choosing-your-response-to-a-capacity-problem-42pk</link>
      <guid>https://dev.to/binadit/more-servers-vs-right-sizing-choosing-your-response-to-a-capacity-problem-42pk</guid>
      <description>&lt;h1&gt;
  
  
  Scaling vs fixing the bottleneck: how to tell which incident you actually have
&lt;/h1&gt;

&lt;p&gt;Your p95 latency spikes, Slack lights up, and someone says "just bump the instance size." Thirty minutes later the graphs look fine and everyone moves on to the next fire. But did you fix anything, or did you just make the same inefficiency more expensive?&lt;/p&gt;

&lt;p&gt;This is the call every on-call engineer eventually has to make under pressure. Let's break down when scaling is the right move, when it's a band-aid, and how to tell the difference fast.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why "add more servers" works until it doesn't
&lt;/h2&gt;

&lt;p&gt;Scaling, horizontal or vertical, is the fastest lever you have mid-incident. No schema migration, no code review, no root cause investigation required. That speed is genuinely valuable when customers are feeling the pain right now.&lt;/p&gt;

&lt;p&gt;It's the right call when:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Traffic growth is real and sustained, not a spike from an inefficient query&lt;/li&gt;
&lt;li&gt;Your app is stateless and actually horizontally scalable, so new nodes spread load instead of just shifting it downstream&lt;/li&gt;
&lt;li&gt;You need breathing room to investigate safely without customers noticing&lt;/li&gt;
&lt;li&gt;The added cost tracks real revenue or usage growth, not a single bad code path&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A common good pattern: scale out web tier capacity ahead of a launch, buy two weeks of headroom, then use that time to actually profile the slow endpoint. Scaling as a buffer, not a fix.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where scaling quietly fails
&lt;/h2&gt;

&lt;p&gt;Here's the trap: you scale out your app servers, but they all hit the same Postgres instance. Now you've tripled your compute bill and connection count or lock contention is the new ceiling. Latency barely moves.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# Looks like scaling fixed it
app_servers: 2 -&amp;gt; 6

# Reality check
pg_stat_activity.count # climbing
lock_waits             # climbing
response_time_p95      # basically unchanged
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Scaling also multiplies misconfiguration. Clone a server with a bad config into a fleet of five, and you now have five copies of the same bug instead of one fixed server. This overlaps heavily with configuration drift problems, where small inconsistencies between nodes become the actual source of intermittent incidents.&lt;/p&gt;

&lt;p&gt;And there's a cost ceiling: doubling instance count doesn't double your headroom if the workload itself is inefficient. It just doubles your bill while the percentage improvement in latency keeps shrinking.&lt;/p&gt;

&lt;h2&gt;
  
  
  When to profile instead of provision
&lt;/h2&gt;

&lt;p&gt;Fixing the root cause means treating the slowdown as a signal, not a capacity gap. Pull up your request traces and look at query plans, N+1 queries, cache hit ratios, slow external calls, thread pool exhaustion, connection pool limits.&lt;/p&gt;

&lt;p&gt;This is the right move when:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The same handful of endpoints or queries keep showing up in slow traces&lt;/li&gt;
&lt;li&gt;CPU and memory sit comfortably under 50% while latency is still bad, pointing to contention, not raw capacity&lt;/li&gt;
&lt;li&gt;A recent deploy correlates with the degradation, suggesting a regression, not organic growth&lt;/li&gt;
&lt;li&gt;Scaling costs have already outpaced revenue growth, meaning the architecture can't scale economically even if it can scale technically&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;One real example: a team kept adding nodes to a cluster that was actually constrained by inefficient pod scheduling and oversized resource requests, not genuine load. Removing the orchestration overhead and right-sizing the workload did more than another autoscaling rule ever would have.&lt;/p&gt;

&lt;h2&gt;
  
  
  The catch with root-causing under pressure
&lt;/h2&gt;

&lt;p&gt;Profiling takes time you might not have mid-incident. Testing an index change against production-like data and validating it doesn't regress something else can take days. "Let's fix the query" is not an acceptable answer to an active P1, even when it's the correct long-term one.&lt;/p&gt;

&lt;p&gt;It also requires expertise your team might not have on hand, especially for database internals or distributed systems behavior under load. Without someone who can read a query plan confidently, you'll spend more time guessing than fixing, and end up scaling anyway.&lt;/p&gt;

&lt;p&gt;And sometimes the fix really is more capacity. If your user base tripled and the architecture was built for the old scale, no amount of query tuning replaces infrastructure that matches current reality.&lt;/p&gt;

&lt;h2&gt;
  
  
  Quick decision framework
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;CPU/memory/connections genuinely saturated, sustained real traffic growth?&lt;/strong&gt; Scale. This is legitimate capacity planning. Just verify your horizontal scaling is actually distributing load, not just adding nodes that all hit the same downstream bottleneck.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Moderate resource utilization, latency still bad?&lt;/strong&gt; Don't scale yet. Profile first. This is almost always lock contention, slow queries, or a misbehaving dependency.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Same component keeps showing up across incidents?&lt;/strong&gt; Stop patching with capacity. Fix it.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The healthiest pattern: scale to stabilize, buy time, then do the root cause work properly. The failure mode is scaling as a permanent substitute for diagnosis, every single time load increases.&lt;/p&gt;

&lt;p&gt;Full breakdown with a comparison table on cost, operational burden, and risk profile: &lt;a href="https://binadit.com/blog/more-servers-vs-right-sizing-cloud-cost-optimization-services" rel="noopener noreferrer"&gt;More servers vs right-sizing&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://binadit.com/blog/more-servers-vs-right-sizing-cloud-cost-optimization-services" rel="noopener noreferrer"&gt;binadit.com&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

</description>
      <category>architecture</category>
      <category>infrastructure</category>
      <category>performance</category>
      <category>sre</category>
    </item>
    <item>
      <title>Shared mailbox done right: info@ and sales@ without sharing a password</title>
      <dc:creator>binadit</dc:creator>
      <pubDate>Fri, 13 Nov 2026 08:04:10 +0000</pubDate>
      <link>https://dev.to/binadit/shared-mailbox-done-right-info-and-sales-without-sharing-a-password-1mb8</link>
      <guid>https://dev.to/binadit/shared-mailbox-done-right-info-and-sales-without-sharing-a-password-1mb8</guid>
      <description>&lt;h2&gt;
  
  
  One password, five people, zero accountability
&lt;/h2&gt;

&lt;p&gt;Quick audit: who has the password to info@ or sales@ at your company? If you're honest, the answer is probably "everyone who's ever needed it since 2019." It's sitting in a spreadsheet, a sticky note, or a doc literally named &lt;code&gt;passwords-do-not-share.xlsx&lt;/code&gt; that gets shared constantly. Ex-employees can likely still log in. And when a customer complains about a reply, the sent folder tells you nothing, because every message is signed by the mailbox itself, not a person.&lt;/p&gt;

&lt;p&gt;This isn't negligence. It's a default nobody questioned. But it means no audit trail, no clean way to revoke one person's access, and a password that is functionally permanent.&lt;/p&gt;

&lt;h2&gt;
  
  
  Root cause: shared mailboxes were never meant to be shared logins
&lt;/h2&gt;

&lt;p&gt;A shared mailbox like &lt;code&gt;info@yourcompany.com&lt;/code&gt; is, under the hood, just one mailbox with one set of credentials. The fast way to set it up is to create a single account and hand out the login to whoever needs it. Quick to deploy, miserable to maintain.&lt;/p&gt;

&lt;p&gt;Both Microsoft 365 and Google Workspace support a better model: give each person their own named account, then grant that account delegated access to the shared mailbox. No separate password for the mailbox at all. Each person authenticates as themselves, sees the shared inbox as a folder or view, and sends "on behalf of" or "as" the shared address. Every outgoing message carries a trace of who actually sent it.&lt;/p&gt;

&lt;p&gt;Nobody sets this up correctly by default because nobody walks teams through it. New hire needs sales@ access today, someone hands over the shared password, and the debt compounds every year.&lt;/p&gt;

&lt;h2&gt;
  
  
  The actual fix
&lt;/h2&gt;

&lt;p&gt;No new tooling required. Configure the mailbox properly, once:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The shared mailbox is a resource, not a login.&lt;/strong&gt; It shouldn't be an account anyone signs into directly.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Named individual access.&lt;/strong&gt; Each person gets the mailbox added to their own account, their own password, their own MFA.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Role-based permissions&lt;/strong&gt;, not one tier for everyone:

&lt;ul&gt;
&lt;li&gt;Read/reply only (support staff)&lt;/li&gt;
&lt;li&gt;Send-as (account managers)&lt;/li&gt;
&lt;li&gt;Full control: folders, rules (team lead)&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A visible sent trail.&lt;/strong&gt; Headers or an admin log should show who actually sent each message.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Instant revocation.&lt;/strong&gt; Someone leaves, you remove their access, done. Zero impact on everyone else. No password reset and re-share ritual.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Microsoft 365
&lt;/h3&gt;

&lt;p&gt;Create a shared mailbox object, not a licensed user mailbox. Grant permissions per person via admin center:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="nc"&gt;Add&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;MailboxPermission&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Identity&lt;/span&gt; &lt;span class="s2"&gt;"info@yourcompany.com"&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;User&lt;/span&gt; &lt;span class="s2"&gt;"jane@yourcompany.com"&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;AccessRights&lt;/span&gt; &lt;span class="nc"&gt;FullAccess&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;InheritanceType&lt;/span&gt; &lt;span class="nc"&gt;All&lt;/span&gt;

&lt;span class="nc"&gt;Add&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;RecipientPermission&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Identity&lt;/span&gt; &lt;span class="s2"&gt;"info@yourcompany.com"&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Trustee&lt;/span&gt; &lt;span class="s2"&gt;"jane@yourcompany.com"&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;AccessRights&lt;/span&gt; &lt;span class="nc"&gt;SendAs&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Full Access and Send As are separate permission grants, assign them deliberately per role.&lt;/p&gt;

&lt;h3&gt;
  
  
  Google Workspace
&lt;/h3&gt;

&lt;p&gt;Typically a Google Group configured as a collaborative inbox, with delegation handled per member rather than a shared account.&lt;/p&gt;

&lt;p&gt;Both platforms support this natively. The gap is almost always configuration discipline, not capability.&lt;/p&gt;

&lt;h2&gt;
  
  
  Validate it actually worked
&lt;/h2&gt;

&lt;p&gt;Don't assume, check:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Log in as each team member, confirm they see the shared mailbox without a separate password prompt.&lt;/li&gt;
&lt;li&gt;Send a test reply from two different personal accounts, confirm headers or admin logs show who sent what.&lt;/li&gt;
&lt;li&gt;Remove one person's access as a test. Confirm the mailbox keeps working for everyone else, no reset, no redistribution.&lt;/li&gt;
&lt;li&gt;Confirm MFA is enforced on every individual account with access, not just assumed on some legacy shared login.&lt;/li&gt;
&lt;li&gt;Review the permission list quarterly. If you can't list exactly who has access and why, six months from now, it wasn't actually fixed.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;No special monitoring stack needed. Just an admin panel you can read and five minutes a quarter.&lt;/p&gt;

&lt;h2&gt;
  
  
  Keep it from creeping back
&lt;/h2&gt;

&lt;p&gt;Two habits matter:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Put shared mailbox access on the onboarding/offboarding checklist, same list as laptop return and badge deactivation.&lt;/li&gt;
&lt;li&gt;Kill the "just give them the password for now, it's Friday" exception. That's exactly how the old habit returns.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Pick a platform where per-person permissions on shared mailboxes are the default, not buried three menus deep behind the advanced settings.&lt;/p&gt;

&lt;h2&gt;
  
  
  There's also a jurisdiction angle
&lt;/h2&gt;

&lt;p&gt;Beyond the access-control story, there's a question of where mailbox data lives and which law governs it. Microsoft 365 and Google Workspace are run by US companies. Under the US CLOUD Act (2018), a provider under US jurisdiction can be compelled to disclose data in its possession regardless of where that data is physically stored. A European data region setting controls where the bytes sit, not which court can compel disclosure.&lt;/p&gt;

&lt;p&gt;GDPR Chapter V requires a valid legal basis before personal data moves outside the EEA, and Article 48 states a foreign court order alone doesn't make that transfer lawful. The legal frameworks meant to bridge this have a rocky track record: Safe Harbor struck down in 2015, Privacy Shield struck down in 2020, and the current EU-US Data Privacy Framework (adopted July 2023) is under challenge at the Court of Justice following an appeal filed at the end of October 2025.&lt;/p&gt;

&lt;p&gt;That's a separate conversation from access control, but it's worth knowing both exist.&lt;/p&gt;

&lt;p&gt;Full writeup with more context: &lt;a href="https://binadit.com/blog/shared-mailbox-done-right-info-sales-no-shared-password" rel="noopener noreferrer"&gt;Shared mailbox done right&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://binadit.com/blog/shared-mailbox-done-right-info-sales-no-shared-password" rel="noopener noreferrer"&gt;binadit.com&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

</description>
      <category>management</category>
      <category>productivity</category>
      <category>security</category>
    </item>
    <item>
      <title>Staying on Microsoft 365 vs moving off it: the CLOUD Act law firms and accountants need to weigh</title>
      <dc:creator>binadit</dc:creator>
      <pubDate>Wed, 11 Nov 2026 08:33:27 +0000</pubDate>
      <link>https://dev.to/binadit/staying-on-microsoft-365-vs-moving-off-it-the-cloud-act-law-firms-and-accountants-need-to-weigh-504l</link>
      <guid>https://dev.to/binadit/staying-on-microsoft-365-vs-moving-off-it-the-cloud-act-law-firms-and-accountants-need-to-weigh-504l</guid>
      <description>&lt;h1&gt;
  
  
  The CLOUD Act doesn't care which EU region you picked
&lt;/h1&gt;

&lt;p&gt;Here's an uncomfortable fact for anyone running IT at a law firm or accountancy practice: choosing the EU data region in Microsoft 365 or Google Workspace does not change which country's courts can compel disclosure of your data. That's not a config setting you can fix. It's jurisdiction, and it follows the company, not the server rack.&lt;/p&gt;

&lt;p&gt;If you're the person who gets asked "where does our data actually sit, and under which law" by a partner or a client's privacy officer, this one's for you.&lt;/p&gt;

&lt;h2&gt;
  
  
  The problem: location vs jurisdiction
&lt;/h2&gt;

&lt;p&gt;Microsoft Corporation and Google LLC are US entities. Doesn't matter if the disk is in Dublin or Frankfurt. Under the CLOUD Act (enacted 23 March 2018), a provider under US jurisdiction must disclose data in its "possession, custody, or control" when served valid US legal process, a warrant, subpoena, or court order, "regardless of whether such communication, record, or other information is located within or outside of the United States" (18 U.S.C. 2713).&lt;/p&gt;

&lt;p&gt;So the EU data region setting controls data residency. It does nothing for jurisdiction. Two separate axes, often confused as one.&lt;/p&gt;

&lt;p&gt;This matters more for legal and accounting workloads than most SaaS use cases because the data is frequently privileged: case strategy, undisclosed tax structuring, pre-signing M&amp;amp;A terms. A disclosure request doesn't even need to target your firm; it can be about a client or counterparty whose documents you're merely holding.&lt;/p&gt;

&lt;h2&gt;
  
  
  The underlying legal basis is also shaky
&lt;/h2&gt;

&lt;p&gt;Separate from the CLOUD Act, there's a GDPR transfer problem sitting underneath. Chapter V requires an adequacy decision or safeguards (like SCCs) for data leaving the EEA, and Article 48 explicitly states a foreign court order alone doesn't make a transfer lawful.&lt;/p&gt;

&lt;p&gt;The current transfer mechanism, the EU-US Data Privacy Framework (adopted 10 July 2023), is the third attempt after two predecessors got struck down by the CJEU:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Safe Harbor, struck down 2015 (Schrems I)&lt;/li&gt;
&lt;li&gt;Privacy Shield, struck down July 2020 (Schrems II), specifically because FISA Section 702 left EU citizens with no effective remedy&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;And the current framework is under challenge right now: dismissed by the EU General Court on 3 September 2025, appealed on 31 October 2025, pending before the CJEU as of writing.&lt;/p&gt;

&lt;p&gt;None of this makes today's setup illegal. But the pattern (replace, strike down, replace, challenge) is worth engineering around, not reacting to after a court decision lands on your desk.&lt;/p&gt;

&lt;h2&gt;
  
  
  Option A: stay put
&lt;/h2&gt;

&lt;p&gt;Valid choice for a lot of shops. Strengths:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Mature integrations with practice management, e-signature, billing tools&lt;/li&gt;
&lt;li&gt;Staff already trained, zero ramp-up&lt;/li&gt;
&lt;li&gt;EU data region + signed DPA available&lt;/li&gt;
&lt;li&gt;Security engineering budget a smaller vendor can't match&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Reasonable if your client files rarely touch US persons, US litigation, or cross-border tax structuring.&lt;/p&gt;

&lt;h2&gt;
  
  
  Option B: move to a provider outside US jurisdiction
&lt;/h2&gt;

&lt;p&gt;If the provider has no American parent and runs its own EU infrastructure, there's no US entity for a court order to reach. The CLOUD Act has nothing to attach to. The GDPR Chapter V question disappears too, since there's no third-country transfer to evaluate in the first place.&lt;/p&gt;

&lt;p&gt;Trade-offs to budget for:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Smaller product catalogue; check your add-in and integration dependencies before committing&lt;/li&gt;
&lt;li&gt;Migration project: mailboxes, calendars, shared drives, permissions, all need to move without losing version history or breaking client-facing addresses&lt;/li&gt;
&lt;li&gt;Fewer vendors in the market, so due diligence matters more. Get clear answers on who holds encryption keys and which law governs the provider, not marketing copy&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Quick comparison
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Factor                 | MS365/Workspace (EU region) | European provider
------------------------|------------------------------|--------------------
CLOUD Act reach         | Yes, provider itself          | No US entity in chain
GDPR transfer question  | Relies on DPF, under appeal    | No transfer to assess
Migration effort         | None                          | One-time project
Support model            | Ticket-based, tiered           | Direct contact
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Decision framework
&lt;/h2&gt;

&lt;p&gt;Run through this before your next partner meeting:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Low exposure&lt;/strong&gt;: rarely handle US persons, US litigation, or cross-border tax work, and comfortable with DPF pending appeal? Staying put with EU region + DPA is defensible. Revisit when the CJEU rules.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;High exposure&lt;/strong&gt;: regularly hold privileged material for cross-border M&amp;amp;A, sanctions-adjacent sectors, HNWIs, or PEPs? The case for removing the jurisdiction question entirely gets stronger regardless of how the appeal goes.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Already asked&lt;/strong&gt;: has a client, insurer, or regulator asked in writing where your data sits and under which law applies? That's your signal the question stopped being theoretical.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;No universal right answer here. But "we picked the EU region" is not the same statement as "no foreign court can compel disclosure," and it's worth knowing which one you're actually telling your clients.&lt;/p&gt;

&lt;p&gt;Full legal detail and the complete comparison table: &lt;a href="https://binadit.com/blog/cloud-act-law-firms-stay-or-move-decision" rel="noopener noreferrer"&gt;original article&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://binadit.com/blog/cloud-act-law-firms-stay-or-move-decision" rel="noopener noreferrer"&gt;binadit.com&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

</description>
      <category>cloud</category>
      <category>microsoft</category>
      <category>privacy</category>
      <category>security</category>
    </item>
    <item>
      <title>How a SaaS platform cut infrastructure costs 46% by moving off Kubernetes</title>
      <dc:creator>binadit</dc:creator>
      <pubDate>Fri, 06 Nov 2026 08:20:00 +0000</pubDate>
      <link>https://dev.to/binadit/how-a-saas-platform-cut-infrastructure-costs-46-by-moving-off-kubernetes-3df4</link>
      <guid>https://dev.to/binadit/how-a-saas-platform-cut-infrastructure-costs-46-by-moving-off-kubernetes-3df4</guid>
      <description>&lt;h2&gt;
  
  
  When Kubernetes becomes the problem it was supposed to solve
&lt;/h2&gt;

&lt;p&gt;Here's a question worth asking before you adopt Kubernetes: do you actually have the problem it solves? A six-person SaaS team didn't, and it took them two years and EUR 14,200 a month to notice.&lt;/p&gt;

&lt;p&gt;This is a breakdown of how we helped them move off Kubernetes entirely and cut their infrastructure bill by 46%, with faster deploys and better uptime as a side effect.&lt;/p&gt;

&lt;h2&gt;
  
  
  The setup
&lt;/h2&gt;

&lt;p&gt;The product: a B2B analytics platform built on Laravel, Vue, PostgreSQL (primary plus one replica), Redis, and a few background workers handling webhooks and scheduled reports.&lt;/p&gt;

&lt;p&gt;The infrastructure: three managed Kubernetes clusters (production, staging, and an "experiments" cluster nobody could justify), each with its own node pools, ingress controller, cert-manager instance, and full Prometheus/Grafana stack.&lt;/p&gt;

&lt;p&gt;The team had adopted Kubernetes two years earlier on a contractor's recommendation, during a growth phase. The contractor was long gone. Nobody had revisited whether the setup still made sense.&lt;/p&gt;

&lt;p&gt;Symptoms:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Deploys took 8-12 minutes and often failed at the Helm chart stage with vague errors.&lt;/li&gt;
&lt;li&gt;Only 2 of 6 engineers could confidently debug the manifests under pressure.&lt;/li&gt;
&lt;li&gt;Autoscaling never behaved as expected, so the team hardcoded static replica counts, which quietly defeated the purpose of having autoscaling at all.&lt;/li&gt;
&lt;li&gt;Nobody knew the recovery plan if the Kubernetes control plane went down.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;No outages yet, but the team was burning roughly 15 hours a week just keeping the clusters alive. That's a real cost, even if it never shows up on an invoice.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the audit found
&lt;/h2&gt;

&lt;p&gt;Two weeks of pure observation before touching anything: resource requests vs. actual usage, node utilization across a full business cycle, and a full pass through the cloud bill.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Average CPU utilization across production nodes: &lt;strong&gt;11%&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Average memory utilization: &lt;strong&gt;23%&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Peak traffic over 90 days never came close to what a single well-sized server could handle&lt;/li&gt;
&lt;li&gt;42 pods running across three clusters for what mapped out to exactly &lt;strong&gt;6 logical services&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Node pools sized for an 8x traffic spike projected 18 months earlier that never materialized&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Also found: three separate managed load balancers, a duplicated logging pipeline shipping the same data to two destinations (leftover from an incomplete migration), and a staging cluster running 24/7 at near-production size for about six hours of actual weekly use.&lt;/p&gt;

&lt;p&gt;None of this was negligence. It's what happens when infrastructure gets provisioned for a future that doesn't arrive, and nobody goes back to check.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why we moved off Kubernetes instead of fixing it
&lt;/h2&gt;

&lt;p&gt;Kubernetes earns its complexity when you need multi-team deployment isolation, workloads that scale from zero to hundreds of pods, or shared infra across many independently-owned services. This team had six services, six engineers, and two deploys a week. None of that applied.&lt;/p&gt;

&lt;p&gt;We proposed a simpler stack: a small fleet of dedicated servers behind a load balancer, running the app via Docker Compose and systemd, with PostgreSQL and Redis managed directly instead of as in-cluster StatefulSets.&lt;/p&gt;

&lt;p&gt;The reasoning:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Operational match.&lt;/strong&gt; A team of six with two Kubernetes-literate engineers was running infra built for a team of thirty. Simplifying meant everyone could debug production, not just two people.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cost shape.&lt;/strong&gt; Control planes, redundant node pools, and managed add-ons carry fixed overhead no matter the load. At 11% utilization, that overhead buys nothing.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Reasoning about failure.&lt;/strong&gt; Every engineer already understood "systemd restarts a crashed process." Nobody wanted to debug a CrashLoopBackOff caused by a readiness probe fighting an HPA.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;To be clear: this isn't a "Kubernetes bad" take. If this team ran 20+ independently deployed services or needed to scale a component to hundreds of replicas during traffic spikes, we'd have kept Kubernetes and just fixed the sizing. The decision follows the workload, not a philosophy.&lt;/p&gt;

&lt;h2&gt;
  
  
  The migration, phase by phase
&lt;/h2&gt;

&lt;p&gt;Zero-downtime migration over six weeks, not a cutover weekend.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Phase 1: right-size based on observed peak, not theoretical peak&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;2x app servers (8 vCPU, 16 GB RAM) behind HAProxy, running Docker Compose&lt;/li&gt;
&lt;li&gt;1x PostgreSQL primary (8 vCPU, 32 GB RAM) with a streaming replica&lt;/li&gt;
&lt;li&gt;1x Redis instance with persistence enabled&lt;/li&gt;
&lt;li&gt;2x worker nodes, scaled by systemd timers and a basic job-count check instead of an HPA&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That's roughly a third of the node count the Kubernetes setup needed, because there's no pod scheduling overhead, no duplicated system pods per node, and no headroom reserved for a scaling event that never happened.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Phase 2: deployment pipeline&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Replaced the Helm-based CI/CD with build-and-rsync:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;deploy&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;stage&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;deploy&lt;/span&gt;
  &lt;span class="na"&gt;script&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
    &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="s"&gt;docker build -t app:$CI_COMMIT_SHA .&lt;/span&gt;
    &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="s"&gt;docker save app:$CI_COMMIT_SHA | gzip | ssh deploy@app-01 'docker load'&lt;/span&gt;
    &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="s"&gt;ssh deploy@app-01 'docker compose up -d --no-deps app'&lt;/span&gt;
    &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="s"&gt;./scripts/healthcheck.sh app-01&lt;/span&gt;
    &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="s"&gt;docker save app:$CI_COMMIT_SHA | gzip | ssh deploy@app-02 'docker load'&lt;/span&gt;
    &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="s"&gt;ssh deploy@app-02 'docker compose up -d --no-deps app'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;HAProxy pulls each node out of rotation during its deploy window, so the API stays up throughout:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight conf"&gt;&lt;code&gt;&lt;span class="n"&gt;backend&lt;/span&gt; &lt;span class="n"&gt;app_servers&lt;/span&gt;
    &lt;span class="n"&gt;balance&lt;/span&gt; &lt;span class="n"&gt;roundrobin&lt;/span&gt;
    &lt;span class="n"&gt;option&lt;/span&gt; &lt;span class="n"&gt;httpchk&lt;/span&gt; &lt;span class="n"&gt;GET&lt;/span&gt; /&lt;span class="n"&gt;health&lt;/span&gt;
    &lt;span class="n"&gt;server&lt;/span&gt; &lt;span class="n"&gt;app&lt;/span&gt;-&lt;span class="m"&gt;01&lt;/span&gt; &lt;span class="m"&gt;10&lt;/span&gt;.&lt;span class="m"&gt;0&lt;/span&gt;.&lt;span class="m"&gt;1&lt;/span&gt;.&lt;span class="m"&gt;10&lt;/span&gt;:&lt;span class="m"&gt;8080&lt;/span&gt; &lt;span class="n"&gt;check&lt;/span&gt; &lt;span class="n"&gt;inter&lt;/span&gt; &lt;span class="m"&gt;2&lt;/span&gt;&lt;span class="n"&gt;s&lt;/span&gt; &lt;span class="n"&gt;fall&lt;/span&gt; &lt;span class="m"&gt;2&lt;/span&gt; &lt;span class="n"&gt;rise&lt;/span&gt; &lt;span class="m"&gt;3&lt;/span&gt;
    &lt;span class="n"&gt;server&lt;/span&gt; &lt;span class="n"&gt;app&lt;/span&gt;-&lt;span class="m"&gt;02&lt;/span&gt; &lt;span class="m"&gt;10&lt;/span&gt;.&lt;span class="m"&gt;0&lt;/span&gt;.&lt;span class="m"&gt;1&lt;/span&gt;.&lt;span class="m"&gt;11&lt;/span&gt;:&lt;span class="m"&gt;8080&lt;/span&gt; &lt;span class="n"&gt;check&lt;/span&gt; &lt;span class="n"&gt;inter&lt;/span&gt; &lt;span class="m"&gt;2&lt;/span&gt;&lt;span class="n"&gt;s&lt;/span&gt; &lt;span class="n"&gt;fall&lt;/span&gt; &lt;span class="m"&gt;2&lt;/span&gt; &lt;span class="n"&gt;rise&lt;/span&gt; &lt;span class="m"&gt;3&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Phase 3: database and cache&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;PostgreSQL moved to dedicated hardware with tuned parameters (shared_buffers at 25% of RAM) and proper connection pooling via PgBouncer, which had been missing entirely in the cluster setup. Redis moved to a standalone instance with AOF persistence; previously it ran as an ephemeral pod that lost all queue state on every restart. That data loss bug had been open for four months before the audit.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Phase 4: monitoring and runbooks&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Consolidated three separate Prometheus/Grafana stacks into one, and wrote runbooks for the five most common failure scenarios: database failover, worker backlog, disk pressure, certificate renewal, and application rollback.&lt;/p&gt;

&lt;h2&gt;
  
  
  Results, six months later
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Metric&lt;/th&gt;
&lt;th&gt;Before (K8s)&lt;/th&gt;
&lt;th&gt;After (dedicated servers)&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Monthly infra cost&lt;/td&gt;
&lt;td&gt;EUR 14,200&lt;/td&gt;
&lt;td&gt;EUR 7,650&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Deploy time&lt;/td&gt;
&lt;td&gt;8-12 min&lt;/td&gt;
&lt;td&gt;90 sec&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;p95 API response time&lt;/td&gt;
&lt;td&gt;410ms&lt;/td&gt;
&lt;td&gt;190ms&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Engineers who can debug production&lt;/td&gt;
&lt;td&gt;2 of 6&lt;/td&gt;
&lt;td&gt;6 of 6&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Weekly ops time (team-wide)&lt;/td&gt;
&lt;td&gt;~15 hours&lt;/td&gt;
&lt;td&gt;~4 hours&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Uptime (trailing 6 months)&lt;/td&gt;
&lt;td&gt;99.91%&lt;/td&gt;
&lt;td&gt;99.97%&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Takeaway
&lt;/h2&gt;

&lt;p&gt;Kubernetes isn't the villain here. The villain is infrastructure decisions that outlive the assumptions that justified them. If your cluster utilization is sitting in the teens and only two people on the team can debug a failed deploy, it might be worth asking whether you're solving a problem you actually have.&lt;/p&gt;

&lt;p&gt;Full writeup with more context: &lt;a href="https://binadit.com/blog/cloud-cost-optimization-services-kubernetes-migration-case-study" rel="noopener noreferrer"&gt;binadit.com&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://binadit.com/blog/cloud-cost-optimization-services-kubernetes-migration-case-study" rel="noopener noreferrer"&gt;binadit.com&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>How to debug memory leaks in production without a zero downtime migration going sideways</title>
      <dc:creator>binadit</dc:creator>
      <pubDate>Wed, 04 Nov 2026 08:34:30 +0000</pubDate>
      <link>https://dev.to/binadit/how-to-debug-memory-leaks-in-production-without-a-zero-downtime-migration-going-sideways-1n9d</link>
      <guid>https://dev.to/binadit/how-to-debug-memory-leaks-in-production-without-a-zero-downtime-migration-going-sideways-1n9d</guid>
      <description>&lt;h1&gt;
  
  
  Your memory leak fix can cause the outage your leak never did
&lt;/h1&gt;

&lt;p&gt;Here's a scenario that plays out more often than anyone likes to admit: a service that ran fine at 400MB for months starts getting OOM-killed every day and a half, nobody can point to the deploy that caused it, and the on-call engineer's first instinct is to just restart things and ship a patch fast. That instinct is exactly how a slow leak turns into a self-inflicted outage. This is a process for finding the leak, proving the fix, and rolling it out without dropping a single request.&lt;/p&gt;

&lt;p&gt;Full reference: &lt;a href="https://binadit.com/blog/debugging-memory-leaks-production-zero-downtime-migration" rel="noopener noreferrer"&gt;debugging memory leaks in production without breaking your zero downtime migration&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What you need before starting
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Shell access to the host or container, with permission to attach a profiler to a live process&lt;/li&gt;
&lt;li&gt;A load balancer or reverse proxy in front of the service (Nginx, HAProxy, cloud LB); without this, zero downtime isn't really on the table&lt;/li&gt;
&lt;li&gt;Memory, CPU, and latency metrics scraped at 30 second intervals or tighter. No metrics, no trend, no debugging. Set up node_exporter or equivalent first.&lt;/li&gt;
&lt;li&gt;The ability to spin up a second instance for canary testing&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Examples below use Node.js and systemd, but the process transfers directly to Ruby, Python, Java, or Go. Only the tooling changes.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 1: Make sure it's actually a leak
&lt;/h2&gt;

&lt;p&gt;Caches warming up look like leaks for the first hour. A real leak climbs indefinitely and correlates with uptime, not traffic volume.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;watch &lt;span class="nt"&gt;-n&lt;/span&gt; 5 &lt;span class="s1"&gt;'ps -o pid,rss,etime,cmd -p 1234'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If RSS climbs linearly regardless of traffic and only drops on restart, that's a leak. If it climbs with traffic and then flattens, that's cache sizing, a different problem entirely.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 2: Pull evidence before you touch the process
&lt;/h2&gt;

&lt;p&gt;Restarting first is the number one mistake here. You lose the exact evidence you need to diagnose anything.&lt;/p&gt;

&lt;p&gt;Node.js, heap snapshot without stopping the process:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;kill&lt;/span&gt; &lt;span class="nt"&gt;-USR2&lt;/span&gt; 1234   &lt;span class="c"&gt;# if a SIGUSR2 handler is wired up to write snapshots&lt;/span&gt;
&lt;span class="c"&gt;# or with --inspect already running:&lt;/span&gt;
ssh &lt;span class="nt"&gt;-L&lt;/span&gt; 9229:127.0.0.1:9229 user@server
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Java:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;jmap &lt;span class="nt"&gt;-dump&lt;/span&gt;:live,format&lt;span class="o"&gt;=&lt;/span&gt;b,file&lt;span class="o"&gt;=&lt;/span&gt;heap.bin 1234
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Python, no process interruption:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;py-spy dump &lt;span class="nt"&gt;--pid&lt;/span&gt; 1234
py-spy record &lt;span class="nt"&gt;-o&lt;/span&gt; profile.svg &lt;span class="nt"&gt;--pid&lt;/span&gt; 1234 &lt;span class="nt"&gt;--duration&lt;/span&gt; 60
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Take two snapshots, 30 to 60 minutes apart, under normal load. The diff is the actual signal. The absolute numbers aren't.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 3: Read the diff
&lt;/h2&gt;

&lt;p&gt;Load both snapshots into Chrome DevTools (Memory tab &amp;gt; Load) and use comparison view. Check for object counts that keep growing without a matching drop. Usual suspects:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Event listeners added without a matching &lt;code&gt;removeListener&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Unbounded Maps or caches with no TTL, no max size, often keyed by user or request ID&lt;/li&gt;
&lt;li&gt;Closures holding onto large objects past the life of the request that created them&lt;/li&gt;
&lt;li&gt;Connection pools that grow without a ceiling under retry logic&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For Java, run the dump through Eclipse MAT's Leak Suspects report. For Python:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;tracemalloc&lt;/span&gt;
&lt;span class="n"&gt;tracemalloc&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;start&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;span class="c1"&gt;# ... later ...
&lt;/span&gt;&lt;span class="n"&gt;snapshot1&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;tracemalloc&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;take_snapshot&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;span class="c1"&gt;# ... wait ...
&lt;/span&gt;&lt;span class="n"&gt;snapshot2&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;tracemalloc&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;take_snapshot&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;span class="n"&gt;top_stats&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;snapshot2&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;compare_to&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;snapshot1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;lineno&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;stat&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;top_stats&lt;/span&gt;&lt;span class="p"&gt;[:&lt;/span&gt;&lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;]:&lt;/span&gt;
    &lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;stat&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Step 4: Reproduce it locally, don't just guess
&lt;/h2&gt;

&lt;p&gt;Load test it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;autocannon &lt;span class="nt"&gt;-c&lt;/span&gt; 50 &lt;span class="nt"&gt;-d&lt;/span&gt; 300 http://localhost:3000/your-endpoint
&lt;span class="c"&gt;# in another terminal&lt;/span&gt;
&lt;span class="k"&gt;while &lt;/span&gt;&lt;span class="nb"&gt;true&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="k"&gt;do &lt;/span&gt;ps &lt;span class="nt"&gt;-o&lt;/span&gt; &lt;span class="nv"&gt;rss&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nt"&gt;-p&lt;/span&gt; &lt;span class="si"&gt;$(&lt;/span&gt;pgrep &lt;span class="nt"&gt;-f&lt;/span&gt; server.js&lt;span class="si"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="nb"&gt;sleep &lt;/span&gt;10&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="k"&gt;done&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If local memory climbs the same way production did, you've confirmed it, and you've got a repeatable test to validate the fix.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 5: Patch it, then re-run the exact same test
&lt;/h2&gt;

&lt;p&gt;Add the TTL, remove the listener, cap the pool, whatever the fix is. Memory should plateau within a few minutes of steady load, not keep trending up.&lt;/p&gt;

&lt;p&gt;Working locally proves the code is right. It says nothing about whether the rollout is safe. Don't skip the next part.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 6: Ship it as a zero downtime migration, not a restart
&lt;/h2&gt;

&lt;p&gt;The instinct after finding a leak is to restart everything right now. Resist that. Treat it like any other production change.&lt;/p&gt;

&lt;p&gt;Behind a load balancer with multiple instances:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ansible-playbook &lt;span class="nt"&gt;-i&lt;/span&gt; inventory deploy.yml &lt;span class="nt"&gt;--limit&lt;/span&gt; app-node-1

curl &lt;span class="nt"&gt;-X&lt;/span&gt; POST http://localhost:8080/-/drain   &lt;span class="c"&gt;# app-specific drain endpoint&lt;/span&gt;
&lt;span class="c"&gt;# or for Nginx: mark backend down, reload, then stop the old process&lt;/span&gt;
nginx &lt;span class="nt"&gt;-s&lt;/span&gt; reload
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Single instance behind systemd, use blue-green on the same box:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Start the patched version on a new port&lt;/span&gt;
&lt;span class="nv"&gt;PORT&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;3001 systemctl start app-patched.service

&lt;span class="c"&gt;# Health check before switching traffic&lt;/span&gt;
curl &lt;span class="nt"&gt;-f&lt;/span&gt; http://localhost:3001/health &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"not ready"&lt;/span&gt;

&lt;span class="c"&gt;# Flip the upstream&lt;/span&gt;
&lt;span class="nb"&gt;sed&lt;/span&gt; &lt;span class="nt"&gt;-i&lt;/span&gt; &lt;span class="s1"&gt;'s/3000/3001/'&lt;/span&gt; /etc/nginx/conf.d/upstream.conf
nginx &lt;span class="nt"&gt;-s&lt;/span&gt; reload

&lt;span class="c"&gt;# Only now stop the old process&lt;/span&gt;
systemctl stop app.service
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Order matters: start new, verify healthy, switch traffic, stop old. Do it out of order and your memory leak fix becomes the outage.&lt;/p&gt;

&lt;p&gt;On Kubernetes, same principle via rolling update:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;kubectl &lt;span class="nb"&gt;set &lt;/span&gt;image deployment/app &lt;span class="nv"&gt;app&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;registry/app:patched
kubectl rollout status deployment/app
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Make sure the readiness probe actually checks application health, not just that the port is listening. A pod that accepts connections before it's actually warmed up will drop requests mid-rollout, which defeats the point of doing this carefully.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to know it actually worked
&lt;/h2&gt;

&lt;p&gt;Don't close the ticket right after deploy. Watch it for a full business cycle, ideally 24-48 hours.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;RSS trend&lt;/strong&gt;: should plateau over 48 hours, not just slow its climb&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Restart/OOM count&lt;/strong&gt;: &lt;code&gt;journalctl -u app.service | grep -i "oom"&lt;/code&gt; or &lt;code&gt;kubectl get events --field-selector reason=OOMKilling&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;5xx rate during rollout&lt;/strong&gt;: should stay at baseline; a spike means your drain or readiness logic has a gap&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;GC pause times&lt;/strong&gt; (for GC'd runtimes): a healthier heap usually means shorter, more predictable p95 GC pauses&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A reasonable target: RSS variance over 48 hours should stay within 10-15% of its post-restart baseline.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://binadit.com/blog/debugging-memory-leaks-production-zero-downtime-migration" rel="noopener noreferrer"&gt;binadit.com&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>How to ask your cloud act email provider the right questions, in writing</title>
      <dc:creator>binadit</dc:creator>
      <pubDate>Fri, 23 Oct 2026 07:29:40 +0000</pubDate>
      <link>https://dev.to/binadit/how-to-ask-your-cloud-act-email-provider-the-right-questions-in-writing-2749</link>
      <guid>https://dev.to/binadit/how-to-ask-your-cloud-act-email-provider-the-right-questions-in-writing-2749</guid>
      <description>&lt;h2&gt;
  
  
  Your M365 contract won't save you from the CLOUD Act, but a paper trail might
&lt;/h2&gt;

&lt;p&gt;Here's an uncomfortable fact most engineering teams don't think about until a client or auditor forces the issue: your company's email, calendar, and files probably live under US jurisdiction regardless of which Azure or GCP region you picked in the admin console. Region settings control where bytes sit on disk. They don't control which country's courts can compel the provider to hand them over.&lt;/p&gt;

&lt;p&gt;Most teams never actually test this. They assume it, worry about it in a Slack thread, then move on. The fix is simpler than people expect: write down the right questions, send them to your provider in writing, and keep the answers on file.&lt;/p&gt;

&lt;p&gt;This isn't about catching Microsoft or Google in some conspiracy. Their engineering and security teams are solid. The real issue is jurisdiction, not product quality, and jurisdiction is a documentation problem you can actually solve.&lt;/p&gt;

&lt;h3&gt;
  
  
  Before you send anything
&lt;/h3&gt;

&lt;p&gt;Three things to nail down first:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Find your actual contracting entity.&lt;/strong&gt; If you bought M365 through a reseller or MSP, your questions route through them first, not directly to Microsoft. Figure this out before drafting anything.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Scope the data type precisely.&lt;/strong&gt; Mailbox content, Teams transcripts, OneDrive files, and metadata (sender/recipient lists) can fall under different policies inside the same provider. Don't ask a vague question and expect a precise answer.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Expect legally careful answers, not evasive ones.&lt;/strong&gt; A US provider's legal team will answer using their own policy language. That's normal. Compare it against the actual law, not against what you hoped to hear.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For background on why this matters legally, see the earlier piece on GDPR compliance for email providers. This post assumes you already know roughly what the CLOUD Act is.&lt;/p&gt;

&lt;h3&gt;
  
  
  The questions to send (as a template)
&lt;/h3&gt;

&lt;p&gt;Send these as a numbered RFI to your account manager, with a request to forward to legal/compliance. Written answers only, no calls. A call gives you a vibe; an email gives you evidence.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Subject: Written RFI - Data jurisdiction and disclosure questions

1. Which legal entity is our data processor, and in which country is it incorporated?
2. Does storing our data in an EU region change which country's law enforcement can compel disclosure?
3. Have you ever received a request for our data from a US authority, and could you tell us if you had?
4. Can you guarantee our data will never be disclosed to the US government without our consent or our national authorities' consent?
5. What is the current legal basis for transferring our personal data to the United States?
6. Is that legal basis currently being challenged, and what's the contingency if it's struck down?
7. Can a US court order override our European data processing agreement?
8. Who, specifically, can access our mailbox/file content, and under what process?
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Why these eight, specifically
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Q1 is the whole ballgame.&lt;/strong&gt; The CLOUD Act applies based on where the company is incorporated, not where servers sit. If the answer names Microsoft Corporation or Google LLC as the controlling entity, you already have your answer regardless of what follows.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Q2 kills a common misconception.&lt;/strong&gt; "EU data boundary" and "data residency in Europe" are storage-location features, not sovereignty guarantees. Same company, same keys, same exposure to a US court order. Get this distinction confirmed in writing.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Q3 exposes the gag-order problem.&lt;/strong&gt; Many government data requests come with a legal bar on notifying the customer. A provider that can't promise notification isn't stonewalling you, they're describing the law. Still worth having on paper.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Q4 has already been answered publicly, which makes it a useful litmus test.&lt;/strong&gt; On 10 June 2025, Microsoft France's director of public and legal affairs, Anton Carniaux, testified before a French Senate inquiry. Asked if he could guarantee UGAP-hosted data would never be handed to US authorities without explicit French agreement, he said: "Non, je ne peux pas le garantir," adding it hadn't happened so far. No guarantee, no known incident. If your provider's answer looks similar, that's consistent with the law, not a provider-specific red flag.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Q5 pins down the transfer mechanism.&lt;/strong&gt; Under GDPR, personal data leaving the EEA needs an adequacy decision or safeguards like SCCs. For most US providers today, the answer is the EU-US Data Privacy Framework, adopted 10 July 2023.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Q6 is the real test.&lt;/strong&gt; The DPF is the third attempt at an EU-US transfer deal. Safe Harbor died in 2015. Privacy Shield died in 2020 over inadequate remedies for EU citizens under US surveillance law. The DPF itself is mid-challenge right now: dismissed by the EU General Court on 3 September 2025, appealed on 31 October 2025, pending before the CJEU with no ruling yet. Ask for the concrete fallback plan, not a restatement that the current framework is valid today.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Q7 forces the conflict-of-laws admission.&lt;/strong&gt; GDPR Article 48 says a foreign court order doesn't automatically make a transfer lawful. Ask the provider how they reconcile that with US legal obligations when the two clash. Most will answer carefully here, because there's a real, unresolved conflict.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Q8 is operational.&lt;/strong&gt; Does access require a warrant/subpoena/court order with internal legal review, or is it closer to automatic compliance? This tells you whether anyone would push back on your behalf.&lt;/p&gt;

&lt;h3&gt;
  
  
  What to do with the answers
&lt;/h3&gt;

&lt;p&gt;File all eight, in writing, with your data processing records. When a client or auditor asks "what happens if a US court comes knocking," you now have a documented position instead of a shrug.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://binadit.com/blog/cloud-act-email-provider-questions-in-writing" rel="noopener noreferrer"&gt;Read the full original article on binadit.com&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://binadit.com/blog/cloud-act-email-provider-questions-in-writing" rel="noopener noreferrer"&gt;binadit.com&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

</description>
      <category>azure</category>
      <category>cloud</category>
      <category>privacy</category>
      <category>security</category>
    </item>
    <item>
      <title>Best practices for evaluating European alternatives to AWS, Azure and GCP</title>
      <dc:creator>binadit</dc:creator>
      <pubDate>Wed, 21 Oct 2026 07:19:24 +0000</pubDate>
      <link>https://dev.to/binadit/best-practices-for-evaluating-european-alternatives-to-aws-azure-and-gcp-477d</link>
      <guid>https://dev.to/binadit/best-practices-for-evaluating-european-alternatives-to-aws-azure-and-gcp-477d</guid>
      <description>&lt;h2&gt;
  
  
  Someone asked you to evaluate EU cloud alternatives. Here's how not to waste three sprints on it
&lt;/h2&gt;

&lt;p&gt;Your DPO, a customer, or procurement just asked whether you could run on European infrastructure instead of AWS, Azure or GCP. This isn't about picking a side in the sovereignty debate; it's about giving a straight technical answer. What actually breaks if you move, what's portable, and what needs real validation before anyone signs off.&lt;/p&gt;

&lt;p&gt;This comes from running the same evaluation repeatedly for SaaS teams, agencies and e-commerce platforms going through procurement cycles or security questionnaires. None of it requires ditching Kubernetes, Terraform or your CI/CD setup.&lt;/p&gt;

&lt;h3&gt;
  
  
  Problem 1: "EU region" and "EU jurisdiction" get treated as the same thing
&lt;/h3&gt;

&lt;p&gt;They're not. AWS, Azure and GCP all run EU data center regions, but the parent company is still bound by US law, CLOUD Act included, no matter where the bytes sit. If the actual requirement is jurisdictional separation, flipping a region dropdown on a hyperscaler doesn't solve it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Fix:&lt;/strong&gt; write this distinction into your evaluation criteria before comparing a single vendor. Otherwise you'll spend weeks comparing the wrong thing.&lt;/p&gt;

&lt;h3&gt;
  
  
  Problem 2: you're comparing brands instead of primitives
&lt;/h3&gt;

&lt;p&gt;Most SaaS stacks need the same handful of things: compute, object storage, managed Postgres or MySQL, a load balancer, a CDN. List what you actually use, by capability, not by AWS product name.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# Example: workload inventory before evaluation
compute: 12 vCPU, autoscaling 2-8 nodes
object_storage: S3-compatible, 4TB, lifecycle rules
database: managed PostgreSQL 15, 200GB, daily PITR
cdn: edge caching, EU + UK pop coverage
queue: managed Redis, 2GB, persistence enabled
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This turns a vague "can we replace AWS" into an answerable question: which EU providers offer S3-compatible storage, managed Postgres with PITR, and a comparable autoscaling setup.&lt;/p&gt;

&lt;h3&gt;
  
  
  Problem 3: assuming object storage means a rewrite
&lt;/h3&gt;

&lt;p&gt;It usually doesn't. OVHcloud, Scaleway, Exoscale and Hetzner (via third-party gateways) all expose S3-compatible APIs. If your app talks to S3 through the standard SDK, repointing the endpoint and credentials is often enough.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;aws s3 &lt;span class="nb"&gt;cp &lt;/span&gt;test.txt s3://my-bucket/test.txt &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--endpoint-url&lt;/span&gt; https://s3.de.io.cloud.ovh.net &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--profile&lt;/span&gt; eu-provider
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Run this smoke test before you plan anything bigger.&lt;/p&gt;

&lt;h3&gt;
  
  
  Problem 4: the database layer is where things actually go wrong
&lt;/h3&gt;

&lt;p&gt;Compute and object storage are portable. Managed databases are not, this is where EU providers diverge most: feature parity, replication tooling, backup retention defaults. Before committing to anything, run a full backup/restore cycle on the target provider and measure recovery time for real.&lt;/p&gt;

&lt;h3&gt;
  
  
  Problem 5: latency assumptions based on a data center brochure
&lt;/h3&gt;

&lt;p&gt;Frankfurt or Amsterdam will serve EU traffic fine. If 20% of your users are in the UK, US or APAC, that's a different story. Run synthetic tests from multiple regions with &lt;code&gt;mtr&lt;/code&gt; or a distributed probe service, and look at p50/p95, not averages.&lt;/p&gt;

&lt;h3&gt;
  
  
  Problem 6: CDN "EU" claims that don't match actual routing
&lt;/h3&gt;

&lt;p&gt;Some EU-headquartered CDN resellers still route certain regions through non-EU origin infrastructure. If sovereignty is a real requirement, get a documented PoP list and trace actual request paths yourself:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="nt"&gt;-w&lt;/span&gt; &lt;span class="s2"&gt;"@curl-format.txt"&lt;/span&gt; &lt;span class="nt"&gt;-o&lt;/span&gt; /dev/null &lt;span class="nt"&gt;-s&lt;/span&gt; https://your-cdn-endpoint.com
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Or a plain traceroute from your target markets.&lt;/p&gt;

&lt;h3&gt;
  
  
  Problem 7: certifications that apply to the reseller, not the facility
&lt;/h3&gt;

&lt;p&gt;Ask for the ISO 27001 (and NEN 7510 where relevant) of the physical data center, not the managed service layered on top. A logo on a website isn't a certificate. Request the actual scope statement.&lt;/p&gt;

&lt;h3&gt;
  
  
  Problem 8: pricing only the compute line
&lt;/h3&gt;

&lt;p&gt;European providers often look cheaper per vCPU hour, until you add egress, backup storage, IP allocation and support tiers. Build a like-for-like monthly cost model across at least three providers using your real usage pattern, not a generic instance size.&lt;/p&gt;

&lt;h3&gt;
  
  
  Problem 9: IaC that was never tested against the new provider
&lt;/h3&gt;

&lt;p&gt;If your Terraform targets AWS-specific resources, you usually need a provider swap, not a rewrite, for standard compute and networking. Run &lt;code&gt;terraform plan&lt;/code&gt; against a sandbox account early.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight hcl"&gt;&lt;code&gt;&lt;span class="nx"&gt;provider&lt;/span&gt; &lt;span class="s2"&gt;"openstack"&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nx"&gt;auth_url&lt;/span&gt;    &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;var&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;ovh_auth_url&lt;/span&gt;
  &lt;span class="nx"&gt;domain_name&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"default"&lt;/span&gt;
  &lt;span class="nx"&gt;tenant_name&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;var&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;ovh_project_id&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="nx"&gt;resource&lt;/span&gt; &lt;span class="s2"&gt;"openstack_compute_instance_v2"&lt;/span&gt; &lt;span class="s2"&gt;"app"&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nx"&gt;name&lt;/span&gt;            &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"app-node-1"&lt;/span&gt;
  &lt;span class="nx"&gt;flavor_name&lt;/span&gt;     &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"b2-15"&lt;/span&gt;
  &lt;span class="nx"&gt;image_name&lt;/span&gt;      &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"Ubuntu 22.04"&lt;/span&gt;
  &lt;span class="nx"&gt;security_groups&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"default"&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;This catches unsupported resource types (certain autoscaling policies, specific VPC peering models) before they block you mid-migration.&lt;/p&gt;

&lt;h3&gt;
  
  
  Problem 10: treating the cutover as a single switch
&lt;/h3&gt;

&lt;p&gt;Run both environments in parallel with DNS-weighted traffic splitting. Validate error rates and latency at each traffic percentage. Keep the old environment warm through at least one full peak traffic cycle. This is standard practice for any zero-downtime migration, and it's what keeps a sovereignty decision from turning into an outage.&lt;/p&gt;

&lt;h3&gt;
  
  
  How to actually roll this out
&lt;/h3&gt;

&lt;p&gt;Don't try to do all ten in one sprint.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Phase 1 (1-2 weeks):&lt;/strong&gt; workload inventory and requirement separation. Pure documentation, gives procurement or legal something concrete to work with.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Phase 2 (2-4 weeks):&lt;/strong&gt; sandbox validation against at least two candidate providers. Runs in parallel with production, costs a few hundred euros in test resources, produces real numbers instead of vendor claims.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Phase 3 (4-10 weeks):&lt;/strong&gt; staged migration with IaC parity testing and a reversible cutover. Keep a rollback window of at least one full business cycle before decommissioning anything.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Assign one engineer as technical owner from day one. Splitting this across the team produces benchmarks that don't line up later.&lt;/p&gt;

&lt;p&gt;None of this requires faith. It requires inventory, benchmarking and a staged rollout, the same discipline you'd apply to any infrastructure change.&lt;/p&gt;

&lt;p&gt;Full version with more context here: &lt;a href="https://binadit.com/blog/best-practices-private-cloud-infrastructure-eu-alternatives-aws-azure-gcp" rel="noopener noreferrer"&gt;Best practices for evaluating European alternatives to AWS, Azure and GCP&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://binadit.com/blog/best-practices-private-cloud-infrastructure-eu-alternatives-aws-azure-gcp" rel="noopener noreferrer"&gt;binadit.com&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

</description>
      <category>cloud</category>
      <category>devops</category>
      <category>infrastructure</category>
      <category>security</category>
    </item>
    <item>
      <title>Why cheap hosting becomes expensive, and how managed cloud infrastructure fixes the math</title>
      <dc:creator>binadit</dc:creator>
      <pubDate>Fri, 16 Oct 2026 07:03:43 +0000</pubDate>
      <link>https://dev.to/binadit/why-cheap-hosting-becomes-expensive-and-how-managed-cloud-infrastructure-fixes-the-math-4p2k</link>
      <guid>https://dev.to/binadit/why-cheap-hosting-becomes-expensive-and-how-managed-cloud-infrastructure-fixes-the-math-4p2k</guid>
      <description>&lt;h2&gt;
  
  
  Your €30/month VPS is lying to you about its real cost
&lt;/h2&gt;

&lt;p&gt;Every engineer who has run a Friday-afternoon incident on a budget VPS knows this story. The invoice says €30. The actual bill includes a 20-minute checkout outage, a Slack thread full of panic, and three hours of your time spent figuring out why MySQL is refusing connections. None of that shows up on the hosting receipt. It shows up in your sprint velocity.&lt;/p&gt;

&lt;p&gt;This is the real pattern behind most migrations to managed infrastructure: the sticker price was never the full price. Let's break down why, and what actually fixes it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why cheap hosting is a cost-shifting machine, not a cost-saving one
&lt;/h2&gt;

&lt;p&gt;Budget hosting plans work on oversubscription: sell the same CPU and memory pool to more tenants than could ever use it simultaneously. Fine, until your app actually needs what it was promised.&lt;/p&gt;

&lt;p&gt;Three failure modes show up constantly:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Noisy neighbors.&lt;/strong&gt; Shared I/O and CPU scheduling means someone else's batch job can wreck your p95 latency without you changing a single line of code.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No headroom for peaks.&lt;/strong&gt; Plans are sized for average load. A 3x traffic spike from a launch or a viral post pushes memory past the limit, and the OOM killer starts picking off PHP-FPM workers or your database process.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Zero engineering time baked in.&lt;/strong&gt; Nobody tunes &lt;code&gt;innodb_buffer_pool_size&lt;/code&gt;, rotates logs before disk fills, or watches your TLS cert expiry. That work doesn't vanish, it just gets dumped on whoever's on call, mid-incident instead of before one.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  The math, concretely
&lt;/h3&gt;

&lt;p&gt;A €30/month plan versus a properly sized €200/month managed VPS looks like €2,040/year in savings. Now add two checkout outages a year at 25 minutes each, on a store doing €500/day: roughly €520 in lost sales. Add 4-6 engineering hours to diagnose and recover at a €75/hour loaded cost: another €300-450. The "cheap" plan is already more expensive before you count what that engineer could've shipped instead.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where the cost actually hides
&lt;/h2&gt;

&lt;p&gt;In migrations off budget hosting, the hidden cost clusters in three spots:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Database performance degrading silently until one slow query takes the whole site down.&lt;/li&gt;
&lt;li&gt;No staging environment that resembles production, so customers find bugs before CI does.&lt;/li&gt;
&lt;li&gt;Manual TLS renewal that gets missed once a year and kills the whole domain for hours.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;None of these are exotic problems. They're recurring operational work that a €30/month plan was never designed to cover.&lt;/p&gt;

&lt;h2&gt;
  
  
  The fix: size for reality, automate the boring stuff, isolate the database
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. Size compute to peak, not average
&lt;/h3&gt;

&lt;p&gt;Pull 90 days of CPU/memory metrics. No data? That's a signal on its own. Quick baseline on Linux:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;vmstat 2 10
free &lt;span class="nt"&gt;-m&lt;/span&gt;
mpstat &lt;span class="nt"&gt;-P&lt;/span&gt; ALL 1 5
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Target 60-70% utilization at peak, not 95%. If campaigns spike you 3x, provision for that or put autoscaling in front of it.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Separate the database from the app tier
&lt;/h3&gt;

&lt;p&gt;On budget hosting, MySQL and your web server fight for the same resources. Splitting them onto two modest instances kills most noisy-neighbor issues. Baseline tuning for a dedicated MySQL 8 box with 8GB RAM:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight ini"&gt;&lt;code&gt;&lt;span class="nn"&gt;[mysqld]&lt;/span&gt;
&lt;span class="py"&gt;innodb_buffer_pool_size&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="s"&gt;5G&lt;/span&gt;
&lt;span class="py"&gt;innodb_log_file_size&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="s"&gt;512M&lt;/span&gt;
&lt;span class="py"&gt;max_connections&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="s"&gt;150&lt;/span&gt;
&lt;span class="py"&gt;innodb_flush_log_at_trx_commit&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="s"&gt;1&lt;/span&gt;
&lt;span class="py"&gt;query_cache_type&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="s"&gt;0&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Buffer pool at roughly 60-70% of RAM, leaving room for connections and OS cache. On a 2GB plan this is simply not possible, which is the actual reason your 40ms query takes 900ms on shared hosting.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Automate what fails silently
&lt;/h3&gt;

&lt;p&gt;Cert expiry and disk-filling logs cause most "surprise" outages. Both fixable in under an hour:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# certbot auto-renewal via systemd timer, twice daily&lt;/span&gt;
certbot renew &lt;span class="nt"&gt;--quiet&lt;/span&gt; &lt;span class="nt"&gt;--deploy-hook&lt;/span&gt; &lt;span class="s2"&gt;"systemctl reload nginx"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  4. Build staging that actually resembles production
&lt;/h3&gt;

&lt;p&gt;If staging is a subdirectory with debug mode flipped on, it's not catching production-class bugs. Match PHP version, DB engine version, and resource ratios (smaller is fine, different is not). Skip this and every deploy becomes a gamble.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to know it actually worked
&lt;/h2&gt;

&lt;p&gt;Don't trust "it feels faster." Check numbers before and after:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Metric&lt;/th&gt;
&lt;th&gt;Budget hosting&lt;/th&gt;
&lt;th&gt;Right-sized managed infra&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;P95 response time&lt;/td&gt;
&lt;td&gt;800-1500ms&lt;/td&gt;
&lt;td&gt;150-300ms&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;DB query p95&lt;/td&gt;
&lt;td&gt;300-900ms&lt;/td&gt;
&lt;td&gt;20-60ms&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Unplanned restarts/month&lt;/td&gt;
&lt;td&gt;2-5&lt;/td&gt;
&lt;td&gt;0-1&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Memory headroom at peak&lt;/td&gt;
&lt;td&gt;&amp;lt;10%&lt;/td&gt;
&lt;td&gt;30-40%&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Validation checklist:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;mysqladmin status&lt;/code&gt; to confirm no connection queueing under load&lt;/li&gt;
&lt;li&gt;Load test at 2-3x normal peak with k6, watch 5xx rates and latency trend, not just averages&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;free -m&lt;/code&gt; during peak, zero swap usage, any swap activity means you're still undersized&lt;/li&gt;
&lt;li&gt;Measure TTFB separately from full page load, they diagnose different bottlenecks&lt;/li&gt;
&lt;li&gt;If you have incident history, track MTTR before/after; properly managed infra tends to shift this from hours to minutes because failover and monitoring are built in&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Keeping it fixed
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Review capacity quarterly, not after an incident&lt;/li&gt;
&lt;li&gt;Treat SSL renewal, backups, and patching as code, not a human's memory&lt;/li&gt;
&lt;li&gt;Load test before big traffic events, not after an outage during one&lt;/li&gt;
&lt;li&gt;Isolate the database tier early, it's the first and most common contention point&lt;/li&gt;
&lt;li&gt;Keep staging close enough to production to catch real bugs&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;None of this needs exotic tooling. It needs someone accountable for checking it on a schedule. That's usually the actual gap.&lt;/p&gt;

&lt;p&gt;Full writeup with more detail: &lt;a href="https://binadit.com/blog/why-cheap-hosting-becomes-expensive-managed-cloud-infrastructure" rel="noopener noreferrer"&gt;Why cheap hosting becomes expensive, and how managed cloud infrastructure fixes the math&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://binadit.com/blog/why-cheap-hosting-becomes-expensive-managed-cloud-infrastructure" rel="noopener noreferrer"&gt;binadit.com&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

</description>
      <category>cloud</category>
      <category>devops</category>
      <category>infrastructure</category>
    </item>
    <item>
      <title>A 12-question sovereignty audit every DPO should run</title>
      <dc:creator>binadit</dc:creator>
      <pubDate>Wed, 14 Oct 2026 09:15:10 +0000</pubDate>
      <link>https://dev.to/binadit/a-12-question-sovereignty-audit-every-dpo-should-run-3669</link>
      <guid>https://dev.to/binadit/a-12-question-sovereignty-audit-every-dpo-should-run-3669</guid>
      <description>&lt;h1&gt;
  
  
  Your vendor says 'no US subprocessors.' Here's how to actually check
&lt;/h1&gt;

&lt;p&gt;Your DPO just forwarded you another vendor questionnaire with a checked box next to "no US subprocessors." Before you forward it back with a thumbs up, know this: most of those boxes get checked optimistically, not accurately. If you're the engineer who ends up answering "where does our data actually live" during procurement calls, this list is for you.&lt;/p&gt;

&lt;p&gt;The gap is rarely malicious. It's usually a monitoring tool that defaulted to a US region, a backup target nobody revisited after setup, or a subprocessor that's legally based in the EU but owned by a US parent. Sovereignty audits exist to find exactly that gap.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why yes/no questionnaires fail
&lt;/h2&gt;

&lt;p&gt;A vendor questionnaire asks "do you store data in the EU?" and gets a yes. It doesn't ask who holds the encryption keys, where support engineers sit, or whether the CDN in front of the app routes through a US edge network. Evidence beats assertions every time.&lt;/p&gt;

&lt;h2&gt;
  
  
  The checks that actually matter
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Subprocessor list freshness.&lt;/strong&gt; If a vendor's public subprocessor list hasn't changed in over a year despite shipping new features, it's probably stale, not accurate.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Parent company ownership, not just contracting entity.&lt;/strong&gt; A subprocessor incorporated in Germany can still be a wholly owned US subsidiary, which pulls it under the CLOUD Act regardless of server location. Always ask for the ultimate parent, not the signing entity.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Support and escalation location.&lt;/strong&gt; If a US-based support engineer can remote into production to debug something, that's a data access path your residency clause doesn't cover.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Monitoring and APM defaults.&lt;/strong&gt; Sentry, Datadog, and New Relic all offer EU hosting, but it's opt-in. Primary infra can be EU-only while telemetry leaks through a third-party integration nobody checked.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;CDN and DNS routing.&lt;/strong&gt; A CDN is a subprocessor too. Origin in Frankfurt doesn't mean much if the CDN is a US hyperscaler's edge network. You can verify this yourself:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Check which edge network is actually serving a domain&lt;/span&gt;
dig +short CNAME cdn.example.com

&lt;span class="c"&gt;# Trace the resolved IP's registered location&lt;/span&gt;
whois &lt;span class="si"&gt;$(&lt;/span&gt;dig +short cdn.example.com | &lt;span class="nb"&gt;tail&lt;/span&gt; &lt;span class="nt"&gt;-1&lt;/span&gt;&lt;span class="si"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This won't give you a legal answer, but it'll tell you fast whether the CDN claim matches DNS reality.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Backup and DR region.&lt;/strong&gt; EU-only production paired with a US backup target is common, usually because backup tooling defaulted there during setup and nobody revisited it. Ask explicitly where backups, snapshots, and DR replicas live.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Who holds the encryption keys, and from where.&lt;/strong&gt; Encryption at rest is table stakes. If a US entity or cloud provider holds the keys, EU residency doesn't block a lawful access request.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Legal basis for remaining transfers.&lt;/strong&gt; If zero international transfers isn't achievable, find out if they're relying on SCCs, BCRs, or something else, and whether it's been tested against post-Schrems II expectations.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Documented incident response for law enforcement requests.&lt;/strong&gt; Ask what happens procedurally if a non-EU authority requests data. If there's no written process, there's no real process.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Whether the infra partner's own tooling is sovereign.&lt;/strong&gt; Some vendors sell you an EU-region sovereignty story while their own ticketing or remote access tooling runs on US SaaS.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Failover and migration behavior.&lt;/strong&gt; Sovereignty guarantees are easiest to break during a DR drill or fast migration. Ask the vendor to walk through a specific failover scenario and confirm the DR target still meets the same residency commitments as production.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Direct technical contact.&lt;/strong&gt; Can someone answer these questions in a conversation, or does everything route through a ticket queue with a copy-pasted compliance statement three days later? The former usually means they understand their own subprocessor chain.&lt;/p&gt;

&lt;h2&gt;
  
  
  Get the real subprocessor table, not a summary
&lt;/h2&gt;

&lt;p&gt;Ask for the DPA's actual subprocessor annex. It should look like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Subprocessor      | Purpose              | Entity location    | Parent HQ
EU hosting partner| Infrastructure       | Netherlands        | Netherlands
EU email relay    | Transactional email  | Germany             | Germany
Monitoring vendor | APM / error tracking | EU region (opt-in)  | United States
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That third row fails a strict no-US-subprocessor policy even though the data is technically hosted in the EU. The parent HQ column is the one most vendor tables conveniently leave out.&lt;/p&gt;

&lt;h2&gt;
  
  
  Rolling this out without reopening every contract at once
&lt;/h2&gt;

&lt;p&gt;Most teams have ten to thirty vendors already under contract. Don't try to audit all of them simultaneously.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Tier vendors by how much regulated or personal data they touch&lt;/li&gt;
&lt;li&gt;Run the full check against top-tier vendors first: core infra, email/identity, anything handling payment or health data&lt;/li&gt;
&lt;li&gt;Bake the subprocessor table requirement into procurement for new vendors from day one&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Full details and context: &lt;a href="https://binadit.com/blog/no-us-subprocessor-sovereignty-audit-dpo-checklist" rel="noopener noreferrer"&gt;the original sovereignty audit checklist&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://binadit.com/blog/no-us-subprocessor-sovereignty-audit-dpo-checklist" rel="noopener noreferrer"&gt;binadit.com&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

</description>
      <category>cloud</category>
      <category>privacy</category>
      <category>security</category>
    </item>
    <item>
      <title>How to automate SSL certificate renewal across a fleet of servers</title>
      <dc:creator>binadit</dc:creator>
      <pubDate>Fri, 09 Oct 2026 07:44:08 +0000</pubDate>
      <link>https://dev.to/binadit/how-to-automate-ssl-certificate-renewal-across-a-fleet-of-servers-1k0c</link>
      <guid>https://dev.to/binadit/how-to-automate-ssl-certificate-renewal-across-a-fleet-of-servers-1k0c</guid>
      <description>&lt;h1&gt;
  
  
  Stop babysitting SSL certs: automate renewal across your whole fleet
&lt;/h1&gt;

&lt;p&gt;If someone on your team still has a recurring calendar reminder to check certificate expiry dates, you have a problem worth fixing today. Not next quarter, today. Manual cert tracking across multiple hosts is the kind of low-grade recurring work that quietly eats hours every month and never shows up as a line item until something expires in production at 2am.&lt;/p&gt;

&lt;p&gt;This guide walks through building fleet-wide automated renewal using Let's Encrypt, the ACME protocol, and a central orchestration pattern. It works whether you have 5 boxes or 500, behind a load balancer, as separate app nodes, or spread across regions.&lt;/p&gt;

&lt;h2&gt;
  
  
  Assumptions before you start
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;You control DNS (or can hit a DNS API) for Cloudflare, Route 53, DigitalOcean, etc.&lt;/li&gt;
&lt;li&gt;Linux servers (Ubuntu 22.04/24.04 in examples, distro-agnostic approach)&lt;/li&gt;
&lt;li&gt;SSH access across the fleet, ideally via Ansible or Salt, not manual loops&lt;/li&gt;
&lt;li&gt;TLS termination happens at Nginx or HAProxy, not inside the app itself&lt;/li&gt;
&lt;li&gt;You're fine with cron or systemd timers&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;We'll use certbot since it has the broadest plugin support, though acme.sh or lego work fine with the same architecture if you want something lighter.&lt;/p&gt;

&lt;h2&gt;
  
  
  Pick a validation method that actually scales
&lt;/h2&gt;

&lt;p&gt;HTTP-01 validation needs port 80 reachable on the exact host being validated. That's fine for one server. It falls apart across a fleet behind a load balancer, where traffic for a domain doesn't predictably land on the same box twice.&lt;/p&gt;

&lt;p&gt;DNS-01 is the better default. No inbound traffic required, supports wildcards, and lets you centralize issuance on one host even if the cert gets distributed everywhere else.&lt;/p&gt;

&lt;p&gt;Cloudflare example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;apt &lt;span class="nb"&gt;install &lt;/span&gt;certbot python3-certbot-dns-cloudflare &lt;span class="nt"&gt;-y&lt;/span&gt;

&lt;span class="nb"&gt;cat&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; /etc/letsencrypt/cloudflare.ini &lt;span class="o"&gt;&amp;lt;&amp;lt;&lt;/span&gt; &lt;span class="no"&gt;EOF&lt;/span&gt;&lt;span class="sh"&gt;
dns_cloudflare_api_token = YOUR_TOKEN
&lt;/span&gt;&lt;span class="no"&gt;EOF

&lt;/span&gt;&lt;span class="nb"&gt;chmod &lt;/span&gt;600 /etc/letsencrypt/cloudflare.ini
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Centralize issuance, distribute the result
&lt;/h2&gt;

&lt;p&gt;Don't run certbot independently on every server. That gives you inconsistent cert state across the fleet and more surfaces that can silently fail. Issue once, push everywhere.&lt;/p&gt;

&lt;p&gt;Use a deploy hook to push the renewed cert out via your config management tool:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;cp&lt;/span&gt; /etc/letsencrypt/live/example.com/fullchain.pem /etc/haproxy/certs/example.com.pem
systemctl reload haproxy
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Keep that logic in one deploy hook script, not scattered across playbooks. One script, one source of truth for what happens post-renewal.&lt;/p&gt;

&lt;h2&gt;
  
  
  Don't forget the reload
&lt;/h2&gt;

&lt;p&gt;Copying a new cert file does nothing if the service is still holding the old one in memory. Every distribution step needs a paired reload handler, Nginx or HAProxy, whichever terminates TLS.&lt;/p&gt;

&lt;h2&gt;
  
  
  Alert on failure, not just on success
&lt;/h2&gt;

&lt;p&gt;A cron job that fails silently for a month isn't automation, it's a delayed incident waiting to happen. Wrap the renewal and check the exit code:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;#!/bin/bash&lt;/span&gt;
&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="o"&gt;!&lt;/span&gt; certbot renew &lt;span class="nt"&gt;--quiet&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="k"&gt;then
  &lt;/span&gt;curl &lt;span class="nt"&gt;-X&lt;/span&gt; POST https://hooks.slack.com/services/YOUR/WEBHOOK/URL &lt;span class="se"&gt;\&lt;/span&gt;
    &lt;span class="nt"&gt;-d&lt;/span&gt; &lt;span class="s1"&gt;'{"text":"Certbot renewal failed on '&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="si"&gt;$(&lt;/span&gt;&lt;span class="nb"&gt;hostname&lt;/span&gt;&lt;span class="si"&gt;)&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s1"&gt;'"}'&lt;/span&gt;
&lt;span class="k"&gt;fi&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Swap the webhook for whatever your team already uses, PagerDuty, Opsgenie, Slack. The point is a human sees the failure within a day, not when the cert is about to expire.&lt;/p&gt;

&lt;h2&gt;
  
  
  Verify it actually works
&lt;/h2&gt;

&lt;p&gt;Don't trust the cron job exists and assume it's fine. Check end to end.&lt;/p&gt;

&lt;p&gt;Dry run:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;certbot renew &lt;span class="nt"&gt;--dry-run&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Check expiry across the fleet:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="k"&gt;for &lt;/span&gt;host &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="si"&gt;$(&lt;/span&gt;&lt;span class="nb"&gt;cat &lt;/span&gt;fleet_hosts.txt&lt;span class="si"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="k"&gt;do
  &lt;/span&gt;&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="nt"&gt;-n&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="nv"&gt;$host&lt;/span&gt;&lt;span class="s2"&gt;: "&lt;/span&gt;
  &lt;span class="nb"&gt;echo&lt;/span&gt; | openssl s_client &lt;span class="nt"&gt;-connect&lt;/span&gt; &lt;span class="nv"&gt;$host&lt;/span&gt;:443 &lt;span class="nt"&gt;-servername&lt;/span&gt; &lt;span class="nv"&gt;$host&lt;/span&gt; 2&amp;gt;/dev/null &lt;span class="se"&gt;\&lt;/span&gt;
    | openssl x509 &lt;span class="nt"&gt;-noout&lt;/span&gt; &lt;span class="nt"&gt;-enddate&lt;/span&gt;
&lt;span class="k"&gt;done&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Better yet, wire cert expiry into your existing monitoring. Prometheus blackbox exporter, Uptime Kuma, Zabbix all support it natively. Alert when &lt;code&gt;probe_ssl_earliest_cert_expiry&lt;/code&gt; drops below 14 days, this is your independent confirmation layer outside certbot's own logs.&lt;/p&gt;

&lt;p&gt;And confirm distribution reached every node, not just the one that ran certbot:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ansible web_fleet &lt;span class="nt"&gt;-m&lt;/span&gt; shell &lt;span class="nt"&gt;-a&lt;/span&gt; &lt;span class="s2"&gt;"openssl x509 -in /etc/ssl/certs/example.com.pem -noout -enddate"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A mismatched expiry date across hosts means distribution failed somewhere, which is a more common failure mode than renewal itself breaking.&lt;/p&gt;

&lt;h2&gt;
  
  
  Pitfalls worth avoiding
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Hardcoding API tokens in playbooks instead of using a secrets manager&lt;/li&gt;
&lt;li&gt;Forgetting the service reload after distribution&lt;/li&gt;
&lt;li&gt;Hitting Let's Encrypt's rate limit (50 certs per registered domain per week), easy to hit if you're doing per-subdomain certs instead of a wildcard&lt;/li&gt;
&lt;li&gt;Running certbot independently per server instead of centralizing&lt;/li&gt;
&lt;li&gt;Shipping automation with zero failure alerting&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Where this goes next
&lt;/h2&gt;

&lt;p&gt;The same pattern, central issuance plus fleet-wide distribution via config management, extends naturally to SSH key rotation, firewall rule pushes, and post-migration config redeploys. If you're running this at scale, folding it into a GitOps pipeline means one less automation system to monitor separately from your app deployments.&lt;/p&gt;

&lt;p&gt;Full original writeup with more detail: &lt;a href="https://binadit.com/blog/automate-ssl-certificate-renewal-cloud-cost-optimization-services" rel="noopener noreferrer"&gt;binadit.com&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://binadit.com/blog/automate-ssl-certificate-renewal-cloud-cost-optimization-services" rel="noopener noreferrer"&gt;binadit.com&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

</description>
      <category>sslautomation</category>
      <category>letsencrypt</category>
      <category>devops</category>
      <category>serverfleetmanagement</category>
    </item>
  </channel>
</rss>
