]> git.proxmox.com Git - proxmox-acme.git/commitdiff
plugin id: limit to 'pve-configid' format
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 4 May 2020 12:54:24 +0000 (14:54 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 4 May 2020 12:54:28 +0000 (14:54 +0200)
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>
src/PVE/ACME/Challenge.pm

index 0af77a35db5f2ea418384682c2acfaf9ce4f2d91..0c679fc356f2085a68dcaed9bd50f3c19eb4e3eb 100644 (file)
@@ -13,6 +13,7 @@ my $defaultData = {
        id => {
            description => "ACME Plugin ID name",
            type => 'string',
+           format => 'pve-configid',
        },
        type => {
            description => "ACME challenge type.",