Kibana Code Application SSH Login with git protocol


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 [ "", "", "", "", "", "", "mydomain" ] [ "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


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



And the solution was: [ "https", "ssh" ]

instead of: [ "https", "git" ]

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.