Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 144 for Authorize (0.22 sec)

  1. staging/src/k8s.io/apiserver/pkg/authorization/path/path.go

    		} else {
    			paths.Insert(p)
    		}
    	}
    
    	return authorizer.AuthorizerFunc(func(ctx context.Context, a authorizer.Attributes) (authorizer.Decision, string, error) {
    		if a.IsResourceRequest() {
    			return authorizer.DecisionNoOpinion, "", nil
    		}
    
    		pth := strings.TrimPrefix(a.GetPath(), "/")
    		if paths.Has(pth) {
    			return authorizer.DecisionAllow, "", nil
    		}
    
    		for _, prefix := range prefixes {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 09 13:47:19 UTC 2021
    - 1.9K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/admission/plugin/cel/interface.go

    	VersionedParams runtime.Object
    	// Authorizer provides the authorizer used for the "authorizer" and
    	// "authorizer.requestResource" variable bindings. If the expression was compiled with
    	// OptionalVariableDeclarations.HasAuthorizer set to true this must be non-nil.
    	Authorizer authorizer.Authorizer
    }
    
    // Filter contains a function to evaluate compiled CEL-typed values
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  3. plugin/pkg/admission/certificates/approval/admission.go

    type Plugin struct {
    	*admission.Handler
    	authz authorizer.Authorizer
    }
    
    // SetAuthorizer sets the authorizer.
    func (p *Plugin) SetAuthorizer(authz authorizer.Authorizer) {
    	p.authz = authz
    }
    
    // ValidateInitialization ensures an authorizer is set.
    func (p *Plugin) ValidateInitialization() error {
    	if p.authz == nil {
    		return fmt.Errorf("%s requires an authorizer", PluginName)
    	}
    	return nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 16 11:54:27 UTC 2020
    - 3.2K bytes
    - Viewed (0)
  4. pkg/registry/rbac/role/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
    - 3.9K bytes
    - Viewed (0)
  5. pkg/registry/authorization/util/helpers.go

    	"k8s.io/apiserver/pkg/authorization/authorizer"
    	authorizationapi "k8s.io/kubernetes/pkg/apis/authorization"
    )
    
    // ResourceAttributesFrom combines the API object information and the user.Info from the context to build a full authorizer.AttributesRecord for resource access
    func ResourceAttributesFrom(user user.Info, in authorizationapi.ResourceAttributes) authorizer.AttributesRecord {
    	return authorizer.AttributesRecord{
    		User:            user,
    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/authorization/rest/storage_authorization.go

    )
    
    type RESTStorageProvider struct {
    	Authorizer   authorizer.Authorizer
    	RuleResolver authorizer.RuleResolver
    }
    
    func (p RESTStorageProvider) NewRESTStorage(apiResourceConfigSource serverstorage.APIResourceConfigSource, restOptionsGetter generic.RESTOptionsGetter) (genericapiserver.APIGroupInfo, error) {
    	if p.Authorizer == nil {
    		return genericapiserver.APIGroupInfo{}, nil
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 23 18:36:33 UTC 2022
    - 3.4K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/endpoints/filters/metrics_test.go

    		"authorization_attempts_total",
    		"authorization_decision_annotations_total",
    	}
    
    	testCases := []struct {
    		desc       string
    		authorizer fakeAuthorizer
    		want       string
    	}{
    		{
    			desc: "auth ok",
    			authorizer: fakeAuthorizer{
    				authorizer.DecisionAllow,
    				"RBAC: allowed to patch pod",
    				nil,
    			},
    			want: `
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 20 13:35:55 UTC 2023
    - 8.7K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/generic/plugin.go

    	c.dynamicClient = client
    }
    
    func (c *Plugin[H]) SetDrainedNotification(stopCh <-chan struct{}) {
    	c.stopCh = stopCh
    }
    
    func (c *Plugin[H]) SetAuthorizer(authorizer authorizer.Authorizer) {
    	c.authorizer = authorizer
    }
    
    func (c *Plugin[H]) SetMatcher(matcher *matching.Matcher) {
    	c.matcher = matcher
    }
    
    func (c *Plugin[H]) SetEnabled(enabled bool) {
    	c.enabled = enabled
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 05 19:11:10 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/admission/initializer/initializer.go

    	"k8s.io/apiserver/pkg/authorization/authorizer"
    	"k8s.io/client-go/dynamic"
    	"k8s.io/client-go/informers"
    	"k8s.io/client-go/kubernetes"
    	"k8s.io/component-base/featuregate"
    )
    
    type pluginInitializer struct {
    	externalClient    kubernetes.Interface
    	dynamicClient     dynamic.Interface
    	externalInformers informers.SharedInformerFactory
    	authorizer        authorizer.Authorizer
    	featureGates      featuregate.FeatureGate
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 00:00:21 UTC 2024
    - 3K bytes
    - Viewed (0)
  10. plugin/pkg/admission/certificates/signing/admission.go

    type Plugin struct {
    	*admission.Handler
    	authz authorizer.Authorizer
    }
    
    // SetAuthorizer sets the authorizer.
    func (p *Plugin) SetAuthorizer(authz authorizer.Authorizer) {
    	p.authz = authz
    }
    
    // ValidateInitialization ensures an authorizer is set.
    func (p *Plugin) ValidateInitialization() error {
    	if p.authz == nil {
    		return fmt.Errorf("%s requires an authorizer", PluginName)
    	}
    	return nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 28 16:20:40 UTC 2020
    - 3.5K bytes
    - Viewed (0)
Back to top