-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Standard Gitlab integration from self-hosted Infisical to self-hosted Gitlab gives error 400 #1875
Comments
Hey @rwarford, upon checking your logs I noticed that redirect_uri is undefined. Is this correct? |
@sheensantoscapadngan Interesting. No, it's not null (at least the redirect_uri's that I'm aware of are not "undefined").
The url for the redirect_uri parameter is correct (I think!). The URI for Redirect URI in the GitLab Application configuration is:
Based on the "Self-Hosted Setup" tab of https://infisical.com/docs/integrations/cicd/gitlab I believe that is correct. |
ahhh... I think what's undefined in the log is your SITE_URL. can you double check if you've added that ENV? It should be present in your running infisical instance If possible, can you send an updated log? |
That was it! Thank you. I missed the "Learn more about configuration settings" link on https://infisical.com/docs/self-hosting/deployment-options/kubernetes-helm. It might be helpful to highlight the need for SITE_URL in section 2 of https://infisical.com/docs/integrations/cicd/gitlab#pipeline under "Self-Hosted Setup" for people like me who shoot first and read later! :). That section calls out CLIENT_ID_GITLAB and CLIENT_SECRET_GITLAB but doesn't mention SITE_URL. Thanks again for your help! |
Describe the bug
Standard GitLab integration from a self-hosted instance of Infisical to a self-hosted instance of GitLab fails with a "Bad Request" error (code 400).
EDIT: Note that pipeline integration works as expected. The problem is only with the standard integration.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The GitLab integration should be authorized and the GitLab integration dialog should be shown in Infisical.
Screenshots
If applicable, add screenshots to help explain your problem.
Platform you are having the issue on:
Infisical self-hosted Kubernetes instance installed via Helm chart.
repoURL: https://dl.cloudsmith.io/public/infisical/helm-charts/helm/charts/
chart: infisical-standalone
targetRevision: 1.0.7
Additional context
See #418 (comment) for a possible cause and solution.
EDIT: I am running version 15.8.1-ee of GitLab.
EDIT: Relevant log lines:
The text was updated successfully, but these errors were encountered: