cloudapi: Add User customization

Cloud api now exposes user customization that let a customer able to add
a new user with a set of groups and a ssh key.

Testing:
* adds 2 users to the AWS image, accessible with a temp ssh key.
* the first one is in the group wheel, the other is not

Fixes #1574
This commit is contained in:
Thomas Lavocat 2021-07-28 10:40:25 +02:00 committed by GitHub
parent 5e127de303
commit 4729990ac0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 137 additions and 52 deletions

View file

@ -444,6 +444,10 @@ components:
example: ['postgres']
items:
type: string
users:
type: array
items:
$ref: '#/components/schemas/User'
OSTree:
type: object
properties:
@ -511,3 +515,19 @@ components:
type: string
signature:
type: string
User:
type: object
required:
- name
properties:
name:
type: string
example: "user1"
groups:
type: array
items:
type: string
example: "group1"
key:
type: string
example: "public ssh key"