Kibana Code Application SSH Login with git protocol

Hello,

What's the trick to get the Kibana Code Application (7.2.1) working with private GitLab repositories? The documentation is rather sparse.

Relevant Kibana configuration:

xpack.code.ui.enabled: true
xpack.code.security.gitHostWhitelist: [ "github.com", "gitlab.com", "bitbucket.org", "gitbox.apache.org", "eclipse.org", "acme.com", "mydomain" ]
xpack.code.security.gitProtocolWhitelist: [ "https", "git" ]

~

Created /usr/share/kibana/data/code/credentials folder and generated an SSH key with:

sudo ssh-keygen -t rsa -b 4096

Restarted kibana service. When I try to import a git repository such as

"git@gitlab.mydomain:group/configuration/repo.git"

from our on-premise GitLab, I get error: "Git url protocol is not whitelisted."

Grtz

Willem

And the solution was:

xpack.code.security.gitProtocolWhitelist: [ "https", "ssh" ]

instead of:

xpack.code.security.gitProtocolWhitelist: [ "https", "git" ]