pub struct A2aServerConfig {Show 14 fields
pub enabled: bool,
pub host: String,
pub port: u16,
pub public_url: String,
pub auth_token: Option<String>,
pub rate_limit: u32,
pub require_tls: bool,
pub ssrf_protection: bool,
pub max_body_size: usize,
pub drain_timeout_ms: u64,
pub require_auth: bool,
pub ibct_keys: Vec<IbctKeyConfig>,
pub ibct_signing_key_vault_ref: Option<String>,
pub ibct_ttl_secs: u64,
}Fields§
§enabled: bool§host: String§port: u16§public_url: String§auth_token: Option<String>§rate_limit: u32§require_tls: bool§ssrf_protection: bool§max_body_size: usize§drain_timeout_ms: u64§require_auth: boolWhen true, all requests are rejected with 401 if no auth_token is configured.
Default false for backward compatibility — existing deployments without a token
continue to operate. Set to true in production when authentication is mandatory.
ibct_keys: Vec<IbctKeyConfig>IBCT signing keys for per-task delegation scoping.
When non-empty, all A2A task requests must include a valid X-Zeph-IBCT header
signed with one of these keys. Multiple keys allow key rotation without downtime.
ibct_signing_key_vault_ref: Option<String>Vault key name to resolve the primary IBCT signing key at startup (MF-3 fix).
When set, the vault key is resolved at startup and used to construct an
IbctKey with key_id = "primary". Takes precedence over ibct_keys[0] if both
are set. Example: "ZEPH_A2A_IBCT_KEY".
ibct_ttl_secs: u64TTL (seconds) for issued IBCT tokens. Default: 300 (5 minutes).
Trait Implementations§
Source§impl Debug for A2aServerConfig
impl Debug for A2aServerConfig
Source§impl Default for A2aServerConfig
impl Default for A2aServerConfig
Source§fn default() -> A2aServerConfig
fn default() -> A2aServerConfig
Source§impl<'de> Deserialize<'de> for A2aServerConfig
impl<'de> Deserialize<'de> for A2aServerConfig
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<A2aServerConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<A2aServerConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for A2aServerConfig
impl Serialize for A2aServerConfig
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Auto Trait Implementations§
impl Freeze for A2aServerConfig
impl RefUnwindSafe for A2aServerConfig
impl Send for A2aServerConfig
impl Sync for A2aServerConfig
impl Unpin for A2aServerConfig
impl UnsafeUnpin for A2aServerConfig
impl UnwindSafe for A2aServerConfig
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> 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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request