Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for ResourceAttributes (0.38 sec)

  1. staging/src/k8s.io/apiserver/plugin/pkg/authorizer/webhook/webhook_v1_test.go

    		{
    			name:               "match on user name but not resourceAttributes",
    			attr:               bobAttr,
    			expectedCompileErr: "",
    			expectedDecision:   authorizer.DecisionNoOpinion,
    			expressions: []apiserver.WebhookMatchCondition{
    				{
    					Expression: "request.user == 'bob'",
    				},
    				{
    					Expression: "has(request.resourceAttributes) && request.resourceAttributes.namespace == 'kittensandponies'",
    				},
    			},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 43.2K bytes
    - Viewed (0)
  2. staging/src/k8s.io/api/authorization/v1/types.go

    type SubjectAccessReviewSpec struct {
    	// ResourceAuthorizationAttributes describes information for a resource access request
    	// +optional
    	ResourceAttributes *ResourceAttributes `json:"resourceAttributes,omitempty" protobuf:"bytes,1,opt,name=resourceAttributes"`
    	// NonResourceAttributes describes information for a non-resource access request
    	// +optional
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 23 17:42:49 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/plugin/pkg/authorizer/webhook/webhook.go

    		UID:                   in.UID,
    	}
    }
    
    func v1ResourceAttributesToV1beta1ResourceAttributes(in *authorizationv1.ResourceAttributes) *authorizationv1beta1.ResourceAttributes {
    	if in == nil {
    		return nil
    	}
    	return &authorizationv1beta1.ResourceAttributes{
    		Namespace:   in.Namespace,
    		Verb:        in.Verb,
    		Group:       in.Group,
    		Version:     in.Version,
    		Resource:    in.Resource,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 04 19:01:15 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  4. common-protos/k8s.io/api/authorization/v1beta1/generated.proto

      // final step in the path.  "*" means all.
      // +optional
      repeated string nonResourceURLs = 2;
    }
    
    // ResourceAttributes includes the authorization attributes available for resource requests to the Authorizer interface
    message ResourceAttributes {
      // Namespace is the namespace of the action being requested.  Currently, there is no distinction between no namespace and all namespaces
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Mar 11 18:43:24 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  5. staging/src/k8s.io/api/authorization/v1/generated.proto

      // final step in the path.  "*" means all.
      // +optional
      // +listType=atomic
      repeated string nonResourceURLs = 2;
    }
    
    // ResourceAttributes includes the authorization attributes available for resource requests to the Authorizer interface
    message ResourceAttributes {
      // Namespace is the namespace of the action being requested.  Currently, there is no distinction between no namespace and all namespaces
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 28 15:34:11 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  6. common-protos/k8s.io/api/authorization/v1/generated.proto

      // final step in the path.  "*" means all.
      // +optional
      repeated string nonResourceURLs = 2;
    }
    
    // ResourceAttributes includes the authorization attributes available for resource requests to the Authorizer interface
    message ResourceAttributes {
      // Namespace is the namespace of the action being requested.  Currently, there is no distinction between no namespace and all namespaces
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Mar 11 18:43:24 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  7. staging/src/k8s.io/api/authorization/v1beta1/generated.proto

      // final step in the path.  "*" means all.
      // +optional
      // +listType=atomic
      repeated string nonResourceURLs = 2;
    }
    
    // ResourceAttributes includes the authorization attributes available for resource requests to the Authorizer interface
    message ResourceAttributes {
      // Namespace is the namespace of the action being requested.  Currently, there is no distinction between no namespace and all namespaces
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 28 15:34:11 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  8. pilot/pkg/credentials/kube/secrets.go

    	err := func() error {
    		resp, err := s.sar.Create(context.Background(), &authorizationv1.SubjectAccessReview{
    			ObjectMeta: metav1.ObjectMeta{},
    			Spec: authorizationv1.SubjectAccessReviewSpec{
    				ResourceAttributes: &authorizationv1.ResourceAttributes{
    					Namespace: namespace,
    					Verb:      "list",
    					Resource:  "secrets",
    				},
    				User: user,
    			},
    		}, metav1.CreateOptions{})
    		if err != nil {
    			return err
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Feb 23 19:18:21 UTC 2024
    - 10K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/plugin/pkg/authorizer/webhook/webhook_v1beta1_test.go

    				TypeMeta: expTypeMeta,
    				Spec: authorizationv1beta1.SubjectAccessReviewSpec{
    					User:   "jane",
    					UID:    "1",
    					Groups: []string{"group1", "group2"},
    					ResourceAttributes: &authorizationv1beta1.ResourceAttributes{
    						Verb:        "GET",
    						Namespace:   "kittensandponies",
    						Group:       "group3",
    						Version:     "v7beta3",
    						Resource:    "pods",
    						Subresource: "proxy",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 22:41:27 UTC 2024
    - 19.9K bytes
    - Viewed (0)
  10. istioctl/pkg/precheck/precheck.go

    func checkCanCreateResources(c kube.CLIClient, namespace, group, version, resource string) error {
    	s := &authorizationapi.SelfSubjectAccessReview{
    		Spec: authorizationapi.SelfSubjectAccessReviewSpec{
    			ResourceAttributes: &authorizationapi.ResourceAttributes{
    				Namespace: namespace,
    				Verb:      "create",
    				Group:     group,
    				Version:   version,
    				Resource:  resource,
    			},
    		},
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Apr 12 02:57:30 UTC 2024
    - 19.3K bytes
    - Viewed (0)
Back to top