authorization

package
v0.13.9 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Paths = []string{
	"/apis/authorization.k8s.io/v1/selfsubjectaccessreviews",
	"/apis/authorization.k8s.io/v1/selfsubjectrulesreviews",
}

Functions

func MutateAuthorization

func MutateAuthorization(proxyClusterScoped bool, proxyTenants []*tenant.ProxyTenant, namespacedResources sets.Set[string], obj *runtime.Object, gvk schema.GroupVersionKind) error

MutateAuthorization augments the API server's answer to self review requests (SelfSubjectAccessReview / SelfSubjectRulesReview) with the capabilities capsule-proxy adds on top of native RBAC, so that clients such as `kubectl auth can-i` reflect what actually works through the proxy.

func NamespacedResourceKey added in v0.13.8

func NamespacedResourceKey(group, resource string) string

NamespacedResourceKey builds the lookup key identifying a namespaced resource that capsule-proxy proxies. It matches the (group, plural resource) pair carried by SelfSubjectAccessReview resource attributes.

Types

This section is empty.

Jump to

Keyboard shortcuts

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