subjectaccessreview

package
v0.0.0-...-283a394 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Copyright Jetstack Ltd. See LICENSE for details.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorNoImpersonationUserFound = errors.New("no Impersonation-User header found for request")
)

Functions

This section is empty.

Types

type SubjectAccessReview

type SubjectAccessReview struct {
	// contains filtered or unexported fields
}

structure for storing the review data

func New

create a new SubjectAccessReview structure

func (*SubjectAccessReview) CheckAuthorizedForImpersonation

func (subjectAccessReview *SubjectAccessReview) CheckAuthorizedForImpersonation(req *http.Request, requester user.Info) (user.Info, error)

checks the request for impersonation headers, validates that the user is able to perform that impersonation, and builds the target object

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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