From nobody Tue Feb 10 01:19:44 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=1689891687; cv=none; d=zohomail.com; s=zohoarc; b=cACLR047Z82GUayvRoXF3hzhae/Oz+/e9Hv3FXgBuo5TYo7XLtl3P5AZgz2sPSsWgUBgk0hfFA2P+dMKwlxAfGEP9m81l0du4mLSfHqKEF9mBof+RU6sBQ9OgnWSgocdCwM1FAZE07J6YIw4qcsZNkB2V+C1KD1a6W6gPHt7NY8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1689891687; 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=hHgHgWY5ubNzTTOuaS8/HmgrBJRDvK3JK6kCp/qYXbk=; b=ALPD1Q4Qp3y2WrZKu4q/Rf56PFH1N1ZMdxzZcpTWzEONqO336hL685WHGw2WjdLbiYj885TZ156LqZsEaMA2K8AYOYME0DrNozBQKz9/ep3w3u8PESjvHFg3J0i5Vfs3sHZoY+p2E/x9ScIghZ1r8B00iD1RTyCKFJjJKEcEK2E= 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 1689891687774388.41024265534224; Thu, 20 Jul 2023 15:21:27 -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-648-9VwqxpWhNVahkJy5xj07cw-1; Thu, 20 Jul 2023 18:20:47 -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 5C1981064FB7; Thu, 20 Jul 2023 22:20:35 +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 292C5207B359; Thu, 20 Jul 2023 22:20:35 +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 6C7401949755; Thu, 20 Jul 2023 22:20:21 +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 C1EB51946A6A for ; Thu, 20 Jul 2023 22:20:14 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 4BE6640CE2A7; Thu, 20 Jul 2023 22:20:12 +0000 (UTC) Received: from himantopus.redhat.com (unknown [10.22.8.155]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 218AA40C207D; Thu, 20 Jul 2023 22:20:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1689891686; 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=hHgHgWY5ubNzTTOuaS8/HmgrBJRDvK3JK6kCp/qYXbk=; b=cklBwUNNnEalIy1K98QPuhpEIawmHbyphWKJyVnq815dwlwBKG//0lC8YBztIPwkta0n4F m1YShmITmFU02Fo5x9WHiwojFw2b8WNwaOOnGwhOPoOd7q161LmqxXw5fIgrytkL1o39mS TWuSxo5LmZ+NF856oowWwPU+CXDDAvU= X-MC-Unique: 9VwqxpWhNVahkJy5xj07cw-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Jonathon Jongsma To: libvir-list@redhat.com Subject: [libvirt PATCH v6 31/36] schema: add keyfile configuration for ssh disks Date: Thu, 20 Jul 2023 17:19:58 -0500 Message-ID: <20230720222003.411549-32-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: 1689891688588100003 Content-Type: text/plain; charset="utf-8"; x-default="true" Authenticating via key file to an ssh server is often preferable to logging in via password. In order to support this functionality add a new xml element for ssh disks that allows the user to specify a keyfile and username. Example configuration: ... ... Signed-off-by: Jonathon Jongsma Reviewed-by: Peter Krempa --- docs/formatdomain.rst | 7 +++++++ src/conf/schemas/domaincommon.rng | 19 ++++++++++++++++++- 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/docs/formatdomain.rst b/docs/formatdomain.rst index 1d30eb5016..364fe285a3 100644 --- a/docs/formatdomain.rst +++ b/docs/formatdomain.rst @@ -2987,6 +2987,13 @@ paravirtualized driver is specified via the ``disk``= element. of these attributes is omitted, then that field is assumed to be the default value for the current system. If both ``user`` and ``group`` are intended to be default, then the entire element may be omitted. + + When using an ``ssh`` protocol, this element is used to enable + authentication via ssh keys. In this configuration, the element has = two + attributes. The ``username`` attribute specifies the name of the use= r on + the remote server and the ``keyfile`` attribute specifies the path t= o the + keyfile. Note that this only works for ssh keys that are not + password-protected. ``reconnect`` For disk type ``vhostuser`` configures reconnect timeout if the conn= ection is lost. This is set with the two mandatory attributes ``enabled`` a= nd diff --git a/src/conf/schemas/domaincommon.rng b/src/conf/schemas/domaincom= mon.rng index aa6f39bd2d..5b90b71dff 100644 --- a/src/conf/schemas/domaincommon.rng +++ b/src/conf/schemas/domaincommon.rng @@ -2195,6 +2195,19 @@ =20 + + + + + + + + + + + + + @@ -2214,11 +2227,15 @@ - + + + + + --=20 2.41.0