On Fri, Oct 7, 2022 at 5:15 PM X-Cloud Lab <[email protected]> wrote:
> Thank you. I tested my first scenario. > > It seems the problem causes from domain name resolving. I'm using > localhost for a test gitlab and gocd with docker. > > GitLab:80 > GoCD:8153 > > jvm 1 | 2022-10-07 09:07:02,534 ERROR [qtp1671617251-38] > p.c.g.a.g.c.g.a.g.GitLabPlugin:127 [plugin-cd.go.authorization.gitlab] - > Error while executing request go.cd.authorization.fetch-access-tokenjvm 1 > | java.net.ConnectException: Failed to connect to localhost/127.0.0.1:80 > > In your specific case, GoCD within in the container is attempting to connect to localhost within the same container, whereas your gitlab instance is on the host network. Does your host computer have another interface and IP address? You could configure gocd to point to that IP address. You may also want to edit /etc/resolv.conf on your host (assuming you are on MacOS or on Linux) to give that host a unique name like gitlab. e.g. /etc/resolv.conf could contain the following if your host has 10.10.1.19 as an IP Address 10.10.1.19 gitlab Then configure GoCD to refer to Gitlab at "gitlab:80". The name would resolve on the host as 10.10.1.19 The above is just for you to prove the concept. Incidentally, you could run GoCD on the host too, if you want. You could take the zip file installer for ease of R&D. > On Friday, October 7, 2022 at 11:43:43 AM UTC+7 [email protected] wrote: > >> On Fri, 7 Oct 2022 at 11:36 AM, X-Cloud Lab <[email protected]> wrote: >> >>> Hello All, >>> >>> Currently, I'm using GitLab authorization and it works perfectly but the >>> users in GitLab is local users. >>> >>> Now, I'm using AWS Identity Center (SSO). It provides SAML federation. >>> It can integrate with GitLab through AWS SSO portal. >>> But GoCD does not provide SAML authorization plugin. >>> >>> Can GoCD authorize through GitLab? AWS SSO -> GitLab -> GoCD. >>> In my opinion, it likes a chain authorization. I'm not sure this will >>> work or not. >>> >>> So, I've PoC AWS Cognito + AWS SSO. It works as expect. I don't need to >>> setup local users in AWS Cognito. However, GoCD does not provide OAuth >>> plugin for AWS Cognito. >>> >>> But it seems able to use Okta OAuth plugin. >>> >>> Could you please help to guild me what solution is suitable for GoCD? >>> >> >> >> You can indeed use Gitlab authentication in GoCD. I have set one up for a >> friend. Please see: >> https://github.com/gocd-contrib/gitlab-oauth-authorization-plugin >> >> >> >> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "go-cd" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/go-cd/11c4d719-d115-4ea4-a749-3df4d8c1975fn%40googlegroups.com >>> <https://groups.google.com/d/msgid/go-cd/11c4d719-d115-4ea4-a749-3df4d8c1975fn%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> >> -- > You received this message because you are subscribed to the Google Groups > "go-cd" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/go-cd/30c2c48d-3e90-4afe-b310-033adff96047n%40googlegroups.com > <https://groups.google.com/d/msgid/go-cd/30c2c48d-3e90-4afe-b310-033adff96047n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "go-cd" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/go-cd/CANiY96YzrZ1%3DqeDf3ioHFGO2Vm-7focS5rPYEaiL0X5BzDY9Yg%40mail.gmail.com.
