From nobody Tue Feb 10 16:22:13 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) client-ip=170.10.129.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.129.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=1674252382; cv=none; d=zohomail.com; s=zohoarc; b=csESfX7MZ8jeu+RiX6DbnJIwzwuF0SCNTDvEnrHVR+rR/judVNSsNj3Js4mQpXo3xnmXBxWuQxEw38sJigJN6KkBb84hS8HQ4rw5g1GB+wN3n149L+urycSDH/QdGl494DaSSBZFWQ5RZsEd65dZepCTzOrqRR9AHY8MSxOZZ+U= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1674252382; 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=VDVzDwfZVTVkhbWAhVfj9FdSt909VTNFPiy0PU/z+kc=; b=fyBwJ6esDM+nS5yaDXgtLPKfCjSUeiQV1HUCWRF3hY8+FWIhHmNUMzXXjH/jh0ryoN7+pBb+HBSoPoKfG2VeyZGyS6jCnQeYzfVMf6hp0r3MHZVBW4dXXLEfBcn1W2PSCiBiowvqltbV0TbyhaXVwuVw16pJ2IN9vqeb/5iyLlQ= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.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.129.124]) by mx.zohomail.com with SMTPS id 1674252382368905.6057446161781; Fri, 20 Jan 2023 14:06:22 -0800 (PST) Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-516-HGxC6btuO2SOxNwxKKxtmA-1; Fri, 20 Jan 2023 17:03:51 -0500 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 8778718A6471; Fri, 20 Jan 2023 22:03:36 +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 6A5522166B33; Fri, 20 Jan 2023 22:03:36 +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 5C06919465B6; Fri, 20 Jan 2023 22:03:36 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 50A921946A6D for ; Fri, 20 Jan 2023 22:03:32 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 43AB814171C0; Fri, 20 Jan 2023 22:03:32 +0000 (UTC) Received: from himantopus.redhat.com (unknown [10.22.18.185]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 22E0014171C1 for ; Fri, 20 Jan 2023 22:03:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1674252381; 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=VDVzDwfZVTVkhbWAhVfj9FdSt909VTNFPiy0PU/z+kc=; b=h2lP3UEkhgO8j8skgo0wcjVQgK7Qv8Q3U027oJa3ns/WCv+9ge2zNz/8xUd76rcmLTpoAK ryVQDQbcygq2w2Rnf/mec2Id3yLVsr0tZ/sug4eiIChl3+peffeqNo2nco+gc5mXfT1BE0 xzCgkN+c3uSMYhMQwPlVS3/pkXSkWMQ= X-MC-Unique: HGxC6btuO2SOxNwxKKxtmA-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Jonathon Jongsma To: libvir-list@redhat.com Subject: [libvirt PATCH v4 28/31] schema: add configuration for host verification of ssh disks Date: Fri, 20 Jan 2023 16:03:22 -0600 Message-Id: <20230120220325.1015090-29-jjongsma@redhat.com> In-Reply-To: <20230120220325.1015090-1-jjongsma@redhat.com> References: <20230120220325.1015090-1-jjongsma@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.7 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.6 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: 1674252383905100001 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 --- 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 f0f3416f29..2a4d19dcd3 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 79e50fd3e3..a632e04c3b 100644 --- a/src/conf/schemas/domaincommon.rng +++ b/src/conf/schemas/domaincommon.rng @@ -2148,6 +2148,14 @@ =20 + + + + + + + + @@ -2163,6 +2171,9 @@ + + + --=20 2.39.0