Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 125 for rbacv1 (1.05 sec)

  1. pilot/pkg/networking/grpcgen/lds.go

    //
    // nolint: unparam
    func buildRBAC(node *model.Proxy, push *model.PushContext, suffix string, context *tls.DownstreamTlsContext,
    	a rbacpb.RBAC_Action, policies []model.AuthorizationPolicy,
    ) *rbacpb.RBAC {
    	rules := &rbacpb.RBAC{
    		Action:   a,
    		Policies: map[string]*rbacpb.Policy{},
    	}
    	for _, policy := range policies {
    		for i, rule := range policy.Spec.Rules {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 22:20:44 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  2. pilot/pkg/security/authz/model/model.go

    	var permissions []*rbacpb.Permission
    	if r.extended != nil {
    		if len(r.values) > 0 {
    			p, err := r.extended.extendedPermission(r.key, r.values, forTCP)
    			if err := r.checkError(action, err); err != nil {
    				return nil, err
    			}
    			if p != nil {
    				permissions = append(permissions, p)
    			}
    		}
    	} else {
    		var or []*rbacpb.Permission
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Mar 25 10:39:25 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  3. pilot/pkg/security/authz/model/model_test.go

    							},
    						},
    					},
    				},
    				{
    					Identifier: &rbacpb.Principal_NotId{
    						NotId: &rbacpb.Principal{
    							Identifier: &rbacpb.Principal_OrIds{
    								OrIds: &rbacpb.Principal_Set{
    									Ids: []*rbacpb.Principal{
    										{
    											Identifier: &rbacpb.Principal_Authenticated_{
    												Authenticated: &rbacpb.Principal_Authenticated{
    													PrincipalName: &matcherv3.StringMatcher{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Nov 20 22:15:12 UTC 2023
    - 10K bytes
    - Viewed (0)
  4. pilot/pkg/security/authz/model/generator.go

    type generator interface {
    	permission(key, value string, forTCP bool) (*rbacpb.Permission, error)
    	principal(key, value string, forTCP bool, useAuthenticated bool) (*rbacpb.Principal, error)
    }
    
    type extendedGenerator interface {
    	extendedPermission(key string, value []string, forTCP bool) (*rbacpb.Permission, error)
    	extendedPrincipal(key string, value []string, forTCP bool) (*rbacpb.Principal, error)
    }
    
    type destIPGenerator struct{}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 03 18:02:42 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  5. pilot/pkg/security/authz/model/generator_test.go

    			}
    		})
    	}
    }
    
    func yamlPermission(t *testing.T, yaml string) *rbacpb.Permission {
    	t.Helper()
    	p := &rbacpb.Permission{}
    	if err := protomarshal.ApplyYAML(yaml, p); err != nil {
    		t.Fatalf("failed to parse yaml: %s", err)
    	}
    	return p
    }
    
    func yamlPrincipal(t *testing.T, yaml string) *rbacpb.Principal {
    	t.Helper()
    	p := &rbacpb.Principal{}
    	if err := protomarshal.ApplyYAML(yaml, p); err != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Apr 20 01:58:53 UTC 2024
    - 13K bytes
    - Viewed (0)
  6. plugin/pkg/auth/authorizer/rbac/bootstrappolicy/testdata/cluster-roles.yaml

        clusterRoleSelectors:
        - matchLabels:
            rbac.authorization.k8s.io/aggregate-to-admin: "true"
      apiVersion: rbac.authorization.k8s.io/v1
      kind: ClusterRole
      metadata:
        annotations:
          rbac.authorization.kubernetes.io/autoupdate: "true"
        creationTimestamp: null
        labels:
          kubernetes.io/bootstrapping: rbac-defaults
        name: admin
      rules: null
    - apiVersion: rbac.authorization.k8s.io/v1
      kind: ClusterRole
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 18 08:11:08 UTC 2023
    - 24.1K bytes
    - Viewed (0)
  7. plugin/pkg/auth/authorizer/rbac/bootstrappolicy/testdata/controller-roles.yaml

        - patch
        - update
    - apiVersion: rbac.authorization.k8s.io/v1
      kind: ClusterRole
      metadata:
        annotations:
          rbac.authorization.kubernetes.io/autoupdate: "true"
        creationTimestamp: null
        labels:
          kubernetes.io/bootstrapping: rbac-defaults
        name: system:controller:clusterrole-aggregation-controller
      rules:
      - apiGroups:
        - rbac.authorization.k8s.io
        resources:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 00:00:21 UTC 2024
    - 26.6K bytes
    - Viewed (0)
  8. pkg/apis/rbac/v1alpha1/zz_generated.conversion.go

    		return Convert_v1alpha1_Role_To_rbac_Role(a.(*v1alpha1.Role), b.(*rbac.Role), scope)
    	}); err != nil {
    		return err
    	}
    	if err := s.AddGeneratedConversionFunc((*rbac.Role)(nil), (*v1alpha1.Role)(nil), func(a, b interface{}, scope conversion.Scope) error {
    		return Convert_rbac_Role_To_v1alpha1_Role(a.(*rbac.Role), b.(*v1alpha1.Role), scope)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 24 19:47:49 UTC 2021
    - 23.6K bytes
    - Viewed (0)
  9. plugin/pkg/auth/authorizer/rbac/bootstrappolicy/testdata/controller-role-bindings.yaml

    apiVersion: v1
    items:
    - apiVersion: rbac.authorization.k8s.io/v1
      kind: ClusterRoleBinding
      metadata:
        annotations:
          rbac.authorization.kubernetes.io/autoupdate: "true"
        creationTimestamp: null
        labels:
          kubernetes.io/bootstrapping: rbac-defaults
        name: system:controller:attachdetach-controller
      roleRef:
        apiGroup: rbac.authorization.k8s.io
        kind: ClusterRole
        name: system:controller:attachdetach-controller
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 00:00:21 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  10. pkg/apis/rbac/validation/validation_test.go

    				{Name: "valid@groupname", APIGroup: rbac.GroupName, Kind: rbac.GroupKind},
    			},
    		},
    	)
    	if len(errs) != 0 {
    		t.Errorf("expected success: %v", errs)
    	}
    
    	errorCases := map[string]struct {
    		A rbac.ClusterRoleBinding
    		T field.ErrorType
    		F string
    	}{
    		"bad group": {
    			A: rbac.ClusterRoleBinding{
    				ObjectMeta: metav1.ObjectMeta{Name: "default"},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 02 07:48:42 UTC 2023
    - 14.1K bytes
    - Viewed (0)
Back to top