INNER CODE UNIT · Go

init

kubermatic/kubermatic · cmd/alertmanager-authorization-server/main.go:54

func init() {
	utilruntime.Must(kubermaticv1.AddToScheme(scheme))
}

type authorizationServer struct {
	listenAddress   string
	authHeaderName  string
	orgIDHeaderName string

	client ctrlruntimeclient.Reader
	log    *zap.SugaredLogger
}

func (s *authorizationServer) Check(ctx context.Context, req *authv3.CheckRequest) (*authv3.CheckResponse, error) {
	log := s.log.With("reqid", req.Attributes.Request.Http.Id)

	userEmail, ok := req.Attributes.Request.Http.Headers[s.authHeaderName]
	if !ok {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…