Repository navigation
feat(check): verify full-disk encryption + flag memory-store location - #26
Merged
Merged
Conversation
kit's local state (~/.kit/memory.db, .env.local) is secret-dense and plaintext at rest. The correct at-rest control for a whole secret-dense store is OS full-disk encryption. Add a deterministic, fail-open check that verifies FDE is on (FileVault / LUKS / BitLocker) and warns loudly if not, plus a check that flags a KIT_MEMORY_DIR redirected into the repo working tree (committable secret-dense DB). Wired into `kit check` security results. Zero-LLM, skips in CI. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015ERHw6bVUz39sAuoQZ1iyg
|
✅ Docker image built successfully
|
Merged
sandstream
added a commit
that referenced
this pull request
Jun 22, 2026
Cut 1.13.0 from the 11 PRs merged since v1.12.0. Backfilled the CHANGELOG entries that landed without one (full-disk-encryption check #26, secrets validate + env diff #28, .gitignore shared-memory fix #24, ~30k-line dead-code flush #27/#30) and dated the section. Minor bump: all additive or dead-code removal, nothing breaking.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
kit's local state —
~/.kit/memory.db(secret-dense; it indexes raw transcripts) and materialized.env.local— is plaintext at rest, protected only by0600perms. For a security tool going public, "a stolen laptop exposes every cached secret" is the worst headline.Full app-level encryption of the live FTS5 DB is a large, risky change (node:sqlite has no SQLCipher; encrypting
contentbreaks full-text search) — deliberately not rushed here. The correct at-rest control for a whole secret-dense store is OS full-disk encryption, so this PR verifies it.What
New
src/check-disk-encryption.ts, wired intokit checksecurity results:checkDiskEncryption()— verifies FDE is on per-OS: FileVault (fdesetup status), BitLocker (manage-bde -status), LUKS (lsblk→crypt). Warns (high severity) when off; fail-open (skips on unknown OS / missing command / CI — not the at-rest threat model).checkMemoryDirSafety()— flags theKIT_MEMORY_DIRfoot-gun: if the secret-dense store is redirected into a git working tree it could be committed.Pure interpreter/helper functions are unit-tested (6/6);
check-securitysuite still green (9/9).Follow-up (tracked, not in scope)
Application-level at-rest encryption of
memory.db(design doc first — reuse the AES-256-GCM primitive already inmemory/backup.ts, solve the FTS5-over-ciphertext problem).🤖 Generated with Claude Code
https://claude.ai/code/session_015ERHw6bVUz39sAuoQZ1iyg
Generated by Claude Code