-
Notifications
You must be signed in to change notification settings - Fork 6
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
OAuth fails when browser/charm/gitlab are on different hosts #26
Comments
When configuring the Legend Juju GitLab Integrator Charm, we have the option to provide it an already existing gitlab.com Application by providing it the Howver, when trying to start using the Legend Studio, you will be redirected to gitlab.com to log in and authorize the Legend Studio application, and after that, you're redirected to the original Legend Studio you were trying to access. Basically, the gitlab.com URL used looks something like this:
As you can see in the URL above, there's a Now, how the gitlab.com Application authorization works: in the gitlab.com Application, you have configured a list of
In the case above, the IPs are local to the Kubernetes cluster, which means that we can't use the Legend Studio's Public IP to authenticate it in gitlab.com, since it isn't in the list of the redirect URL mentioned above. The list above would have to be modified to include the Legend Studio Public IP endpoint, but it's also possible for that Public IP to change in the future, In that case, the Redirect URLs should be updated as well. Ideally, those Redirect URLs would get updated automatically by the Legend Juju GitLab Integrator Charm, but another issue prevents us from doing so (#25). |
We've solved this issue by using the nginx ingress integrator charms and using the Kubernetes Service names instead of IPs. Additionally, the Legend Studio, SDLC, and Engine charms can be configured with custom DNS names as well. With the changes below, we won't have to update the Callback URLs every time the Pod IPs get updated due to various reasons. Related: finos/legend-juju-libs#5 We can close this issue now. |
The Legend bundle and the GitLab instance need to be in the same computer or the authentication process fails. This means gitlab.com and EKS deployments will always fail.
The text was updated successfully, but these errors were encountered: