public inbox for pbs-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Samuel Rufinatscha <s.rufinatscha@proxmox.com>
To: Christian Ebner <c.ebner@proxmox.com>,
	Jakob-Tobias Winter <tobias@stuttgart.de>,
	pbs-devel@lists.proxmox.com
Subject: Re: [RFC PATCH many 00/12] snapshot attributes for tags and pools of PVE guests, tape job filter
Date: Tue, 1 Dec 2026 16:07:52 +0100	[thread overview]
Message-ID: <021387de-b17f-483d-8fd4-5cf1b602094b@proxmox.com> (raw)
In-Reply-To: <d8b0c2a6-ec6c-44a8-9762-a7bde78f7484@proxmox.com>

On 12/1/26 3:51 PM, Christian Ebner wrote:
> 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.

Makes sense, seems reasonable to me to remove this additional check.
It can only confirm that the client sent the same tags in the manifest
and in /finish but the trust assumptions stay the same.




      reply	other threads:[~2026-12-01 15:07 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-13  8:56 [RFC PATCH many 00/12] snapshot attributes for tags and pools of PVE guests, tape job filter Jakob-Tobias Winter
2026-11-13  8:56 ` [RFC PATCH proxmox 01/12] pbs-api-types: add types and schemas for snapshot attributes Jakob-Tobias Winter
2026-11-16 14:57   ` Christian Ebner
2026-11-18 12:54   ` Samuel Rufinatscha
2026-11-13  8:56 ` [RFC PATCH proxmox 02/12] pbs-api-types: tape: add attribute filter to backup jobs Jakob-Tobias Winter
2026-11-16 14:57   ` Christian Ebner
2026-11-13  8:56 ` [RFC PATCH proxmox-backup 03/12] datastore: add attributes to backup snapshots Jakob-Tobias Winter
2026-11-16 14:57   ` Christian Ebner
2026-11-18 12:55   ` Samuel Rufinatscha
2026-11-13  8:56 ` [RFC PATCH proxmox-backup 04/12] fix #7452: api: datastore: add endpoints for snapshot attributes Jakob-Tobias Winter
2026-11-16 14:57   ` Christian Ebner
2026-11-13  8:56 ` [RFC PATCH proxmox-backup 05/12] tape: backup job: allow selecting groups by " Jakob-Tobias Winter
2026-11-18 13:06   ` Samuel Rufinatscha
2026-11-18 15:19     ` Christian Ebner
2026-11-13  8:56 ` [RFC PATCH proxmox-backup 06/12] ui: tape backup job: add attribute filter Jakob-Tobias Winter
2026-11-13  8:56 ` [RFC PATCH proxmox-backup 07/12] docs: describe snapshot attributes and the tape job " Jakob-Tobias Winter
2026-11-13  8:56 ` [RFC PATCH storage 08/12] pbs: add helper to set the attributes of a backup snapshot Jakob-Tobias Winter
2026-11-13  8:56 ` [RFC PATCH guest-common 09/12] vzdump: add pbs-snapshot-attributes option Jakob-Tobias Winter
2026-11-13  8:56 ` [RFC PATCH manager 10/12] vzdump: store guest tags and pool as snapshot attributes on PBS Jakob-Tobias Winter
2026-11-13  8:56 ` [RFC PATCH manager 11/12] ui: backup job: add selector for PBS snapshot attributes Jakob-Tobias Winter
2026-11-13  8:56 ` [RFC PATCH docs 12/12] vzdump: describe snapshot attributes on Proxmox Backup Server Jakob-Tobias Winter
2026-11-16 14:57 ` [RFC PATCH many 00/12] snapshot attributes for tags and pools of PVE guests, tape job filter Christian Ebner
2026-11-18 13:07   ` Samuel Rufinatscha
2026-11-18 14:22 ` Samuel Rufinatscha
2026-11-19 11:58   ` Jakob-Tobias Winter
2026-11-28 12:31     ` Jakob-Tobias Winter
2026-12-01  8:54       ` Christian Ebner
2026-12-01 11:23         ` Samuel Rufinatscha
2026-12-01 14:51           ` Christian Ebner
2026-12-01 15:07             ` Samuel Rufinatscha [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=021387de-b17f-483d-8fd4-5cf1b602094b@proxmox.com \
    --to=s.rufinatscha@proxmox.com \
    --cc=c.ebner@proxmox.com \
    --cc=pbs-devel@lists.proxmox.com \
    --cc=tobias@stuttgart.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal