Prepare for ArkoseLabs custom domain
This makes our codebase ready for enabling ArkoseLabs' custom domain:
-
15a0dd22 makes Content Security Policies a bit more forgiving by allowing any
arkoselab.com
subdomain for script inclusion and framing. This will let us include fromgitlab-api.arkoselabs.com
instead ofclient-api.arkoselabs.com
when we transition to the new domain. It will also make it possible for customers to use their own custom domain if we make this available to self-hosted instances. -
eda0c9eb makes the ArkoseLabs namespace configurable so that we can configure where the client-side requests are going. The namespace is used to construct URLs such as
https://<namespace>-api.arkoselabs.com/
and defaults toclient
. -
88a4f691 changes the verification service to leverage the new
arkose_labs_namespace
application setting. Previously, this service relied on its ownarkose_labs_verify_api_url
, but the client and the server implementations can be unified to leverage the commonarkose_labs_namespace
setting. We will likely need to remove thearkose_labs_verify_api_url
column in a follow-up. - 8d2e26ef ensures that verification requests are made over HTTPS.
Related to #359912
Edited by Paul Gascou-Vaillancourt