Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 318 for Authorize (0.16 sec)

  1. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/matchconditions/interface.go

    type Matcher interface {
    	// Match is used to take cel evaluations and convert into decisions
    	Match(ctx context.Context, versionedAttr *admission.VersionedAttributes, versionedParams runtime.Object, authz authorizer.Authorizer) MatchResult
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 28 19:30:04 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  2. pkg/registry/rbac/clusterrole/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
    - 5.2K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/responsewriters/errors_test.go

    	u := &user.DefaultInfo{Name: "NAME"}
    	cases := []struct {
    		expected    string
    		attributes  authorizer.Attributes
    		reason      string
    		contentType string
    	}{
    		{`{"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"forbidden: User \"NAME\" cannot GET path \"/whatever\"","reason":"Forbidden","details":{},"code":403}
    `, authorizer.AttributesRecord{User: u, Verb: "GET", Path: "/whatever"}, "", "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/audit/evaluator.go

    */
    
    package audit
    
    import (
    	"k8s.io/apiserver/pkg/apis/audit"
    	"k8s.io/apiserver/pkg/authorization/authorizer"
    )
    
    // RequestAuditConfig is the evaluated audit configuration that is applicable to
    // a given request. PolicyRuleEvaluator evaluates the audit policy against the
    // authorizer attributes and returns a RequestAuditConfig that applies to the request.
    type RequestAuditConfig struct {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 02 22:24:14 UTC 2022
    - 1.6K bytes
    - Viewed (0)
  5. pkg/registry/admissionregistration/validatingadmissionpolicy/storage/storage.go

    func NewREST(optsGetter generic.RESTOptionsGetter, authorizer authorizer.Authorizer, resourceResolver resolver.ResourceResolver) (*REST, *StatusREST, error) {
    	r := &REST{}
    	strategy := validatingadmissionpolicy.NewStrategy(authorizer, resourceResolver)
    	store := &genericregistry.Store{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 07 23:43:34 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/plugin/pkg/authorizer/webhook/metrics/metrics.go

    	compbasemetrics "k8s.io/component-base/metrics"
    	"k8s.io/component-base/metrics/legacyregistry"
    )
    
    // AuthorizerMetrics specifies a set of methods that are used to register various metrics for the webhook authorizer
    type AuthorizerMetrics interface {
    	// Request total and latency metrics
    	RequestMetrics
    	// Webhook count, latency, and fail open metrics
    	WebhookMetrics
    	// match condition metrics
    	cel.MatcherMetrics
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 04 19:01:15 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/generic/webhook.go

    	a.hookSource = a.sourceFactory(f)
    	a.SetReadyFunc(func() bool {
    		return namespaceInformer.Informer().HasSynced() && a.hookSource.HasSynced()
    	})
    }
    
    func (a *Webhook) SetAuthorizer(authorizer authorizer.Authorizer) {
    	a.authorizer = authorizer
    }
    
    // ValidateInitialization implements the InitializationValidator interface.
    func (a *Webhook) ValidateInitialization() error {
    	if a.hookSource == nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  8. pkg/registry/authorization/selfsubjectrulesreview/rest.go

    	"k8s.io/apimachinery/pkg/runtime"
    	"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"
    )
    
    // REST implements a RESTStorage for selfsubjectrulesreview.
    type REST struct {
    	ruleResolver authorizer.RuleResolver
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 18 09:21:13 UTC 2022
    - 3.7K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/admission/initializer/interfaces.go

    	SetExternalKubeInformerFactory(informers.SharedInformerFactory)
    	admission.InitializationValidator
    }
    
    // WantsAuthorizer defines a function which sets Authorizer for admission plugins that need it.
    type WantsAuthorizer interface {
    	SetAuthorizer(authorizer.Authorizer)
    	admission.InitializationValidator
    }
    
    // WantsQuotaConfiguration defines a function which sets quota configuration for admission plugins that need it.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 05 19:11:10 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  10. plugin/pkg/admission/imagepolicy/admission_test.go

    		err := wh.Validate(context.TODO(), attr, nil)
    		authorized := err == nil
    
    		if test.expectedErr && err == nil {
    			t.Errorf("Expected error")
    		} else if !test.expectedErr && err != nil {
    			t.Fatal(err)
    		}
    		if test.expectedAuthorized && !authorized {
    			if test.expectedCached {
    				t.Errorf("Webhook should have successful response cached, but authorizer reported unauthorized.")
    			} else {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 02 06:05:06 UTC 2023
    - 32.9K bytes
    - Viewed (0)
Back to top