Docs feedback: "Use GitLab as a microservice" is useless as of now since token auth to API is required
In its current form, the "Use GitLab as a microservice" document is useless.
The problem is that it has not been updated since the username & password auth to the API has been removed.
So the GitLab instance you create as a service in the way described in this doc cannot be accessed via the API because of auth being impossible.
The only known workaround to me is to run the GitLab instance not with service
but using Docker-in-Docker with a custom healthcheck script that creates a personal access token for the API auth using Rails console (example).
This issue is created in case there is a way to connect to the GitLab's API when it's run as a service
in GitLab CI that I am not aware of and the documentation can be corrected to include this information.
If not, then please close it and create an issue to fix the product to make such use possible instead.