io.k8s.api.authorization.v1

Type members

Classlikes

LocalSubjectAccessReview checks whether or not a user or group can perform an action in a given namespace. Having a namespace scoped resource makes it much easier to grant namespace scoped policy that includes permissions checking.

LocalSubjectAccessReview checks whether or not a user or group can perform an action in a given namespace. Having a namespace scoped resource makes it much easier to grant namespace scoped policy that includes permissions checking.

Companion:
object
Source:
LocalSubjectAccessReview.scala
final case class NonResourceAttributes(path: Option[String], verb: Option[String])

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

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

Companion:
object
Source:
NonResourceAttributes.scala
final case class NonResourceRule(verbs: Seq[String], nonResourceURLs: Option[Seq[String]])

NonResourceRule holds information that describes a rule for the non-resource

NonResourceRule holds information that describes a rule for the non-resource

Companion:
object
Source:
NonResourceRule.scala
final case class ResourceAttributes(name: Option[String], version: Option[String], resource: Option[String], verb: Option[String], group: Option[String], subresource: Option[String], namespace: Option[String])

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

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

Companion:
object
Source:
ResourceAttributes.scala
final case class ResourceRule(verbs: Seq[String], apiGroups: Option[Seq[String]], resourceNames: Option[Seq[String]], resources: Option[Seq[String]])

ResourceRule is the list of actions the subject is allowed to perform on resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete.

ResourceRule is the list of actions the subject is allowed to perform on resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete.

Companion:
object
Source:
ResourceRule.scala
Companion:
class
Source:
ResourceRule.scala

SelfSubjectAccessReview checks whether or the current user can perform an action. Not filling in a spec.namespace means "in all namespaces". Self is a special case, because users should always be able to check whether they can perform an action

SelfSubjectAccessReview checks whether or the current user can perform an action. Not filling in a spec.namespace means "in all namespaces". Self is a special case, because users should always be able to check whether they can perform an action

Companion:
object
Source:
SelfSubjectAccessReview.scala
final case class SelfSubjectAccessReviewSpec(nonResourceAttributes: Option[NonResourceAttributes], resourceAttributes: Option[ResourceAttributes])

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

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

Companion:
object
Source:
SelfSubjectAccessReviewSpec.scala

SelfSubjectRulesReview enumerates the set of actions the current user can perform within a namespace. The returned list of actions may be incomplete depending on the server's authorization mode, and any errors experienced during the evaluation. SelfSubjectRulesReview should be used by UIs to show/hide actions, or to quickly let an end user reason about their permissions. It should NOT Be used by external systems to drive authorization decisions as this raises confused deputy, cache lifetime/revocation, and correctness concerns. SubjectAccessReview, and LocalAccessReview are the correct way to defer authorization decisions to the API server.

SelfSubjectRulesReview enumerates the set of actions the current user can perform within a namespace. The returned list of actions may be incomplete depending on the server's authorization mode, and any errors experienced during the evaluation. SelfSubjectRulesReview should be used by UIs to show/hide actions, or to quickly let an end user reason about their permissions. It should NOT Be used by external systems to drive authorization decisions as this raises confused deputy, cache lifetime/revocation, and correctness concerns. SubjectAccessReview, and LocalAccessReview are the correct way to defer authorization decisions to the API server.

Companion:
object
Source:
SelfSubjectRulesReview.scala
final case class SelfSubjectRulesReviewSpec(namespace: Option[String])

SelfSubjectRulesReviewSpec defines the specification for SelfSubjectRulesReview.

SelfSubjectRulesReviewSpec defines the specification for SelfSubjectRulesReview.

Companion:
object
Source:
SelfSubjectRulesReviewSpec.scala

SubjectAccessReview checks whether or not a user or group can perform an action.

SubjectAccessReview checks whether or not a user or group can perform an action.

Companion:
object
Source:
SubjectAccessReview.scala
final case class SubjectAccessReviewSpec(groups: Option[Seq[String]], resourceAttributes: Option[ResourceAttributes], uid: Option[String], extra: Option[Map[String, Seq[String]]], user: Option[String], nonResourceAttributes: Option[NonResourceAttributes])

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

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

Companion:
object
Source:
SubjectAccessReviewSpec.scala
final case class SubjectAccessReviewStatus(allowed: Boolean, denied: Option[Boolean], evaluationError: Option[String], reason: Option[String])

SubjectAccessReviewStatus

SubjectAccessReviewStatus

Companion:
object
Source:
SubjectAccessReviewStatus.scala
final case class SubjectRulesReviewStatus(incomplete: Boolean, nonResourceRules: Seq[NonResourceRule], resourceRules: Seq[ResourceRule], evaluationError: Option[String])

SubjectRulesReviewStatus contains the result of a rules check. This check can be incomplete depending on the set of authorizers the server is configured with and any errors experienced during evaluation. Because authorization rules are additive, if a rule appears in a list it's safe to assume the subject has that permission, even if that list is incomplete.

SubjectRulesReviewStatus contains the result of a rules check. This check can be incomplete depending on the set of authorizers the server is configured with and any errors experienced during evaluation. Because authorization rules are additive, if a rule appears in a list it's safe to assume the subject has that permission, even if that list is incomplete.

Companion:
object
Source:
SubjectRulesReviewStatus.scala