auth

package
v1.14.0-snapshot.1 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2023 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cell = cell.Module(
	"auth-manager",
	"Authenticates requests as demanded by policy",

	spire.Cell,

	cell.Provide(newManager),
	cell.ProvidePrivate(

		newNullAuthHandler,

		newCtMapAuthenticator,

		newMTLSAuthHandler,
	),
	cell.Config(config{MeshAuthMonitorQueueSize: 1024}),
	cell.Config(MTLSConfig{}),
)

Cell provides the auth.Manager which is responsible for request authentication. It does this, by implementing consumer.MonitorConsumer and reacting upon monitor.DropNotify events with reason flow.DropReason_AUTH_REQUIRED. The actual authentication gets performed by an auth handler which is responsible for the configured auth type on the corresponding policy.

Functions

This section is empty.

Types

type MTLSConfig

type MTLSConfig struct {
	MTLSListenerPort int `mapstructure:"mesh-auth-mtls-listener-port"`
}

func (MTLSConfig) Flags

func (cfg MTLSConfig) Flags(flags *pflag.FlagSet)

type Manager

type Manager interface {
	consumer.MonitorConsumer
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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