Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 144 for Authorize (0.24 sec)

  1. 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)
  2. 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)
  3. 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)
  4. pkg/registry/admissionregistration/validatingadmissionpolicybinding/storage/storage.go

    // NewREST returns a RESTStorage object that will work against policyBinding.
    func NewREST(optsGetter generic.RESTOptionsGetter, authorizer authorizer.Authorizer, policyGetter PolicyGetter, resourceResolver resolver.ResourceResolver) (*REST, error) {
    	r := &REST{}
    	strategy := validatingadmissionpolicybinding.NewStrategy(authorizer, policyGetter, resourceResolver)
    	store := &genericregistry.Store{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 18 10:11:16 UTC 2022
    - 3.6K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top