Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 160 for authorizer (0.26 sec)

  1. 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)
  2. cmd/kubelet/app/auth.go

    		if dynamicCAContentFromFile != nil {
    			go dynamicCAContentFromFile.Run(ctx, 1)
    		}
    	}, err
    }
    
    // BuildAuthz creates an authorizer compatible with the kubelet's needs
    func BuildAuthz(client authorizationclient.AuthorizationV1Interface, authz kubeletconfig.KubeletAuthorization) (authorizer.Authorizer, error) {
    	switch authz.Mode {
    	case kubeletconfig.KubeletAuthorizationModeAlwaysAllow:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 07 14:37:01 UTC 2022
    - 5K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. staging/src/k8s.io/apiserver/pkg/endpoints/filters/metrics.go

    func recordAuthorizationMetrics(ctx context.Context, authorized authorizer.Decision, err error, authStart time.Time, authFinish time.Time) {
    	var resultLabel string
    
    	switch {
    	case authorized == authorizer.DecisionAllow:
    		resultLabel = allowedLabel
    	case err != nil:
    		resultLabel = errorLabel
    	case authorized == authorizer.DecisionDeny:
    		resultLabel = deniedLabel
    	case authorized == authorizer.DecisionNoOpinion:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 20 13:35:55 UTC 2023
    - 5.3K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top