Received: from eggs.gnu.org ([2001:4830:134:3::10]:45488) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f8nAf-0004bt-Vt for qemu-devel@nongnu.org; Wed, 18 Apr 2018 09:30:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f8nAb-0006I0-4p for qemu-devel@nongnu.org; Wed, 18 Apr 2018 09:30:49 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:59728 helo=mx1.redhat.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1f8nAa-0006Hf-Ux for qemu-devel@nongnu.org; Wed, 18 Apr 2018 09:30:45 -0400 References: <20180417224054.26363-1-lersek@redhat.com> <20180418060243.iafg4wj5gwsruop5@sirius.home.kraxel.org> <20180418090457.dqg5gxnzobdofkao@sirius.home.kraxel.org> <20180418122312.ebmd2nrtvk2h5e45@sirius.home.kraxel.org> <20180418130619.cmyyyl7fj2wfum7k@sirius.home.kraxel.org> From: Laszlo Ersek Message-ID: <0545cc73-d821-c2d9-e4ab-938e58c34c2b@redhat.com> Date: Wed, 18 Apr 2018 15:30:36 +0200 MIME-Version: 1.0 In-Reply-To: <20180418130619.cmyyyl7fj2wfum7k@sirius.home.kraxel.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [qemu RFC v2] qapi: add "firmware.json" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerd Hoffmann Cc: "Daniel P. Berrange" , qemu-devel@nongnu.org, libvir-list@redhat.com, Alexander Graf , Ard Biesheuvel , David Gibson , Eric Blake , Gary Ching-Pang Lin , Kashyap Chamarthy , Markus Armbruster , Michael Roth , Michal Privoznik , Paolo Bonzini , Peter Krempa , Peter Maydell , Thomas Huth On 04/18/18 15:06, Gerd Hoffmann wrote: >>> Other question: Do we want allow to specify which certs/keys are >>> enrolled? Which would probably mean to drop "enrolled-keys" from >>> features and make it an optional string instead, >> >> Not an enum? "Microsoft" below should be an enum constant, shouldn't it? > > I don't think so. If we want allow other certificate providers (not > sure it makes sense as all physical hardware actually runs with the > microsoft certificates), then we don't want a fixed list here. So any > CA can be listed, be it microsoft, redhat, canonical, verisign or > kraxel.org ;) I agree (obviously), but then, at what detail do we stop? Because, if we go for full flexibility, then we should formalize: - the certificate that goes into PK, - the list of certificates that go into KEK, - the list of certificates that go into db, and we should likely formalize "certificate" itself as the following pair: - human-readable description (possibly the Common Name of the Subject), - SHA256 digest (fingerprint) of the certificate. I do think this would totally be overkill, but I don't know where to draw the line - between the currently proposed @enrolled-keys (or similar enums that stand for well-defined "constellations") - and the full details as described above. A simple string like "Microsoft" doesn't seem to me helpful for either the user or management software -- the former won't know what "Microsoft" stands for, and the latter won't want to look for free-form strings. (Same issue as with @tags vs. @features.) Thanks Laszlo