Hi everyone !
We recently upgraded our gitlab-ce instance from 10.x to 11.11.8. I tried to enable a Slack notifications webhook to a new project, but noticed that “Test settings and save changes” fails with “Validations failed. Webhook is blocked: Host cannot be resolved or invalid”.
We are behind company firewall and proxy, which is perfectly set for our Redhat 7 environment, and also
for gitlab in /etc/gitlab/gitlab.rb:
gitlab_rails['env'] = {
"http_proxy" => "http://proxy:3128",
"https_proxy" => "https://proxy:3128",
"no_proxy" => "local.jenkins"
}
gitlab_workhorse['env'] = {
"http_proxy" => "http://proxy:3128",
"https_proxy" => "https://proxy:3128",
"no_proxy" => "local.jenkins"
}
It seems integration doesnt use these settings to call a webhook on https://hooks.slack.com/services/XXXXX, but eg.Help/Help can show that “update available”, therefore I suppose that other gitlab components can reach the internet through the proxy. From shell curl, wget etc everything is working fine…
Before the upgrade this worked with the configuration above.
Thanks in advance !