<?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: Iain</title>
    <description>The latest articles on DEV Community by Iain (@notaflightrisk).</description>
    <link>https://dev.to/notaflightrisk</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%2F4202550%2F66a911a8-f66b-4465-baa6-6468a8cd8c24.jpg</url>
      <title>DEV Community: Iain</title>
      <link>https://dev.to/notaflightrisk</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/notaflightrisk"/>
    <language>en</language>
    <item>
      <title>A quantum computer won't need your master password</title>
      <dc:creator>Iain</dc:creator>
      <pubDate>Fri, 04 Dec 2026 11:22:37 +0000</pubDate>
      <link>https://dev.to/notaflightrisk/a-quantum-computer-wont-need-your-master-password-3oi6</link>
      <guid>https://dev.to/notaflightrisk/a-quantum-computer-wont-need-your-master-password-3oi6</guid>
      <description>&lt;p&gt;1Password's &lt;a href="https://1passwordstatic.com/files/security/1password-white-paper.pdf" rel="noopener noreferrer"&gt;security white paper&lt;/a&gt; has a little story in it about an attacker called Oscar. Oscar's managed to copy everything on 1Password's servers, and it does him no good, because every vault is locked with your account password plus a Secret Key that 1Password never sees. "Without the Secret Keys, it's useless to him," the paper says.&lt;/p&gt;

&lt;p&gt;That's true today. Give Oscar a quantum computer, though, and he won't need your password or your Secret Key, and it isn't the AES that lets you down.&lt;/p&gt;

&lt;h2&gt;
  
  
  The vault key has a second lock
&lt;/h2&gt;

&lt;p&gt;The usual answer to "are password managers quantum-safe?" is that vaults are encrypted with AES-256, and the best known quantum attack on that (Grover's algorithm) only cuts its effective key length from 256 bits to 128, which is still plenty. That part's right.&lt;/p&gt;

&lt;p&gt;The catch is how the AES key gets to you. In 1Password, each vault has its own key, and the server keeps a copy of that key encrypted to your RSA-2048 public key. That's every vault, including the Personal one nobody else can see. Your RSA private key is stored too, encrypted with a key made from your password and Secret Key, so you open the vault in two steps: password and Secret Key open your private key, and your private key opens the vault key.&lt;/p&gt;

&lt;p&gt;Against a normal attacker that RSA step doesn't matter, since the private key it needs is locked behind your password anyway. &lt;a href="https://en.wikipedia.org/wiki/Shor%27s_algorithm" rel="noopener noreferrer"&gt;Shor's algorithm&lt;/a&gt; changes that. Run on a large enough quantum computer, it works out an RSA or elliptic-curve private key from the public key, and the server has to keep your public key, because that's what other people use to share with you. So Oscar takes the public key, works out the private key, and opens the vault key with it. The copy of the private key that your password protects is never needed.&lt;/p&gt;

&lt;h2&gt;
  
  
  Trying it on my own Vaultwarden
&lt;/h2&gt;

&lt;p&gt;I wanted to see exactly when a vault picks up that second lock, so I used &lt;a href="https://github.com/dani-garcia/vaultwarden" rel="noopener noreferrer"&gt;Vaultwarden&lt;/a&gt;, the self-hosted server for Bitwarden's apps, which stores the same keys as Bitwarden's own. I wrote a small Python client that does Bitwarden's real key handling, signed up a user called Alice, and gave her a note with a crypto seed phrase in it. Then I turned on Bitwarden's sharing and recovery features one at a time, and copied Vaultwarden's database after each one.&lt;/p&gt;

&lt;p&gt;Nobody can factor RSA-2048 yet, so the test can't show Shor working. What it shows is what a stolen copy would need Shor for. My client kept the private keys it generated, and a second script gets one database copy and one of those private keys, standing in for what Shor would work out from the matching public key. The script never sees a password.&lt;/p&gt;

&lt;p&gt;On Alice's first copy, her public key is there but nothing's encrypted to it, so her private key opens nothing. Then Alice gives her friend Bob emergency access, which is Bitwarden's "if I'm hit by a bus" feature. That stores Alice's whole user key in the database, encrypted to Bob's public key:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ python3 open.py emergency.db bob.pem
matches bob@example.com's public key
opens Alice's key (emergency access)
   Seed phrase: abandon abandon ... art
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That's Alice's personal vault, opened from Bob's public key without either of their passwords.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F45tiv4yzm4mrftxv05vl.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F45tiv4yzm4mrftxv05vl.png" alt="Whose public key opens Alice's notes in each database copy" width="799" height="384"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Whose public key opens Alice's notes in each database copy&lt;/strong&gt; (&lt;a href="https://raw.githubusercontent.com/NotAFlightRisk/blog/main/posts/quantum-skips-the-master-password/opens.json" rel="noopener noreferrer"&gt;the data&lt;/a&gt;)&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Each row is a copy of my Vaultwarden 1.37.5 database after Alice turned on one more feature. Safe means no public key in that copy leads to them. Bob's key reaches the shared notes too, because Alice's user key also opens her stored private key.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Joining an organisation only exposes what's shared there, because what gets encrypted to Alice's public key is the org's key, not hers. Account recovery is the one to watch. Bitwarden's single sign-on with &lt;a href="https://bitwarden.com/help/about-trusted-devices/" rel="noopener noreferrer"&gt;trusted devices&lt;/a&gt; needs it switched on, so every account in a company that uses it is in the last row. Bitwarden's &lt;a href="https://github.com/bitwarden/sdk-internal/blob/main/crates/bitwarden-crypto/src/keys/public_key_encryption.rs" rel="noopener noreferrer"&gt;SDK&lt;/a&gt; still has only one public-key algorithm, RSA-2048.&lt;/p&gt;

&lt;h2&gt;
  
  
  Which password managers do it
&lt;/h2&gt;

&lt;p&gt;I went through the white papers and the open-source code of the big ones to see which keys sit encrypted to a public key on the server.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Every vault, from the day you sign up:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;1Password encrypts every vault key to your RSA-2048 key, according to its own white paper, and in family and team accounts to the Recovery Group's key as well.&lt;/li&gt;
&lt;li&gt;Apple Passwords and iCloud Keychain sync through Apple's CloudKit, where the key at the top of each keychain zone is encrypted to each of your devices' P-384 elliptic-curve keys. In Apple's latest published &lt;a href="https://github.com/apple-oss-distributions/Security/blob/Security-61901.120.67/keychain/ckks/CKKSTLKShareRecord.m" rel="noopener noreferrer"&gt;Security source&lt;/a&gt; (June 2026), the record holding that encrypted key holds the device's public key right next to it, so one copy of CloudKit has everything Shor would need. There's no post-quantum code in keychain syncing, and Apple's own &lt;a href="https://support.apple.com/guide/security/secc7c82e533/web" rel="noopener noreferrer"&gt;quantum-secure list&lt;/a&gt; is about connections like iMessage, TLS and VPN. Those protect the keychain on its way to iCloud, but not once it's stored there. Advanced Data Protection doesn't change it either, since the keychain was already end-to-end encrypted this way without it.&lt;/li&gt;
&lt;li&gt;Proton Pass encrypts each &lt;a href="https://github.com/ProtonMail/WebClients/blob/main/packages/pass/lib/crypto/processes/vault/create-vault.ts" rel="noopener noreferrer"&gt;new vault's key&lt;/a&gt; to your Proton account key with OpenPGP, and that's usually an elliptic-curve key. Proton's &lt;a href="https://proton.me/support/mail-post-quantum-protection" rel="noopener noreferrer"&gt;post-quantum keys&lt;/a&gt; are opt-in, and a new key only covers data encrypted after you add it, so the vaults you already had stay on the old one.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Only once you share or set up recovery:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Bitwarden, as in the Vaultwarden test above.&lt;/li&gt;
&lt;li&gt;LastPass encrypts each shared folder's key to every member's RSA key. Items you haven't shared are protected by your master password alone, unless your company has Super Admin password reset on, which keeps a copy of your vault key &lt;a href="https://github.com/lastpass/lastpass-cli/blob/master/cmd-passwd.c" rel="noopener noreferrer"&gt;RSA-encrypted&lt;/a&gt; to the admins' keys.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Never:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;KeePassXC, like the other KeePass apps, keeps everything in one file encrypted with a key from your password (and a key file, if you use one). There's no public key anywhere for Shor to work on.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Keeper and Dashlane both share with public keys too (elliptic curve and RSA), but their servers are closed and I couldn't tell from their docs what else is stored that way, so they're not in the lists.&lt;/p&gt;

&lt;h2&gt;
  
  
  Nobody's got the whole set yet, as far as I know
&lt;/h2&gt;

&lt;p&gt;An attacker doesn't need the quantum computer yet, either. They can copy the data now and wait for one, which is usually called "harvest now, decrypt later". What they'd want is the encrypted vault keys and the public keys that go with them.&lt;/p&gt;

&lt;p&gt;1Password's &lt;a href="https://1password.com/blog/update-on-nov-2026-security-incident" rel="noopener noreferrer"&gt;incident&lt;/a&gt; in late November got half of that. The attacker copied account records for some customers, including "public keys (which are public by design, this has no impact to user security)". That's fair this time, since the encrypted vault keys weren't taken, and a public key on its own opens nothing. A breach that also took the vault keys would be a different story, and a Secret Key wouldn't make any difference to it.&lt;/p&gt;

&lt;p&gt;LastPass's &lt;a href="https://blog.lastpass.com/posts/notice-of-recent-security-incident" rel="noopener noreferrer"&gt;2022 breach&lt;/a&gt; is murkier. The attackers copied backups of customer vault data, and in LastPass's apps a shared folder's key arrives &lt;a href="https://github.com/detunized/password-manager-access/blob/master/src/LastPass/Parser.cs" rel="noopener noreferrer"&gt;RSA-encrypted&lt;/a&gt; to each member's key. But LastPass &lt;a href="https://web.archive.org/web/20230306033508/https://support.lastpass.com/help/what-data-was-accessed" rel="noopener noreferrer"&gt;later said&lt;/a&gt; its backend data isn't laid out the way the apps receive it, and described every encrypted field in those backups as AES with a key from your master password. So tbh I can't tell whether the RSA-encrypted folder keys were in there.&lt;/p&gt;

&lt;h2&gt;
  
  
  How worried to be
&lt;/h2&gt;

&lt;p&gt;Not very, yet. Nobody's built a quantum computer anywhere near that size, and the best public estimate, Craig Gidney's from &lt;a href="https://arxiv.org/abs/2505.15917" rel="noopener noreferrer"&gt;May 2025&lt;/a&gt;, is under a million qubits running for under a week to factor one RSA-2048 key. NIST's &lt;a href="https://csrc.nist.gov/pubs/ir/8547/final" rel="noopener noreferrer"&gt;transition plan&lt;/a&gt;, finalised in October, has US government systems off RSA and elliptic curves altogether after 2035.&lt;/p&gt;

&lt;p&gt;A password you change before then is fine, since the copy stolen today only holds the old one. If you're on 1Password or Apple Passwords there's no setting that helps, because it's down to them to re-encrypt those keys with something post-quantum. The trouble is the stuff that never changes: crypto seed phrases, 2FA recovery codes, the TOTP secret behind a 2FA code you set up once and never re-enrolled, a private SSH key. Those are worth keeping somewhere with no public key involved, like a KeePassXC file or a Bitwarden account with no emergency access and no account recovery. And when password managers do switch to post-quantum keys, that only protects copies taken afterwards. Anything already copied stays encrypted the old way.&lt;/p&gt;

&lt;p&gt;NIST published &lt;a href="https://csrc.nist.gov/pubs/fips/203/final" rel="noopener noreferrer"&gt;ML-KEM&lt;/a&gt; in August 2024, and 1Password already uses it for its &lt;a href="https://1password.com/blog/post-quantum-cryptography" rel="noopener noreferrer"&gt;own web traffic&lt;/a&gt;. Its white paper still says no post-quantum algorithm "is yet suitably mature to be of use to us now".&lt;/p&gt;

&lt;p&gt;&lt;em&gt;More like this on &lt;a href="https://blog.peng.ly/?ref=dev.to"&gt;blog.peng.ly&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

</description>
      <category>security</category>
      <category>privacy</category>
      <category>cryptography</category>
      <category>selfhosting</category>
    </item>
    <item>
      <title>Rolling back a Docker tag won't roll back the database</title>
      <dc:creator>Iain</dc:creator>
      <pubDate>Thu, 03 Dec 2026 14:40:14 +0000</pubDate>
      <link>https://dev.to/notaflightrisk/rolling-back-a-docker-tag-wont-roll-back-the-database-2pk5</link>
      <guid>https://dev.to/notaflightrisk/rolling-back-a-docker-tag-wont-roll-back-the-database-2pk5</guid>
      <description>&lt;p&gt;Putting the old Docker tag back looks like a rollback, but Docker only replaces the app. If the newer release has already migrated the database, the old release opens that newer database exactly as it was left.&lt;/p&gt;

&lt;p&gt;I checked what happened with 15 popular self-hosted apps that run as a single container with SQLite. Ten old versions started on the newer database. Four refused to start. Audiobookshelf was the odd one out: it reversed the newer migration before starting.&lt;/p&gt;

&lt;p&gt;The most misleading result came from Linkding. The old version started, passed its health check and saved bookmarks, but trying to save a new bundle returned a server error.&lt;/p&gt;

&lt;p&gt;For nine apps, I started the old release on a fresh Docker volume, upgraded the app, then put the old tag back. For the other six, I read the migration and startup code to see whether an old release would reject a database with newer migrations. The arrows below go from the newer release back to the older one.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Ten started on the newer database:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Vaultwarden &lt;code&gt;1.37.5 --&amp;gt; 1.35.8&lt;/code&gt; started without a warning (tested in Docker).&lt;/li&gt;
&lt;li&gt;Linkding &lt;code&gt;1.46.0 --&amp;gt; 1.45.0&lt;/code&gt; started and said "No migrations to apply" (tested in Docker).&lt;/li&gt;
&lt;li&gt;Navidrome &lt;code&gt;0.65.0 --&amp;gt; 0.64.2&lt;/code&gt; started and said "no migrations to run" (tested in Docker).&lt;/li&gt;
&lt;li&gt;Grafana &lt;code&gt;13.3.0 --&amp;gt; 13.2.0&lt;/code&gt; started after skipping all 719 migrations it knew (tested in Docker).&lt;/li&gt;
&lt;li&gt;Uptime Kuma &lt;code&gt;2.5.12 --&amp;gt; 2.5.0&lt;/code&gt; warned about a possible downgrade, then started (tested in Docker).&lt;/li&gt;
&lt;li&gt;n8n would start because its migration runner doesn't reject unknown migrations (checked in source).&lt;/li&gt;
&lt;li&gt;Pi-hole FTL &lt;code&gt;6.7 --&amp;gt; 6.6.2&lt;/code&gt; would start but switch off its long-term query history (checked in source).&lt;/li&gt;
&lt;li&gt;Jellyfin &lt;code&gt;12.0 --&amp;gt; 10.11&lt;/code&gt; would start because its migration runner doesn't reject unknown migrations (checked in source).&lt;/li&gt;
&lt;li&gt;PhotoPrism &lt;code&gt;261029 --&amp;gt; 260919&lt;/code&gt; would start because its migration runner doesn't reject unknown migrations (checked in source).&lt;/li&gt;
&lt;li&gt;Actual &lt;code&gt;26.12.0 --&amp;gt; 26.11.0&lt;/code&gt; would start because that schema change was designed for older versions (checked in source).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Four wouldn't start:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Gitea &lt;code&gt;1.27 --&amp;gt; 1.26&lt;/code&gt; refused, but its standard container exited with code 0 (tested in Docker).&lt;/li&gt;
&lt;li&gt;Memos &lt;code&gt;26.11.3 --&amp;gt; 26.11.0&lt;/code&gt; refused and exited with code 1 (tested in Docker).&lt;/li&gt;
&lt;li&gt;Mealie &lt;code&gt;3.30.0 --&amp;gt; 3.29.0&lt;/code&gt; crashed on an unknown migration and exited with code 3 (tested in Docker).&lt;/li&gt;
&lt;li&gt;Trilium &lt;code&gt;0.107.0 --&amp;gt; 0.106.1&lt;/code&gt; would refuse with &lt;code&gt;wrong_db_version&lt;/code&gt; (checked in source).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;One put the database back:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Audiobookshelf &lt;code&gt;2.35.0 --&amp;gt; 2.34.0&lt;/code&gt; reversed the newer migration, then started (tested in Docker).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Each Docker test used a fresh database in a container with network access disabled. I performed one upgrade and one rollback per app, but an upgrade could skip patch releases. Vaultwarden, for example, went from 1.35.8 straight to 1.37.5.&lt;/p&gt;

&lt;h2&gt;
  
  
  Linkding is healthy until you save a bundle
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://github.com/sissbruecker/linkding" rel="noopener noreferrer"&gt;Linkding&lt;/a&gt; 1.46.0 added "shared" and "unread" filters to bundles, which are its saved searches. Those filters needed two new columns in the bundles table. One part of the Django migration looks harmless:&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="n"&gt;migrations&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;AddField&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;model_name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"bookmarkbundle"&lt;/span&gt;&lt;span class="p"&gt;,&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;"filter_shared"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;field&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;models&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;CharField&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
        &lt;span class="n"&gt;choices&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"off"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"All"&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="s2"&gt;"yes"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"Shared"&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="s2"&gt;"no"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"Unshared"&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="n"&gt;default&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"off"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="n"&gt;max_length&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The &lt;code&gt;default="off"&lt;/code&gt; value looks as though it should protect older releases, but it only helps while Django applies the migration. The final SQLite column is &lt;code&gt;"filter_shared" varchar(3) NOT NULL&lt;/code&gt; with no database default.&lt;/p&gt;

&lt;p&gt;Linkding 1.45.0 doesn't know that &lt;code&gt;filter_shared&lt;/code&gt; exists, so the old code omits the column when it inserts a bundle. SQLite rejects the insert because the missing value isn't allowed.&lt;/p&gt;

&lt;p&gt;I put the same volume through 1.45.0, 1.46.0 and 1.45.0 again, then used the web interface after each start:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;                old   new   back
health          200   200   200
new bundle      302   302   500
new bookmark    302   302   302

IntegrityError: NOT NULL constraint failed:
bookmarks_bookmarkbundle.filter_shared
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;After the rollback, Linkding's health check still returned 200. Existing bundles loaded, and a new bookmark saved successfully. Only the "New bundle" button failed, so anyone who didn't use bundles could miss the damage for quite a while.&lt;/p&gt;

&lt;p&gt;The same failure can affect any Django app that adds a required field with &lt;code&gt;default&lt;/code&gt; but without &lt;code&gt;null=True&lt;/code&gt;. Since Django 5.0, developers can use &lt;a href="https://docs.djangoproject.com/en/6.0/ref/models/fields/#db-default" rel="noopener noreferrer"&gt;&lt;code&gt;db_default&lt;/code&gt;&lt;/a&gt; when the database itself needs to supply the value. A plain &lt;code&gt;default&lt;/code&gt; doesn't do that.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why the old version doesn't notice
&lt;/h2&gt;

&lt;p&gt;Most migration tools in these apps only compare the migrations bundled with the running version against the migrations recorded in the database. If a bundled migration is missing from the database's records, the tool runs that migration.&lt;/p&gt;

&lt;p&gt;A migration that exists only in a newer release isn't in the old release's list, so the old migration tool has nothing to compare. The database can record migrations that the old release has never heard of, and startup still succeeds.&lt;/p&gt;

&lt;p&gt;Navidrome showed the problem neatly. After I rolled back to 0.64.2, its database was six migrations ahead. Navidrome still logged &lt;code&gt;goose: no migrations to run. current version: 20261127164354&lt;/code&gt; and started. That version number belonged to one of the six migrations missing from 0.64.2.&lt;/p&gt;

&lt;p&gt;Grafana behaved much the same way. Version 13.2.0 recognised 719 migrations, saw that all 719 were already recorded, and skipped them. The database also contained nine migration IDs from 13.3.0, but the old migrator ignored those unknown IDs.&lt;/p&gt;

&lt;p&gt;Whether the old app works after startup depends on what the newer migrations changed. Four of Vaultwarden's five newer migrations added columns to existing tables, and each column was either nullable or had a database default. The fifth migration added a new archives table, which the old code didn't use. I checked the useful paths too: rolled-back Vaultwarden 1.35.8 created an account, logged in, saved an item and synced against the 1.37.5 database.&lt;/p&gt;

&lt;p&gt;Uptime Kuma was the only app I ran that noticed the missing migration files but continued anyway. Its migration library called the migration directory corrupt, then Uptime Kuma warned that I might be downgrading and started. The warning only appeared in &lt;code&gt;docker logs&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Pi-hole logs a database version error and switches off the long-term query database, but DNS continues working.&lt;/p&gt;

&lt;h2&gt;
  
  
  Gitea refuses, then Docker calls it a success
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://github.com/go-gitea/gitea" rel="noopener noreferrer"&gt;Gitea&lt;/a&gt; gave the clearest refusal:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Migration Error: Your database (migration version: 343) is for a newer Gitea,
you can not use the newer database for this old Gitea release (331).
Gitea will exit to keep your database safe and unchanged.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The Gitea process exits with code 1. In the standard &lt;code&gt;gitea/gitea&lt;/code&gt; image, however, Gitea runs under the s6 process supervisor. When Gitea stops, s6 shuts the container down cleanly and returns code 0. Docker therefore treats the failed startup as a successful exit.&lt;/p&gt;

&lt;p&gt;I ran the same rollback under each Docker restart policy for 45 seconds:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;--restart no               Exited (0)     0 restarts
--restart on-failure       Exited (0)     0 restarts
--restart unless-stopped   Restarting     7 restarts
--restart always           Up 4 seconds   7 restarts
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;With &lt;code&gt;unless-stopped&lt;/code&gt;, or the &lt;code&gt;always&lt;/code&gt; policy in &lt;a href="https://docs.gitea.com/installation/install-with-docker" rel="noopener noreferrer"&gt;Gitea's own Compose examples&lt;/a&gt;, the container restarts every few seconds. With &lt;code&gt;on-failure&lt;/code&gt;, the container stays off because Docker received a zero exit code. A monitor that only treats non-zero container exits as crashes won't report the failed Gitea startup.&lt;/p&gt;

&lt;p&gt;Gitea's &lt;code&gt;rootless&lt;/code&gt; image doesn't use s6, so that image passes Gitea's exit code 1 back to Docker. Memos also refuses to start and returns code 1. Mealie avoids opening the newer database by accident: Alembic can't find the newer migration recorded in the database, so startup ends with a traceback and code 3.&lt;/p&gt;

&lt;h2&gt;
  
  
  A real rollback needs the old data too
&lt;/h2&gt;

&lt;p&gt;Changing the tag only restores the old application code. To restore the old database, you need a copy taken before the upgrade.&lt;/p&gt;

&lt;p&gt;I tested the following commands with Linkding's standard named volume. First, stop Linkding and copy the whole volume before changing the tag:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker compose stop linkding
docker run --rm -v linkding_data:/data -v &lt;span class="s2"&gt;"$PWD"&lt;/span&gt;:/backup alpine \
  tar czf /backup/linkding-1.45.0.tgz -C /data .
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If the upgrade goes wrong, stop Linkding, change the Compose file back to 1.45.0, then empty the volume and restore the copy. Emptying the volume first matters because otherwise files created by the newer release remain mixed into the old data.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker compose stop linkding
docker run --rm -v linkding_data:/data -v &lt;span class="s2"&gt;"$PWD"&lt;/span&gt;:/backup alpine \
  sh -c &lt;span class="s1"&gt;'find /data -mindepth 1 -delete &amp;amp;&amp;amp;
    tar xzf /backup/linkding-1.45.0.tgz -C /data'&lt;/span&gt;
docker compose up -d linkding
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;After I restored the volume, Linkding 1.45.0 loaded the bundle I had made before upgrading and created another one without an error. Anything saved after the backup was gone, as you'd expect.&lt;/p&gt;

&lt;h2&gt;
  
  
  Two apps designed for the problem
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://github.com/advplyr/audiobookshelf/blob/v2.35.0/server/managers/MigrationManager.js" rel="noopener noreferrer"&gt;Audiobookshelf&lt;/a&gt; copies new migration files into the persistent &lt;code&gt;/config&lt;/code&gt; folder during an upgrade. When Audiobookshelf 2.34.0 opened the database from 2.35.0, the old release found the newer migration file in &lt;code&gt;/config&lt;/code&gt;, ran its &lt;code&gt;down&lt;/code&gt; step, removed the two new columns and then started. Audiobookshelf was the only app in the group that reversed a migration automatically.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/actualbudget/actual" rel="noopener noreferrer"&gt;Actual&lt;/a&gt; takes a different approach. Since September 2026, its &lt;a href="https://github.com/actualbudget/actual/blob/v26.12.0/packages/loot-core/migrations/README.md" rel="noopener noreferrer"&gt;migration rules&lt;/a&gt; have only allowed schema changes that older versions can use: new tables, nullable columns, or required columns with a database &lt;code&gt;DEFAULT&lt;/code&gt;. Renaming or removing a column isn't allowed, and a CI test checks every new migration against those schema rules.&lt;/p&gt;

&lt;p&gt;Actual added the rules so devices on different releases could keep syncing. For the 26.12.0 migration I checked, the rule also made a rollback to 26.11.0 safe: the new required column had a database default, so the old release could still write rows. Actual's README warns that the test can't make data migrations safe, because an &lt;code&gt;INSERT&lt;/code&gt; or &lt;code&gt;UPDATE&lt;/code&gt; can still change values that an old release doesn't understand.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;More like this on &lt;a href="https://blog.peng.ly/?ref=dev.to"&gt;blog.peng.ly&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

</description>
      <category>opensource</category>
      <category>database</category>
      <category>docker</category>
      <category>selfhosting</category>
    </item>
    <item>
      <title>Android's approximate location sharpens every reboot</title>
      <dc:creator>Iain</dc:creator>
      <pubDate>Wed, 02 Dec 2026 05:52:51 +0000</pubDate>
      <link>https://dev.to/notaflightrisk/androids-approximate-location-sharpens-every-reboot-n66</link>
      <guid>https://dev.to/notaflightrisk/androids-approximate-location-sharpens-every-reboot-n66</guid>
      <description>&lt;p&gt;Deep in Android's location service there's a file called &lt;code&gt;LocationFudger&lt;/code&gt;, and a comment in it that tells you exactly what the fuzzy "approximate location" grant is for. The random offset it adds to your position, it says, "changes very slowly over time, to mitigate against taking many location samples and averaging them out."&lt;/p&gt;

&lt;p&gt;That's the whole promise. Give a weather app approximate location instead of precise, and it gets your rough area, accurate to within about 3 km² &lt;a href="https://developer.android.com/develop/sensors-and-location/location/permissions#approximate-request" rel="noopener noreferrer"&gt;per Google's docs&lt;/a&gt;. The offset stops the app from collecting a pile of those rough fixes and averaging its way back to your front door, because the offset barely moves.&lt;/p&gt;

&lt;p&gt;Except it does move. It gets wiped and redrawn, from scratch, every time you reboot.&lt;/p&gt;

&lt;h2&gt;
  
  
  What approximate actually does to a fix
&lt;/h2&gt;

&lt;p&gt;When you grant coarse location, your real position never reaches the app. &lt;a href="https://cs.android.com/android/platform/superproject/main/+/main:frameworks/base/services/core/java/com/android/server/location/fudger/LocationFudger.java" rel="noopener noreferrer"&gt;&lt;code&gt;LocationFudger&lt;/code&gt;&lt;/a&gt; does two things to it first. It adds a random offset drawn from a gaussian, &lt;code&gt;nextGaussian() * accuracy / 4&lt;/code&gt; on each axis, so about 500 m of sigma at the default 2 km accuracy. Then it snaps the result to a 2 km grid (each cell is 4 km², a bit more than the 3 km² the docs round it to).&lt;/p&gt;

&lt;p&gt;The snap is what makes the result stable. Open the app twice in a row and you get the same grid square both times, because your position plus the slow-moving offset lands in the same cell. The offset is the clever bit: without it, anyone standing near a grid boundary would flip between two cells and give themselves away, and a drifting offset means you can't just average a stack of fixes to cancel it out. The comment is right that a slow offset beats averaging.&lt;/p&gt;

&lt;p&gt;The thing is, the offset is only slow &lt;em&gt;within one boot&lt;/em&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  The offset is a per-boot secret
&lt;/h2&gt;

&lt;p&gt;Here's the constructor. &lt;code&gt;LocationFudger&lt;/code&gt; is built with a fresh &lt;code&gt;SecureRandom&lt;/code&gt;, and the first thing it does is draw its offsets:&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;public&lt;/span&gt; &lt;span class="nc"&gt;LocationFudger&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kt"&gt;float&lt;/span&gt; &lt;span class="n"&gt;accuracyM&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;this&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;accuracyM&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nc"&gt;SystemClock&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;elapsedRealtimeClock&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;new&lt;/span&gt; &lt;span class="nc"&gt;SecureRandom&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="kt"&gt;void&lt;/span&gt; &lt;span class="nf"&gt;resetOffsets&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="n"&gt;mLatitudeOffsetM&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;nextRandomOffset&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="n"&gt;mLongitudeOffsetM&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;nextRandomOffset&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;&lt;code&gt;mLatitudeOffsetM&lt;/code&gt; and &lt;code&gt;mLongitudeOffsetM&lt;/code&gt; are plain fields. Nothing writes them to disk, nothing reads them back. The slow drift the comment talks about nudges them by 3% an hour while the service is up, so over a day they barely budge. But the location service is built when the system starts, and torn down when it stops. Reboot, and the constructor runs again, &lt;code&gt;new SecureRandom()&lt;/code&gt; and all, and you get a brand new offset with no relation to the last one.&lt;/p&gt;

&lt;p&gt;So a reboot isn't more of the same slow drift. It's a fresh, independent sample of the blur. And every independent sample is one more thing to average.&lt;/p&gt;

&lt;p&gt;You don't have to take the comment's word for the re-roll. I compiled the real &lt;code&gt;LocationFudger&lt;/code&gt; straight from AOSP and built it fresh 5,000 times, which is what Android does to it at each service start, feeding one unmoving point. Within a single instance, asking for the same point twice gave identical coarse fixes, as the grid snap promises. Across the 5,000 instances, every single one was different: 5,000 distinct coarse points for one home that never moved.&lt;/p&gt;

&lt;p&gt;It holds on a running build too. I put the AOSP Android 17 system image in an emulator, pinned a mock GPS fix at one spot in London, and gave a throwaway app nothing but &lt;code&gt;ACCESS_COARSE_LOCATION&lt;/code&gt;. Opened twice in one boot, it read back the identical coarse fix to seven decimal places. Rebooted, and it came back with a different one, and a different one again after that. The app can tell which fixes are independent without any extra permission: &lt;code&gt;BOOT_COUNT&lt;/code&gt; has been a public &lt;code&gt;Settings.Global&lt;/code&gt; value since 2016, so it reads that and keeps one fix per number. If it wanted to be sneaky about it, &lt;code&gt;currentTimeMillis&lt;/code&gt; minus &lt;code&gt;elapsedRealtime&lt;/code&gt; gives the boot time too.&lt;/p&gt;

&lt;h2&gt;
  
  
  A year of updates, averaged
&lt;/h2&gt;

&lt;p&gt;Once you've got independent samples of a known blur, pinning the real position is just maths, and the grid is open source so the app knows its size and where its lines fall. How close you get depends a bit on where in a cell you happen to live, so rather than read too much into the one home I'd measured, I ran the exact AOSP constants through a simulation (2 km accuracy, 500 m offset sigma, the same grid snap) over 20,000 random homes, scoring a best-guess estimate against how many reboots the app had caught:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fkul5jow4jd7w2m5xp49j.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fkul5jow4jd7w2m5xp49j.png" alt="Median error estimating a fixed home, by reboots the app has seen" width="800" height="393"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Median error estimating a fixed home, by reboots the app has seen&lt;/strong&gt; (&lt;a href="https://raw.githubusercontent.com/NotAFlightRisk/blog/main/posts/approximate-location-rerolls-at-boot/reboots.json" rel="noopener noreferrer"&gt;the data&lt;/a&gt;)&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Posterior-mean estimate against the true point, 20,000 trials per value. One raw fix is a median&lt;br&gt;
  944 m out.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;One fix is about 940 m off, which is the blur doing its job. Twelve, roughly a year of monthly security patches, and you're down to 263 m. Fifty, and it's 128 m. The curve keeps going - a few years of updates and you're inside a couple of blocks. The app never asked for precise location, and the user never granted it.&lt;/p&gt;

&lt;p&gt;And you don't have to wait for the user to travel. This works on a fixed point, like the place the phone sits every night. An app that catches you at home once per boot is building the average whether you move or not.&lt;/p&gt;

&lt;p&gt;Reboots aren't rare. Monthly security patches are one a month on their own. Play system updates add more, and a 2025 Play services update brought a &lt;a href="https://9to5google.com/2025/04/16/android-auto-restart-security/" rel="noopener noreferrer"&gt;72-hour inactivity reboot&lt;/a&gt; that restarts a phone left locked for three days. Call it a dozen fresh draws a year without trying, more if you actually turn your phone off and on.&lt;/p&gt;
&lt;h2&gt;
  
  
  It's worse than one draw per boot
&lt;/h2&gt;

&lt;p&gt;I've been saying "one fix per boot", but a coarse-only app can do better than that. &lt;code&gt;LocationManagerService&lt;/code&gt; builds a separate provider manager for network, fused and gps, and &lt;a href="https://cs.android.com/android/platform/superproject/main/+/main:frameworks/base/services/core/java/com/android/server/location/provider/LocationProviderManager.java" rel="noopener noreferrer"&gt;each one&lt;/a&gt; gets its own &lt;code&gt;LocationFudger&lt;/code&gt; with its own offset:&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="n"&gt;mLocationFudger&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;LocationFudger&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;mSettingsHelper&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getCoarseLocationAccuracyM&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;On the emulator, the gps and passive providers handed my app two different grid squares for the same real point, in the same boot. That's two independent offsets to average, not one. The split is deliberate: each provider gets its own fudger so one can't be used to work out another's offset, and the code even resets a provider's offset the moment a mock provider is removed, because "the mock provider could have been used to infer the current location fudger offsets". Fair enough. But it means a reboot resets every provider's offset at once, and the app gets several fresh samples each time instead of one. So the reboot counts on that chart are really a worst case: with two or three providers answering per boot, the same error arrives in a fraction of the reboots.&lt;/p&gt;

&lt;h2&gt;
  
  
  Google was told
&lt;/h2&gt;

&lt;p&gt;None of this is a bug in the sense of a crash. It's the coarsening behaving exactly as written. The question is whether "exactly as written" defeats the point of approximate location, and Google's own &lt;a href="https://github.com/explainers-by-googlers/approximate-geolocation" rel="noopener noreferrer"&gt;approximate-geolocation explainer&lt;/a&gt; suggests it should care: it names "precise location reconstruction" from many approximate fixes as a threat that coarsening algorithms "are expected to implement mitigations against", and points at &lt;code&gt;LocationFudger&lt;/code&gt; as the mitigation. Averaging across reboots walks straight around it.&lt;/p&gt;

&lt;p&gt;This got reported. It went to Google's vulnerability reward programme in November, and the answer came back:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fxoyx6pbvrq86r2rcyhrj.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fxoyx6pbvrq86r2rcyhrj.png" alt="Google's reply: Status Won't Fix (Infeasible). It thanks the reporter, says this is not a security vulnerability, and that the issue has been logged for potential remediation in a future version." width="800" height="274"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;The reply, trimmed to the body.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;"Not a security vulnerability" is a fair call, depending on where you draw the line. It's not a remote exploit, and it needs an app you installed and granted location to first. The bit I didn't expect was "Won't Fix (Infeasible)". From the outside the fix looks like a few lines, write the offset to disk at shutdown and read it back at start, or seed it from a stable per-install value so a reboot doesn't redraw it. Google didn't say what makes that infeasible, and a persisted offset does turn into one more stable per-install value an app could try to fingerprint, so maybe there's a reason that isn't obvious from the source. They did log it "for potential remediation in a future version", so it's not nothing.&lt;/p&gt;

&lt;p&gt;I've not gone hunting for an app that actually does this, and I'd be mildly surprised to find one in the wild - it's a slow, patient trick for a fairly small prize. The point is that nothing in the platform stops it.&lt;/p&gt;

&lt;p&gt;If you want an app to have your rough area once and no more, the "only this time" grant or the one-shot location button hand it a single fix with nothing to average, and anything that doesn't need your location can just be told no. Picking "approximate" over "precise" still feels like the careful choice. It mostly just makes finding you take longer.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;More like this on &lt;a href="https://blog.peng.ly/?ref=dev.to"&gt;blog.peng.ly&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

</description>
      <category>security</category>
      <category>android</category>
      <category>privacy</category>
    </item>
    <item>
      <title>Opening a repo in Neovim or Helix runs its code</title>
      <dc:creator>Iain</dc:creator>
      <pubDate>Mon, 30 Nov 2026 13:05:40 +0000</pubDate>
      <link>https://dev.to/notaflightrisk/opening-a-repo-in-neovim-or-helix-runs-its-code-4b89</link>
      <guid>https://dev.to/notaflightrisk/opening-a-repo-in-neovim-or-helix-runs-its-code-4b89</guid>
      <description>&lt;p&gt;A recruiter's got a job for you that pays a bit too well, and the next step is a take-home: clone this repo, fix a bug, send it back. You've read about the fake interviews where the repo is the malware, so you're not running &lt;code&gt;npm install&lt;/code&gt;, and you're not opening it in VS Code either, since &lt;a href="https://www.trendmicro.com/en_us/research/26/d/void-dokkaebi-uses-fake-job-interview-lure-to-spread-malware-via-code-repositories.html" rel="noopener noreferrer"&gt;the ones Trend Micro wrote up in April&lt;/a&gt; started their malware from a task that VS Code runs as soon as you trust the folder. You'll just have a read in Neovim first. There's no task runner in there, so what could it possibly run?&lt;/p&gt;

&lt;p&gt;The language server, as it happens, and whatever it decides to run.&lt;/p&gt;

&lt;p&gt;I made four tiny repos, in Rust, Ruby, TypeScript and Go, each with one file that writes a marker to disk if anything ever runs it. Then I opened one source file from each in a container with the network off, and didn't touch a key for a minute. Neovim had &lt;a href="https://github.com/neovim/nvim-lspconfig" rel="noopener noreferrer"&gt;nvim-lspconfig&lt;/a&gt; set up the way its README says, with one &lt;code&gt;vim.lsp.enable&lt;/code&gt; line naming the four servers. Helix needs no setup, and its master branch has a new workspace trust feature, so I tried that as well as the last release, 25.07.1 from July 2025.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F3jweqfk63nrq5zrvnrpa.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F3jweqfk63nrq5zrvnrpa.png" alt="Did opening one file run the repo's code?" width="799" height="384"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Did opening one file run the repo's code?&lt;/strong&gt; (&lt;a href="https://raw.githubusercontent.com/NotAFlightRisk/blog/main/posts/opening-the-repo-runs-it/matrix.json" rel="noopener noreferrer"&gt;the data&lt;/a&gt;)&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Run on 30 November 2026, on a fresh copy of each repo every time. Every yes had written its marker&lt;br&gt;
  within 15 seconds of the file opening, most within two. The last row is Helix master with its&lt;br&gt;
  trust level set to &lt;code&gt;"none"&lt;/code&gt;.&lt;/em&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  What actually runs
&lt;/h2&gt;

&lt;p&gt;In Rust, it's &lt;code&gt;build.rs&lt;/code&gt;. rust-analyzer builds your project so it can understand it, and on a fresh clone that means running the build script and any proc macros, on purpose. Its &lt;a href="https://rust-analyzer.github.io/book/security.html" rel="noopener noreferrer"&gt;security page&lt;/a&gt; starts with "At the moment, rust-analyzer assumes that all code is trusted", and lists a few more ways in, like a &lt;code&gt;rust-toolchain.toml&lt;/code&gt; that swaps &lt;code&gt;rustc&lt;/code&gt; for any program you like. Mine was just this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight rust"&gt;&lt;code&gt;&lt;span class="k"&gt;fn&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="p"&gt;{&lt;/span&gt;
    &lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="n"&gt;msg&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;format!&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"build.rs ran at {:?}\n"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;std&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="n"&gt;time&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="nc"&gt;SystemTime&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="nf"&gt;now&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="n"&gt;_&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;std&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="n"&gt;fs&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="nf"&gt;write&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"/out/canary-buildrs"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;msg&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;In Ruby, it's the &lt;code&gt;Gemfile&lt;/code&gt;, which is a Ruby script with a fancy name. If there's a &lt;code&gt;Gemfile.lock&lt;/code&gt; next to it, ruby-lsp writes its own Gemfile into &lt;code&gt;.ruby-lsp/&lt;/code&gt; that pulls yours in with &lt;code&gt;eval_gemfile&lt;/code&gt;, then hands that to Bundler, all before the server proper has started. &lt;a href="https://shopify.github.io/ruby-lsp/security.html" rel="noopener noreferrer"&gt;Ruby LSP's security page&lt;/a&gt; is upfront about it: "Execute any code in your Gemfile (Gemfiles are Ruby code)".&lt;/p&gt;

&lt;p&gt;In TypeScript, it's &lt;code&gt;tsserver.js&lt;/code&gt;. typescript-language-server doesn't understand TypeScript itself. It starts TypeScript's own &lt;code&gt;tsserver&lt;/code&gt; and talks to that, and it &lt;a href="https://github.com/typescript-language-server/typescript-language-server/blob/master/src/tsServer/versionProvider.ts" rel="noopener noreferrer"&gt;prefers the repo's copy&lt;/a&gt; over the one it brought with it. So the one-line &lt;code&gt;tsserver.js&lt;/code&gt; I'd put in the repo's &lt;code&gt;node_modules/typescript/lib&lt;/code&gt; ran instead. VS Code finds the same file, but won't use it till you say yes, and &lt;a href="https://yarnpkg.com/getting-started/editor-sdks" rel="noopener noreferrer"&gt;Yarn's docs&lt;/a&gt; say that's for safety.&lt;/p&gt;

&lt;p&gt;Neovim has a second way in for JavaScript and TypeScript, too. lspconfig's &lt;code&gt;ts_ls&lt;/code&gt;, &lt;code&gt;eslint&lt;/code&gt; and a dozen-odd other configs start the server itself from the repo's own &lt;code&gt;node_modules/.bin&lt;/code&gt; if there's one there. That's &lt;a href="https://github.com/neovim/nvim-lspconfig/issues/4576" rel="noopener noreferrer"&gt;lspconfig #4576&lt;/a&gt;, open since 15 November, where a Neovim maintainer suggests dropping the lookup or putting it behind &lt;code&gt;:trust&lt;/code&gt;. My TypeScript repo had no &lt;code&gt;node_modules/.bin&lt;/code&gt;, so its ticks are the &lt;code&gt;tsserver.js&lt;/code&gt; swap on its own.&lt;/p&gt;

&lt;p&gt;Go stayed quiet. gopls started up and loaded the package, but Go has no build scripts, and the Go team &lt;a href="https://go.dev/doc/security/decisions" rel="noopener noreferrer"&gt;treats&lt;/a&gt; a module that makes &lt;code&gt;go build&lt;/code&gt; run code as a security bug to be fixed. That's not quite the same as never, since the cgo flag allowlist that went in to stop it has been &lt;a href="https://mattermost.com/blog/go-fixes-its-7th-code-execution-bug-in-the-same-feature/" rel="noopener noreferrer"&gt;bypassed six times&lt;/a&gt;. But nothing in Go does it by design.&lt;/p&gt;

&lt;h2&gt;
  
  
  Helix's new trust doesn't ask
&lt;/h2&gt;

&lt;p&gt;Helix's master branch (not in a release yet) can ask you to trust each new workspace, and the prompt is pretty clear about why:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Trusted workspaces may load local Helix config files (&lt;code&gt;.helix/*&lt;/code&gt;) and auto-start language servers.&lt;br&gt;
Both can execute arbitrary code.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://github.com/helix-editor/helix/blob/master/helix-term/src/handlers/workspace_trust.rs" rel="noopener noreferrer"&gt;Helix's trust prompt&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;

&lt;p&gt;The default trust level is &lt;code&gt;"servers"&lt;/code&gt;, though, which lets language servers start in every workspace anyway. The reasoning's in &lt;a href="https://github.com/helix-editor/helix/blob/master/helix-loader/src/workspace_trust.rs" rel="noopener noreferrer"&gt;the source&lt;/a&gt;: "the binaries are global (PATH-resolved, user-installed), so auto-launching them in a fresh workspace matches expectations." Which is true of the binary. The trouble is what it runs next, like that &lt;code&gt;build.rs&lt;/code&gt;, which came with the repo.&lt;/p&gt;

&lt;p&gt;With servers already allowed, the prompt is only there to ask about a repo's &lt;code&gt;.helix/&lt;/code&gt; config, and a repo without one never sees it. Here's the whole screen a few seconds after &lt;code&gt;hx src/main.rs&lt;/code&gt;, with no prompt and no warning, and &lt;code&gt;build.rs&lt;/code&gt; had already written its marker by then:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;  1  fn main() { println!("hi"); }
  ~

NOR  src/main.rs    1 sel  1:1
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Set the level to &lt;code&gt;"none"&lt;/code&gt; and you get the prompt instead, with a &lt;code&gt;[⚠]&lt;/code&gt; in the corner. I left it unanswered for a minute in each of the four repos, and nothing ran.&lt;/p&gt;

&lt;p&gt;VS Code and Zed wait too, for what that's worth. VS Code's Restricted Mode keeps rust-analyzer and Ruby LSP off, because each extension's manifest says it can't run in an untrusted folder (rust-analyzer's own reason is "A malicious actor could exploit this to run arbitrary code on your machine"), and its built-in TypeScript sticks to the copy it ships with. Zed's docs say its &lt;a href="https://zed.dev/docs/worktree-trust.html" rel="noopener noreferrer"&gt;restricted mode&lt;/a&gt; won't install or start language servers until you trust the folder, bar global ones like Prettier. But that only lasts till you click Trust, and a take-home you're meant to build and run is going to ask you to.&lt;/p&gt;

&lt;h2&gt;
  
  
  Reading one without running it
&lt;/h2&gt;

&lt;p&gt;The proper answer is a throwaway VM or container with nothing in it you'd miss. If you just want a look in your own editor first, turn the language servers off. I checked each of these against the same four repos, and nothing ran.&lt;/p&gt;

&lt;p&gt;In Neovim, &lt;code&gt;--clean&lt;/code&gt; skips your config and plugins, so lspconfig never loads:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;nvim --clean src/main.rs
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Helix 25.07.1 has no trust at all. It'll take a config file with the servers switched off in place of yours, but a repo's own &lt;code&gt;.helix/config.toml&lt;/code&gt; still goes on top. I gave mine one that switched them back on, and &lt;code&gt;build.rs&lt;/code&gt; ran eight seconds in. So bin that folder first:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight toml"&gt;&lt;code&gt;&lt;span class="k"&gt;[editor.lsp]&lt;/span&gt;
&lt;span class="na"&gt;enable&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;rm -rf .helix
hx -c ~/.config/helix/no-lsp.toml src/main.rs
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Helix's master branch holds a repo's &lt;code&gt;.helix/&lt;/code&gt; back until you trust it, so there you only need this in your normal config, and every new workspace waits for a yes:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight toml"&gt;&lt;code&gt;&lt;span class="k"&gt;[editor.workspace-trust]&lt;/span&gt;
&lt;span class="na"&gt;level&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"none"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;em&gt;More like this on &lt;a href="https://blog.peng.ly/?ref=dev.to"&gt;blog.peng.ly&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

</description>
      <category>security</category>
      <category>typescript</category>
      <category>rust</category>
      <category>ruby</category>
    </item>
    <item>
      <title>The Debian cleanup that deletes your auto-updates</title>
      <dc:creator>Iain</dc:creator>
      <pubDate>Sat, 28 Nov 2026 11:42:36 +0000</pubDate>
      <link>https://dev.to/notaflightrisk/the-debian-cleanup-that-deletes-your-auto-updates-54c</link>
      <guid>https://dev.to/notaflightrisk/the-debian-cleanup-that-deletes-your-auto-updates-54c</guid>
      <description>&lt;p&gt;In October 2007, Jon Dowland filed a bug against python-software-properties, the Debian package behind the "Software Sources" settings. It depended on unattended-upgrades, the thing that installs security updates for you, and he didn't think it should:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Your dependency on unattended-upgrades means the package is pulled in and activated, quite possibly without the user's knowledge.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://bugs.debian.org/447701" rel="noopener noreferrer"&gt;Jon Dowland, Debian bug #447701&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;

&lt;p&gt;He was right, and for one group of people he stayed right until 2023: anyone who installed Debian 11 from its own GNOME, KDE or Cinnamon live ISO got automatic updates they never asked for. Then the fix for his bug arrived with Debian 12, and on those machines the first &lt;code&gt;apt autoremove&lt;/code&gt; after the upgrade took the automatic updates away again, just as quietly. The setting that says they're on is still there.&lt;/p&gt;

&lt;h2&gt;
  
  
  How a live install got them
&lt;/h2&gt;

&lt;p&gt;The dependency did get &lt;a href="https://metadata.ftp-master.debian.org/changelogs/main/s/software-properties/software-properties_0.99.30-4.1~deb12u1_changelog" rel="noopener noreferrer"&gt;softened to a "recommends"&lt;/a&gt; in 2016, in time for Debian 9. apt installs recommended packages by default, so that changed nothing. The same year, unattended-upgrades started &lt;a href="https://metadata.ftp-master.debian.org/changelogs/main/u/unattended-upgrades/unattended-upgrades_2.8_changelog" rel="noopener noreferrer"&gt;switching itself on&lt;/a&gt; when it's installed, unless the installer says otherwise.&lt;/p&gt;

&lt;p&gt;On Debian 11's GNOME live image, it gets pulled in like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;gnome-core
  needs gnome-software
  needs software-properties-gtk
  needs python3-software-properties
  recommends unattended-upgrades
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Cinnamon's image has the same gnome-software chain, and KDE's gets there through Discover and software-properties-kde.&lt;/p&gt;

&lt;p&gt;Whether it's on is a question the package asks while it installs. Debian's normal installer, the netinst one, &lt;a href="https://sources.debian.org/src/pkgsel/0.73/pre-pkgsel.d/20update-policy/" rel="noopener noreferrer"&gt;answers "no"&lt;/a&gt; for you, so a netinst desktop got the package switched off and none of this matters to it.&lt;/p&gt;

&lt;p&gt;The live images are built with plain apt, nothing answers, and it takes the default. You can watch it switch itself on in the GNOME image's &lt;a href="https://cdimage.debian.org/cdimage/archive/11.7.0-live/amd64/iso-hybrid/debian-live-11.7.0-amd64-gnome.log" rel="noopener noreferrer"&gt;build log&lt;/a&gt;. The installer on those ISOs, Calamares, copies the live system onto your disk and then runs an autoremove of its own to clear off the live-only bits. On bullseye, unattended-upgrades was still recommended, so it stayed.&lt;/p&gt;

&lt;p&gt;I downloaded the 11.7.0 GNOME ISO and read its package database to be sure:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight console"&gt;&lt;code&gt;$ cat /etc/apt/apt.conf.d/20auto-upgrades
APT::Periodic::Update-Package-Lists &lt;span class="s2"&gt;"1"&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
APT::Periodic::Unattended-Upgrade &lt;span class="s2"&gt;"1"&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
$ grep -A2 &lt;span class="s1"&gt;'Package: unattended-upgrades'&lt;/span&gt; /var/lib/apt/extended_states
Package: unattended-upgrades
Architecture: amd64
Auto-Installed: 1
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;Auto-Installed: 1&lt;/code&gt; means apt thinks it only pulled unattended-upgrades in for something else, rather than because you wanted it. So the day nothing else needs it, apt offers to tidy it away.&lt;/p&gt;

&lt;p&gt;The Xfce, MATE and LXQt images never had it, and Debian 12's live images don't install it at all. I can't tell you how many machines this is. The live images don't ship Debian's popularity contest, so nobody's counting them.&lt;/p&gt;

&lt;h2&gt;
  
  
  Then the upgrade
&lt;/h2&gt;

&lt;p&gt;Bookworm's software-properties stopped recommending unattended-upgrades, which is what closed Jon's bug, so after the upgrade nothing on the machine wants it. I gave a bullseye container that ISO's package lists, pointed it at bookworm and had apt plan the upgrade. At the end, among a long list of old libraries and input methods, it says:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;The following packages were
automatically installed and are
no longer required:
  ...
  unattended-upgrades
  ...
Use 'apt autoremove' to remove them.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That's good advice nearly every time, and the &lt;a href="https://www.debian.org/releases/bookworm/amd64/release-notes/ch-upgrading.en.html" rel="noopener noreferrer"&gt;release notes&lt;/a&gt; tell you to do the same once the upgrade's finished. Run it and unattended-upgrades is removed but not purged, so its config file stays behind:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight console"&gt;&lt;code&gt;$ dpkg -l unattended-upgrades &lt;span class="o"&gt;|&lt;/span&gt; tail -1
rc  unattended-upgrades 2.9.1+nmu3   all   automatic installation of security upgrades
$ apt-config dump APT::Periodic::Unattended-Upgrade
APT::Periodic::Unattended-Upgrade &lt;span class="s2"&gt;"1"&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The daily timer still fires. The script it runs checks whether &lt;code&gt;unattended-upgrade&lt;/code&gt; exists, finds it doesn't, and exits 0 without logging anything. Bookworm's Software &amp;amp; Updates app only &lt;a href="https://sources.debian.org/src/software-properties/0.99.30-4.1~deb12u1/softwareproperties/gtk/SoftwarePropertiesGtk.py/#L259" rel="noopener noreferrer"&gt;shows its Updates tab&lt;/a&gt; when &lt;code&gt;/usr/bin/unattended-upgrade&lt;/code&gt; is there, so the one screen that showed you the setting goes too.&lt;/p&gt;

&lt;p&gt;It's not as bad as a box with no updates at all. GNOME Software on bookworm still downloads them and tells you, but Debian packages wait for you to click Restart &amp;amp; Update, which isn't the same as it all happening at 6am while you're asleep. Discover's own automatic updates are off by default, so on KDE it's down to you clicking as well. And GNOME Software only &lt;a href="https://sources.debian.org/src/gnome-software/43.5-1~deb12u2/data/autostart/org.gnome.Software.desktop.in/" rel="noopener noreferrer"&gt;starts itself in the background&lt;/a&gt; on GNOME, so on Cinnamon nothing goes looking unless you open it.&lt;/p&gt;

&lt;p&gt;Bullseye's long-term support &lt;a href="https://wiki.debian.org/LTS" rel="noopener noreferrer"&gt;ended on 31 August&lt;/a&gt;, so any of these machines still about are being upgraded round about now. And if you went to bookworm and skipped the autoremove, it's still on that list, and apt brings it up every time you install anything in a terminal. One &lt;code&gt;apt autoremove&lt;/code&gt; later, for any reason at all, and it's gone.&lt;/p&gt;

&lt;h2&gt;
  
  
  Before and after the autoremove
&lt;/h2&gt;

&lt;p&gt;Before, see whether apt has it down as automatic:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;apt-mark showauto unattended-upgrades
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If that prints its name, &lt;code&gt;sudo apt-mark manual unattended-upgrades&lt;/code&gt; tells apt you meant it. After, don't ask &lt;code&gt;apt-config&lt;/code&gt;, since it only reads the config file that got left behind. Ask dpkg:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;dpkg -l unattended-upgrades
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;ii&lt;/code&gt; at the start of the last line means it's there. &lt;code&gt;rc&lt;/code&gt;, or no line at all, means it's gone. &lt;code&gt;sudo apt install unattended-upgrades&lt;/code&gt; puts it back, picks up the old config, and marks it as yours, so the next autoremove leaves it alone.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;More like this on &lt;a href="https://blog.peng.ly/?ref=dev.to"&gt;blog.peng.ly&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

</description>
      <category>security</category>
      <category>linux</category>
      <category>debian</category>
    </item>
    <item>
      <title>What you lose when you delete ~/.cache</title>
      <dc:creator>Iain</dc:creator>
      <pubDate>Fri, 27 Nov 2026 12:49:32 +0000</pubDate>
      <link>https://dev.to/notaflightrisk/what-you-lose-when-you-delete-cache-54eg</link>
      <guid>https://dev.to/notaflightrisk/what-you-lose-when-you-delete-cache-54eg</guid>
      <description>&lt;p&gt;I saved an OpenAI key in &lt;a href="https://www.langflow.org" rel="noopener noreferrer"&gt;Langflow&lt;/a&gt;, stopped it, deleted &lt;code&gt;~/.cache&lt;/code&gt; and started it again. The key was still in Langflow's database. Langflow just couldn't read it any more, and every time it tried, its log said "API key decryption failed after retry. This may indicate a corrupted key or SECRET_KEY mismatch."&lt;/p&gt;

&lt;p&gt;If you install Langflow with pip or uv and don't set anything, the key it encrypts your saved credentials with lives in &lt;code&gt;~/.cache/langflow/secret_key&lt;/code&gt;. Delete that and Langflow makes a new one on the next start, and every API key you saved in it is now noise. You'd have to paste each one back in. Langflow knows the key matters, it even ships a &lt;a href="https://github.com/langflow-ai/langflow/blob/main/scripts/migrate_secret_key.py" rel="noopener noreferrer"&gt;script&lt;/a&gt; for changing it safely. It just keeps it in the cache.&lt;/p&gt;

&lt;p&gt;Which feels a bit unfair, because deleting &lt;code&gt;~/.cache&lt;/code&gt; is the one bit of tidying everyone agrees is fine. The &lt;a href="https://specifications.freedesktop.org/basedir-spec/latest/" rel="noopener noreferrer"&gt;XDG spec&lt;/a&gt; says it's for "non-essential data files". The top answer on askubuntu's &lt;a href="https://askubuntu.com/questions/102046/is-it-okay-to-delete-the-cache-folder" rel="noopener noreferrer"&gt;Is it okay to delete the ~/.cache folder?&lt;/a&gt;, which has been read over half a million times, says "IMO you can delete all of .cache with no long term detrimental effects". Mine's 8.9 GB, 6.4 of it uv's, so I get the temptation.&lt;/p&gt;

&lt;p&gt;Somebody did ask askubuntu, back in 2019, &lt;a href="https://askubuntu.com/questions/1178029/is-there-anything-in-cache-that-is-not-really-cache" rel="noopener noreferrer"&gt;"Is there anything in ~/.cache that is not really cache?"&lt;/a&gt; It's still got no answers, so here's mine.&lt;/p&gt;

&lt;h2&gt;
  
  
  What's in there that isn't cache
&lt;/h2&gt;

&lt;p&gt;For Langflow, &lt;a href="https://github.com/sentriz/cliphist" rel="noopener noreferrer"&gt;cliphist&lt;/a&gt; and Deno I pointed &lt;code&gt;XDG_CACHE_HOME&lt;/code&gt; at a throwaway folder, used the thing, wiped the folder and looked at what was left. For the rest I read where their code puts things. Here's a &lt;code&gt;~/.cache&lt;/code&gt; with the things you can't get back picked out:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;~/.cache

&lt;ul&gt;
&lt;li&gt;uv/ &lt;em&gt;comes back&lt;/em&gt;
&lt;/li&gt;
&lt;li&gt;JetBrains&lt;/li&gt;
&lt;li&gt;IntelliJIdea2026.3

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;LocalHistory/&lt;/strong&gt; &lt;em&gt;5 days of edits&lt;/em&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;code&gt;clipboard-indicator@tudmotu.com&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;registry.txt&lt;/strong&gt; &lt;em&gt;pinned clips&lt;/em&gt;
&lt;/li&gt;
&lt;li&gt;cliphist&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;db&lt;/strong&gt; &lt;em&gt;clip history&lt;/em&gt;
&lt;/li&gt;
&lt;li&gt;deno&lt;/li&gt;
&lt;li&gt;npm/&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;location_data/&lt;/strong&gt; &lt;em&gt;localStorage&lt;/em&gt;
&lt;/li&gt;
&lt;li&gt;langflow&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;secret_key&lt;/strong&gt; &lt;em&gt;unlocks saved keys&lt;/em&gt;
&lt;/li&gt;
&lt;li&gt;ibus&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;libpinyin/&lt;/strong&gt; &lt;em&gt;learned words&lt;/em&gt;
&lt;/li&gt;
&lt;li&gt;huggingface&lt;/li&gt;
&lt;li&gt;hub/&lt;/li&gt;
&lt;li&gt;token &lt;em&gt;just a login&lt;/em&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;JetBrains' &lt;a href="https://www.jetbrains.com/help/idea/directories-used-by-the-ide-to-store-settings-caches-plugins-and-logs.html" rel="noopener noreferrer"&gt;own docs&lt;/a&gt; say that folder "contains caches and local history files". Local History is the IDE's own record of every change it saw you make, committed or not, so it's what gets you back the file you broke before you'd committed it. It only keeps &lt;a href="https://www.jetbrains.com/help/idea/local-history.html" rel="noopener noreferrer"&gt;five working days&lt;/a&gt;, and an IDE upgrade clears it anyway, so you'd lose a week at most. Which is the week you'd want.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/Tudmotu/gnome-shell-extension-clipboard-indicator" rel="noopener noreferrer"&gt;Clipboard Indicator&lt;/a&gt; is the GNOME clipboard manager, with 2.7 million downloads on GNOME's extensions site. Pinning a clip is how you tell it to keep something, and it keeps it in &lt;code&gt;registry.txt&lt;/code&gt;, a file its own code calls "a cache file". cliphist, a clipboard history for Wayland, keeps its history in the cache too, and after the wipe it just said &lt;code&gt;opening db: please store something first&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Deno's the sneakier one. Its &lt;code&gt;localStorage&lt;/code&gt; is &lt;a href="https://docs.deno.com/runtime/reference/web_platform_apis/#web-storage" rel="noopener noreferrer"&gt;meant to stick around&lt;/a&gt; between runs, like a browser's, and it does, in &lt;code&gt;~/.cache/deno/location_data&lt;/code&gt;. I wrote a little todo script that saved to it, and the list went with the cache.&lt;/p&gt;

&lt;p&gt;ibus-libpinyin, Fedora's default for typing Simplified Chinese, keeps what it's learned about the way you type in &lt;code&gt;~/.cache/ibus&lt;/code&gt;. The Hugging Face token's only a login, so that one's fine.&lt;/p&gt;

&lt;p&gt;Clipboard managers have had this pointed out already. Clipboard History, the other big GNOME one, &lt;a href="https://github.com/SUPERCILEX/gnome-clipboard-history/pull/233" rel="noopener noreferrer"&gt;merged a change&lt;/a&gt; on 12 November that moves its database out, because "clearing it wiped the whole history". Someone asked Clipboard Indicator for the same in &lt;a href="https://github.com/Tudmotu/gnome-shell-extension-clipboard-indicator/issues/636" rel="noopener noreferrer"&gt;August&lt;/a&gt;, and it's still open.&lt;/p&gt;

&lt;p&gt;On a Mac, JetBrains and Langflow put the same things in &lt;code&gt;~/Library/Caches&lt;/code&gt; instead.&lt;/p&gt;

&lt;h2&gt;
  
  
  Getting yours out
&lt;/h2&gt;

&lt;p&gt;Most of them have a setting, it's just never the default:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Langflow takes &lt;code&gt;LANGFLOW_SECRET_KEY&lt;/code&gt;. Set it to what's in &lt;code&gt;~/.cache/langflow/secret_key&lt;/code&gt; now, wherever you start Langflow, and put a copy in your password manager.&lt;/li&gt;
&lt;li&gt;cliphist takes &lt;code&gt;db-path&lt;/code&gt; in &lt;code&gt;~/.config/cliphist/config&lt;/code&gt;. Move the &lt;code&gt;db&lt;/code&gt; file to wherever you point it.&lt;/li&gt;
&lt;li&gt;Deno puts everything under &lt;code&gt;DENO_DIR&lt;/code&gt;, so moving that moves the localStorage, and the downloaded modules with it.&lt;/li&gt;
&lt;li&gt;JetBrains moves its whole system folder with &lt;code&gt;idea.system.path&lt;/code&gt;, under Help, Edit Custom Properties.&lt;/li&gt;
&lt;li&gt;Clipboard Indicator hasn't got a setting yet, so copy anything you've pinned somewhere else.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The cleaner empties it and the backup skips it
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://www.bleachbit.org" rel="noopener noreferrer"&gt;BleachBit&lt;/a&gt; has a Cache option under System that empties &lt;code&gt;~/.cache&lt;/code&gt; (it's off until you tick it). I gave BleachBit 6.0.6 a test home folder holding what my runs left behind and asked what it would do:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ bleachbit --preview system.cache
Delete 4.1kB ~/.cache/langflow/secret_key
...
Delete 36.9kB ~/.cache/deno/location_data/35e4ee84.../kv.sqlite3
Delete 12.3kB ~/.cache/deno/location_data/35e4ee84.../local_storage
Delete 24.6kB ~/.cache/cliphist/db
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;BleachBit does know about some of this. Its code has a hardcoded list of folders in &lt;code&gt;~/.cache&lt;/code&gt; it won't touch, and ibus has been on it since a &lt;a href="https://bugs.launchpad.net/bleachbit/+bug/1538919" rel="noopener noreferrer"&gt;2016 bug report&lt;/a&gt; from someone who lost their learned phrases. You can add your own in its preferences, under Keep list. I added &lt;code&gt;~/.cache/langflow&lt;/code&gt;, cleaned for real, and &lt;code&gt;secret_key&lt;/code&gt; was still there. Kudu, another cleaner, goes the other way and lists &lt;a href="https://usekudu.com/cleaners/jetbrains" rel="noopener noreferrer"&gt;"Local History snapshots"&lt;/a&gt; among the "rebuildable caches" it removes.&lt;/p&gt;

&lt;p&gt;And if you were hoping to restore any of it, &lt;a href="https://gitlab.gnome.org/World/deja-dup/-/blob/main/libdeja/OperationBackup.vala" rel="noopener noreferrer"&gt;Déjà Dup&lt;/a&gt;, GNOME's backup tool, leaves &lt;code&gt;~/.cache&lt;/code&gt; out of every backup, whatever you've ticked. The line above it in the code reads:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;// User doesn't care about cache
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;em&gt;More like this on &lt;a href="https://blog.peng.ly/?ref=dev.to"&gt;blog.peng.ly&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>opensource</category>
      <category>linux</category>
      <category>backups</category>
    </item>
    <item>
      <title>Google Calendar's secret link is a password</title>
      <dc:creator>Iain</dc:creator>
      <pubDate>Thu, 26 Nov 2026 12:18:28 +0000</pubDate>
      <link>https://dev.to/notaflightrisk/google-calendars-secret-link-is-a-password-3md4</link>
      <guid>https://dev.to/notaflightrisk/google-calendars-secret-link-is-a-password-3md4</guid>
      <description>&lt;p&gt;Here's the settings file for Obsidian's Full Calendar plugin, from a vault with one Google calendar added, and what gitleaks makes of it:&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;"calendarSources"&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="nl"&gt;"type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"ical"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"url"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="s2"&gt;"https://calendar.google.com/calendar/ical/me%40gmail.com/private-fd18a23bebd71ff6e3c9814ab3409be2/basic.ics"&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;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ gitleaks dir .
INF no leaks found
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;trufflehog and detect-secrets didn't find anything either. Which would be fine, if that link weren't a password.&lt;/p&gt;

&lt;p&gt;It's Google Calendar's "secret address in iCal format", the one you copy out of a calendar's settings so another app can show it. It's shaped like &lt;code&gt;https://calendar.google.com/calendar/ical/&amp;lt;you&amp;gt;/private-&amp;lt;32 hex characters&amp;gt;/basic.ics&lt;/code&gt;, and whoever has it can subscribe to that calendar in Apple Calendar or Outlook and see what's on it, with no login and no Google account. So the dentist, the school run, the fortnight you're away. Google's &lt;a href="https://support.google.com/calendar/answer/37648" rel="noopener noreferrer"&gt;help page&lt;/a&gt; says "Only you should know the secret address for your calendar", and as far as I can tell it works until you press Reset. On your main calendar, the &lt;code&gt;&amp;lt;you&amp;gt;&lt;/code&gt; bit is your email address, too.&lt;/p&gt;

&lt;h2&gt;
  
  
  Hundreds of them are on GitHub
&lt;/h2&gt;

&lt;p&gt;I went looking with GitHub's code search this week. It stops at 1,000 results a search, so I split the search up by file size and read about 2,200 files, judging each link by its shape alone. I didn't open any of them, so I can't tell you how many still work.&lt;/p&gt;

&lt;p&gt;That found 294 different Google secret addresses that look real (not &lt;code&gt;private-xxxx&lt;/code&gt; placeholders, or MagicMirror's own test calendar, which turns up in over a hundred repos), and 98 of them have a gmail.com address in the link. That's from a sample, so the real total's higher.&lt;/p&gt;

&lt;p&gt;There's no single app behind them. I sorted 281 of the files by what they were, and the links were in JavaScript and Python, shell scripts, &lt;code&gt;.env&lt;/code&gt; and YAML files, web pages, Emacs configs, notes, and 15 Obsidian vaults, ten of them in Full Calendar's settings like the one up top. Going by the repo's name, 19 were someone's dotfiles and 12 a notes vault. It's the stuff people keep their own setup in, and push to GitHub so it's on their next laptop.&lt;/p&gt;

&lt;p&gt;A lot of them went in recently, too. I went back to 276 of the links and looked up when each file was last changed:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ftdhr8y81lrsfdyha4dbv.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ftdhr8y81lrsfdyha4dbv.png" alt="Google secret addresses by when their file was last committed" width="800" height="418"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Google secret addresses by when their file was last committed&lt;/strong&gt; (&lt;a href="https://raw.githubusercontent.com/NotAFlightRisk/blog/main/posts/calendar-links-are-passwords/ages.json" rel="noopener noreferrer"&gt;the data&lt;/a&gt;)&lt;/p&gt;

&lt;p&gt;&lt;em&gt;276 links, each counted once. It's the last change to the file rather than the day the link went in, so some older links will be sitting in files that changed since. 2026 only runs to November.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;More than half are in files someone changed in 2025 or 2026. And three days after the first search, 195 of the 202 links I'd seen in the smaller files were still there.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why the scanners walk past it
&lt;/h2&gt;

&lt;p&gt;I made up links in Google's shape and put them in the sorts of files they turn up in: an Obsidian settings file, a MagicMirror config, a &lt;code&gt;.env&lt;/code&gt;, a Home Assistant-style YAML file and a Python script. I added a Proton Calendar link too, which is a slightly different beast (more on that in a sec), and a Google token on its own, without the rest of the URL round it. Then I ran three popular free scanners over them.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F2qag6elx997h0jq0ene0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F2qag6elx997h0jq0ene0.png" alt="Which scanner flagged which made-up link" width="800" height="409"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Which scanner flagged which made-up link&lt;/strong&gt; (&lt;a href="https://raw.githubusercontent.com/NotAFlightRisk/blog/main/posts/calendar-links-are-passwords/scanners.json" rel="noopener noreferrer"&gt;the data&lt;/a&gt;)&lt;/p&gt;

&lt;p&gt;&lt;em&gt;gitleaks 8.30.1, trufflehog 3.100.1 and detect-secrets 1.5.0, all the latest releases, with their default rules. My rule is gitleaks with the extra rule further down. The token is the private-and-hex part of a Google link, on its own after a name like calendar_token. I also tried Outlook, iCloud and Fastmail links, which you publish on purpose to share a calendar, so they're not counted above. None of the scanners flagged those either.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;The short version is that a link has a colon in it. None of these tools has a rule for calendar links, so it's down to their catch-all rules, and gitleaks' &lt;a href="https://github.com/gitleaks/gitleaks/blob/v8.30.1/config/gitleaks.toml" rel="noopener noreferrer"&gt;generic one&lt;/a&gt; wants a word like &lt;code&gt;key&lt;/code&gt;, &lt;code&gt;secret&lt;/code&gt; or &lt;code&gt;token&lt;/code&gt;, then an &lt;code&gt;=&lt;/code&gt; or &lt;code&gt;:&lt;/code&gt;, then a value that can't contain a colon. Anything starting &lt;code&gt;https://&lt;/code&gt; is out before it starts. Pull out just the &lt;code&gt;private-...&lt;/code&gt; part after &lt;code&gt;calendar_token =&lt;/code&gt; and it's caught.&lt;/p&gt;

&lt;p&gt;The others don't get that far. trufflehog has hundreds of detectors and none for calendars, and its generic one is &lt;a href="https://github.com/trufflesecurity/trufflehog/blob/v3.100.1/pkg/engine/defaults/defaults.go" rel="noopener noreferrer"&gt;switched off&lt;/a&gt; by default and skips anything that looks like a URL anyway. detect-secrets' entropy check only looks at strings made entirely of hex or base64, which a URL never is. GitHub's own secret scanning &lt;a href="https://docs.github.com/en/code-security/reference/secret-security/supported-secret-scanning-patterns" rel="noopener noreferrer"&gt;lists 532 kinds of secret&lt;/a&gt;, nine of them Google's, and they're all API, cloud and OAuth keys.&lt;/p&gt;

&lt;p&gt;Proton's the odd one out. Proton Calendar's end-to-end encrypted, so its share link &lt;a href="https://proton.me/support/share-calendar-via-link" rel="noopener noreferrer"&gt;carries the key to decrypt the calendar&lt;/a&gt;, in a parameter called &lt;code&gt;PassphraseKey&lt;/code&gt;. gitleaks flags it, but only because that name has "key" in it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Fixing yours
&lt;/h2&gt;

&lt;p&gt;If yours has ever been in a repo, reset it. Deleting the line doesn't help, as it's still in the history and in any clone that's already been made. In Google Calendar it's Settings, then the calendar under "Settings for my calendars", then Integrate calendar, and Reset next to the secret address. Then give the new one to whatever was using the old one.&lt;/p&gt;

&lt;p&gt;Then keep the new one out of the repo, wherever the app reads secrets from: an environment variable, a &lt;code&gt;.env&lt;/code&gt; file that's in &lt;code&gt;.gitignore&lt;/code&gt;, Home Assistant's &lt;code&gt;secrets.yaml&lt;/code&gt;. MagicMirror's &lt;a href="https://docs.magicmirror.builders/configuration/secrets.html" rel="noopener noreferrer"&gt;docs&lt;/a&gt; even name "Private calendar URLs" as something to protect, and since 2.35 its config reads &lt;code&gt;${SECRET_...}&lt;/code&gt; variables from &lt;code&gt;config/config.env&lt;/code&gt; (a folder its &lt;code&gt;.gitignore&lt;/code&gt; already leaves out), without sending them to the browser:&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="n"&gt;calendars&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="n"&gt;url&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"${SECRET_FAMILY_CALENDAR}"&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;Full Calendar has nothing like that, so in a vault that's pushed somewhere public, add &lt;code&gt;.obsidian/plugins/obsidian-full-calendar/data.json&lt;/code&gt; to &lt;code&gt;.gitignore&lt;/code&gt; and set the plugin up again on each device. Or make the vault's repo private, which is probably what it wanted to be anyway.&lt;/p&gt;

&lt;p&gt;And to catch the next one, here's a gitleaks rule:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight toml"&gt;&lt;code&gt;&lt;span class="k"&gt;[extend]&lt;/span&gt;
&lt;span class="na"&gt;useDefault&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;

&lt;span class="k"&gt;[[rules]]&lt;/span&gt;
&lt;span class="na"&gt;id&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"google-calendar-secret-address"&lt;/span&gt;
&lt;span class="na"&gt;description&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"Google Calendar secret iCal address"&lt;/span&gt;
&lt;span class="na"&gt;regex&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;'''calendar\.google\.com/calendar/ical/[^/\s"'&amp;lt;&amp;gt;]+/(private-[0-9a-f]{32})/(?:basic|full)\.ics'''&lt;/span&gt;
&lt;span class="na"&gt;secretGroup&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;
&lt;span class="na"&gt;entropy&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;
&lt;span class="na"&gt;keywords&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"private-"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;

&lt;span class="k"&gt;[[rules.allowlists]]&lt;/span&gt;
&lt;span class="na"&gt;regexes&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;'''0123456789abcdef'''&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Saved as &lt;code&gt;.gitleaks.toml&lt;/code&gt; at the top of the repo, gitleaks picks it up on its own and keeps all its usual rules too. On my test files it caught every Google link and none of the five placeholders I gave it (the allowlist is for the &lt;code&gt;0123456789abcdef&lt;/code&gt; one that turns up in examples). Its &lt;a href="https://github.com/gitleaks/gitleaks#pre-commit" rel="noopener noreferrer"&gt;pre-commit hook&lt;/a&gt; uses the same file, and refused my test commit with a link in it.&lt;/p&gt;

&lt;p&gt;Run it over the history too, not just what's checked out. Here's a test repo where I'd committed two links, then swapped them for an environment variable:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ gitleaks dir .
INF no leaks found
$ gitleaks git .
INF 2 commits scanned.
WRN leaks found: 4
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Four, because it reports each link twice: once as written, and once with the &lt;code&gt;%40&lt;/code&gt; decoded back to an &lt;code&gt;@&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;More like this on &lt;a href="https://blog.peng.ly/?ref=dev.to"&gt;blog.peng.ly&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

</description>
      <category>security</category>
      <category>git</category>
      <category>privacy</category>
      <category>selfhosting</category>
    </item>
    <item>
      <title>Mesh VPN ACLs don't cover your Wi-Fi</title>
      <dc:creator>Iain</dc:creator>
      <pubDate>Wed, 25 Nov 2026 12:12:24 +0000</pubDate>
      <link>https://dev.to/notaflightrisk/mesh-vpn-acls-dont-cover-your-wi-fi-2oo</link>
      <guid>https://dev.to/notaflightrisk/mesh-vpn-acls-dont-cover-your-wi-fi-2oo</guid>
      <description>&lt;p&gt;Say you've got something running on a Linux box at home, bound to its Tailscale address so that only your tailnet can reach it. Your ACL says your mate's laptop, which is on the tailnet, can't have port 8000. And it can't. So can a laptop on your Wi-Fi, which isn't on the tailnet at all?&lt;/p&gt;

&lt;p&gt;It can, with one route. I tried it on Nebula, Tailscale, NetBird and ZeroTier, on a little LAN of containers with no internet, and every time the peer the policy refused got nothing while a box that had never been near the VPN got the page.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fgxhotlz20b5q261bjjgh.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fgxhotlz20b5q261bjjgh.png" alt="Who got the page the policy refused" width="800" height="429"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Who got the page the policy refused&lt;/strong&gt; (&lt;a href="https://raw.githubusercontent.com/NotAFlightRisk/blog/main/posts/mesh-vpn-acls-skip-the-lan/results.json" rel="noopener noreferrer"&gt;the data&lt;/a&gt;)&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Nebula 1.12.0, Tailscale 1.104.4 (with Headscale handing out the ACL, which the client enforces), NetBird 0.83.0 and ZeroTier 1.16.2, with the service bound to the server's VPN address. The peer is on the VPN, the LAN box is just on the same network.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The policy only sees what comes through the tunnel
&lt;/h2&gt;

&lt;p&gt;A mesh VPN gives your server a second address on a virtual interface: &lt;code&gt;100.64.0.1&lt;/code&gt; on &lt;code&gt;tailscale0&lt;/code&gt;, say, next to its normal &lt;code&gt;192.168.1.20&lt;/code&gt; on the Wi-Fi. Everything from your peers arrives on that virtual interface, and that's where the policy is checked. Nebula, Tailscale and ZeroTier check it inside their own process, on packets they've just decrypted. NetBird writes it out as firewall rules when it can, and here are the ones it put on my server (port 9000 is the one my policy does let the peer have):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;chain NETBIRD-ACL-INPUT {
    ip saddr 100.64.143.234 tcp dport 9000 accept
}
chain INPUT {
    type filter hook input priority filter; policy accept;
    iifname "wt0" xt match "conntrack" accept
    iifname "wt0" jump NETBIRD-ACL-INPUT
    iifname "wt0" drop
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Every rule starts with &lt;code&gt;iifname "wt0"&lt;/code&gt;, so it only applies to packets that came in on the VPN's interface. Anything else falls through to &lt;code&gt;policy accept&lt;/code&gt;. Nebula and ZeroTier don't add any firewall rules at all, and Tailscale's only care about packets from its &lt;code&gt;100.64.0.0/10&lt;/code&gt; range turning up on the wrong interface (someone faking being your peer), not packets going to your address.&lt;/p&gt;

&lt;p&gt;That would be fine if Linux only accepted packets for &lt;code&gt;100.64.0.1&lt;/code&gt; on the interface that has it. It doesn't. Linux treats an address as belonging to the whole machine, not to one interface (what &lt;a href="https://datatracker.ietf.org/doc/html/rfc1122#page-63" rel="noopener noreferrer"&gt;RFC 1122&lt;/a&gt; calls the weak end system model), so a packet for &lt;code&gt;100.64.0.1&lt;/code&gt; that turns up on the Wi-Fi gets handed to the service just the same. Binding to the VPN address picks which address the service answers on, not which interface the packets have to come in through.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fxzropwrvxmrpshz9w7j9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fxzropwrvxmrpshz9w7j9.png" alt="Two packets heading for a service on 100.64.0.1. One comes from a peer through the tunnel, into the VPN's policy, which turns it away. The other comes from a box on the Wi-Fi in through the server's Wi-Fi interface and reaches the service without going near the policy." width="800" height="686"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;The policy only sees what comes through the tunnel.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;So all the box on the LAN has to do is send its packets for &lt;code&gt;100.64.0.1&lt;/code&gt; to the server's normal address:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ip route add 100.64.0.1/32 via 192.168.1.20
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It has to be on the same bit of network as the server, with nothing like guest Wi-Fi isolation in between, and something on it has to be able to run that. I had strict reverse-path filtering on, and it didn't stop it, since the packet's from a LAN address arriving on the LAN.&lt;/p&gt;

&lt;h2&gt;
  
  
  Your containers don't even need the route
&lt;/h2&gt;

&lt;p&gt;"Something dodgy already on my Wi-Fi" is a fair objection, but there's a closer neighbour. The LAN box needed a route because its packets for &lt;code&gt;100.64.0.1&lt;/code&gt; would otherwise go to its own default gateway. A container on one of Docker's bridge networks has the server it's running on as its default gateway, so it gets there without one.&lt;/p&gt;

&lt;p&gt;I wired up a network namespace on the Tailscale server the way Docker wires up a container (a virtual cable to the host, and a default route through it), and it got the refused port straight away. So every container on that box can reach whatever you bound to the VPN address, past the ACL you wrote to keep your own mates off it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Who's affected
&lt;/h2&gt;

&lt;p&gt;Anyone on Linux whose server doesn't have its own firewall turning away the LAN. No stock Debian install turns a firewall on for you, and Ubuntu ships ufw switched off. If you already run ufw the way Tailscale's own guide has it (deny incoming, allow in on &lt;code&gt;tailscale0&lt;/code&gt;), the LAN box and the container get nothing, over IPv4 or IPv6, because ufw's doing the job the ACL looked like it was doing.&lt;/p&gt;

&lt;p&gt;That doesn't cover a container you've published on the VPN address itself, with &lt;code&gt;-p 100.64.0.1:8000:8000&lt;/code&gt;. Docker's &lt;a href="https://docs.docker.com/engine/network/packet-filtering-firewalls/" rel="noopener noreferrer"&gt;firewall docs&lt;/a&gt; are blunt about it:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Docker routes container traffic in the nat table, which means that packets are diverted before it reaches the INPUT and OUTPUT chains that ufw uses.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://docs.docker.com/engine/network/packet-filtering-firewalls/" rel="noopener noreferrer"&gt;Docker's docs&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;

&lt;p&gt;The fix further down lives in INPUT too, so it's for services running on the server itself.&lt;/p&gt;

&lt;p&gt;For what it's worth, Tailscale's &lt;a href="https://tailscale.com/docs/features/access-control/acls" rel="noopener noreferrer"&gt;ACL docs&lt;/a&gt; do say that ACLs "don't affect local network traffic", but they mean what your devices can reach on their own LAN, not what the LAN can reach on them. ZeroTier's &lt;a href="https://docs.zerotier.com/faq/rulesvsfirewalls/" rel="noopener noreferrer"&gt;rules FAQ&lt;/a&gt; gives the host firewall the job of "protecting services running on physical interfaces", which a service on the ZeroTier address doesn't sound like. Nebula's &lt;a href="https://nebula.defined.net/docs/config/firewall" rel="noopener noreferrer"&gt;firewall docs&lt;/a&gt; don't mention it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Closing it on the server
&lt;/h2&gt;

&lt;p&gt;Drop anything for the VPN address that didn't come in on the VPN's interface, after letting the server talk to itself (its own traffic to &lt;code&gt;100.64.0.1&lt;/code&gt; goes over &lt;code&gt;lo&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;iptables -I INPUT 1 -i lo -j ACCEPT
iptables -I INPUT 2 -d 100.64.0.1 ! -i tailscale0 -j DROP
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Swap in your own address and interface. Mine were &lt;code&gt;nebula1&lt;/code&gt;, &lt;code&gt;tailscale0&lt;/code&gt;, &lt;code&gt;wt0&lt;/code&gt;, and for ZeroTier a &lt;code&gt;zt&lt;/code&gt; name made from the network ID. On all four, the LAN box stopped getting the page, while the peers the policy allows (and the server itself) carried on as before. On Tailscale it stopped the container too. These rules don't survive a reboot, so they want to go wherever your firewall rules live.&lt;/p&gt;

&lt;p&gt;If your VPN gives the server an IPv6 address as well, it wants the same again in &lt;code&gt;ip6tables&lt;/code&gt;. Headscale gave mine &lt;code&gt;fd7a:115c:a1e0::1&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;ip6tables -I INPUT 1 -i lo -j ACCEPT
ip6tables -I INPUT 2 -d fd7a:115c:a1e0::1 ! -i tailscale0 -j DROP
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;With only the IPv4 rules in, the LAN box just asked for &lt;code&gt;[fd7a:115c:a1e0::1]:8000&lt;/code&gt; instead, and got the page.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;More like this on &lt;a href="https://blog.peng.ly/?ref=dev.to"&gt;blog.peng.ly&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

</description>
      <category>security</category>
      <category>linux</category>
      <category>networking</category>
      <category>selfhosting</category>
    </item>
    <item>
      <title>Your new motherboard asks if it's running OpenVMS</title>
      <dc:creator>Iain</dc:creator>
      <pubDate>Tue, 24 Nov 2026 13:48:10 +0000</pubDate>
      <link>https://dev.to/notaflightrisk/your-new-motherboard-asks-if-its-running-openvms-545b</link>
      <guid>https://dev.to/notaflightrisk/your-new-motherboard-asks-if-its-running-openvms-545b</guid>
      <description>&lt;p&gt;The ASUS PRIME B850M-A is a motherboard that went on sale in January 2025. Every time it starts up, its firmware asks the operating system if it's FreeBSD, HP-UX (HP's Unix for its big servers) or OpenVMS. Here's the bit that asks:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;If (_OSI ("FreeBSD"))
{
    OSVR = 0x06
}

If (_OSI ("HP-UX"))
{
    OSVR = 0x07
}

If (_OSI ("OpenVMS"))
{
    OSVR = 0x08
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;OpenVMS is the operating system DEC announced with its VAX minicomputers in 1977, when a computer came in cabinets the size of a wardrobe. Banks, hospitals and phone companies &lt;a href="https://en.wikipedia.org/wiki/OpenVMS" rel="noopener noreferrer"&gt;still run it&lt;/a&gt;, just not usually on a desktop motherboard.&lt;/p&gt;

&lt;h2&gt;
  
  
  Firmware asks the OS what it is
&lt;/h2&gt;

&lt;p&gt;Your PC's firmware doesn't just start the OS and leave. It hands over ACPI tables, which are full of little programs the OS runs whenever it needs to sleep, wake, change the brightness or find out what hardware's plugged in. Those programs can call &lt;code&gt;_OSI&lt;/code&gt; with a name, and the OS answers yes or no.&lt;/p&gt;

&lt;p&gt;Windows answers yes to one name per version, and to every version before it. &lt;code&gt;Windows 2009&lt;/code&gt; is Windows 7, &lt;code&gt;Windows 2015&lt;/code&gt; is Windows 10 and the newest, &lt;code&gt;Windows 2022&lt;/code&gt;, is &lt;a href="https://learn.microsoft.com/en-us/windows-hardware/drivers/acpi/winacpi-osi" rel="noopener noreferrer"&gt;Windows 11 22H2&lt;/a&gt;. So firmware can switch things on for whichever Windows it's got, like modern standby only for Windows 8 and up.&lt;/p&gt;

&lt;p&gt;To see what else gets asked, I went through &lt;a href="https://github.com/linuxhw/ACPI" rel="noopener noreferrer"&gt;linux-hardware.org's ACPI dumps&lt;/a&gt;, which people upload from their own machines with its probe tool. That's 783 of them with a main table I could read, mostly laptops and desktops.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ftmgzgqvod8balh2q82vd.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ftmgzgqvod8balh2q82vd.png" alt="What PC firmware asks the OS" width="799" height="464"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What PC firmware asks the OS&lt;/strong&gt; (&lt;a href="https://raw.githubusercontent.com/NotAFlightRisk/blog/main/posts/firmware-asks-if-its-openvms/asks.json" rel="noopener noreferrer"&gt;the data&lt;/a&gt;)&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Share of 783 ACPI dumps from linux-hardware.org that ask each question somewhere in their tables. Windows versions go by the year in their name, so Windows XP is &lt;code&gt;Windows 2001&lt;/code&gt;, and Windows 11 22H2's name only arrived in 2022.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;The median machine asks 11 different names, and the keenest asks 26. Nearly a quarter ask about HP-UX and OpenVMS, and they always ask about both.&lt;/p&gt;

&lt;h2&gt;
  
  
  Nobody's listening for the answer
&lt;/h2&gt;

&lt;p&gt;The HP-UX and OpenVMS questions turn up on boards from most of the big names, Gigabyte, ASRock and MSI especially. Nearly all of them come from the code at the top, which is a routine of AMI's called &lt;code&gt;OSFL&lt;/code&gt;. It goes down a list of names and sets &lt;code&gt;OSVR&lt;/code&gt; to a number for each yes, so OpenVMS would get 8.&lt;/p&gt;

&lt;p&gt;Windows and Linux both say no, of course. To end up on 8 you'd need an OS that says yes to OpenVMS and no to every Windows question after it, and I'm not sure there is one. OpenVMS does run on x86 these days, as a guest on &lt;a href="https://www.theregister.com/2022/05/10/openvms_92/" rel="noopener noreferrer"&gt;KVM, VMware or VirtualBox&lt;/a&gt;, but I couldn't find out whether it answers this question. If it did, it wouldn't get much for it. I went through the B850's whole table, and &lt;code&gt;OSVR&lt;/code&gt; only gets checked twice: once for Windows 98 or ME, and once to hide the HPET timer from anything older than Vista. The newest Windows on the list is 8.1, on a board that came out with Windows 11.&lt;/p&gt;

&lt;p&gt;I couldn't find anything from AMI on why OpenVMS is on there, but I've a good guess. In 2004, &lt;a href="https://uefi.org/sites/default/files/resources/ACPI_3.pdf" rel="noopener noreferrer"&gt;ACPI 3.0&lt;/a&gt; added a table of OS names, and there are five of them: FreeBSD, HP-UX, Linux, OpenVMS and Windows. HP was one of the spec's authors by then, and its Itanium servers ran HP-UX and OpenVMS. The B850's version of AMI's routine has every name in that table. Linux is the odd one out there, only checked in a fallback for systems too old to have &lt;code&gt;_OSI&lt;/code&gt;. The table's still in the &lt;a href="https://uefi.org/specs/ACPI/6.6/05_ACPI_Software_Programming_Model.html#predefined-operating-system-vendor-string-prefixes" rel="noopener noreferrer"&gt;current spec&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;It isn't fading out, either. In &lt;a href="https://github.com/asus-wmi-boards-sensors/asus-board-dsdt" rel="noopener noreferrer"&gt;this collection of ASUS BIOS tables&lt;/a&gt;, all 58 of the 2024-25 AMD boards (B840, B850 and X870) ask about OpenVMS. Not one of them asks about Linux, which all 33 of the AMD boards before them did. ASUS took the Linux question out and kept OpenVMS.&lt;/p&gt;

&lt;h2&gt;
  
  
  Linux says no to Linux
&lt;/h2&gt;

&lt;p&gt;So what does Linux answer? I booted a 6.12 kernel in QEMU with an extra table that asks 38 names and shows each answer. It says yes to all 22 of Microsoft's Windows names, from &lt;code&gt;Windows 2000&lt;/code&gt; to &lt;code&gt;Windows 2022&lt;/code&gt;, and no to Linux, FreeBSD, HP-UX, OpenVMS and Darwin. One of those gets a line of its own in the log:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;[Firmware Bug]: BIOS _OSI(Linux) query ignored
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you've seen that line in your own &lt;code&gt;dmesg&lt;/code&gt;, there's nothing wrong with your machine. It means the firmware asked if it's Linux, and Linux said no.&lt;/p&gt;

&lt;p&gt;Linux used to say yes. A &lt;a href="https://github.com/torvalds/linux/blob/master/drivers/acpi/osi.c" rel="noopener noreferrer"&gt;comment in the kernel&lt;/a&gt; tells the story: firmware writers put &lt;code&gt;_OSI("Linux")&lt;/code&gt; in their example code and used it for odd things, like re-initialising a graphics card on wake because Linux couldn't do it quickly at the time. Once Linux could, it had no way to tell the firmware to stop. So since 2.6.23 in 2007 it's said no, and just claims to be every Windows, since Windows is what firmware actually gets tested on.&lt;/p&gt;

&lt;h2&gt;
  
  
  What a yes would change
&lt;/h2&gt;

&lt;p&gt;You can make Linux say yes with the &lt;code&gt;acpi_osi=Linux&lt;/code&gt; boot option, and some machines do something different when it does. Of the 465 dumps that ask about Linux, I reckon 98 would, about one in five. 71 of those are Lenovos, mostly ThinkPads, and they mostly look like this one from an X1 Carbon from 2016:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;If (\_OSI ("Windows 2015"))
{
    \WIN8 = 0x01
    OSYS = 0x07DF
}

If (\_OSI ("Linux"))
{
    \LNUX = 0x01
    OSYS = 0x03E8
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;With &lt;code&gt;LNUX&lt;/code&gt; set, it tells the laptop's embedded controller that the mute and volume keys are just keys, so the OS does the muting. Linux's &lt;a href="https://github.com/torvalds/linux/blob/master/drivers/platform/x86/lenovo/thinkpad_acpi.c" rel="noopener noreferrer"&gt;ThinkPad driver&lt;/a&gt; already asks for exactly that when it starts, so that bit makes no difference.&lt;/p&gt;

&lt;p&gt;The other line matters more. &lt;code&gt;OSYS&lt;/code&gt; is the Windows version as a year, and the Linux branch sets it to 1000. Everything on that laptop that checks for Windows 8 or newer, like the brightness controls, or Windows 10, like an extra table for the CPU's power management, now thinks it's dealing with something older than Windows 2000.&lt;/p&gt;

&lt;p&gt;If you'd rather tell your B850 it's OpenVMS, &lt;code&gt;acpi_osi=OpenVMS&lt;/code&gt; works too. My test VM said yes to it happily. On the B850 the 8 would last exactly one question, until Windows XP SP1 came along.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;More like this on &lt;a href="https://blog.peng.ly/?ref=dev.to"&gt;blog.peng.ly&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

</description>
      <category>opensource</category>
      <category>linux</category>
      <category>hardware</category>
    </item>
    <item>
      <title>Your photo gallery is guessing what time it was</title>
      <dc:creator>Iain</dc:creator>
      <pubDate>Mon, 23 Nov 2026 11:44:51 +0000</pubDate>
      <link>https://dev.to/notaflightrisk/your-photo-gallery-is-guessing-what-time-it-was-f55</link>
      <guid>https://dev.to/notaflightrisk/your-photo-gallery-is-guessing-what-time-it-was-f55</guid>
      <description>&lt;p&gt;Here's a photo from the Portuguese bank of the river Minho, at 23:30 on a July night, about a kilometre and a half from the Spanish town of Tui on the other side. I didn't take it, I made it with exiftool. This is what Immich makes of it:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fm1k837wbhuczqdtz6719.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fm1k837wbhuczqdtz6719.png" alt="Immich's info panel for the photo: 14 Jul 2026, Tue, 23:30:00 GMT+02:00, location Tui, Galicia, Spain, above a map with the pin on the Portuguese side of the river" width="800" height="411"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Immich v3.4.2. The pin's on the Portuguese side of the river, with Valença at the bottom. The label says Spain, and the time's on Spanish summer time, an hour ahead of Portugal's. Map data from OpenStreetMap.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;All the file says about when and where is &lt;code&gt;2026:07:14 23:30:00&lt;/code&gt; and a GPS position, with no timezone. Everything else is Immich working it out, and every self-hosted gallery works it out a bit differently.&lt;/p&gt;

&lt;h2&gt;
  
  
  The time on a photo has no timezone
&lt;/h2&gt;

&lt;p&gt;The time in a photo's EXIF, &lt;code&gt;DateTimeOriginal&lt;/code&gt;, is whatever the camera's clock said, as plain text with no zone on it. A separate tag for the offset, &lt;code&gt;OffsetTimeOriginal&lt;/code&gt;, only arrived with EXIF 2.31 in 2016, and not every camera writes it. &lt;code&gt;exiftool -OffsetTimeOriginal photo.jpg&lt;/code&gt; tells you if yours does: no output, no offset.&lt;/p&gt;

&lt;p&gt;Without one, a gallery has to pick a zone itself. It can read the time as UTC, which is only right if you were somewhere on UTC at the time, like London in winter. Or it can use the GPS, either by looking the position up on a map of timezone boundaries, or by finding the nearest town in a list and using that town's zone.&lt;/p&gt;

&lt;p&gt;So I made a handful of test files with exiftool, each with one awkward thing about it, and put them through &lt;a href="https://immich.app" rel="noopener noreferrer"&gt;Immich&lt;/a&gt; v3.4.2, &lt;a href="https://www.photoprism.app" rel="noopener noreferrer"&gt;PhotoPrism&lt;/a&gt; 261029, &lt;a href="https://github.com/bpatrik/pigallery2" rel="noopener noreferrer"&gt;PiGallery2&lt;/a&gt; 3.8.0 and &lt;a href="https://lycheeorg.dev" rel="noopener noreferrer"&gt;Lychee&lt;/a&gt; 7.13.1, each on a server set to New York time. &lt;a href="https://memories.gallery" rel="noopener noreferrer"&gt;Memories&lt;/a&gt;, the Nextcloud one, needs a whole Nextcloud to run, so I lifted its date code out and ran that on its own. Here's when each of them thought four of the photos were taken:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fxoxvzr32mitkf8qu59qp.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fxoxvzr32mitkf8qu59qp.png" alt="When five galleries think the same four photos were taken" width="800" height="454"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;When five galleries think the same four photos were taken&lt;/strong&gt; (&lt;a href="https://raw.githubusercontent.com/NotAFlightRisk/blog/main/posts/galleries-guess-the-time/results.json" rel="noopener noreferrer"&gt;the data&lt;/a&gt;)&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Tokyo at 08:30 with its +09:00 offset, then without it, then from a camera left on UK time that wrote +00:00, and the photo by the river. All four have a GPS position. A tick means the gallery stored the right moment, and +9h means it stored one nine hours late. The clock it shows you is the camera's in every case. Memories is without its optional places database.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;PiGallery2, Lychee and Memories go with UTC, which is where the +9h and +1h come from. The clock they show you is still right, it's the moment underneath that's off, and that starts to matter once those photos sit next to ones that did have an offset, like your phone's. Immich and PhotoPrism both use the GPS, just not the same way.&lt;/p&gt;

&lt;h2&gt;
  
  
  Immich asks the nearest town
&lt;/h2&gt;

&lt;p&gt;Immich reads photos with &lt;a href="https://github.com/photostructure/exiftool-vendored.js" rel="noopener noreferrer"&gt;exiftool-vendored&lt;/a&gt;, with its &lt;code&gt;geolocation&lt;/code&gt; option &lt;a href="https://github.com/immich-app/immich/blob/v3.4.2/server/src/repositories/metadata.repository.ts#L89-L100" rel="noopener noreferrer"&gt;switched on&lt;/a&gt;. That makes ExifTool look for the closest of the 116,000 places in its built-in list, and for my photo that's Tui, 1.4 km away across the river. Immich does hand over a proper boundary lookup too (&lt;a href="https://github.com/evansiroky/node-geo-tz" rel="noopener noreferrer"&gt;geo-tz&lt;/a&gt;), and that one knows it's Portugal. It just &lt;a href="https://github.com/photostructure/exiftool-vendored.js/blob/6a8f371d62692366721ff07538e109d34e9da04f/src/ReadTask.ts#L322-L341" rel="noopener noreferrer"&gt;only gets asked&lt;/a&gt; if the nearest town doesn't come up with a zone first.&lt;/p&gt;

&lt;p&gt;The clock still reads 23:30, so you'd only spot the &lt;code&gt;GMT+02:00&lt;/code&gt;. Except Immich groups the timeline by the clock on the photo, then &lt;a href="https://github.com/immich-app/immich/blob/v3.4.2/server/src/repositories/asset.repository.ts#L933" rel="noopener noreferrer"&gt;sorts each day&lt;/a&gt; by the moment underneath. So when I added a second photo from the same spot at 23:00, one that did have its &lt;code&gt;+01:00&lt;/code&gt;, Immich decided my 23:30 photo was taken first.&lt;/p&gt;

&lt;p&gt;How often is the nearest town wrong? Not very, unless you take photos near a border. I took 20,000 spots people have taken photos from (the camera locations on &lt;a href="https://commons.wikimedia.org" rel="noopener noreferrer"&gt;Wikimedia Commons&lt;/a&gt; pictures) and asked both lookups. Leaving out everything south of 50 degrees, where the nearest town in the list can be over a thousand kilometres away, 53 of 19,910 got a different offset, about 3 in 1,000. Brest in Belarus gets Warsaw's time. A corner of northern Pakistan gets India's, half an hour out. Bits of northern Portugal get Madrid's, like my photo. In the ten inhabited mismatches I looked up on OpenStreetMap, the boundary map gave the zone of the country the spot's actually in, every time.&lt;/p&gt;

&lt;p&gt;That only bites photos with no offset tag, though. Immich reads the offset first when there is one.&lt;/p&gt;

&lt;h2&gt;
  
  
  PhotoPrism trusts the map over the camera
&lt;/h2&gt;

&lt;p&gt;PhotoPrism uses a boundary map, so it gets Portugal right. It trusts it a bit too much, though: if a photo has a GPS position, PhotoPrism &lt;a href="https://github.com/photoprism/photoprism/blob/6383b439983d6a9d558876f64a5cdb83477df9df/internal/meta/exif.go#L264-L279" rel="noopener noreferrer"&gt;takes the zone from that&lt;/a&gt; and nothing else, then reads the camera's clock as if it was set to it.&lt;/p&gt;

&lt;p&gt;That's fine until the camera's clock is on a different zone. Say you fly to Tokyo and leave the camera on UK time. Breakfast at 08:30 on New Year's Day gets stamped 23:30 on the 31st, &lt;code&gt;+00:00&lt;/code&gt;, which is the right moment, just written in UK time. Add a location afterwards, from your phone's GPS track say, and PhotoPrism reads that 23:30 as Tokyo time, nine hours early. The other four go with the offset.&lt;/p&gt;

&lt;h2&gt;
  
  
  Memories puts videos on the server's day
&lt;/h2&gt;

&lt;p&gt;Phone videos have the opposite problem. An MP4 stores its time in UTC (that's the spec, &lt;a href="https://exiftool.org/ExifTool.html#QuickTimeUTC" rel="noopener noreferrer"&gt;though plenty of cameras&lt;/a&gt; write local time anyway), so the moment's right and it's the clock that needs working out.&lt;/p&gt;

&lt;p&gt;Memories &lt;a href="https://github.com/pulsejet/memories/blob/v11.1.4/lib/Exif.php#L31" rel="noopener noreferrer"&gt;asks ExifTool&lt;/a&gt; to turn those UTC times into local time, and the only local time ExifTool knows is the server's. Memories then files the clip under that day. A clip from 08:30 on New Year's Day in Tokyo turns up on New Year's Eve: at 18:30 with the server on New York time, and 23:30 with it left on UTC.&lt;/p&gt;

&lt;p&gt;Immich gets GPS clips right out of the box. A clip with no location lands on the 31st in both, which is about the best either can do.&lt;/p&gt;

&lt;h2&gt;
  
  
  The fix is one tag
&lt;/h2&gt;

&lt;p&gt;All five agree once the offset's written in and matches where you were, so that's the fix. For a camera left on home time, shift the clock by the difference and set the offset to match:&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 photo by the river&lt;/span&gt;
exiftool -OffsetTimeOriginal=+01:00 -overwrite_original photo.jpg

&lt;span class="c"&gt;# a camera left on UK time in Tokyo&lt;/span&gt;
exiftool &lt;span class="s2"&gt;"-AllDates+=9"&lt;/span&gt; -OffsetTimeOriginal=+09:00 -overwrite_original *.jpg
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then get the gallery to read them again (in Immich that's Refresh metadata, in the photo's menu).&lt;/p&gt;

&lt;p&gt;With its &lt;code&gt;+01:00&lt;/code&gt;, Immich puts my photo at the right moment. It still says it was taken in Spain, mind.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;More like this on &lt;a href="https://blog.peng.ly/?ref=dev.to"&gt;blog.peng.ly&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

</description>
      <category>opensource</category>
      <category>photography</category>
      <category>selfhosting</category>
      <category>timezones</category>
    </item>
    <item>
      <title>The AI purple is a 2017 gradient called Plum Plate</title>
      <dc:creator>Iain</dc:creator>
      <pubDate>Sun, 22 Nov 2026 14:38:33 +0000</pubDate>
      <link>https://dev.to/notaflightrisk/the-ai-purple-is-a-2017-gradient-called-plum-plate-i1o</link>
      <guid>https://dev.to/notaflightrisk/the-ai-purple-is-a-2017-gradient-called-plum-plate-i1o</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fo7f0h4lvjxvqools04mx.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fo7f0h4lvjxvqools04mx.png" alt="The Plum Plate gradient, running from a soft blue at the top left to plum at the bottom right" width="799" height="213"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You've seen this one. If you've opened a vibe-coded landing page in the last year or so, there's a good chance its hero was &lt;code&gt;linear-gradient(135deg, #667eea 0%, #764ba2 100%)&lt;/code&gt;, with white text on top.&lt;/p&gt;

&lt;p&gt;GitHub's code search finds &lt;code&gt;#667eea 0%, #764ba2 100%&lt;/code&gt; in about 1.3 million files. The agent skill packs have noticed: &lt;a href="https://github.com/affaan-m/ECC" rel="noopener noreferrer"&gt;ECC&lt;/a&gt;'s generator agent says "#667eea -&amp;gt; #764ba2 is an instant tell", and &lt;a href="https://github.com/pbakaus/impeccable" rel="noopener noreferrer"&gt;Impeccable&lt;/a&gt;'s slop detector counts both as AI purples. The usual explanation for AI going purple is &lt;a href="https://dev.to/alanwest/why-every-ai-built-website-looks-the-same-blame-tailwinds-indigo-500-3h2p"&gt;Tailwind&lt;/a&gt;, whose creator Adam Wathan half-apologised in August 2025 for making every Tailwind UI button &lt;code&gt;bg-indigo-500&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;But this isn't a Tailwind colour. It's Plum Plate, number 28 of the 180 swatches in &lt;a href="https://webgradients.com" rel="noopener noreferrer"&gt;WebGradients&lt;/a&gt;, a free gallery &lt;a href="https://github.com/itmeo/webgradients" rel="noopener noreferrer"&gt;itmeo&lt;/a&gt; put out in January 2017. And for most of its life, hardly anyone used it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Nobody wanted it for eight years
&lt;/h2&gt;

&lt;p&gt;Stack Overflow has 17 posts with both colours in from 2017 to 2022. Over the same years, the old Flat UI blue, &lt;code&gt;#3498db&lt;/code&gt;, is in 1,314. In a &lt;a href="https://huggingface.co/datasets/codeparrot/github-code-clean" rel="noopener noreferrer"&gt;2022 snapshot of GitHub&lt;/a&gt; with 470,000 HTML files in it, Plum Plate is in one, and &lt;code&gt;#3498db&lt;/code&gt; is in 121.&lt;/p&gt;

&lt;p&gt;The first wave of chatbots didn't go for it either. &lt;a href="https://huggingface.co/datasets/allenai/WildChat-1M" rel="noopener noreferrer"&gt;WildChat&lt;/a&gt; is 838,000 real ChatGPT conversations from April 2023 to April 2024, and ChatGPT wrote Plum Plate in one of them. LMArena's public dumps from 2023 to summer 2024, the last one with Claude 3 and 3.5 Sonnet in, have it zero times.&lt;/p&gt;

&lt;h2&gt;
  
  
  Then Claude 4 came out
&lt;/h2&gt;

&lt;p&gt;Claude Sonnet 4 and Opus 4 launched on 22 May 2025. LMArena's &lt;a href="https://huggingface.co/datasets/lmarena-ai/arena-human-preference-140k" rel="noopener noreferrer"&gt;next dump&lt;/a&gt; has 271,000 answers from April to July 2025, so I took every answer that wrote a CSS gradient and checked how many were this one:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fimqfob228fvfbxlrg29k.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fimqfob228fvfbxlrg29k.png" alt="How often a model's CSS gradient was Plum Plate, April to July 2025" width="799" height="292"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How often a model's CSS gradient was Plum Plate, April to July 2025&lt;/strong&gt; (&lt;a href="https://raw.githubusercontent.com/NotAFlightRisk/blog/main/posts/ai-purple-gradient/models.json" rel="noopener noreferrer"&gt;the data&lt;/a&gt;)&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Answers in LMArena's arena-human-preference-140k that write a &lt;code&gt;linear-gradient&lt;/code&gt;. Thinking variants&lt;br&gt;
  are counted with their model.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;That's 93 of Claude 4's 232 gradients, against 20 of 670 for other companies' models. 83 of Claude's 93 are the line from the top of this post, word for word, and they start on cue: two Plum Plate answers in April from anyone, then 29 in May.&lt;/p&gt;

&lt;p&gt;Why Claude 4 took this one out of 180, I've no idea. It took a second one too: Ripe Malinka, number 17, a pink one, turns up 12 times in Claude 4's answers (a couple as extra stops on the end of Plum Plate) and twice in everyone else's. Keep that name in mind for the next bit.&lt;/p&gt;

&lt;h2&gt;
  
  
  Then it was all over GitHub
&lt;/h2&gt;

&lt;p&gt;Count GitHub's hits for every two-colour swatch in WebGradients, and it's barely a contest:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fy3isqfocqh2h1guygfim.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fy3isqfocqh2h1guygfim.png" alt="GitHub code-search hits for WebGradients' 123 two-colour swatches" width="800" height="250"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;GitHub code-search hits for WebGradients' 123 two-colour swatches&lt;/strong&gt; (&lt;a href="https://raw.githubusercontent.com/NotAFlightRisk/blog/main/posts/ai-purple-gradient/swatches.json" rel="noopener noreferrer"&gt;the data&lt;/a&gt;)&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Exact-string searches like &lt;code&gt;#667eea 0%, #764ba2 100%&lt;/code&gt;, one per swatch, 20 November 2026. GitHub&lt;br&gt;
  calls these totals estimates.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Plum Plate is 69% of the lot, 11 times the runner-up, and the runner-up's Ripe Malinka. The median swatch gets 609.&lt;/p&gt;

&lt;p&gt;Hit counts don't say when the files were written, so I took the first 100 CSS files the search gives for Plum Plate and found the commit that added the line to each. 95 were added in 2025 or 2026. Code search does lean towards recent files, so I did the same with the first 100 for &lt;code&gt;#3498db&lt;/code&gt;, and only 34 of those were that new.&lt;/p&gt;

&lt;p&gt;In plain &lt;code&gt;.css&lt;/code&gt; files, Plum Plate's now at 349,000 hits to &lt;code&gt;#3498db&lt;/code&gt;'s 429,000. &lt;code&gt;#3498db&lt;/code&gt; has been around since at least 2013, and Plum Plate only took off in 2025.&lt;/p&gt;

&lt;p&gt;I can't prove those 95 came from Claude. Three of the commits that added it were made by an agent (Claude Code once, Copilot twice), and the other 97 don't say. It's the timing that points at Claude 4, nothing more.&lt;/p&gt;

&lt;h2&gt;
  
  
  Newer Claudes leave it off their sites
&lt;/h2&gt;

&lt;p&gt;By July 2026, LMArena's &lt;a href="https://huggingface.co/datasets/lmarena-ai/arena-webdev-preferences" rel="noopener noreferrer"&gt;WebDev dump&lt;/a&gt; has 12,780 generated sites. Claude 4.8 and the Claude 5 models put Plum Plate on none of the 600 that had a gradient. Everyone else, Claude 4.5 to 4.7 included, came to 1 or 2% between them.&lt;/p&gt;

&lt;p&gt;That's when they're building a whole site. Ask for nothing but a gradient and it comes straight back. A study of Claude's defaults called &lt;a href="https://centricle.com/curios/priors/color/#gradient" rel="noopener noreferrer"&gt;priors&lt;/a&gt;, by centricle, asked Sonnet 5 to "Write a CSS gradient." and got this exact pair 98 times in 100. I asked the same this morning, six times each, through Claude Code with my own settings loaded:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Model&lt;/th&gt;
&lt;th&gt;Answers with Plum Plate&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Claude Sonnet 4.5&lt;/td&gt;
&lt;td&gt;6 of 6&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Claude Haiku 4.5&lt;/td&gt;
&lt;td&gt;6 of 6&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Claude Opus 5.5&lt;/td&gt;
&lt;td&gt;2 of 6&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Claude Haiku 5.5&lt;/td&gt;
&lt;td&gt;1 of 6&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Claude Sonnet 5.5&lt;/td&gt;
&lt;td&gt;0 of 6&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Sonnet 5.5 never wrote it. All six of its answers were &lt;code&gt;linear-gradient(135deg, #ff7e5f 0%, #feb47b 50%, #86a8e7 100%)&lt;/code&gt;, word for word. GitHub has that one in 11 files so far.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;More like this on &lt;a href="https://blog.peng.ly/?ref=dev.to"&gt;blog.peng.ly&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>webdev</category>
      <category>css</category>
      <category>claude</category>
    </item>
    <item>
      <title>npm stopped taking weekends</title>
      <dc:creator>Iain</dc:creator>
      <pubDate>Sat, 21 Nov 2026 07:35:36 +0000</pubDate>
      <link>https://dev.to/notaflightrisk/npm-stopped-taking-weekends-3n18</link>
      <guid>https://dev.to/notaflightrisk/npm-stopped-taking-weekends-3n18</guid>
      <description>&lt;p&gt;For six years, npm had the same week. Five busy days, then a Saturday and Sunday at about a quarter of the pace, because the people running &lt;code&gt;npm install&lt;/code&gt; were at work and then they weren't.&lt;/p&gt;

&lt;p&gt;Then in spring 2025 that started to go. npm's &lt;a href="https://github.com/npm/registry/blob/main/docs/download-counts.md" rel="noopener noreferrer"&gt;downloads API&lt;/a&gt; has a daily total for the whole registry going back to 2015, so here's a weekend day as a share of a weekday, quarter by quarter, with PyPI beside it:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fk7hfpyx35d96ax0q6m7k.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fk7hfpyx35d96ax0q6m7k.png" alt="A weekend day's downloads as a share of a weekday's, npm and PyPI" width="800" height="445"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A weekend day's downloads as a share of a weekday's, npm and PyPI&lt;/strong&gt; (&lt;a href="https://raw.githubusercontent.com/NotAFlightRisk/blog/main/posts/npm-stopped-taking-weekends/weekends.json" rel="noopener noreferrer"&gt;the data&lt;/a&gt;)&lt;/p&gt;

&lt;p&gt;&lt;em&gt;The median weekend day over the median weekday, each quarter. npm's from its downloads API, PyPI's&lt;br&gt;
  from ClickHouse's public &lt;a href="https://clickpy.clickhouse.com" rel="noopener noreferrer"&gt;ClickPy&lt;/a&gt; data. Days npm reports as zero&lt;br&gt;
  and the Christmas fortnight are left out, and 2026 Q4 runs to 19 November.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;npm sat between 23% and 29% for 25 quarters in a row. It's at 47% now.&lt;/p&gt;

&lt;p&gt;I was pulling those totals to see how big the AI boom looks from the registry's side, and the size is daft enough on its own. npm served 292 billion downloads in October 2024, 424 billion in October 2025 and just over a trillion this October.&lt;/p&gt;

&lt;p&gt;But a bigger registry with the same weekly shape would just be more of the same. The extra downloads since summer 2024 run at 54% on weekends, so whatever's adding them barely keeps office hours. That's close to PyPI, which has been up there as far back as the data goes.&lt;/p&gt;
&lt;h2&gt;
  
  
  It isn't just the new stuff
&lt;/h2&gt;

&lt;p&gt;The obvious answer is all the new apps AI tools are spinning up, installing whatever's in fashion. So I looked at packages nobody starts a project with any more.&lt;/p&gt;

&lt;p&gt;node-sass has been deprecated on npm since 2024, with a notice telling you to use &lt;code&gt;sass&lt;/code&gt; instead. In summer 2024 it got about 286,000 downloads on a normal weekday and 62,000 on a weekend day. Now it's 155,000 and 82,000. Fewer people install it on a Tuesday than two years ago, and more do on a Saturday. TSLint, which told everyone to move to ESLint back in 2019, has nearly doubled at weekends with its weekdays flat. And left-pad, of all things, went from 21% to 59%.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F7iepeb8n0ek3orxo73d2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F7iepeb8n0ek3orxo73d2.png" alt="Weekend downloads as a share of weekday ones, then and now" width="800" height="510"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Weekend downloads as a share of weekday ones, then and now&lt;/strong&gt; (&lt;a href="https://raw.githubusercontent.com/NotAFlightRisk/blog/main/posts/npm-stopped-taking-weekends/packages.json" rel="noopener noreferrer"&gt;the data&lt;/a&gt;)&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Summer 2024 is July to September, autumn 2026 is 1 October to 19 November. Medians, like the chart&lt;br&gt;
  above.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Packages people still use moved just as much. When I checked 507 of the biggest on 14 November, 506 had gone up by at least 10 points, and none was still under 30%. Taking the biggest few hundred out of the registry's total leaves the line where it was, so it isn't a few giants dragging the average along.&lt;/p&gt;

&lt;p&gt;vaul is my favourite. It's a drawer component for React, and its &lt;a href="https://github.com/emilkowalski/vaul" rel="noopener noreferrer"&gt;README&lt;/a&gt; opens with "This repo is unmaintained". The last release was December 2024. In summer 2024 it got 76,000 downloads a weekday, and now it gets 5.4 million, because the Radix version of shadcn/ui's &lt;a href="https://ui.shadcn.com/docs/components/radix/drawer" rel="noopener noreferrer"&gt;drawer&lt;/a&gt; is built on it, and AI app builders like Lovable start you off with the whole shadcn set. Lovable also puts its own Vite plugin, &lt;code&gt;lovable-tagger&lt;/code&gt;, in the projects it makes, and of the 76,416 &lt;code&gt;package.json&lt;/code&gt; files on GitHub that list it, 75,904 list vaul too.&lt;/p&gt;
&lt;h2&gt;
  
  
  Linux went first
&lt;/h2&gt;

&lt;p&gt;So who's installing node-sass on a Saturday? A download count doesn't say who asked for it, but packages with a separate binary for each platform give a hint. esbuild ships one for Linux, one for Macs, one for Windows and a pile of others, and npm only fetches the one for the machine it's running on.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F397g67ur1s5s4t9to93q.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F397g67ur1s5s4t9to93q.png" alt="Linux stopped taking weekends before Macs and Windows did" width="800" height="418"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Linux stopped taking weekends before Macs and Windows did&lt;/strong&gt; (&lt;a href="https://raw.githubusercontent.com/NotAFlightRisk/blog/main/posts/npm-stopped-taking-weekends/platforms.json" rel="noopener noreferrer"&gt;the data&lt;/a&gt;)&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Weekend downloads as a share of weekday ones for &lt;code&gt;@esbuild/linux-x64&lt;/code&gt;, &lt;code&gt;@esbuild/darwin-arm64&lt;/code&gt; and&lt;br&gt;
  &lt;code&gt;@esbuild/win32-x64&lt;/code&gt;, worked out the same way as the first chart.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Linux started drifting in spring 2025, while the Mac and Windows binaries didn't budge all year. They only got going in 2026, and they're at 44% and 45% now to Linux's 54%. Rollup's binaries do exactly the same. Linux is also where the volume is: 59 million esbuild installs a weekday, up from 5 million in summer 2024, against 3.5 million for Macs.&lt;/p&gt;

&lt;p&gt;That gap rules out one boring answer. Anything that grabs packages wholesale, like a mirror or a security scanner, would fetch all three alike, and the three lines would have moved together. They didn't.&lt;/p&gt;

&lt;p&gt;Most CI runners, containers and cloud sandboxes are Linux, so the first wave looks like machines. OpenAI's Codex cloud agent and Claude Code's general release both came out in May 2025, which lines up nicely and proves nothing. I can't read the Macs and Windows PCs. That could be people building things at weekends now that something else does the typing, or more CI on Macs, or both, and download counts can't tell them apart.&lt;/p&gt;

&lt;p&gt;The weirdest one I found is create-vite, the thing you run to start a new Vite project. Scaffolders were always weekend-heavy, because starting a side project is a Saturday thing, and create-vite ran at 67% in summer 2024. It's at 93% now, on 12 times the volume. Vite projects get started on a Sunday nearly as often as on a Tuesday.&lt;/p&gt;
&lt;h2&gt;
  
  
  Checking a package yourself
&lt;/h2&gt;

&lt;p&gt;This gets a package's last month from the same API and gives you its weekend average as a percentage of its weekday one:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl -s https://api.npmjs.org/downloads/range/last-month/react &lt;span class="o"&gt;|&lt;/span&gt; jq &lt;span class="s1"&gt;'
  [.downloads[] | select(.downloads &amp;gt; 0) | {
    n: .downloads,
    weekend: (.day | strptime("%Y-%m-%d") | mktime | strftime("%a") | test("Sat|Sun"))
  }]
  | group_by(.weekend) | map(map(.n) | add / length)
  | .[1] / .[0] * 100 | round'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It's a straight average over the last 30 days rather than the medians in the charts, so it won't match them exactly. react comes out at 57 today, and node-sass at 46. In the summer of 2024, almost everything came out somewhere around 25.&lt;/p&gt;

&lt;p&gt;vaul's README still says it's unmaintained. Last Sunday it was downloaded 3.3 million times.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;More like this on &lt;a href="https://blog.peng.ly/?ref=dev.to"&gt;blog.peng.ly&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>javascript</category>
      <category>opensource</category>
      <category>npm</category>
    </item>
  </channel>
</rss>
