extauth

package
v0.37.3 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2026 License: Apache-2.0 Imports: 50 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	// DefaultListenAddr is the default gRPC listen address for ext-auth.
	DefaultListenAddr = ":18081"
	// DefaultNamespace is the default namespace for authorized resources.
	DefaultNamespace = "default"
	// DefaultMCPProbeInterval bounds how often MCP health is refreshed.
	DefaultMCPProbeInterval = time.Minute * 2
	// DefaultMCPProbeTimeout bounds one end-to-end MCP probe.
	DefaultMCPProbeTimeout = 15 * time.Second
)

Variables

This section is empty.

Functions

func Serve

func Serve(ctx context.Context, cfg Config) error

Serve starts the Envoy-compatible ext-auth gRPC service.

Types

type Config

type Config struct {
	Addr                    string
	Namespace               string
	OpenBaoAddr             string
	OpenBaoSecretMountPath  string
	OpenBaoK8sAuthRole      string
	OpenBaoK8sAuthMountPath string
	OpenBaoK8sAuthTokenPath string
	MCPProbeInterval        time.Duration
	MCPProbeTimeout         time.Duration
	DelegationEnabled       bool
}

Config describes how to start the ext-auth gRPC service.

type Service

type Service struct {
	authv3.UnimplementedAuthorizationServer
	// contains filtered or unexported fields
}

Service implements Envoy ext_authz for workload authorization and credential injection.

func (*Service) Check

Check authorizes one gateway request and supplies upstream credentials.

Jump to

Keyboard shortcuts

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