pub struct GovernanceConfig {
pub require_operator_pubkey: bool,
}Expand description
v0.7.0 SEC-2 (Cluster D, issue #767) — [governance] top-level
block. Today exposes a single fail-closed knob; future governance
knobs (e.g., signature-rotation policy timestamps, per-rule
override timeouts) can stack here.
Wire format:
[governance]
require_operator_pubkey = trueFields§
§require_operator_pubkey: boolSEC-2 fail-closed switch. When true, the daemon refuses to
start if the governance_rules table contains any
enabled = 1 row AND no operator pubkey is resolved. Default
false preserves the pre-cluster-D contract that the
substrate stays in pre-L1-6 mode (every enabled rule passes
through) until the operator activates L1-6 by placing the
pubkey on disk or setting AI_MEMORY_OPERATOR_PUBKEY.
Operators running the install-script default deploy who want
strict enforcement BEFORE the operator pubkey lands set this
to true — the daemon will then surface a clear error
message naming the missing pubkey path.
Trait Implementations§
Source§impl Clone for GovernanceConfig
impl Clone for GovernanceConfig
Source§fn clone(&self) -> GovernanceConfig
fn clone(&self) -> GovernanceConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GovernanceConfig
impl Debug for GovernanceConfig
Source§impl Default for GovernanceConfig
impl Default for GovernanceConfig
Source§fn default() -> GovernanceConfig
fn default() -> GovernanceConfig
Source§impl<'de> Deserialize<'de> for GovernanceConfig
impl<'de> Deserialize<'de> for GovernanceConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for GovernanceConfig
Source§impl PartialEq for GovernanceConfig
impl PartialEq for GovernanceConfig
Source§fn eq(&self, other: &GovernanceConfig) -> bool
fn eq(&self, other: &GovernanceConfig) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for GovernanceConfig
impl Serialize for GovernanceConfig
impl StructuralPartialEq for GovernanceConfig
Auto Trait Implementations§
impl Freeze for GovernanceConfig
impl RefUnwindSafe for GovernanceConfig
impl Send for GovernanceConfig
impl Sync for GovernanceConfig
impl Unpin for GovernanceConfig
impl UnsafeUnpin for GovernanceConfig
impl UnwindSafe for GovernanceConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more