Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 623 for authorizes (0.24 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/customresource_handler_test.go

    func (dummyAdmissionImpl) Handles(operation admission.Operation) bool { return false }
    
    type dummyAuthorizerImpl struct{}
    
    func (dummyAuthorizerImpl) Authorize(ctx context.Context, a authorizer.Attributes) (authorized authorizer.Decision, reason string, err error) {
    	return authorizer.DecisionAllow, "", nil
    }
    
    type dummyServiceResolverImpl struct{}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 13 15:27:39 UTC 2023
    - 34.6K bytes
    - Viewed (0)
  6. 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)
  7. plugin/pkg/auth/authorizer/doc.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    // Package authorizer contains implementations for pkg/auth/authorizer interfaces
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jul 16 17:48:21 UTC 2016
    - 729 bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/cel/library/cost_test.go

    	return nil
    }
    
    type alwaysAllowAuthorizer struct{}
    
    func (f alwaysAllowAuthorizer) Authorize(ctx context.Context, a authorizer.Attributes) (authorizer.Decision, string, error) {
    	return authorizer.DecisionAllow, "", nil
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 23 17:22:44 UTC 2024
    - 40.8K bytes
    - Viewed (0)
  9. pkg/registry/authorization/util/helpers_test.go

    		"ResourceRequest",
    
    		// Fields we set in NonResourceAttributesFrom
    		"User",
    		"ResourceRequest",
    		"Path",
    		"Verb",
    	)
    	reflect.TypeOf(authorizer.AttributesRecord{}).FieldByNameFunc(func(name string) bool {
    		if !knownAttributesRecordFieldNames.Has(name) {
    			t.Errorf("authorizer.AttributesRecord has a new field: %q. Add to ResourceAttributesFrom/NonResourceAttributesFrom as appropriate, then add to knownAttributesRecordFieldNames", name)
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 25 16:06:18 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  10. pkg/registry/rbac/clusterrole/policybased/storage_test.go

    	authzCalled := 0
    	fakeStorage := &fakeStorage{}
    	fakeAuthorizer := authorizer.AuthorizerFunc(func(ctx context.Context, attr authorizer.Attributes) (authorizer.Decision, string, error) {
    		authzCalled++
    		if attr.GetUser().GetName() == "steve" {
    			return authorizer.DecisionAllow, "", nil
    		}
    		return authorizer.DecisionNoOpinion, "", nil
    	})
    	fakeRuleResolver, _ := validation.NewTestRuleResolver(
    		nil,
    		nil,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 09 13:47:19 UTC 2021
    - 6.2K bytes
    - Viewed (0)
Back to top