Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FromMetadata ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is an implementation of the ExternalProcessor gRPC service. See https://www.envoyproxy.io/docs/envoy/latest/configuration/http/http_filters/ext_proc_filter Server will check the provided metadata for the policies to enforce if not set explicitly. Server requires some runtime state to evaluate the lbac.Policies against. Metadata is checked under the lbac.DefaultMetadataNamespace key and the lbac.DefaultPolicySubKey sub-key. The server will expect the state to be passed in the metadata under the lbac.DefaultStateMetadataNamespace key and the lbac.DefaultStateSubKey sub-key. Under the state key, the server expects a struct with the following fields: - lbac.DefaultStateKey - lbac. This will be used as a reverse lookup to get the state from the metadata. Server
type ServerConfig ¶
type ServerConfig struct { // Policies is a list of policies to enforce. // If not set, the server will expect the policies to be passed in the metadata. Policies lbac.Policies }
ServerConfig is the configuration for the server.