From nobody Mon Feb 9 16:01:03 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=1689891653; cv=none; d=zohomail.com; s=zohoarc; b=LSlP3Dqu/Ne2zyBaU7StVWSBQv85JWZNLFkI6N6RMCDjmRGD/RkiXqVWGLP9ZeZjfcVtMoqQn70r4aaplA9iiN/OjfCZ+RBdaogDL00gNbVKHdeL/dn/CKZs2GpV8AJBhPUuGEExSpUIzX+LL49hibea/iNHC97eko74s4155To= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1689891653; h=Content-Type:Content-Transfer-Encoding:Cc: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=FLvscAittGzT0a0FiPRAmh7c1Er1JcnyTFSm898ucE0=; b=etDwD3sbiEOrSL/5zmNeUy6Uj1r8PTm1dKzKrU2hYIQ2De5fMhJg9WV2BH0m+reGinLyAvMqurgWiz9Q0R6u/oPfKv/QVq+G6/ocRDqpxp77iPOEHM5o8gVPxGTtTMiFn2FR9xP0HGRADh7+LLk2R83I3ndFrPkGh9WCNM+cuIU= 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 1689891653475593.3889743083703; Thu, 20 Jul 2023 15:20:53 -0700 (PDT) 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-577-YCZ4TbWrO46lsKlfzieZdA-1; Thu, 20 Jul 2023 18:20:44 -0400 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 1C9231064B42; Thu, 20 Jul 2023 22:20:34 +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 F16DE207B327; Thu, 20 Jul 2023 22:20:33 +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 C0AF419451F1; Thu, 20 Jul 2023 22:20:20 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 9C83B19452C5 for ; Thu, 20 Jul 2023 22:20:14 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id CEBAF40C20F7; Thu, 20 Jul 2023 22:20:11 +0000 (UTC) Received: from himantopus.redhat.com (unknown [10.22.8.155]) by smtp.corp.redhat.com (Postfix) with ESMTPS id A437B40C207D; Thu, 20 Jul 2023 22:20:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1689891652; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc: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=FLvscAittGzT0a0FiPRAmh7c1Er1JcnyTFSm898ucE0=; b=LJI6oiq0zB4bnkpSRkHFeQsb/zQhy21Wqt4b5aW6BI8nCgMCkYVSEix782r1xH9ljde7Ah i/v3EMV0KqR8BR1Bi4vVg1VF6Xa2GkveCcfTjEpzn3qY9qPMx+qfbLqBH/CtTNfSdE1odO EmNC1DF2QwPfjOfIC7Teg2zglqkcuHE= X-MC-Unique: YCZ4TbWrO46lsKlfzieZdA-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Jonathon Jongsma To: libvir-list@redhat.com Subject: [libvirt PATCH v6 29/36] schema: add configuration for host verification of ssh disks Date: Thu, 20 Jul 2023 17:19:56 -0500 Message-ID: <20230720222003.411549-30-jjongsma@redhat.com> In-Reply-To: <20230720222003.411549-1-jjongsma@redhat.com> References: <20230720222003.411549-1-jjongsma@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.1 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: , Cc: Peter Krempa 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: 1689891654431100006 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 | 8 ++++++++ src/conf/schemas/domaincommon.rng | 11 +++++++++++ 2 files changed, 19 insertions(+) diff --git a/docs/formatdomain.rst b/docs/formatdomain.rst index 7a5cb1cf22..1d30eb5016 100644 --- a/docs/formatdomain.rst +++ b/docs/formatdomain.rst @@ -3003,6 +3003,14 @@ paravirtualized driver is specified via the ``disk``= element. paused and will be rerun after a successful reconnect. After that= time, any delayed requests and all future requests before a successful reco= nnect will immediately fail. If not set the default QEMU value is 0. + ``knownHosts`` + For storage accessed via the ``ssh`` protocol, this element configur= es a + path to a file that will be used to verify the remote host. This file + must contain the expected host key for the remote host or the connec= tion + will fail. The location of the file is specified via the ``path`` + attribute. + :since:`Since 9.6.0` + =20 For a "file" or "volume" disk type which represents a cdrom or floppy (= the ``device`` attribute), it is possible to define policy what to do with = the diff --git a/src/conf/schemas/domaincommon.rng b/src/conf/schemas/domaincom= mon.rng index 9fcf59268d..aa6f39bd2d 100644 --- a/src/conf/schemas/domaincommon.rng +++ b/src/conf/schemas/domaincommon.rng @@ -2187,6 +2187,14 @@ =20 + + + + + + + + @@ -2202,6 +2210,9 @@ + + + --=20 2.41.0