Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 171 for Authorize (0.32 sec)

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

    			serv.statusCode = test.statusCode
    			authorized, _, err := wh.Authorize(context.Background(), test.attr)
    			if test.expectedErr && err == nil {
    				t.Fatalf("%d: Expected error", i)
    			} else if !test.expectedErr && err != nil {
    				t.Fatalf("%d: unexpected error: %v", i, err)
    			}
    
    			if test.expectedAuthorized != (authorized == authorizer.DecisionAllow) {
    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. plugin/pkg/auth/authorizer/node/node_authorizer.go

    	}
    	return r.authorize(nodeName, startingType, attrs)
    }
    
    func (r *NodeAuthorizer) authorize(nodeName string, startingType vertexType, attrs authorizer.Attributes) (authorizer.Decision, string, error) {
    	if len(attrs.GetName()) == 0 {
    		klog.V(2).Infof("NODE DENY: '%s' %#v", nodeName, attrs)
    		return authorizer.DecisionNoOpinion, "No Object name found", nil
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 21:22:55 UTC 2024
    - 16K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/plugin/pkg/authorizer/webhook/webhook_v1beta1_test.go

    			serv.statusCode = test.statusCode
    			authorized, _, err := wh.Authorize(context.Background(), test.attr)
    			if test.expectedErr && err == nil {
    				t.Fatalf("%d: Expected error", i)
    			} else if !test.expectedErr && err != nil {
    				t.Fatalf("%d: unexpected error: %v", i, err)
    			}
    
    			if test.expectedAuthorized != (authorized == authorizer.DecisionAllow) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 22:41:27 UTC 2024
    - 19.9K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/cel/library/authz.go

    	GetSubresource() string
    }
    
    func NewAuthorizerVal(userInfo user.Info, authorizer authorizer.Authorizer) ref.Val {
    	return authorizerVal{receiverOnlyObjectVal: receiverOnlyVal(AuthorizerType), userInfo: userInfo, authAuthorizer: authorizer}
    }
    
    func NewResourceAuthorizerVal(userInfo user.Info, authorizer authorizer.Authorizer, requestResource Resource) ref.Val {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Aug 23 21:31:27 UTC 2023
    - 21.1K bytes
    - Viewed (0)
  5. plugin/pkg/admission/gc/gc_admission.go

    }
    
    func (a *gcPermissionsEnforcement) SetAuthorizer(authorizer authorizer.Authorizer) {
    	a.authorizer = authorizer
    }
    
    func (a *gcPermissionsEnforcement) SetRESTMapper(restMapper meta.RESTMapper) {
    	a.restMapper = restMapper
    }
    
    func (a *gcPermissionsEnforcement) ValidateInitialization() error {
    	if a.authorizer == nil {
    		return fmt.Errorf("missing authorizer")
    	}
    	if a.restMapper == nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Sep 05 02:24:38 UTC 2023
    - 10.3K bytes
    - Viewed (0)
  6. plugin/pkg/auth/authorizer/node/node_authorizer_test.go

    		User      user.Info
    		Secret    string
    		ConfigMap string
    		Decision  authorizer.Decision
    	}{
    		{User: node1, Decision: authorizer.DecisionAllow, Secret: "node1-only"},
    		{User: node1, Decision: authorizer.DecisionAllow, Secret: "node1-node2-only"},
    		{User: node1, Decision: authorizer.DecisionAllow, Secret: "shared-all"},
    
    		{User: node2, Decision: authorizer.DecisionNoOpinion, Secret: "node1-only"},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 21:22:55 UTC 2024
    - 40.5K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/update.go

    func withAuthorization(validate rest.ValidateObjectFunc, a authorizer.Authorizer, attributes authorizer.Attributes) rest.ValidateObjectFunc {
    	var once sync.Once
    	var authorizerDecision authorizer.Decision
    	var authorizerReason string
    	var authorizerErr error
    	return func(ctx context.Context, obj runtime.Object) error {
    		if a == nil {
    			return errors.NewInternalError(fmt.Errorf("no authorizer provided, unable to authorize a create on update"))
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 01 20:19:46 UTC 2023
    - 11.5K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/plugin/pkg/authorizer/webhook/webhook.go

    func (w *WebhookAuthorizer) RulesFor(user user.Info, namespace string) ([]authorizer.ResourceRuleInfo, []authorizer.NonResourceRuleInfo, bool, error) {
    	var (
    		resourceRules    []authorizer.ResourceRuleInfo
    		nonResourceRules []authorizer.NonResourceRuleInfo
    	)
    	incomplete := true
    	return resourceRules, nonResourceRules, incomplete, fmt.Errorf("webhook authorizer does not support user rule resolution")
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 04 19:01:15 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  9. plugin/pkg/admission/certificates/ctbattest/admission_test.go

    	verb        string
    	allowedName string
    	decision    authorizer.Decision
    	err         error
    }
    
    func (f fakeAuthorizer) Authorize(ctx context.Context, a authorizer.Attributes) (authorizer.Decision, string, error) {
    	if f.err != nil {
    		return f.decision, "forced error", f.err
    	}
    	if a.GetVerb() != f.verb {
    		return authorizer.DecisionDeny, fmt.Sprintf("unrecognised verb '%s'", a.GetVerb()), nil
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  10. docs/de/docs/tutorial/security/first-steps.md

    Sie werden etwa Folgendes sehen:
    
    <img src="/img/tutorial/security/image01.png">
    
    !!! check "Authorize-Button!"
        Sie haben bereits einen glänzenden, neuen „Authorize“-Button.
    
        Und Ihre *Pfadoperation* hat in der oberen rechten Ecke ein kleines Schloss, auf das Sie klicken können.
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Mar 30 18:07:08 UTC 2024
    - 10.3K bytes
    - Viewed (0)
Back to top