internal

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2025 License: Apache-2.0 Imports: 17 Imported by: 0

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 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

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