[pve-devel] [PATCH manager] acme: mark caaIdentities as an array

Folke Gleumes f.gleumes at proxmox.com
Mon Nov 13 15:11:25 CET 2023


caaIdentities was mistakenly labled as a string in a previous patch and
not as an array of strings, as it is defined in the rfc [0].

[0] https://datatracker.ietf.org/doc/html/rfc8555#section-7.1.1

Signed-off-by: Folke Gleumes <f.gleumes at proxmox.com>
---

This is a followup to Thomas correction, regarding the metadata sent by
the CA[1]

[1] https://lists.proxmox.com/pipermail/pve-devel/2023-November/060029.html

 PVE/API2/ACMEAccount.pm | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/PVE/API2/ACMEAccount.pm b/PVE/API2/ACMEAccount.pm
index 93820ec4..3e3cbd32 100644
--- a/PVE/API2/ACMEAccount.pm
+++ b/PVE/API2/ACMEAccount.pm
@@ -402,7 +402,10 @@ __PACKAGE__->register_method ({
 	    },
 	    caaIdentities => {
 		description => 'Hostnames referring to the ACME servers.',
-		type => 'string',
+		type => 'array',
+		items => {
+		    type => 'string',
+		},
 		optional => 1,
 	    },
 	},
-- 
2.39.2






More information about the pve-devel mailing list