From nobody Wed Feb 11 06:14:34 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) client-ip=170.10.133.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1676394612; cv=none; d=zohomail.com; s=zohoarc; b=cCSZoua40ht8i7bPyr5nKOM+9SiJccyJoi7hmV8KYyA8X8XPeYPKOOz6etvnyXsdNGehahBBsohSk3vclt8YlJncOAgFN02JhLE0LUB8SE/GfdvKv+mnIf8HgqsBCVBrNifOSjTqRu4c3kMbnfrUv0QAkJ8KV3S0ISTFM9tqlI0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1676394612; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=1FK/74oDLUCRNzfjaaAp2pW0cNXcohzf8WqYdBJSsuM=; b=SDX7LNuEzPGDImK0468VrN1apaJBuoAaWsJJM9PkVLi6+kPYy6iORiHyv+3zDd+bRuLg6KIBGmUdkjVfjZ9Fp6oeGUc2D6wCIR+i2N2tt+db3OBjzHaVe3BLY8pwH/PSnffDBBsaq0OzrNL66AJA2EAzadsH8lXZ7w6pdFsiX9w= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.zohomail.com with SMTPS id 1676394612687731.6206595549675; Tue, 14 Feb 2023 09:10:12 -0800 (PST) Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-270-Vse2xfZFMQuyjbLB1tj9rg-1; Tue, 14 Feb 2023 12:09:30 -0500 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 2CEE9281723B; Tue, 14 Feb 2023 17:09:22 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (unknown [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 164552026D2A; Tue, 14 Feb 2023 17:09:22 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 44EFC1946A49; Tue, 14 Feb 2023 17:08:39 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 9CD9B1946A42 for ; Tue, 14 Feb 2023 17:08:27 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 988891C55A; Tue, 14 Feb 2023 17:08:27 +0000 (UTC) Received: from himantopus.redhat.com (unknown [10.22.8.15]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 76D4A18EC2 for ; Tue, 14 Feb 2023 17:08:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1676394611; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=1FK/74oDLUCRNzfjaaAp2pW0cNXcohzf8WqYdBJSsuM=; b=HyKFaqUnrafepzXziKmkIc4IlMFaq56kbESxjqQpqtSISd0HkeqUag148Hh7lW65Acbx5T 8hMmyCpW3AFV9hP1k2GcJ23uK5pG2VarQ/ZzLF9mntf+fFtiJJ5m+NcxYrZAZzQB5wg3wm +7STzhW/6uH6gtRncKRgofBDluyyym0= X-MC-Unique: Vse2xfZFMQuyjbLB1tj9rg-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Jonathon Jongsma To: libvir-list@redhat.com Subject: [libvirt PATCH v5 29/32] schema: add configuration for host verification of ssh disks Date: Tue, 14 Feb 2023 11:08:16 -0600 Message-Id: <20230214170819.3143132-30-jjongsma@redhat.com> In-Reply-To: <20230214170819.3143132-1-jjongsma@redhat.com> References: <20230214170819.3143132-1-jjongsma@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.5 X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 3.1 on 10.11.54.4 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1676394614989100007 Content-Type: text/plain; charset="utf-8"; x-default="true" In order to make ssh disks usable, we need to be able to validate a remote host. To do this, add a xml element for ssh disks to allow the user to specify a location for a file that contains known host keys. Implementation to follow. Signed-off-by: Jonathon Jongsma Reviewed-by: Peter Krempa --- docs/formatdomain.rst | 6 ++++++ src/conf/schemas/domaincommon.rng | 11 +++++++++++ 2 files changed, 17 insertions(+) diff --git a/docs/formatdomain.rst b/docs/formatdomain.rst index bf071255c5..d5ad5d80b0 100644 --- a/docs/formatdomain.rst +++ b/docs/formatdomain.rst @@ -2953,6 +2953,12 @@ paravirtualized driver is specified via the ``disk``= element. If the reconnect feature is enabled, accepts ``yes`` and ``no`` ``timeout`` The amount of seconds after which hypervisor tries to reconnect. + ``knownHosts`` + For storage accessed via the ``ssh`` protocol, this element configur= es a + path to a file containing a list of known ssh hosts to be used to ve= rify + the remote host. The location of the file is specified via the ``pat= h`` + attribute. + :since:`Since 9.1.0` =20 =20 For a "file" or "volume" disk type which represents a cdrom or floppy (= the diff --git a/src/conf/schemas/domaincommon.rng b/src/conf/schemas/domaincom= mon.rng index bc582e450e..f38f1f3ff1 100644 --- a/src/conf/schemas/domaincommon.rng +++ b/src/conf/schemas/domaincommon.rng @@ -2160,6 +2160,14 @@ =20 + + + + + + + + @@ -2175,6 +2183,9 @@ + + + --=20 2.39.1