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 B904361C5B for ; Thu, 22 Oct 2020 13:01:25 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id A5D3C1F5FB for ; Thu, 22 Oct 2020 13:00:55 +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 9ABE51F5EE for ; Thu, 22 Oct 2020 13:00:54 +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 5DBAE45DBC for ; Thu, 22 Oct 2020 13:00:54 +0200 (CEST) Date: Thu, 22 Oct 2020 13:00:48 +0200 From: Fabian =?iso-8859-1?q?Gr=FCnbichler?= To: Proxmox Backup Server development discussion References: <20201021140159.2250193-1-o.bektas@proxmox.com> <1603353403.2oxwp8ptb8.astroid@nora.none> <20201022091729.GA14703@gaia.proxmox.com> In-Reply-To: <20201022091729.GA14703@gaia.proxmox.com> MIME-Version: 1.0 User-Agent: astroid/0.15.0 (https://github.com/astroidmail/astroid) Message-Id: <1603364357.xcuh6abcww.astroid@nora.none> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-SPAM-LEVEL: Spam detection results: 0 AWL 0.030 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: [pbs-devel] [PATCH proxmox-backup] add datastore info api call X-BeenThere: pbs-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox Backup Server development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Oct 2020 11:01:25 -0000 On October 22, 2020 11:17 am, Oguz Bektas wrote: > hi, >=20 > On Thu, Oct 22, 2020 at 10:02:23AM +0200, Fabian Gr=C3=BCnbichler wrote: >>=20 >> why READ and not AUDIT | BACKUP ? why partial if you only pass a single=20 >> privilege? >=20 > i thought the minimum privilege should be view. one might want to add a > datastore where only read access is given to them, to be able to restore > backups from it for example. imposing audit/backup privs would prevent > this, afaict AUDIT is the permission that determines visibility of a datastore, READ=20 is the permission to read its *contents*. this api call is not related=20 to reading arbitrary datastore contents, so it should not require that=20 permission. =