Documentation
¶
Overview ¶
Package gate is jess's preventive control: a fail-closed tool gate. Omitting an approver does not mean allow-all; it means deny anything not declared safe. Permissiveness is opt-in (AllowAll) and greppable.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Policy ¶
type Policy struct {
Approver Approver
Audit ledger.Sink
AgentPath string
// RunID and RequestRef tie a denied non-safe attempt to its run and request
// for the recordDeniedAction chain entry. Both are nil-safe: when unset the
// recorded Event simply omits the run id and the request ref. Wired by the
// audit middleware (Task 9/10); the gate itself works without them.
RunID func() string
RequestRef func() ledger.Ref
}
Policy configures the default gate.
Click to show internal directories.
Click to hide internal directories.