authz

package
v0.0.0-...-a0e7801 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Enforce        bool
	ExtractionKits []extractor.ExtractorKit
}

type ExtAuthZFilter

type ExtAuthZFilter struct {
	// contains filtered or unexported fields
}

ExtAuthZFilter is an implementation of the Envoy AuthZ filter.

func NewExtAuthZFilter

func NewExtAuthZFilter(config Config, c *client.OpenFgaClient, logger logger.Logger) *ExtAuthZFilter

NewExtAuthZFilter creates a new ExtAuthZFilter

func (ExtAuthZFilter) Check

func (e ExtAuthZFilter) Check(ctx context.Context, req *envoy.CheckRequest) (response *envoy.CheckResponse, err error)

Check the access decision based on the incoming request

func (ExtAuthZFilter) Register

func (e ExtAuthZFilter) Register(server *grpc.Server)

type NoopFilter

type NoopFilter struct{}

NoopFilter is a noop implementation of the Envoy AuthZ filter.

func (NoopFilter) Check

func (e NoopFilter) Check(ctx context.Context, req *envoy.CheckRequest) (response *envoy.CheckResponse, err error)

func (NoopFilter) Register

func (e NoopFilter) Register(server *grpc.Server)

Jump to

Keyboard shortcuts

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