|
|
@@ -7,9 +7,31 @@
|
|
|
# EVERYTHING - including strings that are certainly present. Measured
|
|
|
# 2026-10-19: `grep -c -F novitax` answered 0 on a WAL segment where
|
|
|
# `strings -a | grep -c -F novitax` answered 5957, because the files carry
|
|
|
-# custom framing (CALWAL01 / CALSNAP1) with embedded NULs. They are not
|
|
|
-# compressed; gzip still halves them. So the text is right there and grep
|
|
|
-# will not surface it.
|
|
|
+# custom framing (CALWAL01 / CALSNAP1) with embedded NULs, so grep will not
|
|
|
+# surface text past them.
|
|
|
+#
|
|
|
+# WHY A CLEAN RESULT ON A *SNAPSHOT* IS WEAKER THAN THIS SCRIPT ORIGINALLY
|
|
|
+# CLAIMED. The header used to say the files "are not compressed; gzip still
|
|
|
+# halves them". That inference was wrong: the database owner confirmed
|
|
|
+# 2026-10-22 that the snapshot writer compresses with LZ4 whenever
|
|
|
+# `compression` is on, which is the DEFAULT, and gzip shrinking an LZ4 file
|
|
|
+# further is expected rather than evidence of anything. `strings -a` still
|
|
|
+# surfaces plaintext there, but for a different reason - LZ4 output is mostly
|
|
|
+# literal runs, so plaintext survives in FRAGMENTS.
|
|
|
+#
|
|
|
+# The consequence is an ASYMMETRY, and only one direction counts on a
|
|
|
+# snapshot: a HIT is real evidence of exposure, a MISS is NOT evidence of
|
|
|
+# safety. A long token - an API key, a 28-character document id - can be
|
|
|
+# split across an LZ4 match reference, so it is never shown whole and the
|
|
|
+# absence means "not found in the literal runs" rather than "not there".
|
|
|
+# So read a clean SNAPSHOT verdict as "nothing surfaced", never as "nothing
|
|
|
+# is there", and prefer a WAL segment or an LMDB file when an absence has to
|
|
|
+# carry weight - those are not written through the compressing path.
|
|
|
+#
|
|
|
+# The positive control below is still load-bearing: without it the check
|
|
|
+# cannot report at all. It simply does not upgrade a snapshot miss into an
|
|
|
+# absence, which is why the verdicts are PRESENT / REVIEW / EXPOSED rather
|
|
|
+# than a boolean.
|
|
|
#
|
|
|
# That makes the obvious script a check that CANNOT FAIL: it reports a clean
|
|
|
# bill of health on a credential audit while being incapable of reporting an
|