obtain personal access token via ssh
Description
User's have ssh pubkey authentication in place to pull/push commits from gitlab. Instead of manually creating personal access tokens and storing these on disk to be used for API calls it would be great if such tokens could be created via ssh using the already established ssh pubkey authentication, expire after e.g. a day and keep them only in memory.
Proposal
$ echo '{"name": "foo", "lifetime": "1d", "scope": ["api", "read_user"]}' | ssh personal-token@gitlab.com
ACCESS_TOKEN
Links / references
Documentation blurb
Overview
What is it? Why should someone use this feature? What is the underlying (business) problem? How do you use this feature?
Use cases
Enable tools to acquire access tokens using an already established secure channel for interaction with gitlab API.
Feature checklist
Make sure these are completed before closing the issue, with a link to the relevant commit.
-
Feature assurance -
Documentation -
Added to features.yml
Edited by 🤖 GitLab Bot 🤖