Hi, you should be able to send the service URL using metadata, we have some 
examples 
here: https://github.com/grpc/grpc/tree/master/examples/python/metadata.

Best,
Xuan

On Monday, July 17, 2023 at 8:16:23 PM UTC-7 Robert Hardisty wrote:

> Hi all,
>
> For security purposes, we are needing to know the initial service URL the 
> client sent (e.g. https://my-grpc-server-external.com/some-method). We 
> plan to have an internal and external load balancer with different DNS, and 
> need a way extract that on the server side. I thought the context object in 
> the server's method would have it, but unable to find it. I also thought 
> the grpc.AuthMetadataContext 
> <https://grpc.github.io/grpc/python/grpc.html#grpc.AuthMetadataContext> might 
> have it, but that looks like a client-side property.
>
> Any help is appreciated.
>
> Best,
> Bob
>

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/b6070178-2c44-40b8-a224-39a732021e21n%40googlegroups.com.

Reply via email to