From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id 9064369811 for ; Thu, 11 Mar 2021 13:41:38 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 7F1B6285CB for ; Thu, 11 Mar 2021 13:41:08 +0100 (CET) Received: from proxmox-new.maurer-it.com (proxmox-new.maurer-it.com [212.186.127.180]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS id 60127285BB for ; Thu, 11 Mar 2021 13:41:07 +0100 (CET) Received: from proxmox-new.maurer-it.com (localhost.localdomain [127.0.0.1]) by proxmox-new.maurer-it.com (Proxmox) with ESMTP id 240C544BEF for ; Thu, 11 Mar 2021 13:41:07 +0100 (CET) To: pmg-devel@lists.proxmox.com References: <20210309141401.19237-1-w.bumiller@proxmox.com> <20210309141401.19237-13-w.bumiller@proxmox.com> From: Dominik Csapak Message-ID: Date: Thu, 11 Mar 2021 13:41:06 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 In-Reply-To: <20210309141401.19237-13-w.bumiller@proxmox.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-SPAM-LEVEL: Spam detection results: 0 AWL 0.191 Adjusted score from AWL reputation of From: address KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment NICE_REPLY_A -0.001 Looks like a legit reply (A) RCVD_IN_DNSWL_MED -2.3 Sender listed at https://www.dnswl.org/, medium trust SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Subject: Re: [pmg-devel] [PATCH widget-toolkit 2/7] add ACME related data models X-BeenThere: pmg-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox Mail Gateway development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Mar 2021 12:41:38 -0000 comments inline On 3/9/21 3:13 PM, Wolfgang Bumiller wrote: > Signed-off-by: Wolfgang Bumiller > --- > src/Makefile | 2 ++ > src/data/model/ACME.js | 30 ++++++++++++++++++++++++++++++ > src/data/model/Certificates.js | 6 ++++++ > 3 files changed, 38 insertions(+) > create mode 100644 src/data/model/ACME.js > create mode 100644 src/data/model/Certificates.js > > diff --git a/src/Makefile b/src/Makefile > index 46b90ae..3861bfc 100644 > --- a/src/Makefile > +++ b/src/Makefile > @@ -15,6 +15,8 @@ JSSRC= \ > data/RRDStore.js \ > data/TimezoneStore.js \ > data/model/Realm.js \ > + data/model/Certificates.js \ > + data/model/ACME.js \ > form/DisplayEdit.js \ > form/ExpireDate.js \ > form/IntegerField.js \ > diff --git a/src/data/model/ACME.js b/src/data/model/ACME.js > new file mode 100644 > index 0000000..c05572e > --- /dev/null > +++ b/src/data/model/ACME.js > @@ -0,0 +1,30 @@ > +Ext.define('proxmox-acme-accounts', { > + extend: 'Ext.data.Model', > + fields: ['name'], > + proxy: { > + type: 'proxmox', > + //url: "/api2/json/cluster/acme/account", i'd prefer not to have the commented out api paths here > + }, > + idProperty: 'name', > +}); > + > +Ext.define('proxmox-acme-challenges', { > + extend: 'Ext.data.Model', > + fields: ['id', 'type', 'schema'], > + proxy: { > + type: 'proxmox', > + //url: "/api2/json/cluster/acme/challenge-schema", same > + }, > + idProperty: 'id', > +}); > + > + > +Ext.define('proxmox-acme-plugins', { > + extend: 'Ext.data.Model', > + fields: ['type', 'plugin', 'api'], > + proxy: { > + type: 'proxmox', > + //url: "/api2/json/cluster/acme/plugins", same maybe we could have /config/acme also for pbs, then we could add that here and overwrite it in pve? > + }, > + idProperty: 'plugin', > +}); > diff --git a/src/data/model/Certificates.js b/src/data/model/Certificates.js > new file mode 100644 > index 0000000..f3e2a7f > --- /dev/null > +++ b/src/data/model/Certificates.js > @@ -0,0 +1,6 @@ > +Ext.define('proxmox-certificate', { > + extend: 'Ext.data.Model', > + > + fields: ['filename', 'fingerprint', 'issuer', 'notafter', 'notbefore', 'subject', 'san', 'public-key-bits', 'public-key-type'], > + idProperty: 'filename', > +}); >