Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for BindingAuthorized (0.29 sec)

  1. pkg/registry/rbac/clusterrolebinding/policybased/storage.go

    	if rbacregistry.EscalationAllowed(ctx) {
    		return s.StandardStorage.Create(ctx, obj, createValidation, options)
    	}
    
    	clusterRoleBinding := obj.(*rbac.ClusterRoleBinding)
    	if rbacregistry.BindingAuthorized(ctx, clusterRoleBinding.RoleRef, metav1.NamespaceNone, s.authorizer) {
    		return s.StandardStorage.Create(ctx, obj, createValidation, options)
    	}
    
    	v1RoleRef := rbacv1.RoleRef{}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 18 10:11:16 UTC 2022
    - 4.9K bytes
    - Viewed (0)
  2. pkg/registry/rbac/escalation_check.go

    			user, requestResource, requestInfo.Name, requestInfo.Namespace, err,
    		))
    	}
    	return decision == authorizer.DecisionAllow
    }
    
    // BindingAuthorized returns true if the user associated with the context is explicitly authorized to bind the specified roleRef
    func BindingAuthorized(ctx context.Context, roleRef rbac.RoleRef, bindingNamespace string, a authorizer.Authorizer) bool {
    	if a == nil {
    		return false
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Sep 24 15:14:54 UTC 2019
    - 4.3K bytes
    - Viewed (0)
  3. pkg/registry/rbac/rolebinding/policybased/storage.go

    	namespace, ok := genericapirequest.NamespaceFrom(ctx)
    	if !ok {
    		return nil, errors.NewBadRequest("namespace is required")
    	}
    
    	roleBinding := obj.(*rbac.RoleBinding)
    	if rbacregistry.BindingAuthorized(ctx, roleBinding.RoleRef, namespace, s.authorizer) {
    		return s.StandardStorage.Create(ctx, obj, createValidation, options)
    	}
    
    	v1RoleRef := rbacv1.RoleRef{}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 18 10:11:16 UTC 2022
    - 5.5K bytes
    - Viewed (0)
Back to top