<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Deep Dive – apt-upgrade.me – Homelab, Linux &amp; DevSecOps</title><link>https://www.apt-upgrade.me/category/deep-dive/</link><description>One nerd's homelab: Linux, Kubernetes, security, and the occasional disaster.</description><language>en-GB</language><lastBuildDate>Mon, 16 Nov 2026 20:00:00 +0100</lastBuildDate><atom:link href="https://www.apt-upgrade.me/category/deep-dive/index.xml" rel="self" type="application/rss+xml"/><item><title>Deep Dive: Hugo – What a Static Site Generator Does, What Replaced My WordPress Plugins, and How Search Works Without a Server</title><link>https://www.apt-upgrade.me/2026/11/16/deep-dive-hugo-static-site-generator-wordpress-plugins-search-and-everyday-workflow/</link><pubDate>Mon, 16 Nov 2026 20:00:00 +0100</pubDate><guid>https://www.apt-upgrade.me/2026/11/16/deep-dive-hugo-static-site-generator-wordpress-plugins-search-and-everyday-workflow/</guid><description>&lt;p&gt;&lt;em&gt;Deep Dive in the series around the &lt;a href="https://www.apt-upgrade.me/2026/10/14/ansible-tour-part-1-framework/"&gt;Ansible Tour&lt;/a&gt;. The tour explains the roles, the deep dives the technology underneath: how it works, why it is used this way here, and what went wrong along the way.&lt;/em&gt;&lt;/p&gt;&#10;&lt;p&gt;&lt;strong&gt;In short:&lt;/strong&gt; &lt;a href="https://gohugo.io/" target="_blank" rel="noopener"&gt;Hugo&lt;/a&gt; is a static site generator: a single program that prints finished HTML pages from Markdown and templates, which nginx then simply serves. This deep dive explains how Hugo works, what became of my &lt;a href="https://wordpress.org/" target="_blank" rel="noopener"&gt;WordPress&lt;/a&gt; plugins, how search works without any server, how I write posts and update Hugo – and which pitfalls only showed up in operation.&lt;/p&gt;</description></item><item><title>Deep Dive: AIDE and rkhunter on a K3s Host – Integrity Checks Without Drowning in False Alarms</title><link>https://www.apt-upgrade.me/2026/11/05/deep-dive-aide-and-rkhunter-on-a-k3s-host-integrity-checks-without-drowning-in-false-alarms/</link><pubDate>Thu, 05 Nov 2026 20:00:00 +0100</pubDate><guid>https://www.apt-upgrade.me/2026/11/05/deep-dive-aide-and-rkhunter-on-a-k3s-host-integrity-checks-without-drowning-in-false-alarms/</guid><description>&lt;p&gt;&lt;strong&gt;In short:&lt;/strong&gt; AIDE and &lt;a href="https://rkhunter.sourceforge.net/" target="_blank" rel="noopener"&gt;rkhunter&lt;/a&gt; ran on my three &lt;a href="https://k3s.io/" target="_blank" rel="noopener"&gt;K3s&lt;/a&gt; hosts, but mostly reported changes I had made myself – and nobody reads mails like that after a week. This deep dive shows what both tools check, where the noise on a Kubernetes host comes from, how the baseline moves along with every intended change, and who checks the checker in the end.&lt;/p&gt;&#10;&lt;p&gt;An integrity checker is only as good as the mails it sends. If it reports hundreds of changes every morning, nobody reads them after a week – and the one real finding gets lost with them. That was my problem with AIDE and rkhunter on three K3s hosts: both worked, but mostly they reported things I had caused myself.&lt;/p&gt;</description></item><item><title>Deep Dive: fail2ban – From a Log Line to a Kernel Set Entry, and the Bans That Never Happened</title><link>https://www.apt-upgrade.me/2026/10/21/deep-dive-fail2ban-from-a-log-line-to-a-kernel-set-entry-and-the-bans-that-never-happened/</link><pubDate>Wed, 21 Oct 2026 20:00:00 +0200</pubDate><guid>https://www.apt-upgrade.me/2026/10/21/deep-dive-fail2ban-from-a-log-line-to-a-kernel-set-entry-and-the-bans-that-never-happened/</guid><description>&lt;p&gt;&lt;em&gt;Deep Dive in the series around the &lt;a href="https://www.apt-upgrade.me/2026/10/14/ansible-tour-part-1-framework/"&gt;Ansible Tour&lt;/a&gt;. The tour explains the roles, the deep dives the technology underneath: how it works, why it is used this way here, and what went wrong along the way.&lt;/em&gt;&lt;/p&gt;&#10;&lt;p&gt;&lt;strong&gt;In short:&lt;/strong&gt; &lt;a href="https://github.com/fail2ban/fail2ban" target="_blank" rel="noopener"&gt;fail2ban&lt;/a&gt; looks simple – read the log, count failures, ban – but on a K3s host every step has a catch. This deep dive follows one bad request from the log line to the entry in the kernel set and describes the cases where fail2ban reported &amp;ldquo;Ban&amp;rdquo; and the firewall still let the address in.&lt;/p&gt;</description></item><item><title>Deep Dive: Grafana and the Dashboards – What Every Panel Means, and Alerts That Never Fired</title><link>https://www.apt-upgrade.me/2026/10/21/deep-dive-grafana-and-the-dashboards-what-every-panel-means-and-alerts-that-never-fired/</link><pubDate>Wed, 21 Oct 2026 20:00:00 +0200</pubDate><guid>https://www.apt-upgrade.me/2026/10/21/deep-dive-grafana-and-the-dashboards-what-every-panel-means-and-alerts-that-never-fired/</guid><description>&lt;p&gt;&lt;em&gt;Deep Dive in the series around the &lt;a href="https://www.apt-upgrade.me/2026/10/14/ansible-tour-part-1-framework/"&gt;Ansible Tour&lt;/a&gt;. The tour explains the roles, the deep dives the technology underneath: how it works, why it is used this way here, and what went wrong along the way.&lt;/em&gt;&lt;/p&gt;&#10;&lt;p&gt;&lt;strong&gt;In short:&lt;/strong&gt; Every server here has its own Prometheus and &lt;a href="https://grafana.com/" target="_blank" rel="noopener"&gt;Grafana&lt;/a&gt;, and this deep dive is the reading guide for them. It explains how Prometheus collects numbers, which panels matter when something is wrong, what &amp;ldquo;normal&amp;rdquo; looks like on these machines – and how alerting is built, including the bug that kept it silent for weeks.&lt;/p&gt;</description></item><item><title>Deep Dive: K3s – A Whole Kubernetes in One Binary, What It Takes Out, and Six Things It Did Not Do by Itself</title><link>https://www.apt-upgrade.me/2026/10/21/deep-dive-k3s-a-whole-kubernetes-in-one-binary-what-it-takes-out-and-six-things-it-did-not-do-by-itself/</link><pubDate>Wed, 21 Oct 2026 20:00:00 +0200</pubDate><guid>https://www.apt-upgrade.me/2026/10/21/deep-dive-k3s-a-whole-kubernetes-in-one-binary-what-it-takes-out-and-six-things-it-did-not-do-by-itself/</guid><description>&lt;p&gt;&lt;em&gt;Deep Dive in the series around the &lt;a href="https://www.apt-upgrade.me/2026/10/14/ansible-tour-part-1-framework/"&gt;Ansible Tour&lt;/a&gt;. The tour explains the roles, the deep dives the technology underneath: how it works, why it is used this way here, and what went wrong along the way.&lt;/em&gt;&lt;/p&gt;&#10;&lt;p&gt;&lt;strong&gt;In short:&lt;/strong&gt; &lt;a href="https://k3s.io/" target="_blank" rel="noopener"&gt;K3s&lt;/a&gt; is certified &lt;a href="https://kubernetes.io/" target="_blank" rel="noopener"&gt;Kubernetes&lt;/a&gt; in a single binary of about 70 MB – ideal for a cluster of exactly one node, but it hides a few things. This deep dive explains what actually runs in that binary, what the Ansible roles switch on and off, how an update works and which six things K3s did not do by itself that only showed up in operation.&lt;/p&gt;</description></item><item><title>Deep Dive: Loki and Grafana Alloy – Searchable Logs Next to the Metrics, and What the First Hour Found</title><link>https://www.apt-upgrade.me/2026/10/21/deep-dive-loki-and-grafana-alloy-searchable-logs-next-to-the-metrics-and-what-the-first-hour-found/</link><pubDate>Wed, 21 Oct 2026 20:00:00 +0200</pubDate><guid>https://www.apt-upgrade.me/2026/10/21/deep-dive-loki-and-grafana-alloy-searchable-logs-next-to-the-metrics-and-what-the-first-hour-found/</guid><description>&lt;p&gt;&lt;em&gt;Deep Dive in the series around the &lt;a href="https://www.apt-upgrade.me/2026/10/14/ansible-tour-part-1-framework/"&gt;Ansible Tour&lt;/a&gt;. The tour explains the roles, the deep dives the technology underneath: how it works, why it is used this way here, and what went wrong along the way.&lt;/em&gt;&lt;/p&gt;&#10;&lt;p&gt;&lt;strong&gt;In short:&lt;/strong&gt; Metrics say that something is wrong – the why is in the logs, and until now those were scattered across the journal, pod directories and the audit log. &lt;a href="https://grafana.com/oss/loki/" target="_blank" rel="noopener"&gt;Loki&lt;/a&gt; and &lt;a href="https://grafana.com/oss/alloy-opentelemetry-collector/" target="_blank" rel="noopener"&gt;Grafana Alloy&lt;/a&gt; turn them into one searchable place next to the dashboards. This deep dive explains how both work, what has been running on the blog since 19 October 2026 and which four findings the new log alerts turned up in their first hour.&lt;/p&gt;</description></item><item><title>Deep Dive: MariaDB – InnoDB, Temporary Tables in RAM, and a Database That Ran Unconfined for Five Weeks</title><link>https://www.apt-upgrade.me/2026/10/21/deep-dive-mariadb-innodb-temporary-tables-in-ram-and-a-database-that-ran-unconfined-for-five-weeks/</link><pubDate>Wed, 21 Oct 2026 20:00:00 +0200</pubDate><guid>https://www.apt-upgrade.me/2026/10/21/deep-dive-mariadb-innodb-temporary-tables-in-ram-and-a-database-that-ran-unconfined-for-five-weeks/</guid><description>&lt;p&gt;&lt;em&gt;Deep Dive in the series around the &lt;a href="https://www.apt-upgrade.me/2026/10/14/ansible-tour-part-1-framework/"&gt;Ansible Tour&lt;/a&gt;. The tour explains the roles, the deep dives the technology underneath: how it works, why it is used this way here, and what went wrong along the way.&lt;/em&gt;&lt;/p&gt;&#10;&lt;p&gt;&lt;strong&gt;In short:&lt;/strong&gt; Both applications here run on &lt;a href="https://mariadb.org/" target="_blank" rel="noopener"&gt;MariaDB&lt;/a&gt; – the blog as a pod next to WordPress, the Nextclouds directly on the host. This deep dive explains what InnoDB does with memory and disk, which handful of settings matter, why temporary tables now live in RAM, what the measurements say – and how a single line in a systemd unit sidelined &lt;a href="https://github.com/SELinuxProject" target="_blank" rel="noopener"&gt;SELinux&lt;/a&gt; for five weeks.&lt;/p&gt;</description></item><item><title>Deep Dive: Nextcloud on K3s – PHP Pods, Host Databases, and Office in the Browser</title><link>https://www.apt-upgrade.me/2026/10/21/deep-dive-nextcloud-on-k3s-php-pods-host-databases-and-office-in-the-browser/</link><pubDate>Wed, 21 Oct 2026 20:00:00 +0200</pubDate><guid>https://www.apt-upgrade.me/2026/10/21/deep-dive-nextcloud-on-k3s-php-pods-host-databases-and-office-in-the-browser/</guid><description>&lt;p&gt;&lt;em&gt;Deep Dive in the series around the &lt;a href="https://www.apt-upgrade.me/2026/10/14/ansible-tour-part-1-framework/"&gt;Ansible Tour&lt;/a&gt;. The tour explains the roles, the deep dives the technology underneath: how it works, why it is used this way here, and what went wrong along the way.&lt;/em&gt;&lt;/p&gt;&#10;&lt;p&gt;&lt;strong&gt;In short:&lt;/strong&gt; Two &lt;a href="https://nextcloud.com/" target="_blank" rel="noopener"&gt;Nextcloud&lt;/a&gt; servers are built from the same Ansible roles here – one for about 150 accounts and almost 400 GB, one for a small group. This deep dive explains how Nextcloud is put together (PHP, locks in Redis, background jobs, push, office), which parts run in the cluster and which on the host, what was measured and what operation has taught so far.&lt;/p&gt;</description></item><item><title>Deep Dive: Performance Tuning With Measurements – What Changed on 16 October 2026, and What Did Not</title><link>https://www.apt-upgrade.me/2026/10/21/deep-dive-performance-tuning-with-measurements-what-changed-on-16-october-2026-and-what-did-not/</link><pubDate>Wed, 21 Oct 2026 20:00:00 +0200</pubDate><guid>https://www.apt-upgrade.me/2026/10/21/deep-dive-performance-tuning-with-measurements-what-changed-on-16-october-2026-and-what-did-not/</guid><description>&lt;p&gt;&lt;em&gt;Deep Dive in the series around the &lt;a href="https://www.apt-upgrade.me/2026/10/14/ansible-tour-part-1-framework/"&gt;Ansible Tour&lt;/a&gt;. The tour explains the roles, the deep dives the technology underneath: how it works, why it is used this way here, and what went wrong along the way.&lt;/em&gt;&lt;/p&gt;&#10;&lt;p&gt;&lt;strong&gt;In short:&lt;/strong&gt; On 16 October 2026 the blog and two Nextcloud servers got an optimisation round, although none of them was slow. The rule: peaks over seven days instead of snapshots, counting instead of assuming, one measurement per change. This deep dive shows every change with the number behind it, what deliberately stayed unchanged, what the measurements said four days later – and a calculation error of my own.&lt;/p&gt;</description></item><item><title>Deep Dive: PHP-FPM and OPcache – Workers, Limits, and a Bytecode Cache That Was Too Small</title><link>https://www.apt-upgrade.me/2026/10/21/deep-dive-php-fpm-and-opcache-workers-limits-and-a-bytecode-cache-that-was-too-small/</link><pubDate>Wed, 21 Oct 2026 20:00:00 +0200</pubDate><guid>https://www.apt-upgrade.me/2026/10/21/deep-dive-php-fpm-and-opcache-workers-limits-and-a-bytecode-cache-that-was-too-small/</guid><description>&lt;p&gt;&lt;em&gt;Deep Dive in the series around the &lt;a href="https://www.apt-upgrade.me/2026/10/14/ansible-tour-part-1-framework/"&gt;Ansible Tour&lt;/a&gt;. The tour explains the roles, the deep dives the technology underneath: how it works, why it is used this way here, and what went wrong along the way.&lt;/em&gt;&lt;/p&gt;&#10;&lt;p&gt;&lt;strong&gt;In short:&lt;/strong&gt; Every dynamic request to WordPress and Nextcloud ends up in a PHP-FPM worker – how many there are, how long they may run and how much compiled code they share decides speed and behaviour under load. This deep dive explains the mechanics of PHP-FPM, OPcache and APCu, the chosen settings with their measurements – and two defaults that quietly limited Nextcloud.&lt;/p&gt;</description></item><item><title>Deep Dive: Redis – Object Cache, File Locking, and Why a Password Behind the Firewall</title><link>https://www.apt-upgrade.me/2026/10/21/deep-dive-redis-object-cache-file-locking-and-why-a-password-behind-the-firewall/</link><pubDate>Wed, 21 Oct 2026 20:00:00 +0200</pubDate><guid>https://www.apt-upgrade.me/2026/10/21/deep-dive-redis-object-cache-file-locking-and-why-a-password-behind-the-firewall/</guid><description>&lt;p&gt;&lt;em&gt;Deep Dive in the series around the &lt;a href="https://www.apt-upgrade.me/2026/10/14/ansible-tour-part-1-framework/"&gt;Ansible Tour&lt;/a&gt;. The tour explains the roles, the deep dives the technology underneath: how it works, why it is used this way here, and what went wrong along the way.&lt;/em&gt;&lt;/p&gt;&#10;&lt;p&gt;&lt;strong&gt;In short:&lt;/strong&gt; &lt;a href="https://redis.io/" target="_blank" rel="noopener"&gt;Redis&lt;/a&gt; is the smallest service in this setup, and still both applications depend on it: the blog as an object cache, Nextcloud for file locks and as a shared cache. This deep dive explains how Redis works, why the two instances are secured differently – including a password behind the firewall –, what the numbers say and what a check for this article turned up.&lt;/p&gt;</description></item><item><title>Deep Dive: Trivy – Scanning Every Running Image Each Night, and Reading 241 Findings Without Panic</title><link>https://www.apt-upgrade.me/2026/10/21/deep-dive-trivy-scanning-every-running-image-each-night-and-reading-241-findings-without-panic/</link><pubDate>Wed, 21 Oct 2026 20:00:00 +0200</pubDate><guid>https://www.apt-upgrade.me/2026/10/21/deep-dive-trivy-scanning-every-running-image-each-night-and-reading-241-findings-without-panic/</guid><description>&lt;p&gt;&lt;em&gt;Deep Dive in the series around the &lt;a href="https://www.apt-upgrade.me/2026/10/14/ansible-tour-part-1-framework/"&gt;Ansible Tour&lt;/a&gt;. The tour explains the roles, the deep dives the technology underneath: how it works, why it is used this way here, and what went wrong along the way.&lt;/em&gt;&lt;/p&gt;&#10;&lt;p&gt;&lt;strong&gt;In short:&lt;/strong&gt; Pinned images do not get safer on their own, and new vulnerabilities appear every day for software that has not changed. Since 19 October 2026 &lt;a href="https://trivy.dev/" target="_blank" rel="noopener"&gt;Trivy&lt;/a&gt; scans all running images every night. This deep dive explains how Trivy finds vulnerabilities, how it is built in here and why the first 241 findings are far less alarming than they sound.&lt;/p&gt;</description></item><item><title>Deep Dive: WordPress on Kubernetes – Stateless Pods, a Stateful CMS, and WP-CLI as the Control Plane</title><link>https://www.apt-upgrade.me/2026/10/21/deep-dive-wordpress-on-kubernetes-stateless-pods-a-stateful-cms-and-wp-cli-as-the-control-plane/</link><pubDate>Wed, 21 Oct 2026 20:00:00 +0200</pubDate><guid>https://www.apt-upgrade.me/2026/10/21/deep-dive-wordpress-on-kubernetes-stateless-pods-a-stateful-cms-and-wp-cli-as-the-control-plane/</guid><description>&lt;p&gt;&lt;em&gt;Deep Dive in the series around the &lt;a href="https://www.apt-upgrade.me/2026/10/14/ansible-tour-part-1-framework/"&gt;Ansible Tour&lt;/a&gt;. The tour explains the roles, the deep dives the technology underneath: how it works, why it is used this way here, and what went wrong along the way.&lt;/em&gt;&lt;/p&gt;&#10;&lt;p&gt;&lt;em&gt;Addendum (28 November 2026): this deep dive describes the state of October 2026. Since 6 November 2026 the blog is a static Hugo site without WordPress, PHP, a database or K3s; the pods, CronJobs and WP-CLI are gone.&lt;/em&gt;&lt;/p&gt;</description></item><item><title>Deep Dive: nftables – One Table of Our Own, Sets with Timeouts, and the 300 Rules K3s Writes Next to It</title><link>https://www.apt-upgrade.me/2026/10/20/deep-dive-nftables-one-table-of-our-own-sets-with-timeouts-and-the-300-rules-k3s-writes-next-to-it/</link><pubDate>Tue, 20 Oct 2026 20:00:00 +0200</pubDate><guid>https://www.apt-upgrade.me/2026/10/20/deep-dive-nftables-one-table-of-our-own-sets-with-timeouts-and-the-300-rules-k3s-writes-next-to-it/</guid><description>&lt;p&gt;&lt;em&gt;Deep Dive in the series around the &lt;a href="https://www.apt-upgrade.me/2026/10/14/ansible-tour-part-1-framework/"&gt;Ansible Tour&lt;/a&gt;. The tour explains the roles, the deep dives the technology underneath: how it works, why it is used this way here, and what went wrong along the way.&lt;/em&gt;&lt;/p&gt;&#10;&lt;p&gt;&lt;strong&gt;In short:&lt;/strong&gt; Most &lt;a href="https://wiki.nftables.org/" target="_blank" rel="noopener"&gt;nftables&lt;/a&gt; guides translate old iptables rules line by line – that works until a second program writes rules too, and on a &lt;a href="https://k3s.io/" target="_blank" rel="noopener"&gt;K3s&lt;/a&gt; host several do. This deep dive explains the nftables data model, how one table of our own combines host, &lt;a href="https://github.com/fail2ban/fail2ban" target="_blank" rel="noopener"&gt;fail2ban&lt;/a&gt;, port-scan detection and country filter, what K3s puts next to it, and four bugs that each taught one detail the hard way.&lt;/p&gt;</description></item><item><title>Deep Dive: SELinux on a K3s Host – Type Enforcement, and the Two Times It Quietly Did Nothing</title><link>https://www.apt-upgrade.me/2026/10/20/deep-dive-selinux-on-a-k3s-host-type-enforcement-and-the-two-times-it-quietly-did-nothing/</link><pubDate>Tue, 20 Oct 2026 20:00:00 +0200</pubDate><guid>https://www.apt-upgrade.me/2026/10/20/deep-dive-selinux-on-a-k3s-host-type-enforcement-and-the-two-times-it-quietly-did-nothing/</guid><description>&lt;p&gt;&lt;em&gt;Deep Dive in the series around the &lt;a href="https://www.apt-upgrade.me/2026/10/14/ansible-tour-part-1-framework/"&gt;Ansible Tour&lt;/a&gt;. The tour explains the roles, the deep dives the technology underneath: how it works, why it is used this way here, and what went wrong along the way.&lt;/em&gt;&lt;/p&gt;&#10;&lt;p&gt;&lt;strong&gt;In short:&lt;/strong&gt; &lt;a href="https://github.com/SELinuxProject" target="_blank" rel="noopener"&gt;SELinux&lt;/a&gt; is the layer most people switch off first and understand last – yet it is the only one that still holds once a process has been taken over. This deep dive explains how SELinux decides (types, transitions, categories, reading denials), what is confined on the blog and the Nextclouds – and the two times it was set to enforcing and still protected nothing.&lt;/p&gt;</description></item></channel></rss>