Kubernetes.Api.Authorization.V1Beta1
- Package
- purescript-kubernetes
- Repository
- hoodunit/purescript-kubernetes
#LocalSubjectAccessReview Source
newtype LocalSubjectAccessReview
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.
Fields:
metadata
spec
: Spec holds information about the request being evaluated. spec.namespace must be equal to the namespace you made the request against. If empty, it is defaulted.status
: Status is filled in by the server and indicates whether the request is allowed or not
Constructors
LocalSubjectAccessReview { metadata :: Maybe ObjectMeta, spec :: Maybe SubjectAccessReviewSpec, status :: Maybe SubjectAccessReviewStatus }
Instances
#NonResourceAttributes Source
newtype NonResourceAttributes
NonResourceAttributes includes the authorization attributes available for non-resource requests to the Authorizer interface
Fields:
path
: Path is the URL path of the requestverb
: Verb is the standard HTTP verb
Constructors
NonResourceAttributes { path :: Maybe String, verb :: Maybe String }
Instances
#NonResourceRule Source
newtype NonResourceRule
NonResourceRule holds information that describes a rule for the non-resource
Fields:
nonResourceURLs
: NonResourceURLs is a set of partial urls that a user should have access to. s are allowed, but only as the full, final step in the path. "" means all.verbs
: Verb is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options. "*" means all.
Constructors
Instances
#ResourceAttributes Source
newtype ResourceAttributes
ResourceAttributes includes the authorization attributes available for resource requests to the Authorizer interface
Fields:
group
: Group is the API Group of the Resource. "*" means all.name
: Name is the name of the resource being requested for a "get" or deleted for a "delete". "" (empty) means all.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 SelfSubjectAccessReviewresource
: Resource is one of the existing resource types. "*" means all.subresource
: Subresource is one of the existing resource types. "" means none.verb
: Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. "*" means all.version
: Version is the API Version of the Resource. "*" means all.
Constructors
ResourceAttributes { group :: Maybe String, name :: Maybe String, namespace :: Maybe String, resource :: Maybe String, subresource :: Maybe String, verb :: Maybe String, version :: Maybe String }
Instances
#ResourceRule Source
newtype ResourceRule
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.
Fields:
apiGroups
: APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. "*" means all.resourceNames
: ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. "*" means all.resources
: Resources is a list of resources this rule applies to. "" means all in the specified apiGroups. "/foo" represents the subresource 'foo' for all resources in the specified apiGroups.verbs
: Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy. "*" means all.
Constructors
ResourceRule { apiGroups :: Maybe (Array String), resourceNames :: Maybe (Array String), resources :: Maybe (Array String), verbs :: Maybe (Array String) }
Instances
#SelfSubjectAccessReview Source
newtype SelfSubjectAccessReview
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
Fields:
metadata
spec
: Spec holds information about the request being evaluated. user and groups must be emptystatus
: Status is filled in by the server and indicates whether the request is allowed or not
Constructors
SelfSubjectAccessReview { metadata :: Maybe ObjectMeta, spec :: Maybe SelfSubjectAccessReviewSpec, status :: Maybe SubjectAccessReviewStatus }
Instances
#SelfSubjectAccessReviewSpec Source
newtype SelfSubjectAccessReviewSpec
SelfSubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set
Fields:
nonResourceAttributes
: NonResourceAttributes describes information for a non-resource access requestresourceAttributes
: ResourceAuthorizationAttributes describes information for a resource access request
Constructors
SelfSubjectAccessReviewSpec { nonResourceAttributes :: Maybe NonResourceAttributes, resourceAttributes :: Maybe ResourceAttributes }
Instances
#SelfSubjectRulesReview Source
newtype SelfSubjectRulesReview
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.
Fields:
metadata
spec
: Spec holds information about the request being evaluated.status
: Status is filled in by the server and indicates the set of actions a user can perform.
Constructors
SelfSubjectRulesReview { metadata :: Maybe ObjectMeta, spec :: Maybe SelfSubjectRulesReviewSpec, status :: Maybe SubjectRulesReviewStatus }
Instances
#SelfSubjectRulesReviewSpec Source
newtype SelfSubjectRulesReviewSpec
Fields:
namespace
: Namespace to evaluate rules for. Required.
Constructors
SelfSubjectRulesReviewSpec { namespace :: Maybe String }
Instances
#SubjectAccessReview Source
newtype SubjectAccessReview
SubjectAccessReview checks whether or not a user or group can perform an action.
Fields:
metadata
spec
: Spec holds information about the request being evaluatedstatus
: Status is filled in by the server and indicates whether the request is allowed or not
Constructors
SubjectAccessReview { metadata :: Maybe ObjectMeta, spec :: Maybe SubjectAccessReviewSpec, status :: Maybe SubjectAccessReviewStatus }
Instances
#SubjectAccessReviewSpec Source
newtype SubjectAccessReviewSpec
SubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set
Fields:
extra
: Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here.group
: Groups is the groups you're testing for.nonResourceAttributes
: NonResourceAttributes describes information for a non-resource access requestresourceAttributes
: ResourceAuthorizationAttributes describes information for a resource access requestuid
: UID information about the requesting user.user
: User is the user you're testing for. If you specify "User" but not "Group", then is it interpreted as "What if User were not a member of any groups
Constructors
SubjectAccessReviewSpec { extra :: Maybe (Object (Array String)), group :: Maybe (Array String), nonResourceAttributes :: Maybe NonResourceAttributes, resourceAttributes :: Maybe ResourceAttributes, uid :: Maybe String, user :: Maybe String }
Instances
#SubjectAccessReviewStatus Source
newtype SubjectAccessReviewStatus
SubjectAccessReviewStatus
Fields:
allowed
: Allowed is required. True if the action would be allowed, false otherwise.denied
: Denied is optional. True if the action would be denied, otherwise false. If both allowed is false and denied is false, then the authorizer has no opinion on whether to authorize the action. Denied may not be true if Allowed is true.evaluationError
: EvaluationError is an indication that some error occurred during the authorization check. It is entirely possible to get an error and be able to continue determine authorization status in spite of it. For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request.reason
: Reason is optional. It indicates why a request was allowed or denied.
Constructors
SubjectAccessReviewStatus { allowed :: Maybe Boolean, denied :: Maybe Boolean, evaluationError :: Maybe String, reason :: Maybe String }
Instances
#SubjectRulesReviewStatus Source
newtype SubjectRulesReviewStatus
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.
Fields:
evaluationError
: EvaluationError can appear in combination with Rules. It indicates an error occurred during rule evaluation, such as an authorizer that doesn't support rule evaluation, and that ResourceRules and/or NonResourceRules may be incomplete.incomplete
: Incomplete is true when the rules returned by this call are incomplete. This is most commonly encountered when an authorizer, such as an external authorizer, doesn't support rules evaluation.nonResourceRules
: NonResourceRules is the list of actions the subject is allowed to perform on non-resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete.resourceRules
: ResourceRules 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.
Constructors
SubjectRulesReviewStatus { evaluationError :: Maybe String, incomplete :: Maybe Boolean, nonResourceRules :: Maybe (Array NonResourceRule), resourceRules :: Maybe (Array ResourceRule) }
Instances
#getAPIResources Source
getAPIResources :: Config -> Aff (Either Status APIResourceList)
get available resources
- Modules
- Kubernetes.
Api. APIExtensions - Kubernetes.
Api. APIExtensions. V1Beta1 - Kubernetes.
Api. APIExtensions. V1Beta1. CustomResourceDefinition - Kubernetes.
Api. AdmissionRegistration - Kubernetes.
Api. AdmissionRegistration. V1Alpha1 - Kubernetes.
Api. AdmissionRegistration. V1Alpha1. InitializerConfiguration - Kubernetes.
Api. AdmissionRegistration. V1Beta1 - Kubernetes.
Api. AdmissionRegistration. V1Beta1. MutatingWebhookConfiguration - Kubernetes.
Api. AdmissionRegistration. V1Beta1. ValidatingWebhookConfiguration - Kubernetes.
Api. ApiRegistration - Kubernetes.
Api. ApiRegistration. V1Beta1 - Kubernetes.
Api. ApiRegistration. V1Beta1. APIService - Kubernetes.
Api. Apis - Kubernetes.
Api. Apps - Kubernetes.
Api. Apps. V1 - Kubernetes.
Api. Apps. V1. ControllerRevision - Kubernetes.
Api. Apps. V1. DaemonSet - Kubernetes.
Api. Apps. V1. Deployment - Kubernetes.
Api. Apps. V1. ReplicaSet - Kubernetes.
Api. Apps. V1. StatefulSet - Kubernetes.
Api. Apps. V1Beta1 - Kubernetes.
Api. Apps. V1Beta1. ControllerRevision - Kubernetes.
Api. Apps. V1Beta1. Deployment - Kubernetes.
Api. Apps. V1Beta1. DeploymentRollback - Kubernetes.
Api. Apps. V1Beta1. Scale - Kubernetes.
Api. Apps. V1Beta1. StatefulSet - Kubernetes.
Api. Apps. V1Beta2 - Kubernetes.
Api. Apps. V1Beta2. ControllerRevision - Kubernetes.
Api. Apps. V1Beta2. DaemonSet - Kubernetes.
Api. Apps. V1Beta2. Deployment - Kubernetes.
Api. Apps. V1Beta2. ReplicaSet - Kubernetes.
Api. Apps. V1Beta2. Scale - Kubernetes.
Api. Apps. V1Beta2. StatefulSet - Kubernetes.
Api. Authentication - Kubernetes.
Api. Authentication. V1 - Kubernetes.
Api. Authentication. V1. TokenReview - Kubernetes.
Api. Authentication. V1Beta1 - Kubernetes.
Api. Authentication. V1Beta1. TokenReview - Kubernetes.
Api. Authorization - Kubernetes.
Api. Authorization. V1 - Kubernetes.
Api. Authorization. V1. LocalSubjectAccessReview - Kubernetes.
Api. Authorization. V1. SelfSubjectAccessReview - Kubernetes.
Api. Authorization. V1. SelfSubjectRulesReview - Kubernetes.
Api. Authorization. V1. SubjectAccessReview - Kubernetes.
Api. Authorization. V1Beta1 - Kubernetes.
Api. Authorization. V1Beta1. LocalSubjectAccessReview - Kubernetes.
Api. Authorization. V1Beta1. SelfSubjectAccessReview - Kubernetes.
Api. Authorization. V1Beta1. SelfSubjectRulesReview - Kubernetes.
Api. Authorization. V1Beta1. SubjectAccessReview - Kubernetes.
Api. Autoscaling - Kubernetes.
Api. Autoscaling. V1 - Kubernetes.
Api. Autoscaling. V1. HorizontalPodAutoscaler - Kubernetes.
Api. Autoscaling. V1. Scale - Kubernetes.
Api. Autoscaling. V2Beta1 - Kubernetes.
Api. Autoscaling. V2Beta1. HorizontalPodAutoscaler - Kubernetes.
Api. Batch - Kubernetes.
Api. Batch. V1 - Kubernetes.
Api. Batch. V1. Job - Kubernetes.
Api. Batch. V1Beta1 - Kubernetes.
Api. Batch. V1Beta1. CronJob - Kubernetes.
Api. Batch. V2Alpha1 - Kubernetes.
Api. Batch. V2Alpha1. CronJob - Kubernetes.
Api. Certificates - Kubernetes.
Api. Certificates. V1Beta1 - Kubernetes.
Api. Certificates. V1Beta1. CertificateSigningRequest - Kubernetes.
Api. Core - Kubernetes.
Api. Core. V1 - Kubernetes.
Api. Core. V1. Binding - Kubernetes.
Api. Core. V1. ComponentStatus - Kubernetes.
Api. Core. V1. ConfigMap - Kubernetes.
Api. Core. V1. Endpoints - Kubernetes.
Api. Core. V1. Event - Kubernetes.
Api. Core. V1. LimitRange - Kubernetes.
Api. Core. V1. Namespace - Kubernetes.
Api. Core. V1. Node - Kubernetes.
Api. Core. V1. PersistentVolume - Kubernetes.
Api. Core. V1. PersistentVolumeClaim - Kubernetes.
Api. Core. V1. Pod - Kubernetes.
Api. Core. V1. PodTemplate - Kubernetes.
Api. Core. V1. ReplicationController - Kubernetes.
Api. Core. V1. ResourceQuota - Kubernetes.
Api. Core. V1. Secret - Kubernetes.
Api. Core. V1. Service - Kubernetes.
Api. Core. V1. ServiceAccount - Kubernetes.
Api. Events - Kubernetes.
Api. Events. Event - Kubernetes.
Api. Extensions - Kubernetes.
Api. Extensions. V1Beta1 - Kubernetes.
Api. Extensions. V1Beta1. DaemonSet - Kubernetes.
Api. Extensions. V1Beta1. Deployment - Kubernetes.
Api. Extensions. V1Beta1. DeploymentRollback - Kubernetes.
Api. Extensions. V1Beta1. Ingress - Kubernetes.
Api. Extensions. V1Beta1. NetworkPolicy - Kubernetes.
Api. Extensions. V1Beta1. PodSecurityPolicy - Kubernetes.
Api. Extensions. V1Beta1. ReplicaSet - Kubernetes.
Api. Extensions. V1Beta1. Scale - Kubernetes.
Api. Lens - Kubernetes.
Api. Logs - Kubernetes.
Api. Meta. V1 - Kubernetes.
Api. Networking - Kubernetes.
Api. Networking. V1 - Kubernetes.
Api. Networking. V1. NetworkPolicy - Kubernetes.
Api. Policy - Kubernetes.
Api. Policy. V1Beta1 - Kubernetes.
Api. Policy. V1Beta1. Eviction - Kubernetes.
Api. Policy. V1Beta1. PodDisruptionBudget - Kubernetes.
Api. Rbac - Kubernetes.
Api. Rbac. V1 - Kubernetes.
Api. Rbac. V1. ClusterRole - Kubernetes.
Api. Rbac. V1. ClusterRoleBinding - Kubernetes.
Api. Rbac. V1. Role - Kubernetes.
Api. Rbac. V1. RoleBinding - Kubernetes.
Api. Rbac. V1Alpha1 - Kubernetes.
Api. Rbac. V1Alpha1. ClusterRole - Kubernetes.
Api. Rbac. V1Alpha1. ClusterRoleBinding - Kubernetes.
Api. Rbac. V1Alpha1. Role - Kubernetes.
Api. Rbac. V1Alpha1. RoleBinding - Kubernetes.
Api. Rbac. V1Beta1 - Kubernetes.
Api. Rbac. V1Beta1. ClusterRole - Kubernetes.
Api. Rbac. V1Beta1. ClusterRoleBinding - Kubernetes.
Api. Rbac. V1Beta1. Role - Kubernetes.
Api. Rbac. V1Beta1. RoleBinding - Kubernetes.
Api. Resource - Kubernetes.
Api. Runtime - Kubernetes.
Api. Scheduling - Kubernetes.
Api. Scheduling. V1Alpha1 - Kubernetes.
Api. Scheduling. V1Alpha1. PriorityClass - Kubernetes.
Api. Settings - Kubernetes.
Api. Settings. V1Alpha1 - Kubernetes.
Api. Settings. V1Alpha1. PodPreset - Kubernetes.
Api. Storage - Kubernetes.
Api. Storage. V1 - Kubernetes.
Api. Storage. V1. StorageClass - Kubernetes.
Api. Storage. V1Alpha1 - Kubernetes.
Api. Storage. V1Alpha1. VolumeAttachment - Kubernetes.
Api. Storage. V1Beta1 - Kubernetes.
Api. Storage. V1Beta1. StorageClass - Kubernetes.
Api. Util - Kubernetes.
Api. Version - Kubernetes.
Client - Kubernetes.
Config - Kubernetes.
Default - Kubernetes.
Generation. AST - Kubernetes.
Generation. Emitter - Kubernetes.
Generation. GenerateApi - Kubernetes.
Generation. GenerateDefinitions - Kubernetes.
Generation. GenerateSchemaType - Kubernetes.
Generation. Generation - Kubernetes.
Generation. JsonSchema - Kubernetes.
Generation. Main - Kubernetes.
Generation. Names - Kubernetes.
Generation. Passes. AddDependencyImports - Kubernetes.
Generation. Passes. GenerateLenses - Kubernetes.
Generation. Passes. HelperLenses - Kubernetes.
Generation. Passes. PrefixNamespace - Kubernetes.
Generation. Passes. ResolveLocalRefs - Kubernetes.
Generation. PathParsing - Kubernetes.
Generation. Swagger - Kubernetes.
Json - Kubernetes.
QueryString - Kubernetes.
Request - Kubernetes.
RequestOptions - Kubernetes.
SchemaExtensions