Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 257 for authorizer (0.31 sec)

  1. staging/src/k8s.io/apiserver/pkg/authorization/cel/metrics.go

    	RecordAuthorizationMatchConditionEvaluation(ctx context.Context, authorizerType, authorizerName string, elapsed time.Duration)
    	// RecordAuthorizationMatchConditionEvaluationFailure increments if any evaluation error was encountered evaluating matchConditions for an Authorize() call to the given authorizer
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 22:41:27 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  2. pkg/registry/admissionregistration/validatingadmissionpolicybinding/authz.go

    		// identical paramRef and policy to old object
    		return nil
    	}
    
    	return v.authorize(ctx, binding)
    }
    
    func (v *validatingAdmissionPolicyBindingStrategy) authorize(ctx context.Context, binding *admissionregistration.ValidatingAdmissionPolicyBinding) error {
    	if v.authorizer == nil || v.resourceResolver == nil || binding.Spec.ParamRef == nil {
    		return nil
    	}
    
    	// for superuser, skip all checks
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 01 12:19:03 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  3. 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)
  4. staging/src/k8s.io/apiserver/pkg/cel/environment/environment_test.go

    			},
    			invalidExpressions: []string{"authorizer.path('/healthz').check('get').allowed()"},
    			activation:         map[string]any{"authorizer": library.NewAuthorizerVal(nil, fakeAuthorizer{decision: authorizer.DecisionAllow})},
    			opts: []VersionedOptions{
    				{IntroducedVersion: version.MajorMinor(1, 27), EnvOptions: []cel.EnvOption{cel.Variable("authorizer", library.AuthorizerType)}},
    			},
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 10K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. staging/src/k8s.io/apiserver/pkg/authorization/authorizerfactory/delegating.go

    import (
    	"errors"
    	"time"
    
    	"k8s.io/apimachinery/pkg/util/wait"
    	"k8s.io/apiserver/pkg/authorization/authorizer"
    	"k8s.io/apiserver/plugin/pkg/authorizer/webhook"
    	authorizationclient "k8s.io/client-go/kubernetes/typed/authorization/v1"
    )
    
    // DelegatingAuthorizerConfig is the minimal configuration needed to create an authorizer
    // built to delegate authorization to a kube API server
    type DelegatingAuthorizerConfig struct {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 22:41:27 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  8. pkg/registry/admissionregistration/rest/storage_apiserver.go

    	validatingwebhookconfigurationstorage "k8s.io/kubernetes/pkg/registry/admissionregistration/validatingwebhookconfiguration/storage"
    )
    
    type RESTStorageProvider struct {
    	Authorizer      authorizer.Authorizer
    	DiscoveryClient discovery.DiscoveryInterface
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 00:00:21 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  9. plugin/pkg/admission/gc/gc_admission_test.go

    		if a.GetVerb() == "delete" {
    			return authorizer.DecisionNoOpinion, "", nil
    		}
    		if a.GetVerb() == "update" && a.GetSubresource() == "finalizers" {
    			return authorizer.DecisionNoOpinion, "", nil
    		}
    		if a.GetAPIGroup() == "*" && a.GetResource() == "*" { // this user does not have full rights
    			return authorizer.DecisionNoOpinion, "", nil
    		}
    		return authorizer.DecisionAllow, "", nil
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 21:28:42 UTC 2024
    - 24.5K bytes
    - Viewed (0)
  10. plugin/pkg/admission/certificates/ctbattest/admission.go

    func NewPlugin() *Plugin {
    	return &Plugin{
    		Handler: admission.NewHandler(admission.Create, admission.Update),
    	}
    }
    
    // SetAuthorizer sets the plugin's authorizer.
    func (p *Plugin) SetAuthorizer(authz authorizer.Authorizer) {
    	p.authz = authz
    }
    
    // InspectFeatureGates implements WantsFeatures.
    func (p *Plugin) InspectFeatureGates(featureGates featuregate.FeatureGate) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 20 16:26:11 UTC 2023
    - 4K bytes
    - Viewed (0)
Back to top