]> git.proxmox.com Git - pve-common.git/commitdiff
JSONSchema: increase maxLength of config-digest to 64
authorLukas Wagner <l.wagner@proxmox.com>
Thu, 20 Jul 2023 14:32:07 +0000 (16:32 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Mon, 24 Jul 2023 09:44:22 +0000 (11:44 +0200)
The new notification backend is implemented in Rust where we use SHA256
for config digests.

Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
src/PVE/JSONSchema.pm

index 7589bbad4e56c93c17e9dfb7af34014ed7a665cb..49e0d7a679762ffd5f8daf57ab95cc1fa91ccfdd 100644 (file)
@@ -93,10 +93,13 @@ register_standard_option('pve-bridge-id', {
 });
 
 register_standard_option('pve-config-digest', {
-    description => 'Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications.',
+    description => 'Prevent changes if current configuration file has a different digest. '
+       . 'This can be used to prevent concurrent modifications.',
     type => 'string',
     optional => 1,
-    maxLength => 40, # sha1 hex digest length is 40
+    # sha1 hex digests are 40 characters long
+    # sha256 hex digests are 64 characters long (sha256 is used in our Rust code)
+    maxLength => 64,
 });
 
 register_standard_option('skiplock', {