Skip to content

authorization.v1.selfSubjectAccessReviewSpec

"SelfSubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set"

Index

Fields

obj nonResourceAttributes

"NonResourceAttributes includes the authorization attributes available for non-resource requests to the Authorizer interface"

fn nonResourceAttributes.withPath

withPath(path)

"Path is the URL path of the request"

fn nonResourceAttributes.withVerb

withVerb(verb)

"Verb is the standard HTTP verb"

obj resourceAttributes

"ResourceAttributes includes the authorization attributes available for resource requests to the Authorizer interface"

fn resourceAttributes.withGroup

withGroup(group)

"Group is the API Group of the Resource. \"*\" means all."

fn resourceAttributes.withName

withName(name)

"Name is the name of the resource being requested for a \"get\" or deleted for a \"delete\". \"\" (empty) means all."

fn resourceAttributes.withNamespace

withNamespace(namespace)

"Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces \"\" (empty) is defaulted for LocalSubjectAccessReviews \"\" (empty) is empty for cluster-scoped resources \"\" (empty) means \"all\" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview"

fn resourceAttributes.withResource

withResource(resource)

"Resource is one of the existing resource types. \"*\" means all."

fn resourceAttributes.withSubresource

withSubresource(subresource)

"Subresource is one of the existing resource types. \"\" means none."

fn resourceAttributes.withVerb

withVerb(verb)

"Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. \"*\" means all."

fn resourceAttributes.withVersion

withVersion(version)

"Version is the API Version of the Resource. \"*\" means all."