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 049206469C for ; Fri, 30 Oct 2020 10:56:13 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 0159711FBC for ; Fri, 30 Oct 2020 10:55:43 +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 8A85D11FB2 for ; Fri, 30 Oct 2020 10:55:42 +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 57F4B45E42 for ; Fri, 30 Oct 2020 10:55:42 +0100 (CET) Date: Fri, 30 Oct 2020 10:55:36 +0100 From: Fabian =?iso-8859-1?q?Gr=FCnbichler?= To: Proxmox Backup Server development discussion , Thomas Lamprecht References: <20201028113632.814586-1-f.gruenbichler@proxmox.com> <1604044834.4pcbf9rinm.astroid@nora.none> In-Reply-To: MIME-Version: 1.0 User-Agent: astroid/0.15.0 (https://github.com/astroidmail/astroid) Message-Id: <1604050228.leewgyaqs1.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: [pbs-devel] [PATCH proxmox-backup 00/16] API tokens 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: Fri, 30 Oct 2020 09:56:13 -0000 On October 30, 2020 9:48 am, Thomas Lamprecht wrote: > On 30.10.20 09:03, Fabian Gr=C3=BCnbichler wrote: >> On October 29, 2020 8:50 pm, Thomas Lamprecht wrote: >>> Also, I just may not remember if we discussed this, but why is there no >>> "inherit the user permission" mode like PVE has? >>=20 >> because with the ACL changes (allowing a user to define arbitrary ACLs=20 >> for their tokens) it's not really needed. I can just give Admin on '/'=20 >> with propagation for the same effect. >=20 > hmm, true, but then I'd hint to the user that a newly created token has > no permissions. might be a good addition to the 'Copy secret value' dialogue? >=20 >> and also because I think it's=20 >> better to make users think about which permissions to give a certain=20 >> token (e.g., most tokens will probably just have Datastore.Backup on one= =20 >> datastore, which is something I'd like to put somewhere on the Datastore= =20 >> GUI as a two-step 'Create client token' thing) then nudging them into=20 >> 'just tick this and everything works (but is not much better than just=20 >> storing your username + password everywhere)'. >>=20 >=20 > btw. can we enter a token in Proxmox VE storage add already? yes, it should be usable everywhere by using tokenid + secret instead=20 of userid + password (including remotes, PVE, proxmox-backup-client=20 command-line), except for proxmox-backup-qemu for which I just sent a=20 patch (Userid -> Authid). =