Jelajahi Sumber

docs: the collection-level encrypted flag encrypts nothing (found 2026-10-09)

fszontagh 1 bulan lalu
induk
melakukan
0876bacdb5
1 mengubah file dengan 10 tambahan dan 0 penghapusan
  1. 10 0
      docs/ROADMAP.md

+ 10 - 0
docs/ROADMAP.md

@@ -480,6 +480,16 @@ joins; see 5c), which does not fit in 10 s. The container is now run with
   comparison.
 - TTL is not retro-applied: rows written before a default TTL existed keep no
   expiry.
+- **⚠ The collection-level `encrypted` flag encrypts NOTHING (found 2026-10-09).**
+  `CollectionOptions::encrypted` is stored, persisted and reported by
+  getCollectionInfo, and no code path reads it: every write encrypts only the
+  fields whose path matches the built-in patterns. Confirmed by experiment on
+  2.16.0 (collection created with encrypted=true, a top-level `key` value found
+  in plaintext in the data directory, a nested `password` encrypted). True
+  since the initial extraction. smartbotic-vectorapi relied on it for
+  `vectorapi_keys` / `vectorapi_settings` / `vectorapi_secrets`, all plaintext at
+  rest. Also: createCollection on an EXISTING collection ignores its options, so
+  the flag can read false on a collection that was created implicitly first.
 - **Top-level sensitive fields are not encrypted (found 2026-10-09).** The
   built-in patterns (`*.password`, `*.api_key`, `*.token`, ...) become regexes
   that need a dot before the name, so only NESTED fields match; a top-level