From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) by lore.proxmox.com (Postfix) with ESMTPS id BF2C71FF139 for ; Tue, 10 Feb 2026 17:32:36 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id A02AE9422; Tue, 10 Feb 2026 17:33:20 +0100 (CET) From: Shan Shaji To: pdm-devel@lists.proxmox.com Subject: [PATCH datacenter-manager v3 3/5] server: api: add contact schema for ACME account update endpoint Date: Tue, 10 Feb 2026 17:32:48 +0100 Message-ID: <20260210163250.398269-4-s.shaji@proxmox.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260210163250.398269-1-s.shaji@proxmox.com> References: <20260210163250.398269-1-s.shaji@proxmox.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1770741111241 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.114 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Message-ID-Hash: ML2R34YFTNN73EQWMXECAUFOIL6NXQVR X-Message-ID-Hash: ML2R34YFTNN73EQWMXECAUFOIL6NXQVR X-MailFrom: s.shaji@proxmox.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox Datacenter Manager development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Signed-off-by: Shan Shaji --- **note**: This is a new patch server/src/api/config/acme.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/server/src/api/config/acme.rs b/server/src/api/config/acme.rs index 3c40a27..a910834 100644 --- a/server/src/api/config/acme.rs +++ b/server/src/api/config/acme.rs @@ -1,6 +1,6 @@ use anyhow::Error; -use pdm_api_types::acme::AcmeRegistrationParams; +use pdm_api_types::acme::{AcmeRegistrationParams, ACME_CONTACT_LIST_SCHEMA}; use proxmox_router::list_subdirs_api_method; use proxmox_router::{Router, RpcEnvironment, SubdirMap}; @@ -169,7 +169,7 @@ pub async fn get_account(name: AcmeAccountName) -> Result { properties: { name: { type: AcmeAccountName }, contact: { - description: "List of email addresses.", + schema: ACME_CONTACT_LIST_SCHEMA, optional: true, }, }, @@ -185,7 +185,6 @@ pub async fn get_account(name: AcmeAccountName) -> Result { /// Update an ACME account. pub fn update_account( name: AcmeAccountName, - // Todo: email & email-list schema contact: Option, rpcenv: &mut dyn RpcEnvironment, ) -> Result { -- 2.47.3