<?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: GDS K S</title>
    <description>The latest articles on DEV Community by GDS K S (@thegdsks).</description>
    <link>https://dev.to/thegdsks</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%2F3592860%2F7dec468f-4f91-4b1d-9d24-99091e204707.jpg</url>
      <title>DEV Community: GDS K S</title>
      <link>https://dev.to/thegdsks</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/thegdsks"/>
    <language>en</language>
    <item>
      <title>My nightly backup job had been green for months. I never restored it once.</title>
      <dc:creator>GDS K S</dc:creator>
      <pubDate>Tue, 01 Dec 2026 00:14:13 +0000</pubDate>
      <link>https://dev.to/thegdsks/my-nightly-backup-job-had-been-green-for-months-i-never-restored-it-once-3mbg</link>
      <guid>https://dev.to/thegdsks/my-nightly-backup-job-had-been-green-for-months-i-never-restored-it-once-3mbg</guid>
      <description>&lt;h1&gt;
  
  
  My nightly backup job had been green for months. I never restored it once.
&lt;/h1&gt;

&lt;p&gt;Last week I looked at a cron job of mine that had printed "backup ok" every night for months, and I asked myself a plain question: when did I last load one of those files into a database? I could not remember a date. A green job tells you a file was written. It does not tell you the file works.&lt;/p&gt;

&lt;p&gt;I built a small test and ran it end to end. I created a Postgres database, backed it up on a schedule, changed the live data afterwards, restored the backup into a separate database, and compared row counts. I used Levelrail, the self-hosted deploy platform I work on, built from the v1.0.1 release branch (commit &lt;code&gt;d510e8488&lt;/code&gt;). Everything below ran on my Mac with Docker, and I mark the parts I only read in the docs.&lt;/p&gt;

&lt;h2&gt;
  
  
  TL;DR
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Step&lt;/th&gt;
&lt;th&gt;Command&lt;/th&gt;
&lt;th&gt;What it proves&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Schedule&lt;/td&gt;
&lt;td&gt;&lt;code&gt;backups schedule set&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;A backup runs without you&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Restore as new&lt;/td&gt;
&lt;td&gt;&lt;code&gt;backups restore-as-new&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;The backup loads into a fresh database&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Compare&lt;/td&gt;
&lt;td&gt;&lt;code&gt;databases query&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Counts match the moment of the backup&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Drill&lt;/td&gt;
&lt;td&gt;&lt;code&gt;backups drill run&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Checksum, restore and content check pass&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Copy&lt;/td&gt;
&lt;td&gt;&lt;code&gt;backups destinations copy set&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;A second bucket holds the same object (docs only)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

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

&lt;p&gt;I made a Postgres 16 database with two tables: 500 customers and 2000 orders. Then I recorded three numbers I could check later.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;levelrail-cli databases create --name main --engine postgres --version 16
levelrail-cli databases query main --sql &lt;span class="s2"&gt;"select (select count(*) from customers) as customers, (select count(*) from orders) as orders, (select sum(total_cents) from orders) as total_cents"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;customers  orders  total_cents
500        2000    8805000
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;I pick a sum on top of the counts because two tables with the right row count can still hold the wrong values.&lt;/p&gt;
&lt;h2&gt;
  
  
  Schedule it and take one now
&lt;/h2&gt;

&lt;p&gt;A backup target is the place the files go. Levelrail has a &lt;code&gt;local&lt;/code&gt; type that needs no bucket, which is fine for a first run but lives on the same disk as the database, so it is no protection against losing the machine. I used it first, then switched to an S3-compatible target, which I get to below.&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;levelrail-cli backup-targets create --name nightly --provider &lt;span class="kd"&gt;local&lt;/span&gt; --path nightly
levelrail-cli backups schedule &lt;span class="nb"&gt;set&lt;/span&gt; main --target TARGET_ID --cron &lt;span class="s2"&gt;"0 3 * * *"&lt;/span&gt; --retain 7 --retain-days 30
levelrail-cli backups trigger main --target TARGET_ID
levelrail-cli backups list main
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;The list printed a &lt;code&gt;succeeded&lt;/code&gt; row of about 11.8 KB, finished in the same second it started. Retention combines two limits: keep at most the newest 7 backups, and nothing older than 30 days. A backup goes when either rule would remove it (&lt;code&gt;docs/guides/self-host-postgres-with-backups.md&lt;/code&gt;).&lt;/p&gt;
&lt;h2&gt;
  
  
  Break the live data, then restore the old state
&lt;/h2&gt;

&lt;p&gt;This is the step that makes the test mean something. After the backup, I deleted 500 orders from the live database, the way a bad migration or a wrong &lt;code&gt;DELETE&lt;/code&gt; would.&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;levelrail-cli databases query main --write --confirm main --sql &lt;span class="s2"&gt;"delete from orders where id &amp;gt; 1500"&lt;/span&gt;
levelrail-cli backups restore-as-new main --backup BACKUP_ID --new-name main-restore
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Restoring as new builds a separate database next to the original and never touches it. The new container was up in under a minute. Then I ran the same count query against both.&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;live
customers  orders  total_cents
500        1500    6597750

restored
customers  orders  total_cents
500        2000    8805000
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;The restored database has the numbers from before the delete, to the cent, and the live one has the damage. That is the output I wanted from a backup, and I had never produced it from my cron job.&lt;/p&gt;

&lt;p&gt;An in-place restore also exists. It overwrites the live database and asks you to type the database name, so I would use restore-as-new first and only then decide.&lt;/p&gt;
&lt;h2&gt;
  
  
  What a restore drill adds
&lt;/h2&gt;

&lt;p&gt;A manual rehearsal is good once. A drill is the same idea on a timer. For Postgres, MySQL and MariaDB, Levelrail downloads the stored backup, compares its SHA-256 with the checksum recorded at backup time, replays it into a throwaway container with no network, checks the result, and deletes the container whether it passed or failed (&lt;code&gt;docs/prove-your-backups-work.md&lt;/code&gt;).&lt;/p&gt;

&lt;p&gt;My first drill attempt failed, and the reason is worth knowing:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;start drill of backup "bkh_...": server returned 409: restore drills are not applicable to local targets
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Drills need an object-store target. So I started a throwaway S3-compatible server (SeaweedFS, in a container) and connected it as a custom target. The docs say a storage destination on the same host is refused unless you set &lt;code&gt;APP_NOTIFY_ALLOW_PRIVATE_NETWORKS=true&lt;/code&gt; on the control plane. Despite the name, that one switch also gates storage destinations, so I set it only on my laptop test.&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;levelrail-cli backup-targets create --name s3test --provider custom --region us-east-1 \
  --endpoint S3_ENDPOINT --bucket backups \
  --access-key-id KEY --secret-access-key SECRET
levelrail-cli backups trigger main --target S3_TARGET_ID
levelrail-cli backups drill run --backup BACKUP_ID
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;drill bkd...: passed (stage done, 5513 ms)
  object present and complete: true
  checksum matches:            true
  restored into scratch:       true
  restored content matches:    true
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;After that, &lt;code&gt;levelrail-cli backups health&lt;/code&gt; moved the database from &lt;code&gt;unverified (no restore has been proven to work yet)&lt;/code&gt; to &lt;code&gt;healthy&lt;/code&gt; with a "last verified restore" timestamp. By default every resource with a succeeded backup is drilled once a week, and a failed drill fires a &lt;code&gt;restore_drill_failed&lt;/code&gt; alert rule, which you create under Alerts. I did not wait a week for the automatic run, so that part is from the docs.&lt;/p&gt;
&lt;h2&gt;
  
  
  Off-box copies
&lt;/h2&gt;

&lt;p&gt;One bucket is still one failure domain. Levelrail can copy each finished backup to a second destination, check the copy against the primary's checksum, and alert when the copy falls behind (&lt;code&gt;docs/backup-copies.md&lt;/code&gt;). You turn it on with one command:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;levelrail-cli backups destinations copy &lt;span class="nb"&gt;set&lt;/span&gt; SECOND_TARGET_ID
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;I only ran &lt;code&gt;copy show&lt;/code&gt;, which printed &lt;code&gt;backup copies: off&lt;/code&gt;. I did not test the copy path, so treat that section as documentation, not as my result. Two details from the docs matter. Only backups that finish after you enable it are copied, and restores always read from the primary destination.&lt;/p&gt;
&lt;h2&gt;
  
  
  Three things I would not skip
&lt;/h2&gt;

&lt;p&gt;Back up the master key. Secrets stored by the platform are encrypted with it, and the control plane's own backups do not contain it (&lt;code&gt;docs/control-plane-backup.md&lt;/code&gt;). Keep a copy somewhere that is not the server.&lt;/p&gt;

&lt;p&gt;Back up the control plane too, not just your databases. Its snapshots live on the same disk by default, so read the disaster recovery page for the off-box path.&lt;/p&gt;

&lt;p&gt;Bind mounts are not backed up. Only Docker-managed named volumes are (&lt;code&gt;docs/guides/self-host-postgres-with-backups.md&lt;/code&gt;).&lt;/p&gt;
&lt;h2&gt;
  
  
  How this compares
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Approach&lt;/th&gt;
&lt;th&gt;Proves the file exists&lt;/th&gt;
&lt;th&gt;Proves it loads&lt;/th&gt;
&lt;th&gt;Runs on a schedule by itself&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;pg_dump&lt;/code&gt; in cron&lt;/td&gt;
&lt;td&gt;Only if you add a check&lt;/td&gt;
&lt;td&gt;Only if you write the restore step&lt;/td&gt;
&lt;td&gt;Cron runs the dump, not a restore&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Manual restore rehearsal&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;No, someone has to remember&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Levelrail drill&lt;/td&gt;
&lt;td&gt;Yes (size and checksum)&lt;/td&gt;
&lt;td&gt;Yes (Postgres, MySQL, MariaDB)&lt;/td&gt;
&lt;td&gt;Yes, weekly by default&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The drill is not magic. For engines other than those three it checks the object, not a replay. Object lock and versioning detection depends on the storage provider answering those calls. And my row-count check is a stronger test of my own data than any generic drill, so I would still run it by hand after big schema changes.&lt;/p&gt;
&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;
&lt;h3&gt;
  
  
  How often should I test a restore?
&lt;/h3&gt;

&lt;p&gt;Weekly is the default drill interval in Levelrail and it is a sensible floor. Do a manual restore-as-new after any major version upgrade or schema change.&lt;/p&gt;
&lt;h3&gt;
  
  
  Does restore-as-new touch my live database?
&lt;/h3&gt;

&lt;p&gt;No. It creates a separate database from the backup. I confirmed this above: the live database kept its 1500 orders while the copy showed 2000.&lt;/p&gt;
&lt;h3&gt;
  
  
  Can I use Cloudflare R2 or AWS S3?
&lt;/h3&gt;

&lt;p&gt;The CLI accepts &lt;code&gt;aws&lt;/code&gt;, &lt;code&gt;r2&lt;/code&gt; and &lt;code&gt;custom&lt;/code&gt; providers (&lt;code&gt;docs/backups-and-storage.md&lt;/code&gt;). I ran my test against a local S3-compatible server, not against R2 or S3.&lt;/p&gt;
&lt;h2&gt;
  
  
  Where this leaves me
&lt;/h2&gt;

&lt;p&gt;My cron job now has a replacement that I have actually watched restore a database. The number I keep thinking about is 6597750 against 8805000: the cost of finding out too late.&lt;/p&gt;

&lt;p&gt;If this was useful, star the repo on GitHub: &lt;a href="https://github.com/glincker/levelrail" rel="noopener noreferrer"&gt;glincker/levelrail&lt;/a&gt;.&lt;/p&gt;


&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://assets.dev.to/assets/github-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/glincker" rel="noopener noreferrer"&gt;
        glincker
      &lt;/a&gt; / &lt;a href="https://github.com/glincker/levelrail" rel="noopener noreferrer"&gt;
        levelrail
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      Git push to production on your own servers. One Go binary, about 200 MB idle, with rollbacks, previews, HTTPS, databases and 570+ one-click apps built in. Apache 2.0.
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;&lt;div&gt;
&lt;p&gt;&lt;a href="https://levelrail.com" rel="nofollow noopener noreferrer"&gt;&lt;/a&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2Fglincker%2Flevelrail%2FHEAD%2Fdocs%2Fassets%2Fbrand%2Flevelrail-lockup.svg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2Fglincker%2Flevelrail%2FHEAD%2Fdocs%2Fassets%2Fbrand%2Flevelrail-lockup.svg" alt="Levelrail by GLINR Studios" height="72"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Git push to production on your own servers.&lt;/strong&gt;&lt;br&gt;
A self-hosted deployment platform in one Go binary. The control plane idles at about 200 MB of RAM (&lt;a href="https://github.com/glincker/levelrail/docs/performance.md" rel="noopener noreferrer"&gt;measured&lt;/a&gt;), with 570+ one-click apps, rollbacks, previews, HTTPS and databases built in.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;brew install levelrail&lt;/code&gt; · &lt;a href="https://github.com/glincker/levelrail#install" rel="noopener noreferrer"&gt;&lt;b&gt;Install&lt;/b&gt;&lt;/a&gt; · &lt;a href="https://demo.levelrail.com" rel="nofollow noopener noreferrer"&gt;&lt;b&gt;Try the live demo&lt;/b&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;
  &lt;a href="https://github.com/glincker/levelrail/stargazers" rel="noopener noreferrer"&gt;&lt;img src="https://camo.githubusercontent.com/0c6103f33b9eff937b9ae1fafa7e559ac917143f7854a39fee3e60729d91caf2/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f676c696e636b65722f6c6576656c7261696c3f7374796c653d666c6174266c6f676f3d676974687562" alt="GitHub stars"&gt;&lt;/a&gt;
  &lt;a href="https://github.com/glincker/levelrail/LICENSE" rel="noopener noreferrer"&gt;&lt;img src="https://camo.githubusercontent.com/2b45932619412b1fdf29a269c685212a33a0295a1a6c309fff080929cd894c06/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f676c696e636b65722f6c6576656c7261696c" alt="License: Apache 2.0"&gt;&lt;/a&gt;
  &lt;a href="https://github.com/glincker/levelrail/releases" rel="noopener noreferrer"&gt;&lt;img src="https://camo.githubusercontent.com/fff65d5789f8e04c9012ea0cf26ae2a03c1f3ab6b0e023e338886c2cde7dc184/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f676c696e636b65722f6c6576656c7261696c3f696e636c7564655f70726572656c6561736573266c6162656c3d72656c65617365" alt="Latest release"&gt;&lt;/a&gt;
  &lt;a href="https://formulae.brew.sh/formula/levelrail" rel="nofollow noopener noreferrer"&gt;&lt;img src="https://camo.githubusercontent.com/a445705d6a18921ac111c624604570b193b87419691b8d9783cff4b28b6fc759/68747470733a2f2f696d672e736869656c64732e696f2f686f6d65627265772f762f6c6576656c7261696c3f6c6f676f3d686f6d6562726577266c6162656c3d686f6d6562726577" alt="Homebrew formula"&gt;&lt;/a&gt;
  &lt;a href="https://github.com/glincker/levelrail/actions/workflows/ci.yml" rel="noopener noreferrer"&gt;&lt;img src="https://github.com/glincker/levelrail/actions/workflows/ci.yml/badge.svg" alt="CI status"&gt;&lt;/a&gt;
  &lt;a href="https://demo.levelrail.com" rel="nofollow noopener noreferrer"&gt;&lt;img src="https://camo.githubusercontent.com/e772ec1b7669a78cf28df04cf23ec3ca1da71bfda6dc12d3e5df917690dfce14/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f64656d6f2d64656d6f2e6c6576656c7261696c2e636f6d2d326636666562" alt="Live demo"&gt;&lt;/a&gt;
  &lt;a href="https://www.reddit.com/r/Levelrail/" rel="nofollow noopener noreferrer"&gt;&lt;img src="https://camo.githubusercontent.com/9b73e517d2a40c59a76a700e21ad15897b1115051176ba79c4f32ca06ea24d73/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7265646469742d722532464c6576656c7261696c2d4646343530303f6c6f676f3d726564646974266c6f676f436f6c6f723d7768697465" alt="Levelrail on Reddit"&gt;&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
  &lt;a href="https://levelrail.com?utm_source=github&amp;amp;utm_medium=readme&amp;amp;utm_campaign=nav" rel="nofollow noopener noreferrer"&gt;Website&lt;/a&gt; ·
  &lt;a href="https://docs.levelrail.com?utm_source=github&amp;amp;utm_medium=readme&amp;amp;utm_campaign=nav" rel="nofollow noopener noreferrer"&gt;Docs&lt;/a&gt; ·
  &lt;a href="https://github.com/glincker/levelrail#install" rel="noopener noreferrer"&gt;Install&lt;/a&gt; ·
  &lt;a href="https://github.com/glincker/levelrail#quickstart" rel="noopener noreferrer"&gt;Quickstart&lt;/a&gt; ·
  &lt;a href="https://github.com/glincker/levelrail#what-sets-levelrail-apart" rel="noopener noreferrer"&gt;Why Levelrail&lt;/a&gt; ·
  &lt;a href="https://github.com/glincker/levelrail/docs/faq.md" rel="noopener noreferrer"&gt;FAQ&lt;/a&gt; ·
  &lt;a href="https://github.com/glincker/levelrail/docs/roadmap.md" rel="noopener noreferrer"&gt;Roadmap&lt;/a&gt; ·
  &lt;a href="https://github.com/glincker/levelrail/discussions" rel="noopener noreferrer"&gt;Discussions&lt;/a&gt;
&lt;/p&gt;
English · &lt;a href="https://github.com/glincker/levelrail/docs/i18n/README.zh-Hans.md" rel="noopener noreferrer"&gt;简体中文&lt;/a&gt; · &lt;a href="https://github.com/glincker/levelrail/docs/i18n/README.es.md" rel="noopener noreferrer"&gt;Español&lt;/a&gt; · &lt;a href="https://github.com/glincker/levelrail/docs/i18n/README.pt-BR.md" rel="noopener noreferrer"&gt;Português (BR)&lt;/a&gt; · &lt;a href="https://github.com/glincker/levelrail/docs/i18n/README.de.md" rel="noopener noreferrer"&gt;Deutsch&lt;/a&gt; · &lt;a href="https://github.com/glincker/levelrail/docs/i18n/README.fr.md" rel="noopener noreferrer"&gt;Français&lt;/a&gt; · &lt;a href="https://github.com/glincker/levelrail/docs/i18n/README.ja.md" rel="noopener noreferrer"&gt;日本語&lt;/a&gt; · &lt;a href="https://github.com/glincker/levelrail/docs/i18n/README.ru.md" rel="noopener noreferrer"&gt;Русский&lt;/a&gt;
&lt;a href="https://demo.levelrail.com" rel="nofollow noopener noreferrer"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2Fglincker%2Flevelrail%2FHEAD%2Fdocs%2Fassets%2Fbrand%2Fsocial%2Fhero-2560x1280-light.jpg" alt="Levelrail: a lightweight, self-hosted deployment platform. Try the live demo." width="880"&gt;&lt;/a&gt;
&lt;/div&gt;

&lt;p&gt;Levelrail is an open source, self-hosted PaaS that fits in one Go binary. It is a lighter alternative to Coolify, Dokku, Dokploy, CapRover and Kamal, and it gives you the Heroku, Vercel, Netlify or Railway workflow on servers you own: push to git, get a build, HTTPS and a URL.&lt;/p&gt;

&lt;p&gt;Running your own apps usually means gluing together Docker, a reverse proxy, certificates, CI, backups, a database and…&lt;/p&gt;&lt;/div&gt;


&lt;/div&gt;
&lt;br&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/glincker/levelrail" rel="noopener noreferrer"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;br&gt;
&lt;/div&gt;
&lt;br&gt;


&lt;h2&gt;
  
  
  Sources checked
&lt;/h2&gt;

&lt;p&gt;Levelrail docs read from the v1.0.1 release branch: &lt;code&gt;docs/prove-your-backups-work.md&lt;/code&gt;, &lt;code&gt;docs/guides/self-host-postgres-with-backups.md&lt;/code&gt;, &lt;code&gt;docs/backup-copies.md&lt;/code&gt;, &lt;code&gt;docs/backups-and-storage.md&lt;/code&gt;, &lt;code&gt;docs/control-plane-backup.md&lt;/code&gt;.&lt;/p&gt;

</description>
      <category>postgres</category>
      <category>selfhosted</category>
      <category>devops</category>
      <category>backup</category>
    </item>
    <item>
      <title>I tested Context7 on 6 libraries that changed in 2026</title>
      <dc:creator>GDS K S</dc:creator>
      <pubDate>Tue, 24 Nov 2026 12:36:00 +0000</pubDate>
      <link>https://dev.to/thegdsks/i-tested-context7-on-6-libraries-that-changed-in-2026-52g4</link>
      <guid>https://dev.to/thegdsks/i-tested-context7-on-6-libraries-that-changed-in-2026-52g4</guid>
      <description>&lt;p&gt;Ten runs out of ten, my coding agent wrote a Vitest test that looked right and failed. The test I wanted was twelve lines long. The bug was a default that Vitest 5 changed in September, and the model had no idea.&lt;/p&gt;

&lt;p&gt;Sponsored by Upstash.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://context7.com?utm_source=gagan-deep-singh" rel="noopener noreferrer"&gt;Context7&lt;/a&gt; is an MCP server from Upstash that hands a coding agent up to date, version-specific library docs while it works.&lt;/p&gt;

&lt;p&gt;To measure how often stale training data breaks agent code, I ran Claude Code headless (model alias &lt;code&gt;sonnet&lt;/code&gt;) on six libraries whose APIs changed in 2026, once with plain file tools and once with Context7 added. The code, tasks, checks and all 120 raw runs live in &lt;a href="https://github.com/thegdsks/docs-ab-bench" rel="noopener noreferrer"&gt;thegdsks/docs-ab-bench&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  TL;DR
&lt;/h2&gt;

&lt;p&gt;Told to use Context7, the agent passed 44 of 45 runs on libraries that changed in 2026, against 35 of 45 for the plain agent on the same batches. The catch: with the tool installed and no instruction to use it, the agent barely called it and scored like the plain agent.&lt;/p&gt;

&lt;h2&gt;
  
  
  Vitest 5 changed the clearMocks default, and the agent missed it
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://context7.com?utm_source=gagan-deep-singh" rel="noopener noreferrer"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F4lw91tu1q0jy6oek9nau.png" alt="Vitest 5 result: the baseline agent passed 0 of 10 runs, the agent told to use Context7 passed 5 of 5 in one pass." width="800" height="200"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The task reads like a junior ticket. Create a &lt;code&gt;vi.fn()&lt;/code&gt; handler, call &lt;code&gt;notify(handler)&lt;/code&gt; once in a &lt;code&gt;beforeAll&lt;/code&gt; hook, then assert the handler ran exactly once. Years of Vitest tutorials teach this shape, so the model writes it from memory:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// src/notify.test.js&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;beforeAll&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;expect&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;test&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;vi&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s1"&gt;'vitest'&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;notify&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s1"&gt;'./notify.js'&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;handler&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;vi&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;fn&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="nf"&gt;beforeAll&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nf"&gt;notify&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;handler&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="nf"&gt;test&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'handler is called exactly once'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nf"&gt;expect&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;handler&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;toHaveBeenCalledTimes&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;On Vitest 4.1.12 that passes. On 5.0.3 it fails. Version 5.0.0 made &lt;code&gt;clearMocks: true&lt;/code&gt; the default, so Vitest now clears call history before every test and the assertion never sees the call from &lt;code&gt;beforeAll&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;FAIL  src/notify.test.js &amp;gt; handler is called exactly once
AssertionError: expected "vi.fn()" to be called 1 times, but got 0 times
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The fix is one line of config, if you know the default moved:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// vitest.config.js&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;defineConfig&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s1"&gt;'vitest/config'&lt;/span&gt;

&lt;span class="c1"&gt;// Vitest 5 clears mock history before every test; keep the beforeAll call visible.&lt;/span&gt;
&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="k"&gt;default&lt;/span&gt; &lt;span class="nf"&gt;defineConfig&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;test&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;clearMocks&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Against the repo's fixture (&lt;code&gt;src/notify.js&lt;/code&gt;), the test fails without this config and passes with it.&lt;/p&gt;

&lt;p&gt;The plain agent failed this 10 of 10 times in one pass mode. Given Context7 and this one extra line in the prompt, it passed 5 of 5:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"Before you write code, use the Context7 tools to look up the current documentation for the libraries involved."&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  The harness changes one thing: the MCP config
&lt;/h2&gt;

&lt;p&gt;Both arms get the same task text, system prompt, model and file tools. The baseline arm starts Claude Code with an empty server list and &lt;code&gt;--strict-mcp-config&lt;/code&gt;, so it cannot pick up any docs server from my machine. The Context7 arm gets the remote Context7 server and nothing else.&lt;/p&gt;

&lt;p&gt;Every run starts in a fresh temp folder with the library version pinned. When the agent stops, the subject's own &lt;code&gt;check.sh&lt;/code&gt; runs inside that folder and exits 0 or 1. For Vitest it greps the test file for a mock assertion and a &lt;code&gt;beforeAll&lt;/code&gt;, then reads the JSON report from &lt;code&gt;vitest run&lt;/code&gt;. Nobody judges the code by vibes, me included.&lt;/p&gt;

&lt;p&gt;I ran two modes. One pass mode (&lt;code&gt;oneshot&lt;/code&gt;) gives the agent file tools only and no way to run anything. Agentic mode adds a shell for &lt;code&gt;npm&lt;/code&gt;, &lt;code&gt;npx&lt;/code&gt; and &lt;code&gt;node&lt;/code&gt;, so the agent can run the tests and read the error.&lt;/p&gt;

&lt;p&gt;Each subject also ships a correct and a stale reference solution. A &lt;code&gt;verify&lt;/code&gt; command confirms the untouched fixture fails, the correct answer passes and the stale one fails. If a check could not fail, a pass would mean nothing.&lt;/p&gt;

&lt;h2&gt;
  
  
  Every result, with and without Context7
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Library&lt;/th&gt;
&lt;th&gt;Mode&lt;/th&gt;
&lt;th&gt;Baseline&lt;/th&gt;
&lt;th&gt;Context7, told to use it&lt;/th&gt;
&lt;th&gt;Context7, not told&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Vitest 5&lt;/td&gt;
&lt;td&gt;&lt;code&gt;oneshot&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;0 of 5&lt;/td&gt;
&lt;td&gt;5 of 5&lt;/td&gt;
&lt;td&gt;2 of 5&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Vitest 5&lt;/td&gt;
&lt;td&gt;&lt;code&gt;agentic&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;3 of 5&lt;/td&gt;
&lt;td&gt;5 of 5&lt;/td&gt;
&lt;td&gt;not run&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;SvelteKit 3&lt;/td&gt;
&lt;td&gt;&lt;code&gt;oneshot&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;4 of 5&lt;/td&gt;
&lt;td&gt;5 of 5&lt;/td&gt;
&lt;td&gt;3 of 5&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;SvelteKit 3&lt;/td&gt;
&lt;td&gt;&lt;code&gt;agentic&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;5 of 5&lt;/td&gt;
&lt;td&gt;5 of 5&lt;/td&gt;
&lt;td&gt;not run&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AI SDK 7&lt;/td&gt;
&lt;td&gt;&lt;code&gt;oneshot&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;5 of 5&lt;/td&gt;
&lt;td&gt;5 of 5&lt;/td&gt;
&lt;td&gt;5 of 5&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AI SDK 7&lt;/td&gt;
&lt;td&gt;&lt;code&gt;agentic&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;5 of 5&lt;/td&gt;
&lt;td&gt;5 of 5&lt;/td&gt;
&lt;td&gt;not run&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;React Router 8&lt;/td&gt;
&lt;td&gt;&lt;code&gt;oneshot&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;3 of 5&lt;/td&gt;
&lt;td&gt;5 of 5&lt;/td&gt;
&lt;td&gt;not run&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Astro 7&lt;/td&gt;
&lt;td&gt;&lt;code&gt;oneshot&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;5 of 5&lt;/td&gt;
&lt;td&gt;4 of 5&lt;/td&gt;
&lt;td&gt;not run&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;TypeScript 6&lt;/td&gt;
&lt;td&gt;&lt;code&gt;oneshot&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;5 of 5&lt;/td&gt;
&lt;td&gt;5 of 5&lt;/td&gt;
&lt;td&gt;not run&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;I ran the one pass baseline twice with an identical prompt, so pooled it comes to 0 of 10 for Vitest 5, 8 of 10 for SvelteKit 3 and 10 of 10 for AI SDK 7. React Router 8 swapped &lt;code&gt;data&lt;/code&gt; for &lt;code&gt;loaderData&lt;/code&gt; in &lt;code&gt;meta&lt;/code&gt; args, and Astro 7 now needs &lt;code&gt;@astrojs/markdown-remark&lt;/code&gt; for remark plugins. The Wilson intervals for the hinted cells run from 88 to 100 percent for Context7 and 64 to 87 percent for the baseline. They do not overlap, barely.&lt;/p&gt;

&lt;h2&gt;
  
  
  With a shell, SvelteKit 3 needs no docs tool
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://context7.com?utm_source=gagan-deep-singh" rel="noopener noreferrer"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F01d7w1wy5yuskriaoal2.png" alt="SvelteKit 3 result with a shell: both the baseline agent and the Context7 agent passed 5 of 5 runs." width="800" height="200"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;SvelteKit 3 stopped reading &lt;code&gt;svelte.config.js&lt;/code&gt; and moved config into the &lt;code&gt;sveltekit()&lt;/code&gt; Vite plugin. It also removed &lt;code&gt;$app/stores&lt;/code&gt; in favor of &lt;code&gt;$app/state&lt;/code&gt;. In one pass mode the plain agent got 8 of 10.&lt;/p&gt;

&lt;p&gt;Give it a shell and both arms pass 5 of 5. The plain agent can run the build and read the error. A loud break documents itself.&lt;/p&gt;

&lt;p&gt;Vitest shows the opposite case. A cleared mock produces no import error and no deprecation warning, only an assertion that says zero calls. With a shell the plain agent climbed to 3 of 5, and the Context7 arm held at 5 of 5. Silent behavior changes are where looking up the docs first pays off.&lt;/p&gt;

&lt;h2&gt;
  
  
  When the model already knows the library, docs cost tokens
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://context7.com?utm_source=gagan-deep-singh" rel="noopener noreferrer"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fgt8xpsx6vkwtveup4eo9.png" alt="AI SDK 7 result: the baseline agent and the Context7 agent both passed 5 of 5 runs." width="800" height="200"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;AI SDK 7 and TypeScript 6 changed too, yet the model handled both alone. Both arms passed 5 of 5 everywhere. On Astro 7 the result flipped by one run, 4 of 5 for Context7 against 5 of 5 for the baseline. I count that as noise, and it stays in the table.&lt;/p&gt;

&lt;h2&gt;
  
  
  Context7 does little until you tell the agent to use it
&lt;/h2&gt;

&lt;p&gt;My first Context7 batch had no hint. The agent had the tool and barely touched it, at 0.6 calls per run on Vitest 5 and SvelteKit 3 and zero on AI SDK 7. The results looked like the baseline: 2 of 5 on Vitest, 3 of 5 on SvelteKit.&lt;/p&gt;

&lt;p&gt;With the one line hint the agent made about 2 calls per run, one to each of the server's two tools (&lt;code&gt;resolve-library-id&lt;/code&gt; and &lt;code&gt;query-docs&lt;/code&gt;), and Vitest went to 5 of 5. The official &lt;code&gt;npx ctx7 setup&lt;/code&gt; also installs a skill meant to trigger Context7 on library questions. My harness used the bare server without it, so the no-hint column covers a bare install only.&lt;/p&gt;

&lt;h2&gt;
  
  
  What up to date docs cost in tokens
&lt;/h2&gt;

&lt;p&gt;Mean tokens per run, rounded down to the thousand. Claude Code counts cache reads and writes as input, so these are totals, not fresh tokens.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Library and mode&lt;/th&gt;
&lt;th&gt;Baseline&lt;/th&gt;
&lt;th&gt;Context7, told to use it&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Vitest 5, one pass&lt;/td&gt;
&lt;td&gt;35k&lt;/td&gt;
&lt;td&gt;64k&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Vitest 5, with a shell&lt;/td&gt;
&lt;td&gt;105k&lt;/td&gt;
&lt;td&gt;98k&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;SvelteKit 3, one pass&lt;/td&gt;
&lt;td&gt;83k&lt;/td&gt;
&lt;td&gt;67k&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;SvelteKit 3, with a shell&lt;/td&gt;
&lt;td&gt;49k&lt;/td&gt;
&lt;td&gt;74k&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AI SDK 7, with a shell&lt;/td&gt;
&lt;td&gt;95k&lt;/td&gt;
&lt;td&gt;105k&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;TypeScript 6, one pass&lt;/td&gt;
&lt;td&gt;37k&lt;/td&gt;
&lt;td&gt;52k&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Astro 7, one pass&lt;/td&gt;
&lt;td&gt;160k&lt;/td&gt;
&lt;td&gt;148k&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The cheapest Vitest run is the baseline at 35k tokens, and it fails every time. Docs cost extra where the model already knew the API. Upstash's own benchmark against web search reports about 37 percent fewer tokens and about 35 percent lower cost per query. Upstash wrote it and it skips answer quality, so I keep it apart from mine.&lt;/p&gt;

&lt;h2&gt;
  
  
  My first harness was unfair to the plain agent
&lt;/h2&gt;

&lt;p&gt;The first shell mode allowed a short list of commands, and a refused command ended the run. The plain agent wrote a stale config file, saw the build error, then tried to delete the file. Delete was not on the list, so the run stopped. The Context7 arm never wrote the stale file.&lt;/p&gt;

&lt;p&gt;The giveaway: the plain agent scored worse with a shell than without one. I threw that batch away and rebuilt the shell inside a sandbox, where writes stay in the project folder and network only reaches the package registry. No number here comes from the discarded batch.&lt;/p&gt;

&lt;h2&gt;
  
  
  Set up Context7 MCP in one command
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx ctx7 setup
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It runs OAuth, creates an API key and installs a skill for your agent. It needs Node 22.13 or newer. The &lt;a href="https://context7.com/plans?utm_source=gagan-deep-singh" rel="noopener noreferrer"&gt;free plan&lt;/a&gt; gives you 1,000 calls per month, and Pro costs $10 per seat per month with 2,000 calls per seat. At about 2 calls per task, that stretches far.&lt;/p&gt;

&lt;p&gt;If you run the MCP server locally instead, pin it. CVE-2026-75130, a prompt injection through the Custom AI Instructions feature, got its fix in &lt;code&gt;context7-mcp&lt;/code&gt; 2.1.3, so anything older should go. For Claude Code, save this as &lt;code&gt;.mcp.json&lt;/code&gt; in your project root. Create a free key in the &lt;a href="https://context7.com/dashboard?utm_source=gagan-deep-singh" rel="noopener noreferrer"&gt;Context7 dashboard&lt;/a&gt; and export it as &lt;code&gt;CONTEXT7_API_KEY&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"mcpServers"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"context7"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nl"&gt;"command"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"npx"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"args"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"-y"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"@upstash/context7-mcp@4.7.3"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"env"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"CONTEXT7_API_KEY"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"${CONTEXT7_API_KEY}"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The &lt;a href="https://context7.com/docs/api-guide?utm_source=gagan-deep-singh" rel="noopener noreferrer"&gt;API guide&lt;/a&gt; covers keys and rate limits. Then add the hint to your agent's instructions file, such as &lt;code&gt;CLAUDE.md&lt;/code&gt;, unless the setup skill covers it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Reproduce the benchmark on your machine
&lt;/h2&gt;

&lt;p&gt;You need the Node version listed in the repo README and the Claude Code CLI, installed and logged in.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone https://github.com/thegdsks/docs-ab-bench
&lt;span class="nb"&gt;cd&lt;/span&gt; docs-ab-bench
npm install
cp .env.example .env
npx tsx src/cli.ts verify --subject vitest-5
npx tsx src/cli.ts report --batch headline-oneshot-hint
&lt;span class="nv"&gt;BENCH_DOCS_HINT&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;1 npx tsx src/cli.ts run --subject vitest-5 --arm both --n 5 --mode oneshot --driver claude-code --model sonnet --batch mine
npx tsx src/cli.ts report --batch mine
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The first &lt;code&gt;verify&lt;/code&gt; installs the pinned dependencies once and caches them. The first &lt;code&gt;report&lt;/code&gt; reads my shipped runs for free (&lt;code&gt;ls runs&lt;/code&gt; lists every batch), while &lt;code&gt;run&lt;/code&gt; spends your own Claude Code usage. Put &lt;code&gt;CONTEXT7_API_KEY&lt;/code&gt; in &lt;code&gt;.env&lt;/code&gt; if you have one. Drop &lt;code&gt;BENCH_DOCS_HINT=1&lt;/code&gt; and pick a new batch name to see the unprompted behavior, or add &lt;code&gt;--mode agentic&lt;/code&gt; for the sandboxed shell.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where these numbers stop
&lt;/h2&gt;

&lt;p&gt;Five runs per cell is small. One 5 of 5 cell leaves a wide interval, so I lean on the pooled 44 of 45 and the 0 of 10. I used one model through one agent driver. I also wrote the tasks myself, and I picked libraries known to have changed, so the setup favors a docs tool by design. On a library your model already knows, my own data says you will usually pay extra tokens for nothing.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Context7 changes in the code your agent writes
&lt;/h2&gt;

&lt;p&gt;Context7 serves the agent current docs for a library, for a specific version if you name it, at the moment it needs them. In my runs that came down to four effects.&lt;/p&gt;

&lt;h3&gt;
  
  
  Current syntax instead of remembered syntax
&lt;/h3&gt;

&lt;p&gt;The Vitest 5 failures were a stale default, not a made-up function. With the docs in context the agent wrote against the new &lt;code&gt;clearMocks&lt;/code&gt; default and passed 5 of 5.&lt;/p&gt;

&lt;h3&gt;
  
  
  Fewer bugs from changes after the model's training
&lt;/h3&gt;

&lt;p&gt;SvelteKit 3 moved config out of &lt;code&gt;svelte.config.js&lt;/code&gt;. In one pass the plain agent got 8 of 10 and the Context7 agent got 5 of 5.&lt;/p&gt;

&lt;h3&gt;
  
  
  Docs that match your version
&lt;/h3&gt;

&lt;p&gt;A Context7 library id can carry a version, in the form &lt;code&gt;/owner/repo/&amp;lt;version&amp;gt;&lt;/code&gt;, so you can point the agent at the release in your lockfile and not only the latest one.&lt;/p&gt;

&lt;h3&gt;
  
  
  A lookup to check against
&lt;/h3&gt;

&lt;p&gt;A model's wrong answer and its right answer sound the same. Reading the docs gives it something to verify instead of recall.&lt;/p&gt;

&lt;p&gt;Upstash describes the aim as fewer outdated or hallucinated APIs. I measured the outdated kind and did not test for invented ones.&lt;/p&gt;

&lt;h2&gt;
  
  
  Context7 FAQ
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Does Context7 reduce hallucinations in generated code?
&lt;/h3&gt;

&lt;p&gt;It cut the outdated-API failures in my runs, for example 0 of 10 to 5 of 5 on Vitest 5. I did not test for invented functions, so I cannot say it removes those.&lt;/p&gt;

&lt;h3&gt;
  
  
  Does Context7 work if you do not tell the agent to use it?
&lt;/h3&gt;

&lt;p&gt;Barely, as a bare MCP server. Without the hint the agent averaged 0.6 calls per run on Vitest 5 and scored 2 of 5. I did not test the setup skill.&lt;/p&gt;

&lt;h3&gt;
  
  
  Does Context7 cost more tokens?
&lt;/h3&gt;

&lt;p&gt;Sometimes. On TypeScript 6 the mean rose from 37k to 52k tokens with no change in passes, while on Vitest 5 with a shell it fell from 105k to 98k.&lt;/p&gt;

&lt;h3&gt;
  
  
  Is Context7 safe to install?
&lt;/h3&gt;

&lt;p&gt;Pin a local server to &lt;code&gt;context7-mcp&lt;/code&gt; 2.1.3 or later, which fixes CVE-2026-75130. The hosted server needs no pin.&lt;/p&gt;

&lt;h2&gt;
  
  
  Bottom line
&lt;/h2&gt;

&lt;p&gt;Install Context7, then make sure something tells the agent to use it. That one line took my agent from 0 of 10 to 5 of 5 on a Vitest default that throws no error. If a library you depend on is missing, you can &lt;a href="https://context7.com/docs/adding-libraries?utm_source=gagan-deep-singh" rel="noopener noreferrer"&gt;add it to Context7&lt;/a&gt;. What silent default in your stack would your agent still get wrong today?&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://thegdsks.com/blog/context7-six-libraries-coding-agent-benchmark" rel="noopener noreferrer"&gt;thegdsks.com&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Context7 and Upstash names and logos are trademarks of Upstash, Inc., shown because this is a sponsored post about their product.&lt;/em&gt;&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;GDS K S&lt;/strong&gt; · &lt;a href="https://thegdsks.com" rel="noopener noreferrer"&gt;thegdsks.com&lt;/a&gt; · building &lt;a href="https://glinr.com" rel="noopener noreferrer"&gt;GLINR Studios&lt;/a&gt; · follow on X &lt;a href="https://x.com/thegdsks" rel="noopener noreferrer"&gt;@thegdsks&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;The model's training data has a release date, and your dependencies keep shipping after it.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>mcp</category>
      <category>webdev</category>
      <category>testing</category>
    </item>
    <item>
      <title>Self-hosted PaaS compared: six tools, one fair table (2026)</title>
      <dc:creator>GDS K S</dc:creator>
      <pubDate>Wed, 18 Nov 2026 05:26:09 +0000</pubDate>
      <link>https://dev.to/thegdsks/self-hosted-paas-compared-six-tools-one-fair-table-2026-2b6h</link>
      <guid>https://dev.to/thegdsks/self-hosted-paas-compared-six-tools-one-fair-table-2026-2b6h</guid>
      <description>&lt;p&gt;Coolify, Dokploy, CapRover, Dokku and Kamal all put your apps on a server you own, and they do it in different ways. Some are dashboards, one is a git remote, one is a CLI. This page puts the facts for six tools in one table, with a link to the official source for each claim.&lt;/p&gt;

&lt;p&gt;We make Levelrail, so read its section with that in mind. We kept the claims about every tool to what its own repository and docs say, and where a doc is silent the table says "not stated". For a per-feature view with sources, see the &lt;a href="https://levelrail.com/compare/" rel="noopener noreferrer"&gt;compare pages&lt;/a&gt; and the &lt;a href="https://levelrail.com/alternatives/" rel="noopener noreferrer"&gt;alternatives page&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Summary table
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Tool&lt;/th&gt;
&lt;th&gt;Approach&lt;/th&gt;
&lt;th&gt;Language&lt;/th&gt;
&lt;th&gt;License&lt;/th&gt;
&lt;th&gt;Multi-server&lt;/th&gt;
&lt;th&gt;Interface and API&lt;/th&gt;
&lt;th&gt;RAM in docs&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://coolify.io" rel="noopener noreferrer"&gt;Coolify&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Dashboard over Docker, SSH to servers&lt;/td&gt;
&lt;td&gt;PHP&lt;/td&gt;
&lt;td&gt;Apache-2.0&lt;/td&gt;
&lt;td&gt;Yes, needs a registry and your own load balancer&lt;/td&gt;
&lt;td&gt;Dashboard, API, CLI, MCP server&lt;/td&gt;
&lt;td&gt;2 GB&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://levelrail.com" rel="noopener noreferrer"&gt;Levelrail&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;One Go binary, agents on each node&lt;/td&gt;
&lt;td&gt;Go&lt;/td&gt;
&lt;td&gt;Apache-2.0&lt;/td&gt;
&lt;td&gt;Beta&lt;/td&gt;
&lt;td&gt;Dashboard, CLI, API, MCP server&lt;/td&gt;
&lt;td&gt;1 GB boots, no minimum benchmarked&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://dokploy.com" rel="noopener noreferrer"&gt;Dokploy&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Dashboard over Docker, Traefik, Swarm&lt;/td&gt;
&lt;td&gt;TypeScript&lt;/td&gt;
&lt;td&gt;Apache-2.0 with extra terms&lt;/td&gt;
&lt;td&gt;Yes, Docker Swarm and remote servers&lt;/td&gt;
&lt;td&gt;Dashboard, CLI, API, MCP server&lt;/td&gt;
&lt;td&gt;2 GB&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://caprover.com" rel="noopener noreferrer"&gt;CapRover&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Dashboard over Docker Swarm, Nginx&lt;/td&gt;
&lt;td&gt;TypeScript&lt;/td&gt;
&lt;td&gt;Apache-2.0 with extra terms&lt;/td&gt;
&lt;td&gt;Yes, Docker Swarm&lt;/td&gt;
&lt;td&gt;Dashboard, CLI, HTTP API&lt;/td&gt;
&lt;td&gt;1 GiB&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://dokku.com" rel="noopener noreferrer"&gt;Dokku&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Git remote on one host, buildpacks&lt;/td&gt;
&lt;td&gt;Shell&lt;/td&gt;
&lt;td&gt;MIT&lt;/td&gt;
&lt;td&gt;Optional k3s scheduler&lt;/td&gt;
&lt;td&gt;CLI over SSH&lt;/td&gt;
&lt;td&gt;1 GB&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://kamal-deploy.org" rel="noopener noreferrer"&gt;Kamal&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;CLI that deploys over SSH&lt;/td&gt;
&lt;td&gt;Ruby&lt;/td&gt;
&lt;td&gt;MIT&lt;/td&gt;
&lt;td&gt;Yes, needs a registry and a load balancer&lt;/td&gt;
&lt;td&gt;CLI&lt;/td&gt;
&lt;td&gt;Not stated&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The Dokploy and CapRover licenses are Apache-2.0 with extra terms. Read the &lt;a href="https://github.com/Dokploy/dokploy/blob/canary/LICENSE.MD" rel="noopener noreferrer"&gt;Dokploy license file&lt;/a&gt; and the &lt;a href="https://github.com/caprover/caprover/blob/master/LICENSE" rel="noopener noreferrer"&gt;CapRover license file&lt;/a&gt; before you fork or redistribute either one.&lt;/p&gt;

&lt;h2&gt;
  
  
  Coolify
&lt;/h2&gt;

&lt;p&gt;Coolify deploys from a Git repository, a Dockerfile, a Compose file or a prebuilt image, and lists 360+ one-click services in its &lt;a href="https://github.com/coollabsio/coolify" rel="noopener noreferrer"&gt;README&lt;/a&gt;. It reaches your servers over SSH, so there is nothing to install on them beyond Docker. Self-hosted gets every feature at no cost, per its &lt;a href="https://coolify.io/pricing" rel="noopener noreferrer"&gt;pricing page&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;With a second server, its &lt;a href="https://coolify.io/docs/knowledge-base/server/multiple-servers" rel="noopener noreferrer"&gt;multi-server docs&lt;/a&gt; say extra servers do not spread traffic by themselves, so you bring a load balancer, and images move through a registry. Its &lt;a href="https://coolify.io/docs/get-started/installation" rel="noopener noreferrer"&gt;installation docs&lt;/a&gt; ask for 2 CPU cores and 2 GB of RAM.&lt;/p&gt;

&lt;p&gt;It fits people who want a dashboard with a large service catalog.&lt;/p&gt;

&lt;h2&gt;
  
  
  Levelrail
&lt;/h2&gt;

&lt;p&gt;Levelrail is one Go binary. Per its &lt;a href="https://github.com/glincker/levelrail" rel="noopener noreferrer"&gt;README&lt;/a&gt;, the control plane idles at about 200 MB of RAM (measured in &lt;a href="https://github.com/glincker/levelrail/blob/main/docs/performance.md" rel="noopener noreferrer"&gt;docs/performance.md&lt;/a&gt;), there are 570+ templates in the catalog and 346 of them have a recorded real-engine pass. You can drive it from the dashboard, the CLI, the HTTP API or 259 MCP tools, and it is Apache-2.0 with one edition.&lt;/p&gt;

&lt;p&gt;Built in: metrics and full-text log search, one-click rollback with pinned images, readiness-gated deploys, preview environments for pull requests, scheduled jobs, managed databases with scheduled backups, IAM policies, passkeys and TOTP, and an audit log with a verifiable hash chain. Agents on extra nodes dial out over mTLS, so they need no inbound ports. It also has two person deploy approvals, deploy freeze windows, a public status page and apps that sleep when idle and wake on the next request. A read-only &lt;a href="https://demo.levelrail.com" rel="noopener noreferrer"&gt;live demo&lt;/a&gt; is online, and each feature carries a stable, beta or experimental label in its &lt;a href="https://github.com/glincker/levelrail/blob/main/docs/feature-status.md" rel="noopener noreferrer"&gt;feature status&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;It fits one or one or two servers where you want metrics, rollback, an audit log and an API or agent in the same binary.&lt;/p&gt;

&lt;h2&gt;
  
  
  Dokploy
&lt;/h2&gt;

&lt;p&gt;Dokploy has native Docker Compose support, Traefik routing, a template list of 600+ and database backups to external storage, per its &lt;a href="https://github.com/Dokploy/dokploy" rel="noopener noreferrer"&gt;README&lt;/a&gt;. For more than one server it uses Docker Swarm and remote servers, and its &lt;a href="https://docs.dokploy.com/docs/core/mcp" rel="noopener noreferrer"&gt;MCP server&lt;/a&gt; exposes its API endpoints as tools.&lt;/p&gt;

&lt;p&gt;Its &lt;a href="https://docs.dokploy.com/docs/core/remote-servers" rel="noopener noreferrer"&gt;remote server docs&lt;/a&gt; say build servers push to a registry and handle Applications only, not Compose. Part of the code sits under a separate proprietary license (see above). Its &lt;a href="https://docs.dokploy.com/docs/core/installation" rel="noopener noreferrer"&gt;installation docs&lt;/a&gt; ask for 2 GB of RAM and 30 GB of disk.&lt;/p&gt;

&lt;p&gt;It fits teams that already think in Swarm and want a dashboard with an official MCP server.&lt;/p&gt;

&lt;h2&gt;
  
  
  CapRover
&lt;/h2&gt;

&lt;p&gt;CapRover has a web GUI and a CLI, runs on Docker Swarm, uses an Nginx template for load balancing and issues free Let's Encrypt certificates, per its &lt;a href="https://github.com/caprover/caprover" rel="noopener noreferrer"&gt;README&lt;/a&gt;. Its &lt;a href="https://caprover.com/docs/get-started.html" rel="noopener noreferrer"&gt;get started guide&lt;/a&gt; asks for 1 GiB of RAM and 5 GiB of disk, the lowest stated figure among the dashboards here.&lt;/p&gt;

&lt;p&gt;Its &lt;a href="https://caprover.com/docs/deployments/other/docker-compose" rel="noopener noreferrer"&gt;Docker Compose support&lt;/a&gt; imports only part of the format and is experimental, per its docs. The setup guide assumes Ubuntu and a wildcard DNS record. The license appendix restricts changes to its paid features.&lt;/p&gt;

&lt;p&gt;It fits a handful of apps on a Swarm-based panel.&lt;/p&gt;

&lt;h2&gt;
  
  
  Dokku
&lt;/h2&gt;

&lt;p&gt;Dokku calls itself a Docker powered mini-Heroku, per its &lt;a href="https://github.com/dokku/dokku" rel="noopener noreferrer"&gt;README&lt;/a&gt;. You deploy with a &lt;code&gt;git push&lt;/code&gt; to a dokku remote. Heroku buildpacks are the default, and it also takes a Dockerfile or an image, with nginx, Caddy, HAProxy, Traefik or OpenResty as the proxy, per its &lt;a href="https://dokku.com/docs/deployment/application-deployment/" rel="noopener noreferrer"&gt;docs&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;You drive it from the command line over SSH. Its web UI and JSON API are only in the paid Dokku Pro, per its &lt;a href="https://dokku.com/docs/enterprise/pro/" rel="noopener noreferrer"&gt;Pro page&lt;/a&gt;. &lt;a href="https://dokku.com/docs/deployment/schedulers/k3s/" rel="noopener noreferrer"&gt;Multi-server&lt;/a&gt; uses the k3s scheduler, which Dokku calls new, needs a registry and lacks some commands.&lt;/p&gt;

&lt;p&gt;It fits one server and a terminal, with no control plane service to keep up.&lt;/p&gt;

&lt;h2&gt;
  
  
  Kamal
&lt;/h2&gt;

&lt;p&gt;Kamal deploys over SSH from your machine with &lt;code&gt;kamal setup&lt;/code&gt; and &lt;code&gt;kamal deploy&lt;/code&gt;, builds from your Dockerfile and uses kamal-proxy for zero-downtime cutover, per its &lt;a href="https://kamal-deploy.org/" rel="noopener noreferrer"&gt;site&lt;/a&gt;. It started as the Rails deploy tool, and 37signals says it moved HEY and its other apps to its own hardware with it. MIT licensed, no paid tier.&lt;/p&gt;

&lt;p&gt;Kamal needs a registry, and per its &lt;a href="https://kamal-deploy.org/docs/installation/" rel="noopener noreferrer"&gt;installation docs&lt;/a&gt; more than one server needs a load balancer in front. Its &lt;a href="https://kamal-deploy.org/docs/configuration/proxy/" rel="noopener noreferrer"&gt;proxy docs&lt;/a&gt; say automatic Let's Encrypt works only for single-server deploys, and with more than one host you provide a certificate. CLI only, with no dashboard.&lt;/p&gt;

&lt;p&gt;It fits teams that want the fewest moving parts and no server-side software.&lt;/p&gt;

&lt;h2&gt;
  
  
  Also worth a look
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://haloy.dev" rel="noopener noreferrer"&gt;Haloy&lt;/a&gt; is a Go tool with a CLI and a REST API.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to choose
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;One server and you want a dashboard: Coolify, Dokploy, CapRover or Levelrail.&lt;/li&gt;
&lt;li&gt;More than one server: Coolify, Dokploy, CapRover (Swarm), Dokku (k3s) and Kamal take different routes. Plan for a registry and a load balancer where noted above.&lt;/li&gt;
&lt;li&gt;A Rails shop: Kamal.&lt;/li&gt;
&lt;li&gt;You want git push and nothing else: Dokku.&lt;/li&gt;
&lt;li&gt;You want an API or an agent to drive it: Levelrail, Dokploy and Coolify all list an MCP server.&lt;/li&gt;
&lt;li&gt;You want an audit log, IAM policies and deploy approvals in one free edition: Levelrail.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Read each project's own docs before you commit.&lt;/p&gt;

&lt;p&gt;If you want to see Levelrail before installing it, open the &lt;a href="https://demo.levelrail.com" rel="noopener noreferrer"&gt;read-only demo&lt;/a&gt; or read the code at &lt;a href="https://github.com/glincker/levelrail" rel="noopener noreferrer"&gt;github.com/glincker/levelrail&lt;/a&gt;. The &lt;a href="https://levelrail.com/compare/coolify/" rel="noopener noreferrer"&gt;Coolify comparison&lt;/a&gt; covers the closest match in detail.&lt;/p&gt;

&lt;h2&gt;
  
  
  Frequently asked questions
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Which self-hosted PaaS is the best?
&lt;/h3&gt;

&lt;p&gt;It depends on your server count and the interface you want. Dokku is a git remote on one host. Kamal is a CLI with no control plane. Coolify, Dokploy and CapRover are dashboards over Docker. Levelrail is one Go binary with metrics, rollback, an audit log and an API built in. The how to choose section lists them by situation.&lt;/p&gt;

&lt;h3&gt;
  
  
  Which of these runs on the smallest server?
&lt;/h3&gt;

&lt;p&gt;CapRover and Dokku state 1 GiB and 1 GB of RAM in their docs, and Coolify and Dokploy state 2 GB. Levelrail's control plane idles at about 200 MB and its install page says 1 vCPU and 1 GB boots Docker and the control plane. Kamal states no figure.&lt;/p&gt;

&lt;h3&gt;
  
  
  Which of these tools can manage more than one server?
&lt;/h3&gt;

&lt;p&gt;Coolify, Dokploy and Kamal manage more than one server, and Coolify and Kamal need a registry and your own load balancer. CapRover uses Docker Swarm. Dokku does it through an optional k3s scheduler. Levelrail supports it as a beta feature.&lt;/p&gt;




&lt;p&gt;Originally published at &lt;a href="https://levelrail.com/blog/self-hosted-deployment-tools-compared/" rel="noopener noreferrer"&gt;https://levelrail.com/blog/self-hosted-deployment-tools-compared/&lt;/a&gt;&lt;/p&gt;

</description>
      <category>selfhosted</category>
      <category>comparison</category>
      <category>paas</category>
      <category>devops</category>
    </item>
    <item>
      <title>Calif Says AI Found Java4Shell (CVE-2026-114938) in an Hour for Under $200</title>
      <dc:creator>GDS K S</dc:creator>
      <pubDate>Wed, 18 Nov 2026 03:04:13 +0000</pubDate>
      <link>https://dev.to/thegdsks/calif-says-ai-found-java4shell-in-an-hour-for-under-200-ghh</link>
      <guid>https://dev.to/thegdsks/calif-says-ai-found-java4shell-in-an-hour-for-under-200-ghh</guid>
      <description>&lt;h1&gt;
  
  
  Calif Says AI Found Java4Shell (CVE-2026-114938) in an Hour for Under $200
&lt;/h1&gt;

&lt;p&gt;Buried in the Java4Shell (CVE-2026-114938) coverage is a line most people scrolled past. The researchers at Calif say they found the bug with AI help in about an hour. They say a first working exploit took about two hours after that. And they say the whole thing cost under $200 in AI token costs.&lt;/p&gt;

&lt;p&gt;Qualys repeats those numbers and attributes them to the researchers, and Upwind reports the one-hour and two-hour parts. Nobody has independently checked them. Treat them as a claim. But look at what happens if they are even roughly true.&lt;/p&gt;

&lt;h2&gt;
  
  
  TL;DR
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Claim&lt;/th&gt;
&lt;th&gt;Source&lt;/th&gt;
&lt;th&gt;Checked by others&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Bug found with AI help in about an hour&lt;/td&gt;
&lt;td&gt;Calif, via Upwind and Qualys&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;First working exploit about two hours later&lt;/td&gt;
&lt;td&gt;Calif, via Upwind and Qualys&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Under $200 in AI token costs&lt;/td&gt;
&lt;td&gt;Calif, via Qualys&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Fix committed under embargo October 14, 2026&lt;/td&gt;
&lt;td&gt;Endor Labs&lt;/td&gt;
&lt;td&gt;Single source&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Public disclosure and Oracle fixes November 17, 2026&lt;/td&gt;
&lt;td&gt;Qualys, Upwind, Endor Labs&lt;/td&gt;
&lt;td&gt;Four sources&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Bug leaked before its patch&lt;/td&gt;
&lt;td&gt;Calif, via Upwind and Endor Labs&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Do the arithmetic on the defender side
&lt;/h2&gt;

&lt;p&gt;Put the two clocks next to each other.&lt;/p&gt;

&lt;p&gt;The discovery side, per Calif: about three hours of work from nothing to a working exploit, for a bill that fits on a corporate card without sign-off.&lt;/p&gt;

&lt;p&gt;The defender side, from public dates: the fix landed on October 14, 2026 and the public advisory and vendor builds landed on November 17. That is 34 days between a committed fix and a public one. Endor Labs adds that on November 17 the public &lt;code&gt;jdk17u&lt;/code&gt;, &lt;code&gt;jdk21u&lt;/code&gt; and &lt;code&gt;jdk25u&lt;/code&gt; repositories did not yet carry the fix, and that a South Korean advisory flagged an unauthenticated Java RCE a day earlier.&lt;/p&gt;

&lt;p&gt;After the build exists, you still have to find every JVM, rebuild images and restart processes. The runbook in my earlier post covers that. That part is slow, and your change windows set its pace, not the clock.&lt;/p&gt;

&lt;p&gt;I am not saying attackers will win that race. I am saying the race is now one where one side's cost fell through the floor, while the other side's cost is the same human approval chain it always was.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the broader numbers say
&lt;/h2&gt;

&lt;p&gt;I did not read the full reports, only the headlines, so take these as pointers and not evidence for this CVE.&lt;/p&gt;

&lt;p&gt;The headline of Rapid7's 2026 annual threat report says exploited high and critical severity vulnerabilities surged 105 percent as attack timelines collapsed. A separate Rapid7 Q2 2026 release says nearly two thirds of exploited vulnerabilities needed no user interaction. A news summary of that quarter says newly exploited vulnerabilities jumped from 8 percent to 40 percent.&lt;/p&gt;

&lt;p&gt;None of that proves AI is the cause. That fits a world where finding bugs got cheaper, and Java4Shell is a vivid example, if Calif's numbers hold.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Token Tab, from the other side
&lt;/h2&gt;

&lt;p&gt;I have written before about the bill AI tools quietly send you. This is the reverse entry. Someone else's tokens are now a line item on your risk register. By Calif's account, the discovery took one engineer, some prompts and an afternoon.&lt;/p&gt;

&lt;p&gt;The honest caveats matter here. Calif says it holds back its product-specific exploits and there is no universal one. The sources I read show no public proof-of-concept shell. Equixly calls code execution unproven and a crash the realistic outcome. A cheap discovery does not mean a cheap, reliable exploit against your particular deployment.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I would change in my own process
&lt;/h2&gt;

&lt;p&gt;Three policy changes follow from a cheap-discovery world, and none of them need a new product.&lt;/p&gt;

&lt;p&gt;First, measure your restart latency. Patching a file does not fix a running JVM. How long does it take your slowest service to go from "fixed build available" to "process restarted on the fixed build"? If you cannot answer, that is your real patch window.&lt;/p&gt;

&lt;p&gt;Second, tie your deadline to exposure instead of a flat number. Qualys orders its priorities as internet-facing identity providers first, then Jira, Confluence, Jenkins and Artifactory, then other internet-facing Java services, then internal data systems.&lt;/p&gt;

&lt;p&gt;Third, keep a runtime inventory that is always on. The Java4Shell exposure depends on the JDK build and the CPU feature, and neither shows up in a dependency scan.&lt;/p&gt;

&lt;h2&gt;
  
  
  A triage script
&lt;/h2&gt;

&lt;p&gt;This script takes the inventory output from the runbook, one line per JVM (&lt;code&gt;pid&lt;/code&gt;, path, version), plus an AVX-512 flag, and sorts each into patched, exposed or not affected using the version ranges Qualys and Upwind list. It does not check for vendor-specific builds, so a version number that passes is not a promise. Confirm against the vendor advisory.&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="c1"&gt;#!/usr/bin/env python3&lt;/span&gt;
&lt;span class="s2"&gt;"""java4shell_triage.py: classify JVM versions against the published ranges.

Input: lines of "pid&amp;lt;TAB&amp;gt;path&amp;lt;TAB&amp;gt;version" on stdin, e.g. 17.0.19, 21.0.13.
Usage: python3 java4shell_triage.py --avx512 &amp;lt; inventory.tsv
"""&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;argparse&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;re&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;sys&lt;/span&gt;

&lt;span class="c1"&gt;# line -&amp;gt; first affected, first fixed (Qualys and Upwind, November 17, 2026)&lt;/span&gt;
&lt;span class="no"&gt;RANGES&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="mi"&gt;17&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;17&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;6&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;17&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;21&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="mi"&gt;21&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;21&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;21&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;13&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="mi"&gt;25&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;25&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;25&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="mi"&gt;27&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;27&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;27&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;


&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;parse&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;version&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;str&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="kt"&gt;tuple&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;nums&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="kt"&gt;int&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;n&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;n&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;re&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;findall&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="s2"&gt;"\d+"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;version&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="kt"&gt;tuple&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;nums&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;


&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;pad&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;t&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;tuple&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;n&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;int&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="kt"&gt;tuple&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;t&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;n&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="nb"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;t&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;


&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;classify&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;version&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;str&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;avx512&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;bool&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="kt"&gt;str&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;v&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;parse&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;version&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="n"&gt;v&lt;/span&gt; &lt;span class="ow"&gt;or&lt;/span&gt; &lt;span class="n"&gt;v&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="no"&gt;RANGES&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="s2"&gt;"not-affected-or-unknown"&lt;/span&gt;
    &lt;span class="n"&gt;first_bad&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;first_fixed&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="no"&gt;RANGES&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;v&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="nf"&gt;pad&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;v&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="nf"&gt;pad&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;first_bad&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="ow"&gt;or&lt;/span&gt; &lt;span class="nf"&gt;pad&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;v&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;=&lt;/span&gt; &lt;span class="nf"&gt;pad&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;first_fixed&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="s2"&gt;"not-affected-or-fixed"&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="s2"&gt;"EXPOSED"&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;avx512&lt;/span&gt; &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="s2"&gt;"vulnerable-code-no-avx512"&lt;/span&gt;


&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;main&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="kc"&gt;None&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;ap&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;argparse&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;ArgumentParser&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;ap&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;add_argument&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"--avx512"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;action&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"store_true"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;help&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"host has all four AVX-512 flags"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;args&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;ap&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;parse_args&lt;/span&gt;&lt;span class="p"&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;line&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;sys&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;stdin&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;parts&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;line&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;rstrip&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"\n"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;split&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"\t"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="nb"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;parts&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="k"&gt;continue&lt;/span&gt;
        &lt;span class="n"&gt;pid&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;version&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;parts&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;parts&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;parts&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
        &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"{classify(version, args.avx512):28} pid={pid} {version} {path}"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;


&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;__name__&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="s2"&gt;"__main__"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="nf"&gt;main&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The middle state matters. A host without AVX-512 VBMI runs vulnerable code that cannot reach the bad path today. Qualys warns that a resize or instance change can move a workload onto an affected CPU later, so that state deserves a ticket, not a shrug.&lt;/p&gt;

&lt;h2&gt;
  
  
  The bottom line
&lt;/h2&gt;

&lt;p&gt;The part of Java4Shell that will age best is not the 62-byte overflow. It is a line in a vendor blog post saying someone did the discovery work in an afternoon with a model. Even if those exact numbers fail scrutiny, plan your patch process for the version of the world where they do.&lt;/p&gt;

&lt;p&gt;If a bug like this took three hours and under $200 to find, how long does your slowest service take to restart?&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;GDS K S&lt;/strong&gt; · &lt;a href="https://thegdsks.com" rel="noopener noreferrer"&gt;thegdsks.com&lt;/a&gt; · building &lt;a href="https://glincker.com" rel="noopener noreferrer"&gt;Glincker&lt;/a&gt; · follow on X &lt;a href="https://x.com/thegdsks" rel="noopener noreferrer"&gt;@thegdsks&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Cheap discovery moves the bottleneck to your restart window.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Sources: &lt;a href="https://blog.qualys.com/vulnerabilities-threat-research/2026/11/17/how-to-find-mitigate-and-patch-the-critical-java4shell-flaw-cve-2026-114938-now" rel="noopener noreferrer"&gt;Qualys&lt;/a&gt;, &lt;a href="https://www.upwind.io/blog/java4shell-what-we-know-now-and-what-comes-next" rel="noopener noreferrer"&gt;Upwind&lt;/a&gt;, &lt;a href="https://www.endorlabs.com/learn/java4shell-unauthenticated-rce-reported-in-openjdk-17-cve-2026-114938" rel="noopener noreferrer"&gt;Endor Labs&lt;/a&gt;, &lt;a href="https://equixly.com/blog/2026/11/17/cve-2026-114938-pre-auth-heap-overflow-in-java-17-21-and-25/" rel="noopener noreferrer"&gt;Equixly&lt;/a&gt;, &lt;a href="https://investors.rapid7.com/news/news-details/2026/Rapid7-Finds-Nearly-Two-Thirds-of-Vulnerabilities-Exploited-in-Q2-2026-Required-No-User-Interaction-to-Initiate/default.aspx" rel="noopener noreferrer"&gt;Rapid7 Q2 2026 release&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>java</category>
      <category>security</category>
      <category>ai</category>
      <category>devops</category>
    </item>
    <item>
      <title>How One Base64 Bug Can Leak Your Java Heap (Java4Shell, CVE-2026-114938)</title>
      <dc:creator>GDS K S</dc:creator>
      <pubDate>Wed, 18 Nov 2026 02:50:58 +0000</pubDate>
      <link>https://dev.to/thegdsks/java4shell-root-cause-and-detection-without-the-hype-5596</link>
      <guid>https://dev.to/thegdsks/java4shell-root-cause-and-detection-without-the-hype-5596</guid>
      <description>&lt;h1&gt;
  
  
  How One Base64 Bug Can Leak Your Java Heap (Java4Shell, CVE-2026-114938)
&lt;/h1&gt;

&lt;p&gt;Most Java4Shell (CVE-2026-114938) coverage on day one was either "your servers are on fire" or "it only crashes the JVM." Both skip the mechanism, and the mechanism tells you who is at risk. This post walks through why the bug exists, what the sources actually established, and what a defender can watch for.&lt;/p&gt;

&lt;p&gt;I have not reproduced the bug. Everything below comes from public write-ups by Upwind, Endor Labs, Equixly, Qualys and Calif, and I flag where they disagree.&lt;/p&gt;

&lt;h2&gt;
  
  
  TL;DR
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Claim&lt;/th&gt;
&lt;th&gt;Status&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Heap write past the output array on x86-64 with AVX-512 VBMI&lt;/td&gt;
&lt;td&gt;Reproduced by Endor Labs (under an emulator) and Upwind (on real hardware)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;JVM crash from a remote request&lt;/td&gt;
&lt;td&gt;Consistent across sources&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Pre-auth RCE in named products&lt;/td&gt;
&lt;td&gt;Claimed by Calif, no public proof-of-concept&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Attacker-controlled write contents&lt;/td&gt;
&lt;td&gt;Not supported, the written bytes are constant&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Exploited in the wild&lt;/td&gt;
&lt;td&gt;None reported, not in CISA KEV as of November 17&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Why an intrinsic exists at all
&lt;/h2&gt;

&lt;p&gt;HotSpot ships a pure-Java Base64 decoder. When the JIT sees that decoder running hot, it can replace the Java loop with an intrinsic, a hand-written assembly stub for the target CPU. On x86-64 with AVX-512 VBMI, the stub decodes wide blocks at once.&lt;/p&gt;

&lt;p&gt;Equixly makes two points that matter for exposure. The intrinsic replaces the Java code only after the JIT compiles the decoder, which on a busy server happens within seconds. And the vector path only engages above a length threshold. Endor Labs gives the threshold as 31 bytes on Java 21, 25 and 27, and 128 bytes on Java 17.&lt;/p&gt;

&lt;p&gt;That is why the shortest triggers differ by version. 65 characters is enough on 21, 25 and 27. 17 needs 129.&lt;/p&gt;

&lt;h2&gt;
  
  
  The tail bug
&lt;/h2&gt;

&lt;p&gt;The block loop handles most of the input. The last characters, including padding, go through a tail routine. Per Upwind, a malformed string ending in a stray &lt;code&gt;=&lt;/code&gt; makes the tail calculate a negative output length. A small write becomes a full 64-byte write, 62 bytes beyond the end of the output array. Endor Labs measured 62 bytes for a single &lt;code&gt;=&lt;/code&gt; tail and 63 for &lt;code&gt;==&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Two properties follow from the measurements.&lt;/p&gt;

&lt;p&gt;First, the overflow content is fixed. Endor Labs says the bytes stay the same regardless of the input data. An attacker controls the length of the input and the heap layout around the destination array, not the bytes that get written.&lt;/p&gt;

&lt;p&gt;Second, Java still rejects the input afterwards with an &lt;code&gt;IllegalArgumentException&lt;/code&gt;. The exception is a useful tell, as the detection section below shows, but it fires after the damage.&lt;/p&gt;

&lt;p&gt;Upwind also ran 300,000 well-formed inputs and saw no overflow, so ordinary traffic is not at risk. The trigger is a malformed string.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the fix looks like
&lt;/h2&gt;

&lt;p&gt;Endor Labs reports the fix as JDK-8393212, "Base64 optimization improvements," a four-line change that adds a guard before the size computation and routes short padded tails to the scalar path. Engineers committed it under embargo on October 14, 2026. Endor Labs also notes that on November 17 the public &lt;code&gt;jdk17u&lt;/code&gt;, &lt;code&gt;jdk21u&lt;/code&gt; and &lt;code&gt;jdk25u&lt;/code&gt; repositories did not yet carry the fix, while Oracle's builds had shipped.&lt;/p&gt;

&lt;p&gt;The vulnerable code arrived in 17.0.6 in January 2023 through a backport from JDK 18, and Equixly flags the 17.0.6 starting point as its own inference from backport history.&lt;/p&gt;

&lt;h2&gt;
  
  
  From crash to code execution
&lt;/h2&gt;

&lt;p&gt;The crash path is simple. If the 62 stray bytes land on a live object, they overwrite its header, and the usual result is a SIGSEGV inside garbage collection, per Endor Labs. Equixly warns the crash log will not mention Base64, because the garbage collector reads the damaged object later.&lt;/p&gt;

&lt;p&gt;Calif claims much more, in five stages.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Stage&lt;/th&gt;
&lt;th&gt;Claimed step&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;Corrupt an array length&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;Corrupt a second array to leak heap contents, which Calif calls JavaBleed&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;Repair object headers so the JVM keeps running&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;Groom the heap remotely so the overflow lands on a chosen object&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;td&gt;Write into the JVM code cache&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Endor Labs marks every one of these as Calif's claim. Calif says there is no universal exploit, and that each target needs its own decoder route, writable buffer, readable feedback channel and heap layout. The sources I read do not discuss address space randomization at all, so I will not call it a barrier or a bypass.&lt;/p&gt;

&lt;p&gt;This is why your exposure depends on the application and not just the JVM. A service that decodes attacker data with &lt;code&gt;Base64.getDecoder()&lt;/code&gt; on a hot path, and reflects some of the result, has the shape Calif describes. A service that never decodes attacker input is a crash risk at worst. Whether HTTP Basic or JWT parsing in a given product qualifies is an open question in the sources, so I treat it as unknown.&lt;/p&gt;

&lt;h2&gt;
  
  
  What does not reach the bug
&lt;/h2&gt;

&lt;p&gt;Per the write-ups, these cases never reach the bug.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The MIME decoder takes the scalar path.&lt;/li&gt;
&lt;li&gt;Third-party Base64 libraries that do not call &lt;code&gt;java.util.Base64&lt;/code&gt; do not reach the intrinsic.&lt;/li&gt;
&lt;li&gt;ARM64 hosts, including Graviton, Ampere and Apple silicon, have no such stub. Equixly ran 794 crafted inputs on Temurin 17.0.21 for arm64 and saw no stray writes.&lt;/li&gt;
&lt;li&gt;x86-64 without AVX-512 VBMI, such as Skylake-SP, Cascade Lake and AMD before Zen 4.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;One discrepancy to know about: Equixly requires AVX-512 BW as well as VBMI, while Cyber Security News names only VBMI. Qualys lists four CPU flags (&lt;code&gt;avx512f&lt;/code&gt;, &lt;code&gt;avx512bw&lt;/code&gt;, &lt;code&gt;avx512vbmi&lt;/code&gt;, &lt;code&gt;bmi2&lt;/code&gt;) and says all four must appear.&lt;/p&gt;

&lt;h2&gt;
  
  
  Detection engineering
&lt;/h2&gt;

&lt;p&gt;You cannot detect this with a dependency scan, since the flaw is in the runtime. You detect it at the edge, in the logs and on the host.&lt;/p&gt;

&lt;h3&gt;
  
  
  Edge rules
&lt;/h3&gt;

&lt;p&gt;The malformed shape is checkable without decoding. Padded Base64 has a length divisible by 4, so a token ending in &lt;code&gt;=&lt;/code&gt; or &lt;code&gt;==&lt;/code&gt; with a length that is not a multiple of 4 fails on sight. Upwind's heuristic adds a size floor of 32 characters. Endor Labs suggests 65 as the lower bound when you run mixed Java versions. Equixly offers this rule for the Authorization header.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;^Basic\s+(?:\S{4})*\S{0,2}=$
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I have not tested it. Run it in log-only mode against production traffic first, because a wrong rule that blocks real logins is its own outage.&lt;/p&gt;

&lt;h3&gt;
  
  
  Application logs
&lt;/h3&gt;

&lt;p&gt;Every trigger throws after the write. A burst of &lt;code&gt;IllegalArgumentException&lt;/code&gt; from &lt;code&gt;java.util.Base64&lt;/code&gt; in a request handler, clustered by source address, is the signal Endor Labs recommends. Paced or fragmented Base64 traffic at a high rate from one source fits the same pattern, since heap grooming needs repeated attempts.&lt;/p&gt;

&lt;h3&gt;
  
  
  Host signals
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;New &lt;code&gt;hs_err_pid*.log&lt;/code&gt; files with a SIGSEGV in a GC copy routine and a compiled &lt;code&gt;Base64$Decoder.decode0&lt;/code&gt; frame&lt;/li&gt;
&lt;li&gt;Repeated JVM restarts of one service&lt;/li&gt;
&lt;li&gt;Java processes that spawn a shell or open new outbound connections&lt;/li&gt;
&lt;li&gt;Oversized or binary-looking responses from endpoints that echo decoded input, which would match the leak stage Calif describes
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Recent JVM crash logs and their crash lines&lt;/span&gt;
find / -name &lt;span class="s1"&gt;'hs_err_pid*.log'&lt;/span&gt; -mtime -2 2&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;/dev/null &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="k"&gt;while&lt;/span&gt; &lt;span class="nb"&gt;read&lt;/span&gt; -r f&lt;span class="o"&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="s2"&gt;"$f"&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt; grep -m1 -E &lt;span class="s1"&gt;'^# (SIGSEGV|Problematic frame)'&lt;/span&gt; &lt;span class="s2"&gt;"$f"&lt;/span&gt;
&lt;span class="k"&gt;done&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A crash log alone is not evidence of an attack. JVMs crash for plenty of other reasons. A cluster of crashes that line up with decode-heavy requests from one source is.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where the sources disagree
&lt;/h2&gt;

&lt;p&gt;I kept a list while reading, and you should keep your own.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Oracle's status. Equixly wrote that the fix was still pending. Qualys, Upwind and Cyber Security News say Oracle shipped fixed builds on November 17.&lt;/li&gt;
&lt;li&gt;Severity. Qualys attributes the 9.2 (CVSS 4.0) to the researchers, Equixly to South Korea's NCSC, and nobody has published a vector string. Cyber Security News calls the 8.1 (CVSS 3.1) the OpenJDK advisory score, and Equixly says Oracle has not said which of its November flaws carries that score.&lt;/li&gt;
&lt;li&gt;Java 8. Qualys and Cyber Security News list Oracle's 8u511b33-perf Performance Pack as affected. The same sources call standard Java 8 not affected.&lt;/li&gt;
&lt;li&gt;The CVE mapping. Endor Labs marks the mapping from this bug to CVE-2026-114938 as not confirmed, because it could not retrieve the OpenJDK advisory. Check the CVE record yourself before you cite it in a ticket.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The bottom line
&lt;/h2&gt;

&lt;p&gt;The mechanism is narrow: one assembly tail, one hardware feature, one malformed input shape. The reach is wide, because it sits in the runtime that bundled products carry. The honest status on November 17 is a proven crash, a claimed code execution chain and a patch that exists.&lt;/p&gt;

&lt;p&gt;If you only do one thing, put a malformed-padding check in front of your Base64 decoding paths and an alert on the exception, then patch on your normal fast track. If a public exploit lands next week, you will already be watching the right signal.&lt;/p&gt;

&lt;p&gt;What would you want your WAF to tell you about a bug class it cannot see inside the runtime?&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;GDS K S&lt;/strong&gt; · &lt;a href="https://thegdsks.com" rel="noopener noreferrer"&gt;thegdsks.com&lt;/a&gt; · building &lt;a href="https://glincker.com" rel="noopener noreferrer"&gt;Glincker&lt;/a&gt; · follow on X &lt;a href="https://x.com/thegdsks" rel="noopener noreferrer"&gt;@thegdsks&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;A bug in the runtime is a bug in everything that runs on it.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Sources: &lt;a href="https://www.upwind.io/blog/java4shell-what-we-know-now-and-what-comes-next" rel="noopener noreferrer"&gt;Upwind&lt;/a&gt;, &lt;a href="https://www.endorlabs.com/learn/java4shell-unauthenticated-rce-reported-in-openjdk-17-cve-2026-114938" rel="noopener noreferrer"&gt;Endor Labs&lt;/a&gt;, &lt;a href="https://equixly.com/blog/2026/11/17/cve-2026-114938-pre-auth-heap-overflow-in-java-17-21-and-25/" rel="noopener noreferrer"&gt;Equixly&lt;/a&gt;, &lt;a href="https://blog.qualys.com/vulnerabilities-threat-research/2026/11/17/how-to-find-mitigate-and-patch-the-critical-java4shell-flaw-cve-2026-114938-now" rel="noopener noreferrer"&gt;Qualys&lt;/a&gt;, &lt;a href="https://cybersecuritynews.com/java4shell/" rel="noopener noreferrer"&gt;Cyber Security News&lt;/a&gt;, &lt;a href="https://calif.io/java4shell/" rel="noopener noreferrer"&gt;Calif&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>java</category>
      <category>security</category>
      <category>jvm</category>
      <category>appsec</category>
    </item>
    <item>
      <title>Java4Shell CVE-2026-114938: Is Your Server Next? Find Every Vulnerable JVM</title>
      <dc:creator>GDS K S</dc:creator>
      <pubDate>Wed, 18 Nov 2026 02:50:55 +0000</pubDate>
      <link>https://dev.to/thegdsks/java4shell-runbook-find-every-vulnerable-jvm-today-4ei0</link>
      <guid>https://dev.to/thegdsks/java4shell-runbook-find-every-vulnerable-jvm-today-4ei0</guid>
      <description>&lt;h1&gt;
  
  
  Java4Shell CVE-2026-114938: Is Your Server Next? Find Every Vulnerable JVM
&lt;/h1&gt;

&lt;p&gt;CVE-2026-114938 (Java4Shell) is a heap out-of-bounds write in OpenJDK's AVX-512 Base64 decoder. I covered the background in a separate post. This one is the runbook: how to find the JVMs that matter, what to run, what to change and how to prove it worked.&lt;/p&gt;

&lt;p&gt;I have not run this against a vulnerable machine. The commands come from the Qualys, Upwind, Endor Labs and Equixly write-ups, and I only checked that the shell and Java snippets parse. Test in staging first.&lt;/p&gt;

&lt;h2&gt;
  
  
  TL;DR
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Step&lt;/th&gt;
&lt;th&gt;Goal&lt;/th&gt;
&lt;th&gt;Time&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1. Inventory&lt;/td&gt;
&lt;td&gt;Find the real runtime behind every Java process&lt;/td&gt;
&lt;td&gt;minutes per host&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2. Hardware check&lt;/td&gt;
&lt;td&gt;Split hosts by AVX-512 VBMI&lt;/td&gt;
&lt;td&gt;seconds&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3. Patch&lt;/td&gt;
&lt;td&gt;Move to a vendor build that carries the fix&lt;/td&gt;
&lt;td&gt;your restart window&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4. Mitigate&lt;/td&gt;
&lt;td&gt;Apply a JVM flag where you cannot patch&lt;/td&gt;
&lt;td&gt;one restart&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;5. Verify&lt;/td&gt;
&lt;td&gt;Prove the flag or build is live in the running process&lt;/td&gt;
&lt;td&gt;seconds&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;6. Watch&lt;/td&gt;
&lt;td&gt;Alert on crash and decode patterns&lt;/td&gt;
&lt;td&gt;ongoing&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  1. Inventory the JVM that actually runs
&lt;/h2&gt;

&lt;p&gt;Your shell's &lt;code&gt;java&lt;/code&gt; tells you very little. Jenkins, Jira, Confluence, Keycloak and Elasticsearch ship or select their own runtime. Equixly and Endor Labs both call this out. Ask 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="c"&gt;#!/usr/bin/env bash&lt;/span&gt;
&lt;span class="c"&gt;# jvm-inventory.sh: one line per running JVM with its real binary and version&lt;/span&gt;
&lt;span class="nb"&gt;set&lt;/span&gt; -u
&lt;span class="k"&gt;for&lt;/span&gt; pid &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="nv"&gt;$(&lt;/span&gt;pgrep -f &lt;span class="s1"&gt;'[j]ava'&lt;/span&gt;&lt;span class="o"&gt;)&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt; &lt;span class="k"&gt;do&lt;/span&gt;
  &lt;span class="nv"&gt;exe&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="nv"&gt;$(&lt;/span&gt;readlink -f &lt;span class="s2"&gt;"/proc/$pid/exe"&lt;/span&gt; 2&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;/dev/null &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="nb"&gt;echo&lt;/span&gt; unknown&lt;span class="o"&gt;)&lt;/span&gt;
  &lt;span class="nv"&gt;ver&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="nv"&gt;$(&lt;/span&gt;jcmd &lt;span class="s2"&gt;"$pid"&lt;/span&gt; VM.version 2&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;/dev/null &lt;span class="o"&gt;|&lt;/span&gt; grep -m1 -E &lt;span class="s1"&gt;'JDK|OpenJDK'&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"jcmd unavailable"&lt;/span&gt;&lt;span class="o"&gt;)&lt;/span&gt;
  &lt;span class="nb"&gt;printf&lt;/span&gt; &lt;span class="s1"&gt;'%s\t%s\t%s\n'&lt;/span&gt; &lt;span class="s2"&gt;"$pid"&lt;/span&gt; &lt;span class="s2"&gt;"$exe"&lt;/span&gt; &lt;span class="s2"&gt;"$ver"&lt;/span&gt;
&lt;span class="k"&gt;done&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;jcmd&lt;/code&gt; must run as the same user as the target JVM. If it prints "jcmd unavailable", the process may be a minimal runtime without the JDK tools. Fall back to &lt;code&gt;"$exe" -version&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Version triage, using the ranges Qualys and Upwind list.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Line&lt;/th&gt;
&lt;th&gt;Affected&lt;/th&gt;
&lt;th&gt;Fixed Oracle build&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;17&lt;/td&gt;
&lt;td&gt;17.0.6 and later, before the fix&lt;/td&gt;
&lt;td&gt;17.0.21.1&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;21&lt;/td&gt;
&lt;td&gt;up to 21.0.13&lt;/td&gt;
&lt;td&gt;21.0.13.1&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;25&lt;/td&gt;
&lt;td&gt;up to 25.0.5&lt;/td&gt;
&lt;td&gt;25.0.5.1&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;27&lt;/td&gt;
&lt;td&gt;up to 27.0.1&lt;/td&gt;
&lt;td&gt;27.0.1.1&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;8&lt;/td&gt;
&lt;td&gt;Oracle Enterprise Performance Pack 8u511b33-perf&lt;/td&gt;
&lt;td&gt;8u513-perf&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;11, 17.0.0 to 17.0.5, standard 8&lt;/td&gt;
&lt;td&gt;not affected&lt;/td&gt;
&lt;td&gt;none needed&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;A version number is not proof. Endor Labs warns that an LTS build with a matching number may still lack the commit, because the fix is tracked as JDK-8393212. Treat the vendor advisory as the source of truth, and note that Qualys lists Corretto 17.0.21.1.2 as released.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Check the hardware
&lt;/h2&gt;

&lt;p&gt;Only x86-64 hosts with AVX-512 VBMI reach the vulnerable routine. Run this on each host or container node.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;grep -m1 &lt;span class="s1"&gt;'^flags'&lt;/span&gt; /proc/cpuinfo &lt;span class="o"&gt;|&lt;/span&gt; tr &lt;span class="s1"&gt;' '&lt;/span&gt; &lt;span class="s1"&gt;'\n'&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; grep -E &lt;span class="s1"&gt;'^(avx512f|avx512bw|avx512vbmi|bmi2)$'&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; sort
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Per Qualys, you are on the hardware side of the risk only when all four flags appear. Intel Ice Lake and later server parts and AMD Zen 4 and later qualify. ARM64, including Graviton and Apple silicon, does not.&lt;/p&gt;

&lt;p&gt;In Kubernetes, pods inherit the node's CPU, so check the node and not the image.&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;# Which nodes would run the vulnerable path&lt;/span&gt;
&lt;span class="k"&gt;for&lt;/span&gt; node &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="nv"&gt;$(&lt;/span&gt;kubectl get nodes -o name&lt;span class="o"&gt;)&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt; &lt;span class="k"&gt;do&lt;/span&gt;
  &lt;span class="nv"&gt;pod&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"cpucheck-${node#node/}"&lt;/span&gt;
  kubectl debug &lt;span class="s2"&gt;"$node"&lt;/span&gt; -q --image=busybox --profile=general -- \
    sh -c &lt;span class="s2"&gt;"grep -m1 '^flags' /proc/cpuinfo | tr ' ' '\n' | grep -c avx512vbmi"&lt;/span&gt; 2&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;/dev/null \
    &lt;span class="o"&gt;|&lt;/span&gt; sed &lt;span class="s2"&gt;"s|^|$node  avx512vbmi=|"&lt;/span&gt;
&lt;span class="k"&gt;done&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Remember Qualys's caution: a resize or an instance family change can move a workload onto an affected CPU later. A host that passes today is not a permanent pass.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Patch
&lt;/h2&gt;

&lt;p&gt;Patching is the only complete fix, and the vendors say so. The steps that bite people are all about the running process.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Rebuild container images from a base that carries the fixed JDK, then redeploy. Replacing files on disk does not change a JVM that is already running.&lt;/li&gt;
&lt;li&gt;Restart every Java process. Without a restart you have patched a file, not a process.&lt;/li&gt;
&lt;li&gt;For bundled runtimes, take the application vendor's update, not a hand-swapped JDK, unless the vendor documents it.&lt;/li&gt;
&lt;li&gt;For Temurin, Zulu, Microsoft, Red Hat and distro packages, confirm the fixed build in the vendor advisory. Equixly could not confirm those on November 17.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  4. Mitigate where you cannot patch yet
&lt;/h2&gt;

&lt;p&gt;Both Qualys and Upwind recommend one flag first.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;-XX:-UseBASE64Intrinsics
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It turns off the fast decoder on any architecture. Qualys warns that large Base64 workloads may slow down, and Upwind reports it stopped the overflow on every affected version they tested. In a container, set it through the environment.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight docker"&gt;&lt;code&gt;&lt;span class="k"&gt;ENV&lt;/span&gt; &lt;span class="nv"&gt;JAVA_TOOL_OPTIONS&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"-XX:-UseBASE64Intrinsics"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Two alternatives appear in the write-ups, and each has a trap.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Flag&lt;/th&gt;
&lt;th&gt;Trap&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;-XX:UseAVX=2&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Disables all AVX-512, so it can slow unrelated work. On ARM the JVM refuses to start.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;-XX:DisableIntrinsic=_base64_decodeBlock&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Without &lt;code&gt;-XX:+UnlockDiagnosticVMOptions&lt;/code&gt; the JVM will not start. Pushed through &lt;code&gt;JAVA_TOOL_OPTIONS&lt;/code&gt;, Upwind calls it a fleet-wide outage.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;A reverse proxy is not a control. Qualys says so plainly, and CISA's size-limit advice does not stop this bug on its own.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Verify in the running process
&lt;/h2&gt;

&lt;p&gt;Setting a flag in a manifest proves nothing until you ask 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="c"&gt;# Flag state inside a live JVM&lt;/span&gt;
jcmd &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;pid&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; VM.flags &lt;span class="o"&gt;|&lt;/span&gt; tr &lt;span class="s1"&gt;' '&lt;/span&gt; &lt;span class="s1"&gt;'\n'&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; grep -E &lt;span class="s1"&gt;'UseBASE64Intrinsics|UseAVX'&lt;/span&gt;

&lt;span class="c"&gt;# Or ask a fresh JVM what it would do with your options&lt;/span&gt;
java -XX:+PrintFlagsFinal -version &lt;span class="o"&gt;|&lt;/span&gt; grep -E &lt;span class="s1"&gt;'UseAVX|UseBASE64Intrinsics'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You want &lt;code&gt;UseBASE64Intrinsics = false&lt;/code&gt; in the process. Remove the flag after the patch lands, because it costs speed.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. A guard in your own code
&lt;/h2&gt;

&lt;p&gt;If you decode untrusted Base64 with &lt;code&gt;java.util.Base64&lt;/code&gt;, you can reject the malformed shape before the decoder sees it. Upwind's detection heuristic is a Base64-alphabet token of 32 or more characters that ends in &lt;code&gt;=&lt;/code&gt; and whose length is not a multiple of 4. Well-formed padded Base64 always has a length divisible by 4.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight java"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;java&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;util&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Base64&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="kd"&gt;final&lt;/span&gt; &lt;span class="k"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;SafeBase64&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;private&lt;/span&gt; &lt;span class="nc"&gt;SafeBase64&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;

    &lt;span class="cm"&gt;/** Rejects padded input whose length cannot be valid Base64 before decoding. */&lt;/span&gt;
    &lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="k"&gt;static&lt;/span&gt; &lt;span class="kt"&gt;byte&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="nf"&gt;decode&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kt"&gt;String&lt;/span&gt; &lt;span class="n"&gt;input&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;input&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;endsWith&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"="&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="n"&gt;input&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;length&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;%&lt;/span&gt; &lt;span class="mi"&gt;4&lt;/span&gt; &lt;span class="o"&gt;!=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="k"&gt;throw&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;IllegalArgumentException&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"malformed base64 padding"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nc"&gt;Base64&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getDecoder&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;decode&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;input&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is defense in depth. It narrows the input, and it does not replace the patch. I have not tested it against Calif's chains, which are unpublished.&lt;/p&gt;

&lt;h2&gt;
  
  
  7. Detection
&lt;/h2&gt;

&lt;p&gt;Endor Labs and Equixly suggest the same few signals.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Authorization headers or request fields where Base64 ends in &lt;code&gt;=&lt;/code&gt; or &lt;code&gt;==&lt;/code&gt; and the length is not a multiple of 4. Equixly offers a WAF rule for the header: &lt;code&gt;^Basic\s+(?:\S{4})*\S{0,2}=$&lt;/code&gt;. I have not validated it.&lt;/li&gt;
&lt;li&gt;Bursts of &lt;code&gt;IllegalArgumentException&lt;/code&gt; from &lt;code&gt;java.util.Base64&lt;/code&gt; in request handlers, because every trigger throws after the write.&lt;/li&gt;
&lt;li&gt;New &lt;code&gt;hs_err_pid*.log&lt;/code&gt; files. Equixly warns the log will not name Base64, because the crash comes later when the garbage collector reads the damaged object. Endor Labs describes a SIGSEGV in a GC copy routine with a compiled &lt;code&gt;Base64$Decoder.decode0&lt;/code&gt; frame, clustered by source IP.&lt;/li&gt;
&lt;li&gt;Java processes that start a shell or open new outbound connections, which Qualys lists as a monitoring signal.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Quick sweep for recent JVM crash logs and their crash frame&lt;/span&gt;
find / -name &lt;span class="s1"&gt;'hs_err_pid*.log'&lt;/span&gt; -mtime -2 2&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;/dev/null &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="k"&gt;while&lt;/span&gt; &lt;span class="nb"&gt;read&lt;/span&gt; -r f&lt;span class="o"&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="s2"&gt;"$f"&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt; grep -m1 -E &lt;span class="s1"&gt;'^# (SIGSEGV|Problematic frame)'&lt;/span&gt; &lt;span class="s2"&gt;"$f"&lt;/span&gt;
&lt;span class="k"&gt;done&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  8. Priorities
&lt;/h2&gt;

&lt;p&gt;Qualys orders the work like this: internet-facing identity providers first, then Jira, Confluence, Jenkins and Artifactory, then other internet-facing Java services, then internal Kafka, Solr, Elasticsearch, Gerrit and Spinnaker. The first group is first because Calif's pre-auth claims name them.&lt;/p&gt;

&lt;h2&gt;
  
  
  The bottom line
&lt;/h2&gt;

&lt;p&gt;The slow part of this incident will not be the patch. It will be learning which of your processes are Java and which JDK they use. Run the inventory script once, keep its output, and you will have the answer ready for the next runtime bug too.&lt;/p&gt;

&lt;p&gt;How many of your JVMs would the script find that nobody on your team knew about?&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;GDS K S&lt;/strong&gt; · &lt;a href="https://thegdsks.com" rel="noopener noreferrer"&gt;thegdsks.com&lt;/a&gt; · building &lt;a href="https://glincker.com" rel="noopener noreferrer"&gt;Glincker&lt;/a&gt; · follow on X &lt;a href="https://x.com/thegdsks" rel="noopener noreferrer"&gt;@thegdsks&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;You cannot patch a runtime you have not inventoried.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Sources: &lt;a href="https://blog.qualys.com/vulnerabilities-threat-research/2026/11/17/how-to-find-mitigate-and-patch-the-critical-java4shell-flaw-cve-2026-114938-now" rel="noopener noreferrer"&gt;Qualys&lt;/a&gt;, &lt;a href="https://www.upwind.io/blog/java4shell-what-we-know-now-and-what-comes-next" rel="noopener noreferrer"&gt;Upwind&lt;/a&gt;, &lt;a href="https://www.endorlabs.com/learn/java4shell-unauthenticated-rce-reported-in-openjdk-17-cve-2026-114938" rel="noopener noreferrer"&gt;Endor Labs&lt;/a&gt;, &lt;a href="https://equixly.com/blog/2026/11/17/cve-2026-114938-pre-auth-heap-overflow-in-java-17-21-and-25/" rel="noopener noreferrer"&gt;Equixly&lt;/a&gt;, &lt;a href="https://www.cisa.gov/news-events/alerts/2026/11/17/critical-java-vulnerability-requires-immediate-patching" rel="noopener noreferrer"&gt;CISA alert&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>java</category>
      <category>security</category>
      <category>devops</category>
      <category>kubernetes</category>
    </item>
    <item>
      <title>Java4Shell (CVE-2026-114938): The Bug That Leaked Before Its Patch</title>
      <dc:creator>GDS K S</dc:creator>
      <pubDate>Wed, 18 Nov 2026 02:50:52 +0000</pubDate>
      <link>https://dev.to/thegdsks/java4shell-one-stray-sign-vs-your-java-server-4j3j</link>
      <guid>https://dev.to/thegdsks/java4shell-one-stray-sign-vs-your-java-server-4j3j</guid>
      <description>&lt;h1&gt;
  
  
  Java4Shell (CVE-2026-114938): The Bug That Leaked Before Its Patch
&lt;/h1&gt;

&lt;p&gt;On November 17, 2026, a security firm called Calif published a write-up titled "Write once, RCE everywhere." The bug it describes, tracked as CVE-2026-114938 and nicknamed Java4Shell, lives in &lt;code&gt;java.util.Base64&lt;/code&gt;, a class most of us have called without a second thought. Endor Labs calls the fix four lines. The names on the affected list are Keycloak, Jira, Confluence, Artifactory, Jenkins and PingFederate.&lt;/p&gt;

&lt;p&gt;I spent the day reading the advisories and vendor write-ups so you don't have to. Some of what you will see on social media has a reproduction behind it. Some is Calif's claim with no public proof yet. I'll keep the two apart, because the difference decides how fast you need to move.&lt;/p&gt;

&lt;h2&gt;
  
  
  TL;DR
&lt;/h2&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;Short answer&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;What is it&lt;/td&gt;
&lt;td&gt;CVE-2026-114938, nicknamed Java4Shell, a heap out-of-bounds write in OpenJDK's hardware-accelerated Base64 decoder&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;How big is the write&lt;/td&gt;
&lt;td&gt;62 bytes past the end of the output array, per Upwind and Endor Labs&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Who is at risk&lt;/td&gt;
&lt;td&gt;HotSpot 17.0.6 and later, plus 21, 25 and 27, on x86-64 CPUs with AVX-512 VBMI&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Who is not&lt;/td&gt;
&lt;td&gt;ARM64, older Xeons, AMD before Zen 4, Java 8 and 11 (standard builds), and the MIME decoder&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Exploitation&lt;/td&gt;
&lt;td&gt;No exploitation in the wild reported, not in CISA KEV as of November 17&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Is there a fix&lt;/td&gt;
&lt;td&gt;Oracle shipped fixed builds on November 17, other vendors on their own schedules&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  How a Base64 string becomes a crash
&lt;/h2&gt;

&lt;p&gt;Base64 decoding is boring work, so HotSpot does not do it in plain Java. Once the JIT decides the decoder is hot, it swaps the Java loop for a hand-written assembly routine that uses AVX-512 to chew through the input in wide chunks. That gives the speedup, and it also hosts the bug.&lt;/p&gt;

&lt;p&gt;The routine has a special path for the last characters of the string. Per Upwind, a malformed string that ends in a stray &lt;code&gt;=&lt;/code&gt; makes that tail code calculate a negative output length. A small write turns into a full 64-byte write, 62 bytes past the end of the array. Java then notices the input is invalid and throws an exception. By that point the bytes are already in memory.&lt;/p&gt;

&lt;p&gt;Those bytes are a constant. Endor Labs says the content of the overflow is the same whatever you send. The attacker does not choose what gets written. They choose where it lands by shaping the heap.&lt;/p&gt;

&lt;p&gt;If the bytes land in free memory, nothing happens. If they land on a live object, they destroy its header. Endor Labs puts the usual result as a SIGSEGV inside garbage collection. That is the part everyone agrees on: a remotely triggerable JVM crash.&lt;/p&gt;

&lt;h2&gt;
  
  
  The part people argue about
&lt;/h2&gt;

&lt;p&gt;Calif says the overflow escalates much further. In their write-up, a chain of five stages corrupts an array length, uses a second array to leak heap contents, repairs object headers, grooms the heap remotely and finally writes into the JVM's code cache. Their claimed results are pre-auth RCE on default installs of Keycloak, Jira, Confluence, Artifactory, Jenkins and PingFederate, and post-auth RCE on Kafka, Solr, Elasticsearch, Gerrit and Spinnaker.&lt;/p&gt;

&lt;p&gt;Here is what I could and could not confirm.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Calif reports that they found the bug with AI help in about an hour and had a first working exploit about two hours later. That is their timeline, not an independently checked one.&lt;/li&gt;
&lt;li&gt;No public proof-of-concept shell exists. Calif is withholding the product-specific exploits and published a safe reproducer only.&lt;/li&gt;
&lt;li&gt;Calif itself says there is no universal exploit. Each target needs its own decoder route, writable buffer, feedback channel and heap layout.&lt;/li&gt;
&lt;li&gt;Equixly, writing the same day, calls RCE unproven and calls a JVM crash the realistic outcome.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Both readings can be true at once. A crash needs no skill. Code execution needs a skilled attacker per product, but the defenders' clock is Calif's own statement that product exploits will follow.&lt;/p&gt;

&lt;h2&gt;
  
  
  The numbers that matter
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Number&lt;/th&gt;
&lt;th&gt;What it is&lt;/th&gt;
&lt;th&gt;Source&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;62&lt;/td&gt;
&lt;td&gt;Bytes written past the array for a single &lt;code&gt;=&lt;/code&gt; tail (63 for &lt;code&gt;==&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;Upwind, Endor Labs&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;65&lt;/td&gt;
&lt;td&gt;Shortest trigger length on Java 21, 25 and 27&lt;/td&gt;
&lt;td&gt;Endor Labs, Equixly&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;129&lt;/td&gt;
&lt;td&gt;Shortest trigger length on Java 17&lt;/td&gt;
&lt;td&gt;Endor Labs, Equixly&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;9.2&lt;/td&gt;
&lt;td&gt;CVSS 4.0 score, attributed to the researchers&lt;/td&gt;
&lt;td&gt;Qualys, Endor Labs&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;8.1&lt;/td&gt;
&lt;td&gt;Oracle's CVSS 3.1 score for the November update&lt;/td&gt;
&lt;td&gt;Qualys, Endor Labs&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;11&lt;/td&gt;
&lt;td&gt;Java SE fixes in Oracle's November update, all remotely exploitable without auth&lt;/td&gt;
&lt;td&gt;Endor Labs&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Jan 2023&lt;/td&gt;
&lt;td&gt;Backport of the vulnerable decoder into 17.0.6&lt;/td&gt;
&lt;td&gt;Endor Labs&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Oct 14, 2026&lt;/td&gt;
&lt;td&gt;Fix committed under embargo&lt;/td&gt;
&lt;td&gt;Endor Labs&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The sources disagree on several details. Equixly attributes the 9.2 score to South Korea's NCSC while the others attribute it to Calif, and nobody has published a CVSS vector string. Treat the score as a signal, not a measurement.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why this one has legs
&lt;/h2&gt;

&lt;p&gt;Three things make this more than a routine patch Tuesday item.&lt;/p&gt;

&lt;p&gt;The first is the reach. This is not a library you can grep for in a lockfile. The flaw sits in the runtime itself, so dependency scanning of &lt;code&gt;pom.xml&lt;/code&gt; or &lt;code&gt;build.gradle&lt;/code&gt; will not surface it. Endor Labs says so directly, and that is the main reason I expect this to linger in fleets for months.&lt;/p&gt;

&lt;p&gt;The second is that you can be vulnerable by accident of hardware. Qualys warns that a workload on an unaffected CPU can land on an affected one after a resize or an instance type change. The same container image, the same JVM flags, a different answer.&lt;/p&gt;

&lt;p&gt;The third is the leak. Per Upwind and Endor Labs, the bug reportedly leaked before its patch was ready. The NCSC in South Korea told public institutions to inspect their Java runtimes on November 16, a day before the fix shipped.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I would do before lunch
&lt;/h2&gt;

&lt;p&gt;Start by finding out which JVM each service really runs. The &lt;code&gt;java&lt;/code&gt; on your shell path is often not the one your service uses, especially for Jenkins, Jira, Confluence, Keycloak and Elasticsearch, which bundle their own runtime.&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;# The real runtime behind a running service, not the first java on PATH&lt;/span&gt;
&lt;span class="k"&gt;for&lt;/span&gt; pid &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="nv"&gt;$(&lt;/span&gt;pgrep -f &lt;span class="s1"&gt;'[j]ava'&lt;/span&gt;&lt;span class="o"&gt;)&lt;/span&gt;&lt;span class="o"&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="s2"&gt;"pid $pid  $(readlink -f /proc/$pid/exe)"&lt;/span&gt;
  jcmd &lt;span class="s2"&gt;"$pid"&lt;/span&gt; VM.version 2&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;/dev/null &lt;span class="o"&gt;|&lt;/span&gt; sed -n &lt;span class="s1"&gt;'2,3p'&lt;/span&gt;
&lt;span class="k"&gt;done&lt;/span&gt;

&lt;span class="c"&gt;# Does this host have the CPU feature at all&lt;/span&gt;
grep -m1 &lt;span class="s1"&gt;'^flags'&lt;/span&gt; /proc/cpuinfo &lt;span class="o"&gt;|&lt;/span&gt; tr &lt;span class="s1"&gt;' '&lt;/span&gt; &lt;span class="s1"&gt;'\n'&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; grep -E &lt;span class="s1"&gt;'^(avx512f|avx512bw|avx512vbmi|bmi2)$'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Qualys says a host meets the hardware condition only when all four flags appear. If the second command prints nothing, the host is not exposed to this particular code path, though I would still patch it.&lt;/p&gt;

&lt;p&gt;Then patch. The Oracle fixed builds named by Qualys are 17.0.21.1, 21.0.13.1, 25.0.5.1 and 27.0.1.1, and Corretto 17.0.21.1.2. For Temurin, Zulu, Microsoft, Red Hat and your distro packages, check the vendor advisory, because I could not confirm their fixed builds today. Remember that a running JVM does not change when you replace files on disk. Rebuild images and restart processes.&lt;/p&gt;

&lt;p&gt;If you cannot patch today, the workaround both Qualys and Upwind recommend is a JVM flag.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;java -XX:-UseBASE64Intrinsics -jar app.jar
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It switches off the fast decoder, so heavy Base64 workloads may slow down. Test before rolling it out. One warning from Upwind that I want to repeat: a variant circulating online, &lt;code&gt;-XX:DisableIntrinsic=_base64_decodeBlock&lt;/code&gt;, stops the JVM from starting on its own and becomes a fleet-wide outage when pushed through &lt;code&gt;JAVA_TOOL_OPTIONS&lt;/code&gt;. Endor Labs lists it only together with &lt;code&gt;-XX:+UnlockDiagnosticVMOptions&lt;/code&gt;. Skip it and use the flag above.&lt;/p&gt;

&lt;h2&gt;
  
  
  The bottom line
&lt;/h2&gt;

&lt;p&gt;I have not reproduced this myself, and I would not trust any article that claims to have run Calif's chains without Calif's code. What the public record supports today is a real, remotely triggerable memory-safety bug in the runtime that carries a vendor fix and a one-line mitigation. Whether it becomes the next Log4Shell depends on whether Calif's promised product exploits arrive before your restart window closes.&lt;/p&gt;

&lt;p&gt;Here is the question I would put to your team today: if someone asked you to list every JVM your company runs, including the ones inside vendor appliances, how long would that take?&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;GDS K S&lt;/strong&gt; · &lt;a href="https://thegdsks.com" rel="noopener noreferrer"&gt;thegdsks.com&lt;/a&gt; · building &lt;a href="https://glincker.com" rel="noopener noreferrer"&gt;Glincker&lt;/a&gt; · follow on X &lt;a href="https://x.com/thegdsks" rel="noopener noreferrer"&gt;@thegdsks&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;The scariest runtime bugs are the ones your dependency scanner cannot see.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Sources: &lt;a href="https://www.upwind.io/blog/java4shell-what-we-know-now-and-what-comes-next" rel="noopener noreferrer"&gt;Upwind&lt;/a&gt;, &lt;a href="https://www.endorlabs.com/learn/java4shell-unauthenticated-rce-reported-in-openjdk-17-cve-2026-114938" rel="noopener noreferrer"&gt;Endor Labs&lt;/a&gt;, &lt;a href="https://blog.qualys.com/vulnerabilities-threat-research/2026/11/17/how-to-find-mitigate-and-patch-the-critical-java4shell-flaw-cve-2026-114938-now" rel="noopener noreferrer"&gt;Qualys&lt;/a&gt;, &lt;a href="https://equixly.com/blog/2026/11/17/cve-2026-114938-pre-auth-heap-overflow-in-java-17-21-and-25/" rel="noopener noreferrer"&gt;Equixly&lt;/a&gt;, &lt;a href="https://calif.io/java4shell/" rel="noopener noreferrer"&gt;Calif&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>java</category>
      <category>security</category>
      <category>cybersecurity</category>
      <category>devops</category>
    </item>
    <item>
      <title>My ISP would not give me a public IP, so I stopped asking for one</title>
      <dc:creator>GDS K S</dc:creator>
      <pubDate>Sun, 15 Nov 2026 17:44:00 +0000</pubDate>
      <link>https://dev.to/thegdsks/my-isp-would-not-give-me-a-public-ip-so-i-stopped-asking-for-one-4o85</link>
      <guid>https://dev.to/thegdsks/my-isp-would-not-give-me-a-public-ip-so-i-stopped-asking-for-one-4o85</guid>
      <description>&lt;h1&gt;
  
  
  My ISP would not give me a public IP, so I stopped asking for one
&lt;/h1&gt;

&lt;p&gt;I once spent an evening forwarding port 443 on a home router, only to find the router's "WAN address" was a private range. My provider shared one public IPv4 address between many customers. No port forward on my side could ever work, because the traffic never reached my router. That setup is called carrier-grade NAT, or CGNAT, and it is common on home and mobile connections.&lt;/p&gt;

&lt;p&gt;The usual answer is a tunnel: a small program on your server dials out to a provider, and visitors come in through the provider. Levelrail, the self-hosted deploy platform I work on, can run a Cloudflare Tunnel connector for you. This post covers what I could verify and what I could not, because the honest answer on that second part matters for your decision.&lt;/p&gt;

&lt;h2&gt;
  
  
  TL;DR
&lt;/h2&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;Answer&lt;/th&gt;
&lt;th&gt;Verified how&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Need an open inbound port?&lt;/td&gt;
&lt;td&gt;No, the connector dials out&lt;/td&gt;
&lt;td&gt;Cloudflare docs&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Does Levelrail run the connector?&lt;/td&gt;
&lt;td&gt;Yes, one &lt;code&gt;cloudflared&lt;/code&gt; container&lt;/td&gt;
&lt;td&gt;I ran it locally&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Did a real tunnel carry traffic?&lt;/td&gt;
&lt;td&gt;Not tested by me&lt;/td&gt;
&lt;td&gt;No Cloudflare account used&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Is the feature finished?&lt;/td&gt;
&lt;td&gt;The docs mark it as opt-in&lt;/td&gt;
&lt;td&gt;Levelrail docs&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Do I still need a certificate?&lt;/td&gt;
&lt;td&gt;Yes, use DNS-01&lt;/td&gt;
&lt;td&gt;Levelrail docs&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  What I did not test, up front
&lt;/h2&gt;

&lt;p&gt;I did not create a Cloudflare tunnel, did not route a hostname through one and did not load a page over one. A real tunnel needs a token from a Cloudflare account, and I did not use one. The Levelrail docs say the same about themselves: the feature is built and covered by reconciler and API unit tests, but has not been proven on a real host with a real Cloudflare account. Everything about live traffic below comes from the docs, not from me.&lt;/p&gt;

&lt;h2&gt;
  
  
  How a tunnel gets around CGNAT
&lt;/h2&gt;

&lt;p&gt;Cloudflare describes its tunnel as an outbound-only connection model, and says it connects resources without a publicly routable IP address. &amp;lt;!-- source: &lt;a href="https://developers.cloudflare.com/cloudflare-one/networks/connectors/cloudflare-tunnel/" rel="noopener noreferrer"&gt;https://developers.cloudflare.com/cloudflare-one/networks/connectors/cloudflare-tunnel/&lt;/a&gt; --&amp;gt; Its guidance for firewalls is to allow only those outbound connections and block inbound traffic. That is exactly what CGNAT permits: your server can reach out, and nobody can reach in.&lt;/p&gt;

&lt;p&gt;Public hostnames are routed on Cloudflare's side. In the Zero Trust dashboard you add a published application, pick a subdomain and domain, and set a service URL that the connector can reach. &amp;lt;!-- source: &lt;a href="https://developers.cloudflare.com/cloudflare-one/networks/connectors/cloudflare-tunnel/get-started/create-remote-tunnel/" rel="noopener noreferrer"&gt;https://developers.cloudflare.com/cloudflare-one/networks/connectors/cloudflare-tunnel/get-started/create-remote-tunnel/&lt;/a&gt; --&amp;gt; The domain must already be on Cloudflare, and the application is publicly reachable until you add an Access policy.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Levelrail adds
&lt;/h2&gt;

&lt;p&gt;Levelrail starts one container named &lt;code&gt;&amp;lt;brand&amp;gt;-cloudflared&lt;/code&gt; from &lt;code&gt;cloudflare/cloudflared&lt;/code&gt;, running &lt;code&gt;tunnel --no-autoupdate run&lt;/code&gt;, and passes your tunnel token as the &lt;code&gt;TUNNEL_TOKEN&lt;/code&gt; environment variable. The token is stored encrypted and is never returned by the API or CLI (&lt;code&gt;docs/cloudflare-tunnel.md&lt;/code&gt;). Levelrail does not configure Cloudflare for you. The hostname-to-service mapping is yours to set in their dashboard.&lt;/p&gt;

&lt;p&gt;The commands, once you have a real token:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;levelrail-cli cloudflare-tunnel &lt;span class="nb"&gt;set&lt;/span&gt; --cf-tunnel-token TOKEN
levelrail-cli cloudflare-tunnel get
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;The feature is off by default and has to be switched on first. I did it with the &lt;code&gt;APP_EXPERIMENTAL=cloudflare-tunnel&lt;/code&gt; seed on a local dev instance, and the docs also describe a dashboard switch in Settings.&lt;/p&gt;
&lt;h2&gt;
  
  
  What I ran, with a fake token
&lt;/h2&gt;

&lt;p&gt;To see the reconciler work without an account, I gave it a deliberately invalid token on a throwaway local control plane (a build of the v1.0.1 release branch, on a Mac with Docker). The container appeared, pinned to &lt;code&gt;cloudflare/cloudflared:2026.10.7&lt;/code&gt;, with the command &lt;code&gt;tunnel --no-autoupdate run&lt;/code&gt;, no host port bindings, and restart policy &lt;code&gt;no&lt;/code&gt;.&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ levelrail-cli cloudflare-tunnel get
enabled:   true
has_token: true
status:    connected

$ docker logs Levelrail-cloudflared
Provided Tunnel token is not valid.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Two things stand out. First, no inbound port was published, which matches the pitch. Second, the status said &lt;code&gt;connected&lt;/code&gt; while the container had already exited with the invalid-token error. That is the documented behavior: &lt;code&gt;connected&lt;/code&gt; reports that the local container is running, not Cloudflare's view of the tunnel, so you confirm health in the Zero Trust dashboard too (&lt;code&gt;docs/cloudflare-tunnel.md&lt;/code&gt;). In my run it was a stale reading of a container that was crash-exiting. I would not alert on that field alone.&lt;/p&gt;

&lt;p&gt;I then ran &lt;code&gt;levelrail-cli cloudflare-tunnel disconnect&lt;/code&gt;, which deletes the stored token and removes the container, and confirmed no &lt;code&gt;cloudflared&lt;/code&gt; container was left on the machine.&lt;/p&gt;
&lt;h2&gt;
  
  
  The part people forget: certificates
&lt;/h2&gt;

&lt;p&gt;A tunnel solves reachability. Your certificate is a separate problem. Behind CGNAT the HTTP-01 check cannot reach port 80, so the certificate request fails. Levelrail's docs suggest DNS-01, where the certificate authority checks a TXT record in your zone, written through your DNS provider's API (&lt;code&gt;docs/tutorials/dns-01-behind-cgnat.md&lt;/code&gt;):&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;levelrail-cli domains cloudflare-dns &lt;span class="nb"&gt;set&lt;/span&gt; --cf-api-token TOKEN
levelrail-cli settings ingress dns01 &lt;span class="nb"&gt;enable&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;The same tutorial states that DNS-01 for single hosts is not yet verified against a real certificate authority, and marks it as a pending run. I did not run it either. If your tunnel terminates TLS at Cloudflare and sends plain HTTP to a local service, you may not need an origin certificate for that path at all. That is a Cloudflare configuration choice, and I did not test it.&lt;/p&gt;
&lt;h2&gt;
  
  
  Scope: the control plane, not necessarily your apps
&lt;/h2&gt;

&lt;p&gt;The Levelrail docs say the built-in tunnel setting covers the control plane, and that for app traffic you should look at the proxy in front of apps or another route. They also describe pointing a Cloudflare public hostname at your Levelrail ingress address, which is how you would expose apps. I did not verify that path end to end, so check it on a test hostname before you tell anyone the URL.&lt;/p&gt;
&lt;h2&gt;
  
  
  Other ways in, and where each wins
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Option&lt;/th&gt;
&lt;th&gt;Needs an open port&lt;/th&gt;
&lt;th&gt;Where it wins&lt;/th&gt;
&lt;th&gt;Where it loses&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Cloudflare Tunnel&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Free to start, no VPS to run, Cloudflare handles the edge&lt;/td&gt;
&lt;td&gt;Traffic goes through a third party, domain must be on Cloudflare&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Public IPv6&lt;/td&gt;
&lt;td&gt;Yes, firewall allow&lt;/td&gt;
&lt;td&gt;Direct, nothing in the middle&lt;/td&gt;
&lt;td&gt;Only if your ISP gives you IPv6&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Small VPS as a relay&lt;/td&gt;
&lt;td&gt;On the VPS&lt;/td&gt;
&lt;td&gt;You control the whole path&lt;/td&gt;
&lt;td&gt;You pay for and patch another server&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Run behind the orange cloud only&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Caching and WAF&lt;/td&gt;
&lt;td&gt;Needs a reachable origin, so no use behind CGNAT&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The last row is from Levelrail's own page on running behind Cloudflare, which says the proxy does not make your server unreachable and needs the origin to be reachable (&lt;code&gt;docs/behind-cloudflare.md&lt;/code&gt;). That is a different tool from a tunnel.&lt;/p&gt;
&lt;h2&gt;
  
  
  A private way to reach a service
&lt;/h2&gt;

&lt;p&gt;One related command I did not need a tunnel provider for: &lt;code&gt;levelrail-cli apps tunnel web --port 9000&lt;/code&gt; opens a loopback port on your laptop and relays through the control plane to a container port that is not published. It is for admin ports, not public traffic (&lt;code&gt;docs/app-tunnel.md&lt;/code&gt;). I read this page but did not run it for this post.&lt;/p&gt;
&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;
&lt;h3&gt;
  
  
  Can I self-host behind CGNAT with no port forwarding?
&lt;/h3&gt;

&lt;p&gt;Yes, with an outbound-only tunnel, according to Cloudflare's docs. What I proved is the Levelrail side: the connector container starts with no published ports. I did not prove live traffic.&lt;/p&gt;
&lt;h3&gt;
  
  
  Does the tunnel hide my server's address?
&lt;/h3&gt;

&lt;p&gt;For proxied or tunneled hostnames, public DNS answers with a Cloudflare address. Levelrail's own page warns that mail records, direct subdomains and old DNS history can still reveal a server address (&lt;code&gt;docs/behind-cloudflare.md&lt;/code&gt;).&lt;/p&gt;
&lt;h3&gt;
  
  
  What if the tunnel token leaks?
&lt;/h3&gt;

&lt;p&gt;The docs say anyone holding it can run a connector for your tunnel. Rotate it in Cloudflare, then run &lt;code&gt;set --cf-tunnel-token NEW&lt;/code&gt;.&lt;/p&gt;
&lt;h2&gt;
  
  
  What I would do next
&lt;/h2&gt;

&lt;p&gt;I would create a real tunnel on a test domain, record the hostname that works end to end, and only then write the version of this post that says it works. Until that run exists, I would call this setup plausible and well documented, not proven. If you have run the Levelrail tunnel against a real account, what broke first?&lt;/p&gt;

&lt;p&gt;If this was useful, star the repo on GitHub: &lt;a href="https://github.com/glincker/levelrail" rel="noopener noreferrer"&gt;glincker/levelrail&lt;/a&gt;.&lt;/p&gt;


&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://assets.dev.to/assets/github-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/glincker" rel="noopener noreferrer"&gt;
        glincker
      &lt;/a&gt; / &lt;a href="https://github.com/glincker/levelrail" rel="noopener noreferrer"&gt;
        levelrail
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      Self-hosted deployment platform for Docker apps: git push to HTTPS with logs, rollbacks, previews and GitHub, GitLab, Gitea and Docker Hub integrations. One Go binary, no Kubernetes.
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;&lt;div&gt;
&lt;a rel="noopener noreferrer" href="https://github.com/glincker/levelrail/docs/assets/brand/levelrail-default.svg"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2Fglincker%2Flevelrail%2FHEAD%2Fdocs%2Fassets%2Fbrand%2Flevelrail-default.svg" alt="Levelrail logo" width="56" height="56"&gt;&lt;/a&gt;
&lt;div class="markdown-heading"&gt;
&lt;h1 class="heading-element"&gt;Levelrail&lt;/h1&gt;
&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;Your own Vercel, on your own servers.&lt;/strong&gt;&lt;br&gt;
Push to deploy with HTTPS, logs, metrics and one-step rollback. One Go binary, no Kubernetes. Apache 2.0.&lt;/p&gt;
&lt;p&gt;
  &lt;a href="https://github.com/glincker/levelrail/stargazers" rel="noopener noreferrer"&gt;&lt;img src="https://camo.githubusercontent.com/0c6103f33b9eff937b9ae1fafa7e559ac917143f7854a39fee3e60729d91caf2/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f676c696e636b65722f6c6576656c7261696c3f7374796c653d666c6174266c6f676f3d676974687562" alt="GitHub stars"&gt;&lt;/a&gt;
  &lt;a href="https://github.com/glincker/levelrail/LICENSE" rel="noopener noreferrer"&gt;&lt;img src="https://camo.githubusercontent.com/2b45932619412b1fdf29a269c685212a33a0295a1a6c309fff080929cd894c06/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f676c696e636b65722f6c6576656c7261696c" alt="License: Apache 2.0"&gt;&lt;/a&gt;
  &lt;a href="https://github.com/glincker/levelrail/releases" rel="noopener noreferrer"&gt;&lt;img src="https://camo.githubusercontent.com/fff65d5789f8e04c9012ea0cf26ae2a03c1f3ab6b0e023e338886c2cde7dc184/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f676c696e636b65722f6c6576656c7261696c3f696e636c7564655f70726572656c6561736573266c6162656c3d72656c65617365" alt="Latest release"&gt;&lt;/a&gt;
  &lt;a href="https://github.com/glincker/levelrail/actions/workflows/ci.yml" rel="noopener noreferrer"&gt;&lt;img src="https://github.com/glincker/levelrail/actions/workflows/ci.yml/badge.svg" alt="CI status"&gt;&lt;/a&gt;
  &lt;a href="https://github.com/glincker/levelrail/commits/main" rel="noopener noreferrer"&gt;&lt;img src="https://camo.githubusercontent.com/1832366cfef5446fea7f49cb7b7a0a1c317b0b1d8786f2f53a512eddec95f32c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6173742d636f6d6d69742f676c696e636b65722f6c6576656c7261696c3f7374796c653d666c6174" alt="Last commit"&gt;&lt;/a&gt;
  &lt;a href="https://www.npmjs.com/package/levelrail-cli" rel="nofollow noopener noreferrer"&gt;&lt;img src="https://camo.githubusercontent.com/a3130a5f505fd410589372a9a75add88a4a574e4a05aef89932be19be58d7952/68747470733a2f2f696d672e736869656c64732e696f2f6e706d2f762f6c6576656c7261696c2d636c693f7374796c653d666c6174266c6f676f3d6e706d266c6162656c3d6e706d" alt="levelrail-cli on npm"&gt;&lt;/a&gt;
  &lt;a href="https://registry.terraform.io/providers/glincker/levelrail/latest" rel="nofollow noopener noreferrer"&gt;&lt;img src="https://camo.githubusercontent.com/8e9e660a9550e764a04c16cc0c3f51233b10da5a7b8750a3a63dd1aef2a939f1/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f676c696e636b65722f7465727261666f726d2d70726f76696465722d6c6576656c7261696c3f7374796c653d666c6174266c6f676f3d7465727261666f726d266c6162656c3d7465727261666f726d" alt="Terraform provider on the registry"&gt;&lt;/a&gt;
  &lt;a href="https://hub.docker.com/r/levelrail/levelrail" rel="nofollow noopener noreferrer"&gt;&lt;img src="https://camo.githubusercontent.com/bc983990ccaacb5631b603bc7a4093205655ed43bbc68a4d9cf53c74d0b97270/68747470733a2f2f696d672e736869656c64732e696f2f646f636b65722f70756c6c732f6c6576656c7261696c2f6c6576656c7261696c3f7374796c653d666c6174266c6f676f3d646f636b6572266c6162656c3d646f636b657225323070756c6c73" alt="Docker pulls"&gt;&lt;/a&gt;
  &lt;a href="https://github.com/glincker/levelrail/docs/mcp.md" rel="noopener noreferrer"&gt;&lt;img src="https://camo.githubusercontent.com/6570690040417bca289304e2decf7872d19f31617a876c277e658da812465788/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4d43502d7365727665722d3841324245323f7374796c653d666c6174" alt="MCP server"&gt;&lt;/a&gt;
  &lt;a href="https://discord.gg/Ar5pcaZB99" rel="nofollow noopener noreferrer"&gt;&lt;img src="https://camo.githubusercontent.com/c21d7ffd2731dbd97ea9c4af924d4dd3c03e321d00e7d2d2a5e2849cfca772c9/68747470733a2f2f696d672e736869656c64732e696f2f646973636f72642f3832393136383839373038303535373537393f7374796c653d666c6174266c6f676f3d646973636f7264266c6f676f436f6c6f723d7768697465266c6162656c3d646973636f726426636f6c6f723d353836354632" alt="Discord"&gt;&lt;/a&gt;
&lt;/p&gt;

&lt;p&gt;
  &lt;a href="https://levelrail.com?utm_source=github&amp;amp;utm_medium=readme&amp;amp;utm_campaign=nav" rel="nofollow noopener noreferrer"&gt;Website&lt;/a&gt; ·
  &lt;a href="https://docs.levelrail.com?utm_source=github&amp;amp;utm_medium=readme&amp;amp;utm_campaign=nav" rel="nofollow noopener noreferrer"&gt;Docs&lt;/a&gt; ·
  &lt;a href="https://github.com/glincker/levelrail#install" rel="noopener noreferrer"&gt;Install&lt;/a&gt; ·
  &lt;a href="https://github.com/glincker/levelrail#vs-coolify-dokploy-caprover-and-dokku" rel="noopener noreferrer"&gt;Compare&lt;/a&gt; ·
  &lt;a href="https://github.com/glincker/levelrail#faq" rel="noopener noreferrer"&gt;FAQ&lt;/a&gt; ·
  &lt;a href="https://github.com/glincker/levelrail/docs/roadmap.md" rel="noopener noreferrer"&gt;Roadmap&lt;/a&gt; ·
  &lt;a href="https://github.com/glincker/levelrail/discussions" rel="noopener noreferrer"&gt;Discussions&lt;/a&gt;
&lt;/p&gt;

&lt;p&gt;English · &lt;a href="https://github.com/glincker/levelrail/docs/i18n/README.zh-Hans.md" rel="noopener noreferrer"&gt;简体中文&lt;/a&gt; · &lt;a href="https://github.com/glincker/levelrail/docs/i18n/README.es.md" rel="noopener noreferrer"&gt;Español&lt;/a&gt; · &lt;a href="https://github.com/glincker/levelrail/docs/i18n/README.pt-BR.md" rel="noopener noreferrer"&gt;Português (BR)&lt;/a&gt; · &lt;a href="https://github.com/glincker/levelrail/docs/i18n/README.de.md" rel="noopener noreferrer"&gt;Deutsch&lt;/a&gt; · &lt;a href="https://github.com/glincker/levelrail/docs/i18n/README.fr.md" rel="noopener noreferrer"&gt;Français&lt;/a&gt; · &lt;a href="https://github.com/glincker/levelrail/docs/i18n/README.ja.md" rel="noopener noreferrer"&gt;日本語&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2Fglincker%2Flevelrail%2FHEAD%2Fdocs%2Fassets%2Fbrand%2Fsocial%2Fgithub-social-1280x640-light.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2Fglincker%2Flevelrail%2FHEAD%2Fdocs%2Fassets%2Fbrand%2Fsocial%2Fgithub-social-1280x640-light.jpg" alt="Levelrail: your own Vercel, on your server. The lightweight, self-hosted alternative to Vercel, Heroku and Coolify." width="880"&gt;&lt;/a&gt;&lt;br&gt;
&lt;/p&gt;
&lt;/div&gt;

&lt;p&gt;Turn any Linux server into a private cloud: Git deploys, HTTPS, databases with verified backups, metrics, logs and alerts, without Kubernetes and without a monitoring stack to bolt on. Pre-1.0: single-server is production ready, multi-node is beta (&lt;a href="https://github.com/glincker/levelrail/docs/feature-status.md" rel="noopener noreferrer"&gt;Feature status&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;&lt;a rel="noopener noreferrer" href="https://github.com/glincker/levelrail/docs/assets/demos/product-tour.gif"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fraw.githubusercontent.com%2Fglincker%2Flevelrail%2FHEAD%2Fdocs%2Fassets%2Fdemos%2Fproduct-tour.gif" alt="Levelrail dashboard tour: fleet overview, apps list, deploy history and built-in metrics" width="880"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;&lt;div class="table-wrapper-paragraph"&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;table&gt;

  &lt;tbody&gt;

&lt;tr&gt;

    &lt;td&gt;

&lt;div class="markdown-heading"&gt;
&lt;h3 class="heading-element"&gt;200 MB&lt;/h3&gt;

&lt;/div&gt;

&lt;p&gt;idle RAM, 1.5% of one CPU&lt;br&gt;&lt;a href="https://github.com/glincker/levelrail/docs/benchmarks.md" rel="noopener noreferrer"&gt;measured, method included&lt;/a&gt;&lt;br&gt;
&lt;/p&gt;
&lt;/td&gt;

    &lt;td&gt;

&lt;div class="markdown-heading"&gt;
&lt;h3 class="heading-element"&gt;1 binary&lt;/h3&gt;

&lt;/div&gt;

&lt;p&gt;Go control plane, Docker runtime&lt;br&gt;no Kubernetes&lt;br&gt;
&lt;/p&gt;
&lt;/td&gt;

    &lt;td&gt;

&lt;div class="markdown-heading"&gt;
&lt;h3 class="heading-element"&gt;360&lt;/h3&gt;

&lt;/div&gt;

&lt;p&gt;one-click service templates&lt;br&gt;&lt;a href="https://github.com/glincker/levelrail/docs/templates-status.md" rel="noopener noreferrer"&gt;smoke-tested&lt;/a&gt;&lt;br&gt;
&lt;/p&gt;
&lt;/td&gt;

    &lt;td&gt;

&lt;div class="markdown-heading"&gt;
&lt;h3 class="heading-element"&gt;240+&lt;/h3&gt;

&lt;/div&gt;

&lt;p&gt;MCP tools for coding agents&lt;br&gt;&lt;a href="https://github.com/glincker/levelrail/docs/mcp.md" rel="noopener noreferrer"&gt;scoped, read-only by default&lt;/a&gt;&lt;br&gt;
&lt;/p&gt;
&lt;/td&gt;

  &lt;/tr&gt;

&lt;/tbody&gt;

&lt;/table&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;

&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;Install&lt;/h2&gt;

&lt;/div&gt;

&lt;div class="highlight highlight-source-shell notranslate position-relative overflow-auto js-code-highlight"&gt;
&lt;pre&gt;curl -fsSL https://levelrail.com/install.sh &lt;span class="pl-k"&gt;|&lt;/span&gt; sudo sh&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Needs Linux (amd64 or arm64) with systemd and root; the installer adds Docker. Open ports…&lt;/p&gt;&lt;/div&gt;


&lt;/div&gt;
&lt;br&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/glincker/levelrail" rel="noopener noreferrer"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;br&gt;
&lt;/div&gt;
&lt;br&gt;


&lt;h2&gt;
  
  
  Sources checked
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://developers.cloudflare.com/cloudflare-one/networks/connectors/cloudflare-tunnel/" rel="noopener noreferrer"&gt;https://developers.cloudflare.com/cloudflare-one/networks/connectors/cloudflare-tunnel/&lt;/a&gt; (outbound-only model, no publicly routable IP, block inbound)&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://developers.cloudflare.com/cloudflare-one/networks/connectors/cloudflare-tunnel/get-started/create-remote-tunnel/" rel="noopener noreferrer"&gt;https://developers.cloudflare.com/cloudflare-one/networks/connectors/cloudflare-tunnel/get-started/create-remote-tunnel/&lt;/a&gt; (published application routing, Access policies)&lt;/li&gt;
&lt;li&gt;Levelrail docs on the v1.0.1 release branch: &lt;code&gt;docs/cloudflare-tunnel.md&lt;/code&gt;, &lt;code&gt;docs/behind-cloudflare.md&lt;/code&gt;, &lt;code&gt;docs/app-tunnel.md&lt;/code&gt;, &lt;code&gt;docs/tutorials/dns-01-behind-cgnat.md&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Levelrail code: the tunnel reconciler (image pin, command and token handling), read on the same branch&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>selfhosted</category>
      <category>cloudflare</category>
      <category>homelab</category>
      <category>devops</category>
    </item>
    <item>
      <title>Your deploy box is the target: supply chain defenses after this week's attacks</title>
      <dc:creator>GDS K S</dc:creator>
      <pubDate>Thu, 12 Nov 2026 17:41:00 +0000</pubDate>
      <link>https://dev.to/thegdsks/your-deploy-box-is-the-target-supply-chain-defenses-after-this-weeks-attacks-1o3d</link>
      <guid>https://dev.to/thegdsks/your-deploy-box-is-the-target-supply-chain-defenses-after-this-weeks-attacks-1o3d</guid>
      <description>&lt;h1&gt;
  
  
  Your deploy box is the target: supply chain defenses after this week's attacks
&lt;/h1&gt;

&lt;p&gt;I read the OpenSourceMalware report on Tuesday and then did something simple. I opened my own CI config and listed every secret a single build job could see. The attack it describes starts with a PR from a brand new account labeled "CI diagnostics" that sends environment variables to a remote URL.&lt;/p&gt;

&lt;p&gt;The answer was uncomfortable. A build job on my side holds a registry token, a deploy key and a cloud credential, all in one shell. That is exactly the shopping list attackers wrote down this week.&lt;/p&gt;

&lt;h2&gt;
  
  
  TL;DR
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;What happened&lt;/th&gt;
&lt;th&gt;Date&lt;/th&gt;
&lt;th&gt;What it means for you&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;A stolen developer key pushed a dropper into &lt;code&gt;@ethersphere/bee-js&lt;/code&gt; 13.3.0, and the publish workflow shipped it to npm and GitHub&lt;/td&gt;
&lt;td&gt;Nov 9&lt;/td&gt;
&lt;td&gt;Your release pipeline will publish whatever a valid key commits&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;A brand new GitHub account sent CI exfiltration PRs, a prompt injection for reviewers and a Rust crate with a &lt;code&gt;build.rs&lt;/code&gt; stealer&lt;/td&gt;
&lt;td&gt;Nov 10&lt;/td&gt;
&lt;td&gt;Build scripts and PR checks run with your secrets in reach&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Socket's hardening guide says most 2025 and 2026 CI compromises came through &lt;code&gt;npm install&lt;/code&gt;, not workflow bugs&lt;/td&gt;
&lt;td&gt;Nov 3&lt;/td&gt;
&lt;td&gt;Install time is the weak spot, so lock it down first&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  1. What the two attacks actually did
&lt;/h2&gt;

&lt;p&gt;OX Security reported on November 9 that attackers likely used a stolen developer access key to commit malicious code to the official bee-js and swarm-desktop repositories. The commit triggered the normal publish workflow, which created the npm release and the GitHub release. No one broke into the registry. The pipeline did its job with a bad commit.&lt;/p&gt;

&lt;p&gt;The dropper then asked a command server for a payload matched to the victim's operating system. It uploaded the local Swarm node's encrypted key and config, then installed a backdoor. On Linux and macOS the backdoor looks up its server address from an Ethereum contract, so the attacker can move it whenever they like. OX counts about 16,800 monthly downloads of exposure. That is small. The pattern is not.&lt;/p&gt;

&lt;p&gt;The second attack, written up by OpenSourceMalware on November 10, came from a GitHub account created about seven hours before the report. It ran four moves in a row. Two PRs tried to send environment variables and signing material out of CI. A third PR added a paragraph to &lt;code&gt;AGENTS.md&lt;/code&gt; telling reviewers, including automated ones, not to flag those uploads. Another PR added a Rust crate, &lt;code&gt;lwd-uri-util&lt;/code&gt;, whose &lt;code&gt;build.rs&lt;/code&gt; gathers &lt;code&gt;.git-credentials&lt;/code&gt;, &lt;code&gt;.aws/credentials&lt;/code&gt; and &lt;code&gt;.npmrc&lt;/code&gt;. Finally, a fake security disclosure sent two maintainers to a cloned sign-in page.&lt;/p&gt;

&lt;p&gt;Read that list again if you deploy code. The target is not your app. The target is the box where your app gets built.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Why the build environment is the prize
&lt;/h2&gt;

&lt;p&gt;A typical CI job carries a registry push token, a cloud credential and a deploy SSH key. It also runs arbitrary install scripts from hundreds of transitive packages. One malicious &lt;code&gt;postinstall&lt;/code&gt; or &lt;code&gt;build.rs&lt;/code&gt; inherits all of it.&lt;/p&gt;

&lt;p&gt;The OpenSourceMalware report lists what the Rust stealer wants: GitHub, AWS, Cargo, npm, PyPI, Android signing keys and CI secrets. Its advice for anyone who built the affected branches is to revoke and reissue every secret present in that build environment. That is a long afternoon. The cheaper move is to make sure the build never holds most of them.&lt;/p&gt;

&lt;p&gt;Here is the rule I now apply. A job that installs dependencies gets no deploy credentials. A job that deploys installs nothing.&lt;/p&gt;

&lt;h3&gt;
  
  
  Split install from deploy
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;release&lt;/span&gt;
&lt;span class="na"&gt;on&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;push&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;tags&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"v*"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;

&lt;span class="na"&gt;permissions&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="na"&gt;jobs&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;build&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;runs-on&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;ubuntu-latest&lt;/span&gt;
    &lt;span class="na"&gt;permissions&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="na"&gt;contents&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;read&lt;/span&gt;
    &lt;span class="na"&gt;steps&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;uses&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;actions/checkout@&amp;lt;full-40-char-sha&amp;gt;&lt;/span&gt;
        &lt;span class="na"&gt;with&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
          &lt;span class="na"&gt;persist-credentials&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;
      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;run&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;npm ci --ignore-scripts&lt;/span&gt;
      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;run&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;npm run build&lt;/span&gt;
      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;uses&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;actions/upload-artifact@&amp;lt;full-40-char-sha&amp;gt;&lt;/span&gt;
        &lt;span class="na"&gt;with&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
          &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;dist&lt;/span&gt;
          &lt;span class="na"&gt;path&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;dist/&lt;/span&gt;

  &lt;span class="na"&gt;deploy&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;needs&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;build&lt;/span&gt;
    &lt;span class="na"&gt;runs-on&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;ubuntu-latest&lt;/span&gt;
    &lt;span class="na"&gt;environment&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;production&lt;/span&gt;   &lt;span class="c1"&gt;# holds the deploy secret, needs approval
&lt;/span&gt;    &lt;span class="na"&gt;steps&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;uses&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;actions/download-artifact@&amp;lt;full-40-char-sha&amp;gt;&lt;/span&gt;
        &lt;span class="na"&gt;with&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
          &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;dist&lt;/span&gt;
      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;run&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;./scripts/push-release.sh&lt;/span&gt;
        &lt;span class="na"&gt;env&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
          &lt;span class="na"&gt;DEPLOY_TOKEN&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;${{ secrets.DEPLOY_TOKEN }}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The build job sees no secret at all. The deploy job installs nothing, so a poisoned dependency never runs next to the token. The &lt;code&gt;production&lt;/code&gt; environment can require a human approval before the second job starts.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Pins: tags move, digests do not
&lt;/h2&gt;

&lt;p&gt;Socket's guide makes a point I keep repeating to people. Version tags are movable pointers. In the &lt;code&gt;tj-actions/changed-files&lt;/code&gt; attack, pinning by commit SHA kept every repository safe. In the March 2026 &lt;code&gt;trivy-action&lt;/code&gt; incident, Socket reports 75 of 76 version tags were force-pushed.&lt;/p&gt;

&lt;p&gt;A SHA proves the content cannot change. It does not prove where the commit came from, because impostor commits from forks can still resolve. Pin, and read the diff when you bump.&lt;/p&gt;

&lt;p&gt;Images work the same way. A tag like &lt;code&gt;node:22&lt;/code&gt; is a pointer. A digest is content.&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;# resolve once, on a machine you trust&lt;/span&gt;
docker buildx imagetools inspect node:22-slim &lt;span class="o"&gt;|&lt;/span&gt; grep Digest
&lt;span class="c"&gt;# Digest: sha256:&amp;lt;64 hex chars&amp;gt;&lt;/span&gt;

&lt;span class="c"&gt;# then pin it in the Dockerfile&lt;/span&gt;
&lt;span class="c"&gt;# FROM node:22-slim@sha256:&amp;lt;64 hex chars&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Do the same for the images you run, not only the ones you build. In a compose file:&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;services&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;web&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;image&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;registry.example.com/team/web@sha256:&amp;lt;64 hex chars&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I also keep to upstream-only namespaces. Pull &lt;code&gt;library/postgres&lt;/code&gt; or the vendor's own namespace, not a lookalike from a stranger. Even a real namespace can be hijacked, so digests matter more than names. Names only remove the cheapest attacks.&lt;/p&gt;

&lt;h3&gt;
  
  
  Add a cooldown
&lt;/h3&gt;

&lt;p&gt;Socket cites a Wiz estimate that a 7 to 14 day cooldown catches 80 to 90 percent of supply chain attacks, and notes Dependabot applies a three day cooldown by default on github.com. Ethersphere reverted the bad npm version only after it shipped. If your lockfile refuses anything published in the last week, you skip most of that window.&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="c1"&gt;# .npmrc
&lt;/span&gt;&lt;span class="na"&gt;ignore-scripts&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="kc"&gt;true&lt;/span&gt;
&lt;span class="na"&gt;min-release-age&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;7&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Scripts then run only where you allow them. Check your npm version supports the release-age key before you rely on it, since Socket describes it as a setting for &lt;code&gt;.npmrc&lt;/code&gt; and your update bot.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Cut what the token can do
&lt;/h2&gt;

&lt;p&gt;Socket calls the write-scoped &lt;code&gt;GITHUB_TOKEN&lt;/code&gt; the usual escalation step from a foothold to a real incident. Set &lt;code&gt;permissions: {}&lt;/code&gt; at workflow level, as in the example above, and grant per job. Avoid &lt;code&gt;pull_request_target&lt;/code&gt; with untrusted code. Pass PR titles through &lt;code&gt;env:&lt;/code&gt; instead of inlining them in &lt;code&gt;run:&lt;/code&gt; blocks. Run &lt;code&gt;zizmor&lt;/code&gt; in CI to catch the rest.&lt;/p&gt;

&lt;p&gt;Then treat registry tokens the same way. A publish token that only works for one package, with a short life, turns a stolen key into a small problem. The Ethersphere case shows the other side: a long-lived developer key plus an automatic publish workflow equals a release anyone with the key can ship.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Egress limits, with honest limits
&lt;/h2&gt;

&lt;p&gt;The last layer is the one most people skip. When the stealer cannot reach its server, it collects secrets and has nowhere to put them. The Rust crate uploads to a public webhook endpoint. The Ethersphere dropper called a fresh &lt;code&gt;.xyz&lt;/code&gt; domain registered two days earlier. A deny-by-default outbound list blocks both.&lt;/p&gt;

&lt;p&gt;Socket's advice is to run an egress agent in audit mode first, build the allowlist from real traffic, then enforce. Socket also admits the limit: allowlisting cannot stop exfiltration to hosts you must allow, such as &lt;code&gt;github.com&lt;/code&gt;. Egress is a way to cut damage, not a wall.&lt;/p&gt;

&lt;p&gt;On the server that runs your apps, the same idea applies at runtime. If the web container only talks to your payment API, say so.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. What we do about this
&lt;/h2&gt;

&lt;p&gt;We built outbound allowlists and image pinning into Levelrail for the deploy side. Per the docs, Levelrail pins an image pulled from a registry to its digest at deploy time, &lt;code&gt;APP_IMAGE_VERIFY_MODE=enforce&lt;/code&gt; refuses unsigned or unpinned images on promotion, and a service can declare an &lt;code&gt;egress&lt;/code&gt; allowlist of host and port pairs. Two honest limits from the same docs: without the egress block the outbound traffic is open, and signature checks support cosign key pairs, not keyless signatures. Build-time secrets are opt in per secret for that reason.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I changed this week
&lt;/h2&gt;

&lt;p&gt;I did five things, in order of effort.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Moved deploy tokens out of any job that runs &lt;code&gt;npm ci&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Pinned every action to a full SHA and every base image to a digest.&lt;/li&gt;
&lt;li&gt;Turned on a seven day release-age floor and &lt;code&gt;ignore-scripts&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Set &lt;code&gt;permissions: {}&lt;/code&gt; as the workflow default.&lt;/li&gt;
&lt;li&gt;Put the deploy job behind an approval.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;None of it takes more than a day. The attacks this week were small: about 16,800 monthly downloads and one wallet-focused crate. The same techniques against a package with millions of installs would look different.&lt;/p&gt;

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

&lt;p&gt;Attackers are skipping your code and going for the machine that builds and ships it. Split install from deploy, pin by digest, add a cooldown, shrink token scopes and limit outbound traffic. How many secrets does your slowest, most neglected CI job hold right now?&lt;/p&gt;

&lt;h2&gt;
  
  
  Sources checked
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;OX Security, Ethersphere compromise, Nov 9 2026: &lt;a href="https://www.ox.security/blog/ethersphere-hijacked-with-crypto-stealing-malware-via-github-npm/" rel="noopener noreferrer"&gt;https://www.ox.security/blog/ethersphere-hijacked-with-crypto-stealing-malware-via-github-npm/&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;OpenSourceMalware, malicious Rust crate targeting wallet developers, Nov 10 2026: &lt;a href="https://opensourcemalware.com/blog/cryptocurrency-being-targeted-in-multi-faceted-attack" rel="noopener noreferrer"&gt;https://opensourcemalware.com/blog/cryptocurrency-being-targeted-in-multi-faceted-attack&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Socket, Hardening GitHub Actions Against Outside Threats, Nov 3 2026: &lt;a href="https://socket.dev/blog/hardening-github-actions-against-outside-threats" rel="noopener noreferrer"&gt;https://socket.dev/blog/hardening-github-actions-against-outside-threats&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Levelrail docs: docs/images.md, docs/app-spec-reference.md&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If this was useful, star the repo on GitHub: &lt;a href="https://github.com/glincker/levelrail" rel="noopener noreferrer"&gt;glincker/levelrail&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>security</category>
      <category>supplychain</category>
      <category>devops</category>
      <category>npm</category>
    </item>
    <item>
      <title>I redeployed an app three times while sending 4,000 requests. Two cut over, one is a mystery</title>
      <dc:creator>GDS K S</dc:creator>
      <pubDate>Mon, 02 Nov 2026 18:37:33 +0000</pubDate>
      <link>https://dev.to/thegdsks/i-redeployed-an-app-three-times-while-sending-4000-requests-two-cut-over-one-is-a-mystery-23f8</link>
      <guid>https://dev.to/thegdsks/i-redeployed-an-app-three-times-while-sending-4000-requests-two-cut-over-one-is-a-mystery-23f8</guid>
      <description>&lt;p&gt;"Zero downtime" is one of those phrases that sounds finished until you try to prove it. So I built a small load script and a rule: send steady traffic through the real HTTPS ingress, redeploy the app three times, and count every failed request.&lt;/p&gt;

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

&lt;ul&gt;
&lt;li&gt;A tiny web app (a whoami container) behind the platform's proxy, over HTTPS with a local certificate.&lt;/li&gt;
&lt;li&gt;About 20 requests per second, for the whole run.&lt;/li&gt;
&lt;li&gt;Three redeploys, each by API with a new image tag.&lt;/li&gt;
&lt;li&gt;Default drain settings: 15 seconds of draining, then a 3 minute hold so you can roll back, and a stability check before the old container goes away.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The result
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;4,313 requests. 0 failed or non-2xx.&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Latency: p50 5 ms, p95 68 ms, p99 208 ms.&lt;/li&gt;
&lt;li&gt;Longest gap between two successful responses: &lt;strong&gt;0.111 seconds&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I ran the same idea on a real 2 vCPU VPS too, at 10 requests per second: three redeploys, 458 requests, no failed responses, longest gap 0.36 seconds. A restart that waits for the app to be healthy took about 12 seconds each time, and roughly 8 of those seconds are the stability check deliberately making sure the new container is not a one-hit wonder.&lt;/p&gt;

&lt;h2&gt;
  
  
  The two things that did not go to plan
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;The disk guard refused my deploy.&lt;/strong&gt; On the first attempt, the third deploy came back with a 507. The platform has a guard that refuses a deploy when the disk is too full, and my laptop disk was at 90 percent. The guard was right. I lowered its thresholds for the test and moved on. A deploy platform that says no before it fills your disk is doing its job.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;One redeploy never answered.&lt;/strong&gt; Of the three redeploys, two cut over cleanly. The third was accepted by the API but the new version did not answer within my three minute wait. No request failed, because the old container kept serving, but I do not know why the cutover did not finish. The log ends with a cancelled write at shutdown, and I have not investigated further. It might be the hold window, a slow image pull or a real stall. I would rather tell you that than pretend the test was perfect. Update: I have not re-run this exact script on a current release, so I still cannot say why the third cutover stalled. Later releases added a post-deploy watch that rolls back on a 5xx spike or a crash after cutover, and the old container served every request in this run either way.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I learned about testing zero downtime
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Count failures, not vibes. A number like 0 out of 4,313 is the claim. Anything softer is marketing.&lt;/li&gt;
&lt;li&gt;Look at the longest gap, not just the average. Averages hide a one second hole.&lt;/li&gt;
&lt;li&gt;Test on a nearly full disk at least once. Real servers are rarely tidy.&lt;/li&gt;
&lt;li&gt;Keep the unexplained result. It is the next bug.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The script is in the repo if you want to point it at your own setup. The platform is Levelrail, which I build and run my own sites on: &lt;a href="https://github.com/glincker/levelrail" rel="noopener noreferrer"&gt;https://github.com/glincker/levelrail&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The mechanism behind the gate is written up in &lt;a href="https://levelrail.com/blog/zero-downtime-deploy-docker-rollback/" rel="noopener noreferrer"&gt;Zero Downtime Deploy for Docker Apps, With Rollback&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;How do you check that a deploy really did not drop requests?&lt;/p&gt;

&lt;p&gt;If this was useful, star the repo on GitHub: &lt;a href="https://github.com/glincker/levelrail" rel="noopener noreferrer"&gt;glincker/levelrail&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>devops</category>
      <category>docker</category>
      <category>webdev</category>
      <category>selfhosted</category>
    </item>
    <item>
      <title>I tested my own deploy platform on a real VPS | Levelrail</title>
      <dc:creator>GDS K S</dc:creator>
      <pubDate>Mon, 02 Nov 2026 18:36:58 +0000</pubDate>
      <link>https://dev.to/thegdsks/i-tested-my-own-deploy-platform-on-a-real-vps-and-the-first-backup-failed-56md</link>
      <guid>https://dev.to/thegdsks/i-tested-my-own-deploy-platform-on-a-real-vps-and-the-first-backup-failed-56md</guid>
      <description>&lt;p&gt;I had 15+ sites spread across Coolify on a few VPSs, Vercel, an AWS EC2 container, ECS, RDS and Neon. Every VPS renewal turned into a migration weekend. So I built a self-hosted deploy platform called Levelrail, and before I moved my own sites onto it I ran it on two real servers: an Oracle free-tier ARM VM and a cheap VPS that also runs Coolify.&lt;/p&gt;

&lt;p&gt;I expected small bugs. I got four that would have hurt real users. Here they are, in the order I found them. All four were fixed in v0.9.0, and the current release is v1.5.3. I am leaving the failures in because the fixes only make sense next to them.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Every local backup failed on a fresh install
&lt;/h2&gt;

&lt;p&gt;I created a Postgres database, ran a backup and looked at the history. Every local backup on a default install failed with the same error: the backup folder did not exist.&lt;/p&gt;

&lt;p&gt;On my laptop the folder had existed for months, so I never saw it. On a clean server the platform tried to write into a path nobody had created.&lt;/p&gt;

&lt;p&gt;The fix was small (shipped in v0.9.0): create the local backup root the first time it is used, and make the location a setting instead of a hardcoded path. Since then a Postgres backup has run unattended on a real arm64 VM and restored into a new database, which the &lt;a href="https://docs.levelrail.com/feature-status" rel="noopener noreferrer"&gt;feature status&lt;/a&gt; page records as beta evidence. The lesson was bigger. &lt;strong&gt;A backup feature that works only on the machine you built it on is not a backup feature.&lt;/strong&gt; I now run every backup and restore on a clean server before I trust it.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. The firewall panel showed nothing
&lt;/h2&gt;

&lt;p&gt;I wanted a firewall page that tells you what is actually exposed on a host, not a list of settings. On the VPS it showed an empty table.&lt;/p&gt;

&lt;p&gt;The reason: the host used nftables, and the panel only knew how to read the older iptables rules. It looked fine on every machine I had tested, and showed nothing on the one that mattered.&lt;/p&gt;

&lt;p&gt;Since v0.9.0 the panel detects which backend is active, reads it, and says so when it cannot. An empty security panel is worse than no panel, because it looks like good news.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. After a reboot the apps were unreachable for about 30 seconds
&lt;/h2&gt;

&lt;p&gt;Apps are bound to loopback ports and the proxy routes to them. After a reboot, some ports changed, and the proxy kept sending traffic to the old ones until the next refresh.&lt;/p&gt;

&lt;p&gt;On the Oracle ARM VM, Docker brought the containers back about 19 seconds after boot and the control plane answered health checks at 33 seconds. But Docker had handed two apps new loopback ports, and the platform kept the old ones for about 30 seconds until its next reconcile. I added a refresh at boot in v0.9.0 so routes recover as soon as the containers are back.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. The HTTP to HTTPS redirect dropped the port
&lt;/h2&gt;

&lt;p&gt;On a server where the proxy listened on a non-standard port, the redirect sent people to the default HTTPS port and the page failed. Small bug, very confusing for the person on the other end. Also fixed in v0.9.0.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the testing taught me
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Test on a clean server, not your own. Three of the four bugs only appear where nothing is pre-configured.&lt;/li&gt;
&lt;li&gt;A security or backup panel needs a loud "I cannot tell" state.&lt;/li&gt;
&lt;li&gt;Write the failure into the product: the platform now tells you when a backup has failed instead of waiting for you to look.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  How I test now
&lt;/h2&gt;

&lt;p&gt;Before I trust a feature, I run it three ways: on my machine, on a clean cloud VM, and again after a reboot. The reboot is the one people skip. Backups, routes, certificates and firewall state are all things that look fine until the machine restarts and has to rebuild them from nothing. If a feature survives a clean install and a reboot, it has earned a place in the product.&lt;/p&gt;

&lt;h2&gt;
  
  
  The numbers
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Control plane memory: about 200 MB RSS right after start (196 MiB on the VPS), and the API was ready in 4.2 seconds from an empty data directory.&lt;/li&gt;
&lt;li&gt;A Next.js 14 app built and deployed in 2 minutes 46 seconds on a 2 vCPU VPS, with a peak of about 514 MB of extra host memory during the build.&lt;/li&gt;
&lt;li&gt;A restart with &lt;code&gt;--wait&lt;/code&gt; takes about 12 seconds. Three redeploys under 10 requests per second served 458 requests with no failed responses and a longest gap of 0.36 seconds.&lt;/li&gt;
&lt;li&gt;Upgrading the platform in place: 2.19 seconds of downtime, a 179 ms database migration, and all 5 apps, 7 databases and 6 domains still there afterwards.&lt;/li&gt;
&lt;li&gt;A new Postgres database was ready in 7.2 seconds, and a restore into a new database took 22 seconds with all 1000 test rows intact.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What Levelrail is
&lt;/h2&gt;

&lt;p&gt;It is a self-hosted deploy platform. Deploy from Git, a Dockerfile, a compose file or a template. HTTPS and domains, logs, rollbacks, databases with scheduled backups and restore, an audit log, and extra servers from the same control plane (multi-node is beta). Single-server setups are the production-ready path. Everything is also available from the CLI, the API and an MCP server. I run my own sites on it.&lt;/p&gt;

&lt;p&gt;Repo: &lt;a href="https://github.com/glincker/levelrail" rel="noopener noreferrer"&gt;https://github.com/glincker/levelrail&lt;/a&gt;&lt;br&gt;
Site: &lt;a href="https://levelrail.com" rel="noopener noreferrer"&gt;https://levelrail.com&lt;/a&gt;&lt;br&gt;
Docs: &lt;a href="https://docs.levelrail.com/feature-status" rel="noopener noreferrer"&gt;https://docs.levelrail.com/feature-status&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you self-host and have a bug you only found on a clean server, I would like to hear it. What did your first failed backup look like?&lt;/p&gt;

&lt;p&gt;If this was useful, star the repo on GitHub: &lt;a href="https://github.com/glincker/levelrail" rel="noopener noreferrer"&gt;glincker/levelrail&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>selfhosted</category>
      <category>devops</category>
      <category>docker</category>
      <category>webdev</category>
    </item>
    <item>
      <title>I ran Minecraft, WordPress and MySQL on a free 6 GB ARM VM and watched the RAM | Levelrail</title>
      <dc:creator>GDS K S</dc:creator>
      <pubDate>Mon, 02 Nov 2026 18:36:26 +0000</pubDate>
      <link>https://dev.to/thegdsks/i-ran-minecraft-wordpress-and-mysql-on-a-free-6-gb-arm-vm-and-watched-the-ram-36hm</link>
      <guid>https://dev.to/thegdsks/i-ran-minecraft-wordpress-and-mysql-on-a-free-6-gb-arm-vm-and-watched-the-ram-36hm</guid>
      <description>&lt;p&gt;Free tier servers are a great way to find out what your tools really cost. I took an Oracle Cloud ARM VM with 6 GB of RAM, put a self-hosted deploy platform on it, and asked it to run four things at once: a developer toolbox, WordPress, MySQL and a Minecraft server. Then I rebooted it twice and wrote down what happened.&lt;/p&gt;


&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://assets.dev.to/assets/github-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/glincker" rel="noopener noreferrer"&gt;
        glincker
      &lt;/a&gt; / &lt;a href="https://github.com/glincker/levelrail" rel="noopener noreferrer"&gt;
        levelrail
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      Self-hosted PaaS: git push to HTTPS on your own servers. One Go binary, about 200 MB idle, 570+ one-click apps. Apache 2.0.
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;&lt;div&gt;
&lt;a rel="noopener noreferrer" href="https://github.com/glincker/levelrail/docs/assets/brand/levelrail-default.svg"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2Fglincker%2Flevelrail%2FHEAD%2Fdocs%2Fassets%2Fbrand%2Flevelrail-default.svg" alt="Levelrail logo" width="56" height="56"&gt;&lt;/a&gt;
&lt;div class="markdown-heading"&gt;
&lt;h1 class="heading-element"&gt;Levelrail&lt;/h1&gt;
&lt;/div&gt;
&lt;p&gt;&lt;strong&gt;Git push to production on your own servers.&lt;/strong&gt;&lt;br&gt;
A self-hosted deployment platform in one Go binary. The control plane idles at about 200 MB of RAM (&lt;a href="https://github.com/glincker/levelrail/docs/performance.md" rel="noopener noreferrer"&gt;measured&lt;/a&gt;), with 570+ one-click apps, rollbacks, previews, HTTPS and databases built in.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;curl -fsSL https://levelrail.com/install.sh | sudo sh&lt;/code&gt; · &lt;a href="https://demo.levelrail.com" rel="nofollow noopener noreferrer"&gt;&lt;b&gt;Try the live demo&lt;/b&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;
  &lt;a href="https://github.com/glincker/levelrail/stargazers" rel="noopener noreferrer"&gt;&lt;img src="https://camo.githubusercontent.com/0c6103f33b9eff937b9ae1fafa7e559ac917143f7854a39fee3e60729d91caf2/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f676c696e636b65722f6c6576656c7261696c3f7374796c653d666c6174266c6f676f3d676974687562" alt="GitHub stars"&gt;&lt;/a&gt;
  &lt;a href="https://github.com/glincker/levelrail/LICENSE" rel="noopener noreferrer"&gt;&lt;img src="https://camo.githubusercontent.com/2b45932619412b1fdf29a269c685212a33a0295a1a6c309fff080929cd894c06/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f676c696e636b65722f6c6576656c7261696c" alt="License: Apache 2.0"&gt;&lt;/a&gt;
  &lt;a href="https://github.com/glincker/levelrail/releases" rel="noopener noreferrer"&gt;&lt;img src="https://camo.githubusercontent.com/fff65d5789f8e04c9012ea0cf26ae2a03c1f3ab6b0e023e338886c2cde7dc184/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f676c696e636b65722f6c6576656c7261696c3f696e636c7564655f70726572656c6561736573266c6162656c3d72656c65617365" alt="Latest release"&gt;&lt;/a&gt;
  &lt;a href="https://github.com/glincker/levelrail/actions/workflows/ci.yml" rel="noopener noreferrer"&gt;&lt;img src="https://github.com/glincker/levelrail/actions/workflows/ci.yml/badge.svg" alt="CI status"&gt;&lt;/a&gt;
  &lt;a href="https://demo.levelrail.com" rel="nofollow noopener noreferrer"&gt;&lt;img src="https://camo.githubusercontent.com/e772ec1b7669a78cf28df04cf23ec3ca1da71bfda6dc12d3e5df917690dfce14/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f64656d6f2d64656d6f2e6c6576656c7261696c2e636f6d2d326636666562" alt="Live demo"&gt;&lt;/a&gt;
&lt;/p&gt;

&lt;p&gt;
  &lt;a href="https://levelrail.com?utm_source=github&amp;amp;utm_medium=readme&amp;amp;utm_campaign=nav" rel="nofollow noopener noreferrer"&gt;Website&lt;/a&gt; ·
  &lt;a href="https://docs.levelrail.com?utm_source=github&amp;amp;utm_medium=readme&amp;amp;utm_campaign=nav" rel="nofollow noopener noreferrer"&gt;Docs&lt;/a&gt; ·
  &lt;a href="https://github.com/glincker/levelrail#quickstart" rel="noopener noreferrer"&gt;Quickstart&lt;/a&gt; ·
  &lt;a href="https://github.com/glincker/levelrail#vs-coolify-dokploy-caprover-and-dokku" rel="noopener noreferrer"&gt;Compare&lt;/a&gt; ·
  &lt;a href="https://github.com/glincker/levelrail/docs/faq.md" rel="noopener noreferrer"&gt;FAQ&lt;/a&gt; ·
  &lt;a href="https://github.com/glincker/levelrail/docs/roadmap.md" rel="noopener noreferrer"&gt;Roadmap&lt;/a&gt; ·
  &lt;a href="https://github.com/glincker/levelrail/discussions" rel="noopener noreferrer"&gt;Discussions&lt;/a&gt;
&lt;/p&gt;

&lt;p&gt;&lt;a rel="noopener noreferrer" href="https://github.com/glincker/levelrail/docs/assets/demos/product-tour.gif"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fraw.githubusercontent.com%2Fglincker%2Flevelrail%2FHEAD%2Fdocs%2Fassets%2Fdemos%2Fproduct-tour.gif" alt="Levelrail dashboard tour: fleet overview, apps list, deploy history and built-in metrics" width="880"&gt;&lt;/a&gt;&lt;br&gt;
&lt;/p&gt;
&lt;/div&gt;

&lt;p&gt;Levelrail turns Linux servers into a private cloud and works with the Kubernetes clusters and cloud accounts you already have. Single-server is production ready, multi-node is beta. Every feature carries a stable, beta or experimental label in &lt;a href="https://github.com/glincker/levelrail/docs/feature-status.md" rel="noopener noreferrer"&gt;Feature status&lt;/a&gt;.&lt;/p&gt;

&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;Quickstart&lt;/h2&gt;
&lt;/div&gt;

&lt;p&gt;You need a Linux server (amd64 or arm64) with systemd and root. The installer adds Docker. Open ports 80 and 443.&lt;/p&gt;

&lt;div class="highlight highlight-source-shell notranslate position-relative overflow-auto js-code-highlight"&gt;
&lt;pre&gt;curl -fsSL https://levelrail.com/install.sh &lt;span class="pl-k"&gt;|&lt;/span&gt; sudo sh&lt;/pre&gt;

&lt;/div&gt;

&lt;ol&gt;
&lt;li&gt;Open the setup link the installer prints and choose a password. That creates the admin account.&lt;/li&gt;
&lt;li&gt;In…&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/glincker/levelrail" rel="noopener noreferrer"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;

&lt;h2&gt;
  
  
  The cast
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;it-tools&lt;/strong&gt;, a static toolbox app. It used about 2.3 MiB of RAM and answered in 1 ms. Basically a rounding error.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;WordPress and MySQL 8.4.&lt;/strong&gt; 33 MiB for WordPress, 467 MiB for MySQL. MySQL is the one that always shows up with a suitcase.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Minecraft&lt;/strong&gt; (Java 21). 2.24 GiB out of a 2.5 GiB limit, 97 percent right after start. No out-of-memory kill. Java will use every byte you hand it and then ask what is for dessert.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The install command returned in under a second because the work is asynchronous. All four containers were up, and Minecraft was healthy, about 107 seconds after I submitted the request, image pulls included. Host memory went from 0.7 GB to 3.4 GB and stayed there, with about 2.4 GB still available.&lt;/p&gt;
&lt;h2&gt;
  
  
  Watching a boot, second by second
&lt;/h2&gt;

&lt;p&gt;After a clean reboot I sampled memory as the machine came back:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Time after boot&lt;/th&gt;
&lt;th&gt;Used memory&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;39 s&lt;/td&gt;
&lt;td&gt;1.27 GB&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;60 s&lt;/td&gt;
&lt;td&gt;3.2 GB (the JVM and MySQL waking up)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;steady&lt;/td&gt;
&lt;td&gt;3.35 GB&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;SSH came back 28 seconds after I issued the reboot. Docker started the containers at roughly the 19 second mark, the control plane answered its health check at 33 seconds, and Minecraft was healthy at about 80 seconds. Available memory never dropped below 2.5 GB.&lt;/p&gt;
&lt;h2&gt;
  
  
  The reboot that fought itself
&lt;/h2&gt;

&lt;p&gt;The first reboot did not go well. The new control plane would not start: &lt;code&gt;Address already in use&lt;/code&gt; on port 80. The old install I had left on the same machine was still enabled, and its sockets grabbed the port first. Two versions of the same platform, fighting over the front door.&lt;/p&gt;

&lt;p&gt;Here is the funny part. While the control plane was not running at all, Docker restarted all four app containers on its own, 9 seconds after boot, because they carry a restart policy. The apps were up and serving before the thing that manages them had started. That is what you want: the apps should not depend on the control plane being alive.&lt;/p&gt;

&lt;p&gt;I disabled the old service and rebooted again for the clean run above.&lt;/p&gt;
&lt;h2&gt;
  
  
  Two rough edges I found
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;After the reboot Docker assigned new loopback ports to two apps. The platform remembered the old ones for about 30 seconds until its next reconcile, which means a proxy pointed at a stored port would have returned errors for half a minute. I fixed it by refreshing the ports at boot, and that shipped in v0.9.0.&lt;/li&gt;
&lt;li&gt;Minecraft logged two scary looking health check errors while it was starting, 35 seconds apart. They fixed themselves, and they made the logs noisy. Noise like that trains you to ignore the real alarm.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  What I took from it
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;A 6 GB free VM is plenty for a small stack. It is not plenty for a stack with a JVM in it unless you set a memory limit. I did.&lt;/li&gt;
&lt;li&gt;Measure the boot, not just the steady state. The peak is at about 60 seconds, and that is when things fall over.&lt;/li&gt;
&lt;li&gt;Restart policies on the apps and a small control plane make reboots boring, which is the goal.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The platform I used is Levelrail, which I build and run my own sites on: &lt;a href="https://github.com/glincker/levelrail" rel="noopener noreferrer"&gt;https://github.com/glincker/levelrail&lt;/a&gt;. The memory numbers here are one VM on one day, so treat them as a sample. The control plane's own footprint is on the &lt;a href="https://docs.levelrail.com/performance" rel="noopener noreferrer"&gt;performance page&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;What is the most RAM-hungry thing you run at home?&lt;/p&gt;

&lt;p&gt;If this was useful, star the repo on GitHub: &lt;a href="https://github.com/glincker/levelrail" rel="noopener noreferrer"&gt;glincker/levelrail&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>selfhosted</category>
      <category>docker</category>
      <category>devops</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
