authorizer

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAPIExportsContentAuthorizer

func NewAPIExportsContentAuthorizer(delegate authorizer.Authorizer, kubeClusterClient kcpkubernetesclientset.ClusterInterface) authorizer.Authorizer

NewAPIExportsContentAuthorizer creates a new authorizer that checks if the user has access to the `apiexports/content` subresource using the same verb as the requested resource. The given kube cluster client is used to execute a SAR request against the cluster of the current in-flight API export. If the SAR decision allows access, the given delegate authorizer is executed to proceed the authorizer chain, else access is denied.

func NewMaximalPermissionAuthorizer

func NewMaximalPermissionAuthorizer(deepSARClient kcpkubernetesclientset.ClusterInterface, apiExportInformer apisv1alpha1informers.APIExportClusterInformer) authorizer.Authorizer

NewMaximalPermissionAuthorizer creates an authorizer that checks the maximal permission policy for the requested resource if the resource is a claimed resource in the requested API export. The check is omitted if the requested resource itself is not associated with an API export.

If the request is a cluster request the authorizer skips authorization if the request is not for a bound resource. If the request is a wildcard request this check is skipped because no unique API binding can be determined.

Types

This section is empty.

Jump to

Keyboard shortcuts

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