pub trait TerminalAuthz<K: ResourceKey> {
// Required method
fn authorize_read(&self, key: &K, watcher: &str) -> bool;
}Expand description
Authorization hook for a late read of a retained terminal value. The
late-watcher file read must enforce the same MAC as the subscribe; until
EV4 (#604) wires real MAC this is fail-closed — DenyAllTerminalAuthz
denies every late read, so a late watcher cannot observe a retained value
yet. An EARLY watcher (one that subscribes before the edge) is unaffected:
it receives the live edge through the normal subscribe path (whose authz is
separate).
Required Methods§
Authorize watcher reading the retained terminal for key.