Cloudflare: Create an endpoint to request short-lived user JWTs that is forwarded to AIGW
We are adding support in the AI Gateway to self serve short-lived user JWTs so that users have their own JWT that can be used to communicate with the AI gateway directly. We want to have this behind a CC url, for example cloud.gitlab.com/auth
. This URL should forward the request to the correct service.
For code suggestions the correct service would be AI Gateway. For future features this might be a different service. We want to ensure that Cloudflare knows which service to forward the request to. We have to decide whether we will use specific url's per service (e.g. cloud.gitlab.com/ai/auth
) or use another solution.
TODO: Think of solution for this, do we want mulitple URLs or do we want CF to figure out where to redirect the request to (with headers for example)