[pve-devel] applied: [PATCH acme] plugin id: limit to 'pve-configid' format
Thomas Lamprecht
t.lamprecht at proxmox.com
Mon May 4 14:56:41 CEST 2020
Else one can pass almost arbitrary data as ID and break editing or
deletion of a plugin.
Signed-off-by: Thomas Lamprecht <t.lamprecht at proxmox.com>
---
src/PVE/ACME/Challenge.pm | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/PVE/ACME/Challenge.pm b/src/PVE/ACME/Challenge.pm
index 0af77a3..0c679fc 100644
--- a/src/PVE/ACME/Challenge.pm
+++ b/src/PVE/ACME/Challenge.pm
@@ -13,6 +13,7 @@ my $defaultData = {
id => {
description => "ACME Plugin ID name",
type => 'string',
+ format => 'pve-configid',
},
type => {
description => "ACME challenge type.",
--
2.20.1
More information about the pve-devel
mailing list