Open oyamin opened 2 years ago
We have our own Self-hosted gitlab instance running on EKS. The repos are located in private repositories.
In order to clone the repo I have to choose "Git repository", and provide the git URL in the following format:
https://<usename>:<token>@gitlab.example.com/oyamin/binder-test-repo.git
If you omit either username or token, you get the following error:
fatal: could not read Password for 'https://<username or password>@gitlab.exmaple.com': No such device or address
I don't mind proving the usename:token, but the only issue is that when the URL is generated, it contains the username and token in the URL.
https://binderhub.example.com/v2/git/https%3A%2F%2Foyamin%3Atoken%40gitlab.example.cloud%2Foyamin%2Fbinder-test-repo/main
I tried to add to secrets.yaml:
config: GitRepoProvider: git_credentials: <token>
But that didn't work either.
Please let me know if there is any way to hide the token from the BinderHub URL.
We have our own Self-hosted gitlab instance running on EKS. The repos are located in private repositories.
In order to clone the repo I have to choose "Git repository", and provide the git URL in the following format:
If you omit either username or token, you get the following error:
I don't mind proving the usename:token, but the only issue is that when the URL is generated, it contains the username and token in the URL.
I tried to add to secrets.yaml:
But that didn't work either.
Please let me know if there is any way to hide the token from the BinderHub URL.