Skip to content

Opt-in fail-closed audit (LLM_SECRETS_AUDIT_STRICT) — ADR 0010 - #28

Merged
cptfinch merged 1 commit into
mainfrom
feat/audit-strict-mode
Jul 21, 2026
Merged

cptfinch merged 1 commit into
mainfrom
feat/audit-strict-mode

Conversation

@cptfinch

Copy link
Copy Markdown
Contributor

Implements the decision in ADR 0010. Closes #26.

Access-path audits route through lease::record(): fail-open by default (warn on failure, continue), fail-closed under LLM_SECRETS_AUDIT_STRICT=1. Default behaviour unchanged apart from the new warning. Unit test covers the policy; manual check confirms default warns-and-continues while strict refuses (verified by sabotaging the audit sink).

Secret-access audits (exec.inject, mcp.peek) now route through lease::record,
which applies the ADR 0010 policy: fail-open by default (swallow the error
with a stderr warning) and fail-closed under LLM_SECRETS_AUDIT_STRICT.

Corrects the audit() doc comment to match the real default and adds a unit
test for the policy decision.

Closes #26
@cptfinch
cptfinch merged commit 24ac2bc into main Jul 21, 2026
2 checks passed
@cptfinch
cptfinch deleted the feat/audit-strict-mode branch July 21, 2026 14:43
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.

Implement opt-in fail-closed audit (LLM_SECRETS_AUDIT_STRICT) per ADR 0010

1 participant