internal

package
v1.1.9 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2026 License: Apache-2.0 Imports: 17 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 (
	ScopeOIDC = "openid"

	ClientAuthenticationBasic      = "client_secret_basic"
	ClientAuthenticationPost       = "client_secret_post"
	ClientAuthenticationJWT        = "client_secret_jwt"
	ClientAuthenticationPrivateKey = "private_key_jwt"
	ClientAuthenticationNone       = "none"
)
View Source
const (
	Authz    = "authz"
	Config   = "config"
	Default  = "default"
	Health   = "health"
	IDP      = "idp"
	JWKS     = "jwks"
	Requests = "requests"
	Server   = "server"
	Session  = "session"
	K8s      = "k8s"
	Secrets  = "secrets"
	Watch    = "watch"
)

Variables

View Source
var (
	ErrInvalidPath         = errors.New("invalid path")
	ErrInvalidOIDCOverride = errors.New("invalid OIDC override")
	ErrDuplicateOIDCConfig = errors.New("duplicate OIDC configuration")
	ErrMultipleOIDCConfig  = errors.New("multiple OIDC configurations")
	ErrInvalidURL          = errors.New("invalid URL")
	ErrRequiredURL         = errors.New("required URL")
	ErrHealthPortInUse     = errors.New("health port is already in use by listen port")
	ErrMustNotBeRootPath   = errors.New("must not be root path")
	ErrMustBeDifferentPath = errors.New("must be different path")
)
View Source
var ErrInvalidLogLevel = errors.New("invalid log level")

ErrInvalidLogLevel is returned when the configured log level is invalid.

Functions

func BoolStrValue

func BoolStrValue(v *structpb.Value) bool

BoolStrValue returns the bool value of a structpb.Value. It expects the input to be a structpb.Value of type string or bool that represents a boolean value. This method is a convenience method for backwards-compatibility with the previous versions of the authservice.

func ConfigToJSONString

func ConfigToJSONString(c *configv1.Config) string

func IsSentinelURL added in v1.1.9

func IsSentinelURL(uri string) bool

IsSentinelURL reports whether the redis server URI selects the Sentinel-aware client.

func LogFIPS

func LogFIPS()

LogFIPS logs whether FIPS is enabled or not.

func Logger

func Logger(name string) telemetry.Logger

Logger gets the given logging scope, or return the Noop logger if no scope has been registered with the given name.

func NewLogSystem

func NewLogSystem(log telemetry.Logger, cfg *configv1.Config) run.Unit

NewLogSystem returns a new run.Unit that sets up the logging system.

func NewLogrAdapter

func NewLogrAdapter(s telemetry.Logger) logr.Logger

NewLogrAdapter creates a new logger to bridge the logr.Logger to our logging system

func ParseSentinelURL added in v1.1.9

func ParseSentinelURL(uri string) (*redis.FailoverOptions, error)

ParseSentinelURL parses a redis+sentinel:// or rediss+sentinel:// uri into FailoverOptions. Aside from the scheme, the uri follows the form accepted by redis.ParseFailoverURL, e.g. redis+sentinel://sentinel-user:sentinel-pass@host1:26379/0?master_name=mymaster&addr=host2:26379

Types

type LocalConfigFile

type LocalConfigFile struct {
	Config configv1.Config
	// contains filtered or unexported fields
}

LocalConfigFile is a run.Config that loads the configuration file.

func (*LocalConfigFile) FlagSet

func (l *LocalConfigFile) FlagSet() *run.FlagSet

FlagSet returns the flags used to customize the config file location.

func (*LocalConfigFile) Name

func (l *LocalConfigFile) Name() string

Name returns the name of the unit in the run.Group.

func (*LocalConfigFile) Validate

func (l *LocalConfigFile) Validate() error

Validate and load the configuration file.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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