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 CD3A360A34 for ; Thu, 10 Sep 2020 10:24:05 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id B9D2019BAA for ; Thu, 10 Sep 2020 10:23:35 +0200 (CEST) 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 9EB0E19B9E for ; Thu, 10 Sep 2020 10:23:34 +0200 (CEST) Received: from proxmox-new.maurer-it.com (localhost.localdomain [127.0.0.1]) by proxmox-new.maurer-it.com (Proxmox) with ESMTP id 691E344AE7 for ; Thu, 10 Sep 2020 10:23:34 +0200 (CEST) Date: Thu, 10 Sep 2020 10:23:23 +0200 From: Fabian =?iso-8859-1?q?Gr=FCnbichler?= To: PVE development discussion , Thomas Lamprecht , Tim Marx References: <20200706124544.2126341-1-t.marx@proxmox.com> <3da92568-0886-a522-fbd5-d28afe0f8e71@proxmox.com> <1599724494.q0shm5qvme.astroid@nora.none> <008ff748-78d4-ec63-9680-e6129cf7993d@proxmox.com> In-Reply-To: <008ff748-78d4-ec63-9680-e6129cf7993d@proxmox.com> MIME-Version: 1.0 User-Agent: astroid/0.15.0 (https://github.com/astroidmail/astroid) Message-Id: <1599726085.e9262tw99c.astroid@nora.none> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-SPAM-LEVEL: Spam detection results: 0 AWL 0.028 Adjusted score from AWL reputation of From: address KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment 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: [pve-devel] [PATCH v3 access-control] add ui capabilities endpoint X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Sep 2020 08:24:05 -0000 On September 10, 2020 10:19 am, Thomas Lamprecht wrote: > On 10.09.20 10:00, Fabian Gr=C3=BCnbichler wrote: >> also, permissions has a return schema already, while it does 'match'=20 >> from a structural point of view (a two-level deep hash), it is something= =20 >> altogether different semantically. >=20 > as the semantics are actively controlled by the requested via a switch th= at > does not matters much, IMO. They then actively request another semantic. sure. it's just not very clean ;) >> TL;DR: iff we really need this, then I'd put it in a separate API call. > We could also just do the "cap heuristic calculation" in the frontend, us= ing > the full permissions, and fill the Cap object with it. > This avoids a new api call or new multiplexer switch for an existing one = but > does not needs to restructure the whole UI cap control, yet. I think I'd prefer this, should be straight-forward to port from Perl to=20 JS. =