BE: Create a new Proxy Controller
In #321401 (closed) we did investigation and created a prototype for a proxy of the Atlassian connect app that could be used to configure self-managed GitLab instances.
This issue is to implement the controller changes described here: #321401 (closed)
An installation is created when we receive an event webhook from atlassian. A new controller is needed to add an instance URL to an installation.
Once an installation is linked to a GitLab instance we should send an installed
hook to the instance. We tried this in a proof of concept MR
The controller should respond with JSON and act like an internal API that will be used by the frontend. It will authorize the Jira qsh
but doesn't need to authorize a GitLab user (this is only needed to add namespaces). The following endpoints are needed:
GET /-/jira_connect/installations
Example response:
{
gitlab_com: true,
instance_url: null
}
PUT /-/jira_connect/installations
Example request:
{
instance_url: "https://gitlab.example.com"
}
Example response:
{
gitlab_com: false,
instance_url: "https://gitlab.example.com"
}