pub struct WebhookTransportConfig {
pub enabled: bool,
pub bind: String,
pub port: u16,
pub hmac_secret_ref: String,
}Expand description
HTTP webhook receiver — Track C5.
External systems POST SharePayload-shaped JSON to
http://<bind>:<port>/agents/<slug>/webhook with an
X-Mur-Signature: sha256=<hex> header carrying an HMAC-SHA256
over the raw body. The HMAC secret is stored in the OS keychain
via SecretRef (same pattern as Telegram bot tokens in C2);
hmac_secret_ref is the service:account lookup key.
bind defaults to 127.0.0.1 so a fresh enable doesn’t
inadvertently expose the agent to the local network. Users who
want VPN / Tailscale reachability override to 0.0.0.0 or the
VPN interface address explicitly.
Fields§
§enabled: bool§bind: String§port: u16§hmac_secret_ref: Stringservice:account key into the OS keychain. Empty string
when enabled = false; required (and validated) at startup
when enabled.
Trait Implementations§
Source§impl Clone for WebhookTransportConfig
impl Clone for WebhookTransportConfig
Source§fn clone(&self) -> WebhookTransportConfig
fn clone(&self) -> WebhookTransportConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WebhookTransportConfig
impl Debug for WebhookTransportConfig
Source§impl Default for WebhookTransportConfig
impl Default for WebhookTransportConfig
Source§impl<'de> Deserialize<'de> for WebhookTransportConfig
impl<'de> Deserialize<'de> for WebhookTransportConfig
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for WebhookTransportConfig
impl PartialEq for WebhookTransportConfig
Source§fn eq(&self, other: &WebhookTransportConfig) -> bool
fn eq(&self, other: &WebhookTransportConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for WebhookTransportConfig
impl Serialize for WebhookTransportConfig
impl StructuralPartialEq for WebhookTransportConfig
Auto Trait Implementations§
impl Freeze for WebhookTransportConfig
impl RefUnwindSafe for WebhookTransportConfig
impl Send for WebhookTransportConfig
impl Sync for WebhookTransportConfig
impl Unpin for WebhookTransportConfig
impl UnsafeUnpin for WebhookTransportConfig
impl UnwindSafe for WebhookTransportConfig
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
Mutably borrows from an owned value. Read more