HighTechInnovators.Extensions.Yarp.Grpc
0.1.4
dotnet add package HighTechInnovators.Extensions.Yarp.Grpc --version 0.1.4
NuGet\Install-Package HighTechInnovators.Extensions.Yarp.Grpc -Version 0.1.4
<PackageReference Include="HighTechInnovators.Extensions.Yarp.Grpc" Version="0.1.4" />
<PackageVersion Include="HighTechInnovators.Extensions.Yarp.Grpc" Version="0.1.4" />
<PackageReference Include="HighTechInnovators.Extensions.Yarp.Grpc" />
paket add HighTechInnovators.Extensions.Yarp.Grpc --version 0.1.4
#r "nuget: HighTechInnovators.Extensions.Yarp.Grpc, 0.1.4"
#:package HighTechInnovators.Extensions.Yarp.Grpc@0.1.4
#addin nuget:?package=HighTechInnovators.Extensions.Yarp.Grpc&version=0.1.4
#tool nuget:?package=HighTechInnovators.Extensions.Yarp.Grpc&version=0.1.4
License
This project is licensed under the Common Public Attribution License Version 1.0 (CPAL-1.0).
You may obtain a copy of the License in the LICENSE file.
For more details, you can also refer to the full license text at the SPDX website.
Introduction
This project extends YARP to combine multiple gRPC reflection endpoints into a single one. It also filters the allowed calls and what's shown in the reflection endpoint based on the configuration regex.
Configuration
- Hosts - list of hosts to combine the reflection endpoints from
- AllowedServiceRegex - regex to filter the services that are allowed to be shown in the reflection endpoint and proxied
Usage
- add AddAutoGrpcReverseProxy() to your builder Program.cs
- add MapAutoGrpcReverseProxy() to your app in Program.cs
The configuration can be passed as an optional parameter to AddAutoGrpcReverseProxy or added in appsettings.json. Check end-to-end-tests\yarpgrpc.json for an example.
Testing
End to end tests
- cd ./end-to-end-tests
- ./run.sh
yarpgrpc.json
can be mounted at /config/yarpgrpc.json
inside the container instead of using the environment variables in the compose.yml file.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net8.0
- Grpc.AspNetCore (>= 2.57.0)
- Grpc.Reflection (>= 2.67.0)
- Yarp.ReverseProxy (>= 2.2.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last Updated |
---|---|---|
0.1.4 | 193 | 4/9/2025 |