diff --git a/module/Rest/src/ApiKey/Model/ApiKeyMeta.php b/module/Rest/src/ApiKey/Model/ApiKeyMeta.php index 21efe16a..66d7d889 100644 --- a/module/Rest/src/ApiKey/Model/ApiKeyMeta.php +++ b/module/Rest/src/ApiKey/Model/ApiKeyMeta.php @@ -41,7 +41,7 @@ final readonly class ApiKeyMeta // If a name was not provided, fall back to the key if (empty($name)) { - // If the key was auto-generated, fall back to a "censored" version of the UUID, otherwise simply use the + // If the key was auto-generated, fall back to a redacted version of the UUID, otherwise simply use the // plain key as fallback name $name = $key === null ? sprintf('%s-****-****-****-************', substr($resolvedKey, offset: 0, length: 8)) diff --git a/module/Rest/src/Entity/ApiKey.php b/module/Rest/src/Entity/ApiKey.php index 32f8fff4..17461d12 100644 --- a/module/Rest/src/Entity/ApiKey.php +++ b/module/Rest/src/Entity/ApiKey.php @@ -24,7 +24,7 @@ class ApiKey extends AbstractEntity */ private function __construct( public readonly string $key, - public readonly string|null $name = null, + public readonly string $name, public readonly Chronos|null $expirationDate = null, private bool $enabled = true, private Collection $roles = new ArrayCollection(),