From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate001.proxmox.com (gate001.proxmox.com [45.144.208.40]) by lore.proxmox.com (Postfix) with ESMTPS id 28F191FF09F for ; Tue, 01 Dec 2026 15:51:11 +0100 (CET) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id D5DDB2057E; Tue, 01 Dec 2026 15:51:10 +0100 (CET) Message-ID: Date: Tue, 1 Dec 2026 15:51:05 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [RFC PATCH many 00/12] snapshot attributes for tags and pools of PVE guests, tape job filter To: Samuel Rufinatscha , Jakob-Tobias Winter , pbs-devel@lists.proxmox.com References: <20261113085637.57360-3-tobias@stuttgart.de> <751f5842-78cc-49cd-9e4e-8a4950e46d8f@proxmox.com> <559fc611-2d42-40c0-ac46-fab2866e501b@stuttgart.de> <87b30906-147f-4439-ba12-beaa3f82c263@proxmox.com> <62b5c6f6-b248-48ec-96f4-3c9b6db0e4b3@proxmox.com> Content-Language: en-US, de-DE From: Christian Ebner In-Reply-To: <62b5c6f6-b248-48ec-96f4-3c9b6db0e4b3@proxmox.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1796136666594 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.187 Adjusted score from AWL reputation of From: address DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment (newer systems) POISEN_SPAM_PILL 0.1 Meta: its spam POISEN_SPAM_PILL_1 0.1 random spam to be learned in bayes POISEN_SPAM_PILL_3 0.1 random spam to be learned in bayes RCVD_IN_DNSWL_MED -2.3 Sender listed at https://www.dnswl.org/, medium trust SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Message-ID-Hash: WKVZBTLZKMFH7SJDKM4PX7DHIKWGG3A6 X-Message-ID-Hash: WKVZBTLZKMFH7SJDKM4PX7DHIKWGG3A6 X-MailFrom: c.ebner@proxmox.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox Backup Server development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: On 12/1/26 12:23 PM, Samuel Rufinatscha wrote: > On 12/1/26 9:54 AM, Christian Ebner wrote: >> On 11/28/26 1:31 PM, Jakob-Tobias Winter wrote: >>> Hi Christian, hi Samuel, >>> >>> to have it in one place and not spread over the single threads, here >>> is what I would do for an RFC v2. Let me know if something needs more >>> thought. >>> >>> Proxmox Backup Server >>> >>> * The client passes the attributes when it starts the backup session >>>    and cannot change them afterwards. finish_backup() refuses the >>>    backup if the uploaded manifest has attributes that differ. If the >>>    manifest has none, the server adds them, so a client only has to >>>    pass them once. Changing them later is only possible as root@pam, >>>    with the PUT call of v1. >> >> It would be preferable to keep the pre-existing backup protocol API >> endpoints but nevertheless avoid restrictions by the GET parameter >> length, so adding this as body on backup finish POST call, ideally in >> an optional manner also keeping future extensibility in mind. >> Attributes stored in the manifest must then match these provided at >> backup finish, non matching ones dropped before persisting the >> manifest to the backing storage. This is also relevant for sync jobs >> in push direction, as these use the backup API. > > Using the existing /finish call sounds good to me too. > > In the case of an older PBS copying a backup to a newer PBS, the > manifest might already contain attributes. The older PBS however would > send /finish without. > > Would it make sense to keep the manifest attributes if they pass > validation? Otherwise, the synced copy would lose attributes that are > still present on the original. In that case the additional splitting/upload consistency check would not be required anymore at all? I currently fail to recall why I suggested the split to begin with... After all the trust boundary remains the same. So maybe best to keep this purely in the manifest and check the attributes on manifest upload, using strict deserialization helpers and types.