Add password to User schema

Make sure password is encrypted
Update tests

Signed-off-by: Andrea Waltlova <awaltlov@redhat.com>
This commit is contained in:
Andrea Waltlova 2024-07-18 16:45:29 +02:00 committed by Ondřej Ezr
parent 5d0e3ee85b
commit 7c830e90b0
4 changed files with 223 additions and 184 deletions

View file

@ -1764,6 +1764,13 @@ components:
key:
type: string
example: "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINrGKErMYi+MMUwuHaRAJmRLoIzRf2qD2dD5z0BTx/6x"
password:
type: string
format: password
description: |
If the password starts with $6$, $5$, or $2b$ it will be stored as
an encrypted password. Otherwise it will be treated as a plain text
password.
BlueprintUser:
type: object
additionalProperties: false