Skip to content

Add structured findings and the secfoo-memory client - #29

Merged
vsn411 merged 1 commit into
mainfrom
feature/secfoo-memory
Oct 10, 2026
Merged

vsn411 merged 1 commit into
mainfrom
feature/secfoo-memory

Conversation

@vsn411

@vsn411 vsn411 commented Oct 10, 2026

Copy link
Copy Markdown
Collaborator

Structured findings: sca_findings and secret_findings get the same open/closed lifecycle as sast_findings, and all three now record the stack (language/framework, detected from files on disk by stack.py) and a code-free **Construct:** description that the SAST/SCA/secret contracts now ask for. Secret evidence is re-redacted before storage. secfoo findings export emits them as JSON Lines.

secfoo-memory client: secfoo memory signup/login/logout/status store a key in ~/.secfoo/memory.toml (0600). With a key, secfoo-memory is registered as a default MCP server (a user entry of the same name wins), the prompt gets guidance on when and how to query it (prose only, no code), and runs record memory_enabled for on/off comparison. Opt out with --no-memory, SECFOO_MEMORY=off, or [memory] enabled = false. The generated claude MCP config is now 0600 since it carries bearer headers.

What does this change, and why?

Testing

  • pytest tests passes
  • ruff check . passes
  • Added/updated tests for the behavior change

Structured findings: sca_findings and secret_findings get the same
open/closed lifecycle as sast_findings, and all three now record the
stack (language/framework, detected from files on disk by stack.py) and
a code-free `**Construct:**` description that the SAST/SCA/secret
contracts now ask for. Secret evidence is re-redacted before storage.
`secfoo findings export` emits them as JSON Lines.

secfoo-memory client: `secfoo memory signup/login/logout/status` store a
key in ~/.secfoo/memory.toml (0600). With a key, `secfoo-memory` is
registered as a default MCP server (a user entry of the same name wins),
the prompt gets guidance on when and how to query it (prose only, no
code), and runs record memory_enabled for on/off comparison. Opt out with
--no-memory, SECFOO_MEMORY=off, or [memory] enabled = false. The
generated claude MCP config is now 0600 since it carries bearer headers.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@vsn411
vsn411 merged commit b076e27 into main Oct 10, 2026
2 checks passed
@Melwinjoel20 Melwinjoel20 mentioned this pull request Oct 16, 2026
4 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant