secrets-core
groundskeeper.dev/secrets-core is an experimental, deterministic credential
package. It is registered in the runtime but disabled by default. Operators must
select policies/examples/secrets-core.yaml
explicitly; the development policy is unchanged.
Contract and behavior
| Detector | Scope | State | Severity | Recommendation |
|---|---|---|---|---|
builtin.secrets.private-key | Complete or truncated PEM/OpenSSH private-key armour | candidate/probable | critical | full irreversible redaction |
builtin.secrets.authorization | RFC 6750 Bearer and RFC 7617 Basic Authorization credentials | probable | critical | full irreversible redaction of credential value |
builtin.secrets.jwt | Three-part compact JWT; base64url JSON header and payload; non-empty non-none alg; signature-shaped third part | probable | high | full irreversible redaction |
builtin.secrets.connection-string | Password userinfo in PostgreSQL, MySQL, MongoDB, and Redis URIs | probable | critical | redact password component only |
builtin.secrets.generic | Labelled password assignment with mixed character classes | candidate | medium | record only |
Every finding uses exact Unicode code-point spans and value-free typed evidence,
severity, action advice, and (except generic) a typed full-redaction
recommendation. Recommendations never make policy decisions. The evaluator
enforces the generic detector's record action ceiling, so a policy snapshot
that attempts to redact or block it is rejected.
The capability contract, manifests, and catalogue are machine validated. They declare no network, filesystem, clock, or randomness permissions. Detectors do not log, hash, retain, or live-validate values. JWT claims, Basic credentials, database usernames, hosts, and query parameters are not emitted.
Provenance and licences
Recognition semantics come from RFC 7468/OpenSSH, RFC 6750, RFC 7617, RFC 7519, RFC 3986, and official PostgreSQL, MySQL, MongoDB, and Redis documentation. The capability contract pins exact source URLs and documentation/licence terms.
Gitleaks (MIT) and detect-secrets (Apache-2.0, with noted MIT-derived files) were reviewed for filter and parsing design. TruffleHog (AGPL-3.0), Semgrep's current rules (Semgrep Rules License v1.0), and GitHub secret-scanning guidance were reviewed only at the design level. No external detector code or rule text was copied. Live verification, remote enrichment, raw-match output, unkeyed hashes, and hosted-only behavior were deliberately excluded.
Maturity and known gaps
The value-free G0/G1 record reports
G0 PASS and G1 NOT_READY. G1 still needs an independent holdout, calibrated
precision/recall intervals, a 14-day observe window, production-like latency
evidence, and independent source/licence review. Current tests include hard
negatives, placeholders, fuzz seeds, race execution, cancellation, deterministic
output, 1 MiB latency budgets, end-to-end redaction, and schema validation.
Known gaps: private-key blocks split across segments are not joined; JWT JWE (five parts), detached/unsecured JWTs, expiry/signature verification, PostgreSQL keyword DSNs, MySQL non-URI DSNs, and database passwords supplied only in query parameters are not recognized. URI password spans preserve percent encoding. Generic assignments intentionally miss simple and human-readable passwords and remain uncalibrated observation signals that can never block.