You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 23, 2024. It is now read-only.
The significant bit is, sql-proxy-client is already authenticated to our API. It should find a way to retrieve the remote address and connect to it automatically. There could be multiple ways to get this remote address:
The API could embed the remote address of sql-proxy-server into the cert as metadata (SAN or as a subject field). Once the sql-proxy-client receives the signed cert, it'll read the metadata and used the remote address to connect.
We could use the existing /organization/:org/databases/:db/branches/:branch/status endpoint to fetch the current vtgate address. We could make sure that the returned address is also compatible with sql-proxy-server (cc @enisoc)
We could use a new endpoint to return the sql-proxy-server's remote address.