Documentation ¶
Overview ¶
Package authorize provides authz checks for incoming or returning connections.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMonitorConnectionServer ¶
func NewMonitorConnectionServer(opts ...Option) networkservice.MonitorConnectionServer
NewMonitorConnectionServer - returns a new authorization networkservicemesh.MonitorConnectionServer
Types ¶
type MonitorOpaInput ¶
type MonitorOpaInput struct { SpiffeIDConnectionMap map[string][]string `json:"spiffe_id_connection_map"` SelectorConnectionIds []string `json:"selector_connection_ids"` ServiceSpiffeID string `json:"service_spiffe_id"` }
MonitorOpaInput - used to pass complex structure to monitor policies
type Option ¶
type Option func(*options)
Option is authorization option for monitor connection server
func WithSpiffeIDConnectionMap ¶
func WithSpiffeIDConnectionMap(s *genericsync.Map[spiffeid.ID, *genericsync.Map[string, struct{}]]) Option
WithSpiffeIDConnectionMap sets map to keep spiffeIDConnectionMap to authorize connections with MonitorServer
Click to show internal directories.
Click to hide internal directories.