Skip to content

Geo: Move /api/v4/internal/geo_proxy to /api/v4/geo/proxy

Michael Kozono requested to merge mk/move-geo-proxy-endpoint into master

What does this MR do?

This MR moves /api/v4/internal/geo_proxy to /api/v4/geo/proxy.

Because /api/v4/internal and /lib/api/internal/base.rb are only meant for GitLab Shell.

Since Workhorse doesn't know whether it's in a FOSS or EE context, we need to implement the endpoint in FOSS to avoid 401s due to the route not existing.

So a more appropriate location is /api/v4/geo/proxy and /lib/api/geo.rb. The existing geo endpoints are now in an EE concern.

This MR also reuses the Workhorse authorization helper and Workhorse response content type.

The affected endpoint is not used or released yet, so no changelog is needed.

Where does this fit in the epic?

Description Issue
Add endpoint /api/v4/geo/proxy #324664 (closed) !63343 (merged) You are here
Determine if this is a Geo Proxy by calling /api/v4/geo/proxy #329670 (closed) !60769 (merged)
If this is a Geo Proxy, then use the Geo Proxy routing table #329672 (closed) !63321 (merged)
Before we can remove the environment variable, we must add caching of the result of the request #329671 (closed)

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Edited by Michael Kozono

Merge request reports