HIP-1046 gRPC Web Proxy Endpoints #1059
Replies: 1 comment 3 replies
-
We should consider an alternative design for how to populate web proxy endpoints. The current design suggests the repeated proto.ServiceEndpoint service_endpoint = 4;
...
proto.ServiceEndpoint grpc_proxy_endpoint = 8; There's a few problems with this new field:
Therefore, I suggest we not add a specific enum ServiceEndpointType {
GOSSIP = 0;
SERVICE_SECURE = 1;
SERVICE_INSECURE = 2;
WEB_PROXY = 3;
}
message ServiceEndpoint {
...
ServiceEndpointType type = 4;
} |
Beta Was this translation helpful? Give feedback.
-
GRPC-WEB HIP - Frontend applications using the Hedera JavaScript SDK face challenges due to browser security sandbox rules, which block mixed content (i.e., HTTP requests from HTTPS pages) and do not permit direct gRPC requests. Browsers also require TLS endpoints to be signed by trusted certificate authorities, necessitating fully qualified domain names (FQDNs).
Currently, gRPC-Web servers work around these limitations, but the endpoints are not supported in the Hedera Address Book. To circumvent this, gRPC-Web endpoints are hard-coded in the JavaScript SDK, which is neither scalable nor efficient. This approach requires manual updates and coordination, which will become increasingly problematic as Hedera decentralizes and more independent nodes operate.
To address this issue, we propose enhancing the Hedera address book to include gRPC-Web endpoint information, allowing the JavaScript SDK to dynamically determine the appropriate endpoints
Beta Was this translation helpful? Give feedback.
All reactions