-
Notifications
You must be signed in to change notification settings - Fork 881
gitauth: automatically match against the auth URL #8293
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
The issue was fixed by setting an additional variable like this:
I'll keep this issue open for now as I'd like to propose a PR for the docs to add some more details. |
@waza-ari happy you were able to get this fixed! We should automatically do this for you anyways, with the option to override it. It's silly that it's required when we already know the base URL! |
@kylecarbs that would even be better, would highly appreciate that. I also would like to have some more documentation around the environment variables used for git authentication. Right now I'm setting
The example only shows I'm using coder for a couple of days only but I love the concept. Working with a non-profit org at the moment so not really in the position to show my gratitude with money, but maybe I can help by writing some docs. |
Thank you, @waza-ari. Feel free to open a PR for any improvements you see for the docs. |
@matifali I will, need to understand it first myself :) |
I'm pretty sure @Emyrk did this. If not, please reopen. |
I did not do this for gitlab. It is still static: coder/coderd/externalauth/externalauth.go Lines 792 to 800 in 8b1393f
I can come up with something to make gitlab dynamic if not using the expected domain. I'll fix this today. |
We'd like to setup coder with a self hosted Gitlab Instance. Currently, it is configured as follows (taken from values set when using the Helm chart):
(Happy to submit a PR for more comprehensive documentation once this works)
In the workspace template, I've added
During workspace creation, I can successfully authenticate against our Gitlab instance. With this, I'm getting the following error message when starting the workspace:
It's probably to do with the
GITHUB_TOKEN
environment variable which I don't fully understand. How would I do the automatic clone for custom hosted Gitlab?The text was updated successfully, but these errors were encountered: