Files
rengine/shared/services/secret_mining/__init__.py
T
Yogesh OjhaandClaude Opus 5 957e429835 feat(secrets): mine every stored response a scan holds
Three corpora, one miner: web asset roots, the responses endpoint_probe
read, and a scanner's proof. `endpoint_responses` is its own table so the
nine select(Endpoint) sites do not carry every body; retention deletes
those rows with the web asset bodies, and protects each target's newest
census run.

A passive leaf past the last awaited level joins the deferred tail, so
the finding corpus lands before finalize re-mines it.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B58eEM68a5qDFTQXPE5aoW
2026-09-20 09:01:51 +05:30

35 lines
747 B
Python

from shared.services.secret_mining.corpora import (
CORPORA,
Corpus,
Document,
has_documents,
)
from shared.services.secret_mining.detectors import Match, Sweep, entropy, find
from shared.services.secret_mining.inventory import Observation, SecretInventory
from shared.services.secret_mining.record import context, fingerprint
from shared.services.secret_mining.run import (
MineOutcome,
mine_scan,
pending_scans,
stage_mined,
)
__all__ = [
"CORPORA",
"Corpus",
"Document",
"Match",
"MineOutcome",
"Observation",
"SecretInventory",
"Sweep",
"context",
"entropy",
"find",
"fingerprint",
"has_documents",
"mine_scan",
"pending_scans",
"stage_mined",
]