kubernetes

package
v1.48.1 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2024 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	auth.UnimplementedAuthenticationMethodKubernetesServiceServer
	// contains filtered or unexported fields
}

Server is the core server-side implementation of the "kubernetes" authentication method.

The method allows services deployed into the same Kubernetes cluster as Flipt to leverage their service account token in order to obtain access to Flipt itself. When enabled, this authentication method grants any service in the same cluster access to Flipt.

func New

func New(logger *zap.Logger, store storageauth.Store, config config.AuthenticationConfig) (*Server, error)

New constructs a new Server instance based on the provided logger, store and configuration.

func (*Server) RegisterGRPC

func (s *Server) RegisterGRPC(srv *grpc.Server)

RegisterGRPC registers the server instnace on the provided gRPC server.

func (*Server) SkipsAuthentication

func (s *Server) SkipsAuthentication(ctx context.Context) bool

func (*Server) VerifyServiceAccount

VerifyServiceAccount takes a service account token, configured by a kubernetes environment, validates it's authenticity and (if valid) creates a Flipt client token and returns it. The returned client token is valid for the lifetime of the service account JWT. The token tracks the source service account and pod identity of the provided token.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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