Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 623 for authorizes (0.3 sec)

  1. pkg/registry/admissionregistration/validatingadmissionpolicybinding/authz_test.go

    			auth: func(ctx context.Context, a authorizer.Attributes) (authorized authorizer.Decision, reason string, err error) {
    				return authorizer.DecisionDeny, "", nil
    			},
    		},
    		{
    			name:     "authorized",
    			userInfo: &user.DefaultInfo{Groups: []string{user.AllAuthenticated}},
    			auth: func(ctx context.Context, a authorizer.Attributes) (authorized authorizer.Decision, reason string, err error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jul 20 16:30:09 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/authorization/authorizer/interfaces.go

    	// GetPath returns the path of the request
    	GetPath() string
    }
    
    // Authorizer makes an authorization decision based on information gained by making
    // zero or more calls to methods of the Attributes interface.  It returns nil when an action is
    // authorized, otherwise it returns an error.
    type Authorizer interface {
    	Authorize(ctx context.Context, a Attributes) (authorized Decision, reason string, err error)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 06 14:36:14 UTC 2023
    - 4.8K 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/apis/apiserver/types.go

    type AuthorizationConfiguration struct {
    	metav1.TypeMeta
    
    	// Authorizers is an ordered list of authorizers to
    	// authorize requests against.
    	// This is similar to the --authorization-modes kube-apiserver flag
    	// Must be at least one.
    	Authorizers []AuthorizerConfiguration `json:"authorizers"`
    }
    
    const (
    	TypeWebhook                                          AuthorizerType = "Webhook"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 04 00:57:24 UTC 2024
    - 14.2K bytes
    - Viewed (0)
  5. pkg/kubeapiserver/authorizer/config.go

    		}
    		seenModes.Insert(authorizer.Type)
    
    		expectedName := GetNameForAuthorizerMode(string(authorizer.Type))
    		if expectedName != authorizer.Name {
    			allErrors = append(allErrors, fmt.Errorf("expected name %s for authorizer %s instead of %s", expectedName, authorizer.Type, authorizer.Name))
    		}
    
    	}
    
    	if missingTypes := requireNonWebhookTypes.Difference(seenModes); missingTypes.Len() > 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 21:22:55 UTC 2024
    - 8K bytes
    - Viewed (0)
  6. pkg/kubeapiserver/options/authorization.go

    						KubeConfigFile: &o.WebhookConfigFile,
    					},
    				},
    			})
    		default:
    			authorizers = append(authorizers, authzconfig.AuthorizerConfiguration{
    				Type: authzconfig.AuthorizerType(mode),
    				Name: authorizer.GetNameForAuthorizerMode(mode),
    			})
    		}
    	}
    
    	return &authzconfig.AuthorizationConfiguration{Authorizers: authorizers}, nil
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 14 23:09:15 UTC 2024
    - 12K bytes
    - Viewed (0)
  7. plugin/pkg/admission/certificates/approval/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: Thu Feb 27 15:50:14 UTC 2020
    - 6.3K bytes
    - Viewed (0)
  8. 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)
  9. plugin/pkg/admission/certificates/signing/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: Thu May 28 16:20:40 UTC 2020
    - 8.9K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/authorization/metrics/metrics_test.go

    			t.Fatal(err)
    		}
    		authorizationDecisionsTotal.Reset()
    	}
    
    }
    
    type dummyAuthorizer struct {
    	decision authorizer.Decision
    	err      error
    }
    
    func (d *dummyAuthorizer) Authorize(ctx context.Context, attrs authorizer.Attributes) (authorizer.Decision, string, error) {
    	return d.decision, "", d.err
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Feb 16 13:20:59 UTC 2024
    - 3.3K bytes
    - Viewed (0)
Back to top