io.k8s.api.authorization.v1

Members list

Type members

Classlikes

LocalSubjectAccessReview checks whether or not a user or group can perform an action in a given namespace.

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.

Attributes

Companion
object
Source
LocalSubjectAccessReview.scala
Supertypes
trait KObject
trait Product
trait Equals
trait Serializable
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
LocalSubjectAccessReview.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
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

Attributes

Companion
object
Source
NonResourceAttributes.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
NonResourceAttributes.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
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

Attributes

Companion
object
Source
NonResourceRule.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
NonResourceRule.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
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

Attributes

Companion
object
Source
ResourceAttributes.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
ResourceAttributes.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
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.

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.

Attributes

Companion
object
Source
ResourceRule.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object ResourceRule

Attributes

Companion
class
Source
ResourceRule.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

SelfSubjectAccessReview checks whether or the current user 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

Attributes

Companion
object
Source
SelfSubjectAccessReview.scala
Supertypes
trait KObject
trait Product
trait Equals
trait Serializable
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
SelfSubjectAccessReview.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
final case class SelfSubjectAccessReviewSpec(nonResourceAttributes: Option[NonResourceAttributes], resourceAttributes: Option[ResourceAttributes])

SelfSubjectAccessReviewSpec is a description of the access request.

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

Attributes

Companion
object
Source
SelfSubjectAccessReviewSpec.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
SelfSubjectAccessReviewSpec.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

SelfSubjectRulesReview enumerates the set of actions the current user can perform within a namespace.

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.

Attributes

Companion
object
Source
SelfSubjectRulesReview.scala
Supertypes
trait KObject
trait Product
trait Equals
trait Serializable
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
SelfSubjectRulesReview.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
final case class SelfSubjectRulesReviewSpec(namespace: Option[String])

SelfSubjectRulesReviewSpec defines the specification for SelfSubjectRulesReview.

SelfSubjectRulesReviewSpec defines the specification for SelfSubjectRulesReview.

Attributes

Companion
object
Source
SelfSubjectRulesReviewSpec.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
SelfSubjectRulesReviewSpec.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

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.

Attributes

Companion
object
Source
SubjectAccessReview.scala
Supertypes
trait KObject
trait Product
trait Equals
trait Serializable
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
SubjectAccessReview.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
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.

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

Attributes

Companion
object
Source
SubjectAccessReviewSpec.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
SubjectAccessReviewSpec.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
final case class SubjectAccessReviewStatus(allowed: Boolean, denied: Option[Boolean], evaluationError: Option[String], reason: Option[String])

SubjectAccessReviewStatus

SubjectAccessReviewStatus

Attributes

Companion
object
Source
SubjectAccessReviewStatus.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
SubjectAccessReviewStatus.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
final case class SubjectRulesReviewStatus(incomplete: Boolean, nonResourceRules: Seq[NonResourceRule], resourceRules: Seq[ResourceRule], evaluationError: Option[String])

SubjectRulesReviewStatus contains the result of a rules check.

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.

Attributes

Companion
object
Source
SubjectRulesReviewStatus.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
SubjectRulesReviewStatus.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type