SSH API

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Problem to solve

Need to interact with GitLab API from repository hooks. I already have SSH key and don't want to set another one that needs REST client, secure key location, etc.

Right now I need to setup my username and email on clone automatically.

Target audience

Devon, DevOps Engineer

Proposal

Use ssh to do API calls. Need only read-only for now:

$ ssh git@gitlab.com apiv4/user
{
  "id": 1,
  "username": "john_smith",
  "email": "john@example.com",
  "name": "John Smith",
  ...
  "public_email": "john@example.com",
...
}

What does success look like, and how can we measure that?

SSH API usage stats shown on SSH API documentation page. How many users used SSH API during last month.

Edited by 🤖 GitLab Bot 🤖