Documentation
¶
Overview ¶
Package server implements the sansshell 'Mpa' service.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // MaxMessageBytes bounds the encoded size of a single stored MPA request. // The payload is a caller-controlled google.protobuf.Any, so without a cap // a single request could pin a large amount of heap in the server. Binding // this to a flag is often useful. A value <= 0 disables the per-request // check. MaxMessageBytes = 1 << 20 // 1 MiB // MaxTotalBytes bounds the total encoded size of all stored MPA requests. // Combined with the per-request cap this keeps heap usage bounded even // under a flood of large-but-individually-acceptable payloads. Binding this // to a flag is often useful. A value <= 0 disables total-byte accounting // and eviction. MaxTotalBytes = 64 << 20 // 64 MiB )
Functions ¶
func ServerMPAAuthzHook ¶
func ServerMPAAuthzHook() rpcauth.RPCAuthzHook
ServerMPAAuthzHook populates approver information based on an internal MPA store.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.