pub struct AccessRequest {
pub time: SystemTime,
pub source_ip: IpAddr,
pub server: Name,
pub user: Name,
pub command: Option<Command>,
pub public_key: String,
pub mode: Mode,
}Expand description
Everything the verifier knows about an access attempt.
Each field becomes a Datalog fact (see crate::vocabulary); the token
and the verifier policies decide whether the attempt is allowed.
Fields§
§time: SystemTimeWhen the request is evaluated.
source_ip: IpAddrClient address as seen by the verifier (never taken from the client’s own claims).
server: NameServer name, as in token rights (not a network address).
user: NameAccount on that server.
command: Option<Command>Command the session will be restricted to, if any.
public_key: StringOpenSSH fingerprint (SHA256:...) of the holder’s key: the one
certified, or the one that logged in to the bastion (not the
bastion’s own key towards the server).
mode: ModeHow access will be enforced.
Trait Implementations§
Source§impl Clone for AccessRequest
impl Clone for AccessRequest
Auto Trait Implementations§
impl Forget for AccessRequest
impl Freeze for AccessRequest
impl RefUnwindSafe for AccessRequest
impl Send for AccessRequest
impl Sync for AccessRequest
impl Unpin for AccessRequest
impl UnsafeUnpin for AccessRequest
impl UnwindSafe for AccessRequest
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