containers-schema: allow to specify ui-secret and show in aio interface

Signed-off-by: Simon L. <szaimen@e.mail.de>
This commit is contained in:
Simon L. 2025-01-23 16:28:07 +01:00
parent bc358f32b1
commit 04ef45667f
12 changed files with 38 additions and 3 deletions

View file

@ -33,6 +33,10 @@ class ConfigurationManager
}
public function GetAndGenerateSecret(string $secretId) : string {
if ($secretId === '') {
return '';
}
$config = $this->GetConfig();
if(!isset($config['secrets'][$secretId])) {
$config['secrets'][$secretId] = bin2hex(random_bytes(24));