server

package
v1.64.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 27, 2026 License: Apache-2.0 Imports: 19 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL