pub struct BrokeredSecret {
pub id: String,
pub host: String,
pub header: String,
pub source: SecretSource,
pub plain_http: bool,
pub port: Option<u16>,
}Expand description
A secret the egress proxy or Claude Code’s own broker injects (ADR-020).
A copy of crate::Secret: the IR carries only the fields OS backends
need, so a backend can read ir.secrets without the policy. Its Debug
output names only the id, as for crate::Secret.
Fields§
§id: StringStable identifier (lowercase letters, digits and -).
host: StringThe one host whose requests receive the secret, lowercase DNS or IPv4.
header: StringThe request header the secret goes in (Authorization, X-Api-Key).
source: SecretSourceWhere OpenMoat reads the value.
plain_http: boolAlso inject into plain-HTTP requests; off unless the policy sets it.
port: Option<u16>The one port of the plain-HTTP requests that get the value, when the policy names one (80 otherwise).
Trait Implementations§
Source§impl Clone for BrokeredSecret
impl Clone for BrokeredSecret
Source§impl Debug for BrokeredSecret
impl Debug for BrokeredSecret
impl Eq for BrokeredSecret
Source§impl PartialEq for BrokeredSecret
impl PartialEq for BrokeredSecret
Source§impl Serialize for BrokeredSecret
impl Serialize for BrokeredSecret
impl StructuralPartialEq for BrokeredSecret
Auto Trait Implementations§
impl Freeze for BrokeredSecret
impl RefUnwindSafe for BrokeredSecret
impl Send for BrokeredSecret
impl Sync for BrokeredSecret
impl Unpin for BrokeredSecret
impl UnsafeUnpin for BrokeredSecret
impl UnwindSafe for BrokeredSecret
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