Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 623 for authorizes (0.25 sec)

  1. staging/src/k8s.io/apiserver/pkg/endpoints/filters/impersonation_test.go

    	"k8s.io/apiserver/pkg/authorization/authorizer"
    	"k8s.io/apiserver/pkg/endpoints/request"
    )
    
    type impersonateAuthorizer struct{}
    
    func (impersonateAuthorizer) Authorize(ctx context.Context, a authorizer.Attributes) (authorized authorizer.Decision, reason string, err error) {
    	user := a.GetUser()
    
    	switch {
    	case user.GetName() == "system:admin":
    		return authorizer.DecisionAllow, "", nil
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 06 17:13:16 UTC 2021
    - 17.2K bytes
    - Viewed (0)
  2. pkg/kubelet/server/server_test.go

    	attributesFunc   func(user.Info, *http.Request) authorizer.Attributes
    	authorizeFunc    func(authorizer.Attributes) (authorized authorizer.Decision, reason string, err error)
    }
    
    func (f *fakeAuth) AuthenticateRequest(req *http.Request) (*authenticator.Response, bool, error) {
    	return f.authenticateFunc(req)
    }
    func (f *fakeAuth) GetRequestAttributes(u user.Info, req *http.Request) authorizer.Attributes {
    	return f.attributesFunc(u, req)
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 51.5K bytes
    - Viewed (0)
  3. plugin/pkg/auth/authorizer/rbac/rbac_test.go

    			},
    			shouldPass: []authorizer.Attributes{
    				authorizer.AttributesRecord{User: &user.DefaultInfo{Name: "foo"}, Verb: "get", Path: "/apis"},
    				authorizer.AttributesRecord{User: &user.DefaultInfo{Groups: []string{"bar"}}, Verb: "get", Path: "/apis"},
    				authorizer.AttributesRecord{User: &user.DefaultInfo{Name: "admin"}, Verb: "get", Path: "/apis"},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Sep 24 15:14:54 UTC 2019
    - 21.1K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/validating/caching_authorizer_test.go

    				},
    				{
    					decision: authorizer.DecisionDeny,
    					reason:   "test reason beta",
    					error:    fmt.Errorf("test error beta"),
    				},
    			},
    		},
    	} {
    		t.Run(tc.name, func(t *testing.T) {
    			var misses int
    			frontend := newCachingAuthorizer(func() authorizer.Authorizer {
    				return authorizer.AuthorizerFunc(func(_ context.Context, attributes authorizer.Attributes) (authorizer.Decision, string, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 12 18:58:24 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/apis/apiserver/load/load_test.go

    "kind":"AuthorizationConfiguration",
    "authorizers":[{"type":"Webhook"}]}`),
    			expectConfig: &api.AuthorizationConfiguration{
    				Authorizers: []api.AuthorizerConfiguration{{Type: "Webhook"}},
    			},
    		},
    		{
    			name: "v1alpha1 - defaults",
    			data: []byte(`{
    "apiVersion":"apiserver.config.k8s.io/v1alpha1",
    "kind":"AuthorizationConfiguration",
    "authorizers":[{"type":"Webhook","name":"default","webhook":{}}]}`),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 02 07:00:31 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  6. pkg/registry/rbac/clusterrolebinding/policybased/storage.go

    type Storage struct {
    	rest.StandardStorage
    
    	authorizer authorizer.Authorizer
    
    	ruleResolver rbacregistryvalidation.AuthorizationRuleResolver
    }
    
    func NewStorage(s rest.StandardStorage, authorizer authorizer.Authorizer, ruleResolver rbacregistryvalidation.AuthorizationRuleResolver) *Storage {
    	return &Storage{s, authorizer, ruleResolver}
    }
    
    // Destroy cleans up resources on shutdown.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 18 10:11:16 UTC 2022
    - 4.9K bytes
    - Viewed (0)
  7. pkg/registry/authorization/subjectaccessreview/rest_test.go

    	"k8s.io/apiserver/pkg/authorization/authorizer"
    	genericapirequest "k8s.io/apiserver/pkg/endpoints/request"
    	"k8s.io/apiserver/pkg/registry/rest"
    	authorizationapi "k8s.io/kubernetes/pkg/apis/authorization"
    )
    
    type fakeAuthorizer struct {
    	attrs authorizer.Attributes
    
    	decision authorizer.Decision
    	reason   string
    	err      error
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 25 16:06:18 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/endpoints/filters/authorization_test.go

    	}
    }
    
    type fakeAuthorizer struct {
    	decision authorizer.Decision
    	reason   string
    	err      error
    }
    
    func (f fakeAuthorizer) Authorize(ctx context.Context, a authorizer.Attributes) (authorizer.Decision, string, error) {
    	return f.decision, f.reason, f.err
    }
    
    func TestAuditAnnotation(t *testing.T) {
    	testcases := map[string]struct {
    		authorizer         fakeAuthorizer
    		decisionAnnotation string
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jul 03 16:16:51 UTC 2023
    - 5K bytes
    - Viewed (0)
  9. staging/src/k8s.io/api/authorization/v1/types_swagger_doc_generated.go

    	"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.",
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Jan 22 00:51:25 UTC 2023
    - 11.9K bytes
    - Viewed (0)
  10. common-protos/k8s.io/api/authorization/v1beta1/generated.proto

      // encountered when an authorizer, such as an external authorizer, doesn't support rules evaluation.
      optional bool incomplete = 3;
    
      // 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.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Mar 11 18:43:24 UTC 2024
    - 11.9K bytes
    - Viewed (0)
Back to top