mirror of
https://github.com/elicpeter/nyx.git
synced 2026-06-27 20:29:39 +02:00
[pitboss] phase 30: Cross-cutting — Determinism audit, VerifyTrace observability, policy.rs deny rules
This commit is contained in:
parent
b56c19ef64
commit
36c8bf52df
13 changed files with 1421 additions and 0 deletions
|
|
@ -326,6 +326,19 @@ pub enum InconclusiveReason {
|
|||
backend: String,
|
||||
oracle_kind: String,
|
||||
},
|
||||
/// Phase 30 §C — the dynamic policy module refused to execute a
|
||||
/// finding whose static metadata mentions credentials, private
|
||||
/// keys, or a production endpoint regex. The second security
|
||||
/// layer above the existing
|
||||
/// [`crate::dynamic::policy::Scrubber`] forensic redaction: even a
|
||||
/// successful confirmation is unsafe to obtain when the payload
|
||||
/// would have to mention or transmit live secrets. Carries the
|
||||
/// rule name that fired (`credentials`, `private-key`,
|
||||
/// `production-endpoint`) and an evidence excerpt for triage.
|
||||
PolicyDeniedDynamic {
|
||||
rule: String,
|
||||
excerpt: String,
|
||||
},
|
||||
}
|
||||
|
||||
impl fmt::Display for InconclusiveReason {
|
||||
|
|
@ -386,6 +399,10 @@ impl fmt::Display for InconclusiveReason {
|
|||
f,
|
||||
"{backend} backend cannot enforce isolation for {oracle_kind} oracle"
|
||||
),
|
||||
Self::PolicyDeniedDynamic { rule, excerpt } => write!(
|
||||
f,
|
||||
"dynamic execution refused by policy rule {rule} (matched: {excerpt})"
|
||||
),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue