plugin id: limit to 'pve-configid' format

Else one can pass almost arbitrary data as ID and break editing or
deletion of a plugin.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2020-05-04 14:54:24 +02:00
parent 2a656f9a39
commit f4ee95aec5

View File

@ -13,6 +13,7 @@ my $defaultData = {
id => {
description => "ACME Plugin ID name",
type => 'string',
format => 'pve-configid',
},
type => {
description => "ACME challenge type.",