<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://ohcnwiki.tellmey.fyi/index.php?action=history&amp;feed=atom&amp;title=TELEICU%2FConfiguration_drift_runbook</id>
	<title>TELEICU/Configuration drift runbook - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://ohcnwiki.tellmey.fyi/index.php?action=history&amp;feed=atom&amp;title=TELEICU%2FConfiguration_drift_runbook"/>
	<link rel="alternate" type="text/html" href="https://ohcnwiki.tellmey.fyi/index.php?title=TELEICU/Configuration_drift_runbook&amp;action=history"/>
	<updated>2026-07-06T08:58:46Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.4</generator>
	<entry>
		<id>https://ohcnwiki.tellmey.fyi/index.php?title=TELEICU/Configuration_drift_runbook&amp;diff=291&amp;oldid=prev</id>
		<title>Admin: Automated edit (via update-page on MediaWiki MCP Server)</title>
		<link rel="alternate" type="text/html" href="https://ohcnwiki.tellmey.fyi/index.php?title=TELEICU/Configuration_drift_runbook&amp;diff=291&amp;oldid=prev"/>
		<updated>2026-07-06T03:10:17Z</updated>

		<summary type="html">&lt;p&gt;Automated edit (via update-page on MediaWiki MCP Server)&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 08:40, 6 July 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 47:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 47:&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* For Ansible: enable &amp;lt;code&amp;gt;ansible-pull&amp;lt;/code&amp;gt; logging to a central location&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* For Ansible: enable &amp;lt;code&amp;gt;ansible-pull&amp;lt;/code&amp;gt; logging to a central location&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Physical: lock server cases, use tamper-evident seals, restrict USB boot&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Physical: lock server cases, use tamper-evident seals, restrict USB boot&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{Navbox TELEICU}}&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{Related}}&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{Related}}&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;

&lt;!-- diff cache key mediawiki:diff:1.41:old-253:rev-291:wikidiff2=table:1.14.2:bc2a06be --&gt;
&lt;/table&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://ohcnwiki.tellmey.fyi/index.php?title=TELEICU/Configuration_drift_runbook&amp;diff=253&amp;oldid=prev</id>
		<title>Admin: Create TELEICU configuration drift runbook (via create-page on MediaWiki MCP Server)</title>
		<link rel="alternate" type="text/html" href="https://ohcnwiki.tellmey.fyi/index.php?title=TELEICU/Configuration_drift_runbook&amp;diff=253&amp;oldid=prev"/>
		<updated>2026-07-06T02:54:21Z</updated>

		<summary type="html">&lt;p&gt;Create TELEICU configuration drift runbook (via create-page on MediaWiki MCP Server)&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Doc header&lt;br /&gt;
|type=runbook&lt;br /&gt;
|domain=teleicu&lt;br /&gt;
|title=Configuration drift runbook&lt;br /&gt;
|order=14&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Procedures for detecting and remediating configuration drift.&lt;br /&gt;
&lt;br /&gt;
== Detection ==&lt;br /&gt;
&lt;br /&gt;
=== Ansible path ===&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;ansible-pull&amp;lt;/code&amp;gt; runs on timer and reports changed/changed state&lt;br /&gt;
* Non-compliant files are reverted each cycle&lt;br /&gt;
* Any manual change is detected on the next pull and overwritten&lt;br /&gt;
* Audit: &amp;lt;code&amp;gt;git diff&amp;lt;/code&amp;gt; in the ansible repo shows what changed between pulls&lt;br /&gt;
&lt;br /&gt;
=== NixOS path ===&lt;br /&gt;
&lt;br /&gt;
* Drift is structurally impossible at the OS level — /etc is in the Nix store (read-only)&lt;br /&gt;
* Any tamper attempt at runtime fails with &amp;quot;Read-only file system&amp;quot;&lt;br /&gt;
* At generation level: &amp;lt;code&amp;gt;nixos-rebuild list-generations&amp;lt;/code&amp;gt; shows the active generation&lt;br /&gt;
* If someone boots a different generation, comin will apply the current one on next poll&lt;br /&gt;
&lt;br /&gt;
== Remediation ==&lt;br /&gt;
&lt;br /&gt;
=== Ansible path ===&lt;br /&gt;
&lt;br /&gt;
# Identify the drift: check the ansible-pull log for &amp;lt;code&amp;gt;changed&amp;lt;/code&amp;gt; tasks that should not have changed&lt;br /&gt;
# If the drift is from an outdated playbook, update the playbook and push to repo&lt;br /&gt;
# If the drift is from tampering, investigate physical security at the site&lt;br /&gt;
# Force an immediate pull: &amp;lt;code&amp;gt;ansible-pull -U &amp;lt;repo&amp;gt;&amp;lt;/code&amp;gt; on the affected node&lt;br /&gt;
# Review site access logs to identify who tampered&lt;br /&gt;
&lt;br /&gt;
=== NixOS path ===&lt;br /&gt;
&lt;br /&gt;
# Check if the node is on the expected generation: compare &amp;lt;code&amp;gt;/run/current-system&amp;lt;/code&amp;gt; hash with the flake&amp;#039;s output hash&lt;br /&gt;
# If not, trigger comin to pull the latest generation&lt;br /&gt;
# If comin is failing, use deploy-rs as backup to push the correct generation&lt;br /&gt;
# Investigate physical access — a NixOS node cannot be tampered with at runtime, so any divergence means someone booted a different generation or replaced the disk&lt;br /&gt;
&lt;br /&gt;
== Prevention ==&lt;br /&gt;
&lt;br /&gt;
* Ensure all nodes have the correct pull interval configured&lt;br /&gt;
* For NixOS: remove boot entries for old generations (nixos-rebuild with &amp;lt;code&amp;gt;--max-generations&amp;lt;/code&amp;gt;)&lt;br /&gt;
* For Ansible: enable &amp;lt;code&amp;gt;ansible-pull&amp;lt;/code&amp;gt; logging to a central location&lt;br /&gt;
* Physical: lock server cases, use tamper-evident seals, restrict USB boot&lt;br /&gt;
&lt;br /&gt;
{{Related}}&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>