Gitlab private repo support in factory URL using personal access tokens #19170
Labels
area/che-server
kind/task
Internal things, technical debt, and to-do tasks to be performed.
new¬eworthy
For new and/or noteworthy issues that deserve a blog post, new docs, or emphasis in release notes
severity/P1
Has a major impact to usage or development of the system.
Milestone
Is your task related to a problem? Please describe.
Support private GitLab repos for factories with authentication using pre-created personal access token stored as a secret in Che user namespace.
Describe the solution you'd like
Extract user and project names from original factory request:
https://che-che.host.nip.io/f?url=https://gitlab.host/user_foo/test1.git
Query GitLab API to fetch project information:
[Makis@linux gitlab]curl --header "PRIVATE-TOKEN: DYF627ozzSHM-<yup>" "https://gitlab.192.168.39.243.nip.io/api/v4/projects/user_foo%2Ftest1"
.Query GitLab API to fetch devfile content:
Describe alternatives you've considered
Additional context
Gitlab installation instructions:
https://gist.github.com/mshaposhnik/7c96ae19af9f87bd7f46080f1c54565d
The text was updated successfully, but these errors were encountered: