Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for xdsgrpc (0.09 sec)

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

    				grpc.Creds(creds),
    			}
    
    			bootstrapB := GRPCBootstrap("echo-rbac-mtls", "test", "127.0.1.1", xdsPort)
    			grpcOptions = append(grpcOptions, xdsgrpc.BootstrapContentsForTesting(bootstrapB))
    
    			// Replaces: grpc NewServer
    			grpcServer, err := xdsgrpc.NewGRPCServer(grpcOptions...)
    			if err != nil {
    				t.Fatal(err)
    			}
    
    			testRBAC(t, grpcServer, xdsresolver, "echo-rbac-mtls", port, lis)
    		})
    	})
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 28 09:04:02 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  2. pkg/config/protocol/instance.go

    }
    
    // IsHTTPS is true if protocol is HTTPS
    func (i Instance) IsHTTPS() bool {
    	switch i {
    	case HTTPS:
    		return true
    	default:
    		return false
    	}
    }
    
    // IsGRPC is true for GRPC protocols.
    func (i Instance) IsGRPC() bool {
    	switch i {
    	case GRPC, GRPCWeb:
    		return true
    	default:
    		return false
    	}
    }
    
    func (i Instance) IsUnsupported() bool {
    	return i == Unsupported
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Aug 01 02:46:15 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  3. pkg/test/framework/components/authz/provider.go

    		}))
    
    	return checkRequest(opts, expectAllowed, checkHeaders)
    }
    
    func checkRequest(opts echo.CallOptions, expectAllowed bool, checkHeaders echo.Checker) echo.Checker {
    	switch {
    	case opts.Port.Protocol.IsGRPC():
    		switch opts.HTTP.Headers.Get(XExtAuthz) {
    		case XExtAuthzAllow:
    			return check.And(check.NoError(), checkHeaders)
    		default:
    			// Deny
    			return check.And(check.Forbidden(protocol.GRPC),
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Apr 23 16:02:21 UTC 2022
    - 5.9K bytes
    - Viewed (0)
  4. pkg/test/framework/components/echo/check/checkers.go

    		}
    		return nil
    	})
    }
    
    // Forbidden checks that the response indicates that the request was rejected by RBAC.
    func Forbidden(p protocol.Instance) echo.Checker {
    	switch {
    	case p.IsGRPC():
    		return ErrorContains("rpc error: code = PermissionDenied")
    	case p.IsTCP():
    		return ErrorContains("EOF")
    	default:
    		return NoErrorAndStatus(http.StatusForbidden)
    	}
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Mar 03 16:19:07 UTC 2023
    - 17.5K bytes
    - Viewed (0)
Back to top