Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for ResourceRequest (0.24 sec)

  1. pkg/registry/authorization/subjectaccessreview/rest_test.go

    			err:      errors.New("myerror"),
    			expectedAttrs: authorizer.AttributesRecord{
    				User:            &user.DefaultInfo{Name: "bob"},
    				Verb:            "get",
    				Path:            "/mypath",
    				ResourceRequest: false,
    			},
    			expectedStatus: authorizationapi.SubjectAccessReviewStatus{
    				Allowed:         false,
    				Reason:          "myreason",
    				EvaluationError: "myerror",
    			},
    		},
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 25 16:06:18 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  2. pkg/registry/authorization/util/helpers_test.go

    		// Fields we set in ResourceAttributesFrom
    		"User",
    		"Verb",
    		"Namespace",
    		"APIGroup",
    		"APIVersion",
    		"Resource",
    		"Subresource",
    		"Name",
    		"ResourceRequest",
    
    		// Fields we set in NonResourceAttributesFrom
    		"User",
    		"ResourceRequest",
    		"Path",
    		"Verb",
    	)
    	reflect.TypeOf(authorizer.AttributesRecord{}).FieldByNameFunc(func(name string) bool {
    		if !knownAttributesRecordFieldNames.Has(name) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 25 16:06:18 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/responsewriters/errors_test.go

    `, authorizer.AttributesRecord{User: u, Verb: "get", Resource: "pod", ResourceRequest: true}, "", "application/json"},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 29 07:45:20 UTC 2022
    - 4.3K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/endpoints/filters/authorization_test.go

    		},
    
    		"resource": {
    			Verb: "POST",
    			Path: "/api/v1/nodes/mynode",
    			ExpectedAttributes: &authorizer.AttributesRecord{
    				Verb:            "create",
    				Path:            "/api/v1/nodes/mynode",
    				ResourceRequest: true,
    				Resource:        "nodes",
    				APIVersion:      "v1",
    				Name:            "mynode",
    			},
    		},
    		"namespaced resource": {
    			Verb: "PUT",
    			Path: "/api/v1/namespaces/myns/pods/mypod",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jul 03 16:16:51 UTC 2023
    - 5K bytes
    - Viewed (0)
  5. pkg/registry/authorization/util/helpers.go

    		Namespace:       in.Namespace,
    		APIGroup:        in.Group,
    		APIVersion:      matchAllVersionIfEmpty(in.Version),
    		Resource:        in.Resource,
    		Subresource:     in.Subresource,
    		Name:            in.Name,
    		ResourceRequest: true,
    	}
    }
    
    // NonResourceAttributesFrom combines the API object information and the user.Info from the context to build a full authorizer.AttributesRecord for non resource access
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 25 16:06:18 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  6. pkg/registry/rbac/escalation_check.go

    		Verb:            "escalate",
    		APIGroup:        requestInfo.APIGroup,
    		APIVersion:      "*",
    		Resource:        requestInfo.Resource,
    		Name:            requestInfo.Name,
    		Namespace:       requestInfo.Namespace,
    		ResourceRequest: true,
    	}
    
    	decision, _, err := a.Authorize(ctx, attrs)
    	if err != nil {
    		utilruntime.HandleError(fmt.Errorf(
    			"error authorizing user %#v to escalate %#v named %q in namespace %q: %v",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Sep 24 15:14:54 UTC 2019
    - 4.3K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/authorization/authorizer/interfaces.go

    	User            user.Info
    	Verb            string
    	Namespace       string
    	APIGroup        string
    	APIVersion      string
    	Resource        string
    	Subresource     string
    	Name            string
    	ResourceRequest bool
    	Path            string
    }
    
    func (a AttributesRecord) GetUser() user.Info {
    	return a.User
    }
    
    func (a AttributesRecord) GetVerb() string {
    	return a.Verb
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 06 14:36:14 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  8. pkg/registry/admissionregistration/validatingadmissionpolicy/authz.go

    			resource = gvr.Resource
    		}
    	}
    
    	// require that the user can read (verb "get") the referred kind.
    	attrs := authorizer.AttributesRecord{
    		User:            user,
    		Verb:            "get",
    		ResourceRequest: true,
    		Name:            "*",
    		Namespace:       "*",
    		APIGroup:        apiGroup,
    		APIVersion:      apiVersion,
    		Resource:        resource,
    	}
    
    	d, _, err := v.authorizer.Authorize(ctx, attrs)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 07 21:29:56 UTC 2022
    - 3.3K bytes
    - Viewed (0)
  9. plugin/pkg/admission/certificates/util.go

    		User:            info,
    		Verb:            verb,
    		Name:            signerName,
    		APIGroup:        "certificates.k8s.io",
    		APIVersion:      "*",
    		Resource:        "signers",
    		ResourceRequest: true,
    	}
    }
    
    func buildWildcardAttributes(info user.Info, verb, signerName string) authorizer.Attributes {
    	parts := strings.Split(signerName, "/")
    	domain := parts[0]
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 16 11:54:27 UTC 2020
    - 2.6K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/validating/caching_authorizer.go

    		APIGroup:        a.GetAPIGroup(),
    		APIVersion:      a.GetAPIVersion(),
    		Resource:        a.GetResource(),
    		Subresource:     a.GetSubresource(),
    		Name:            a.GetName(),
    		ResourceRequest: a.IsResourceRequest(),
    		Path:            a.GetPath(),
    	}
    
    	if u := a.GetUser(); u != nil {
    		di := &user.DefaultInfo{
    			Name: u.GetName(),
    			UID:  u.GetUID(),
    		}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 12 18:58:24 UTC 2024
    - 3.6K bytes
    - Viewed (0)
Back to top