From: hunleyd (@hunleyd) <noreply+hunleyd@github.com>
To: pgbackrest/pgbackrest <noreply+pgbackrest-pgbackrest@github.com>
Subject: Re: [pgbackrest/pgbackrest] PR #2883: RFC: Derive the info file key with PBKDF2 in repository format 6.
Date: Mon, 19 Oct 2026 17:03:57 +0000
Message-ID: <gh-pgbackrest-pgbackrest-2883-c6272701287@github.com> (raw)
In-Reply-To: <gh-pgbackrest-pgbackrest-2883@github.com>
References: <gh-pgbackrest-pgbackrest-2883@github.com>
The cost of 600000 rounds of PBKDF2-HMAC-SHA256 was about 100 ms on my macbook using Python hashlib. In async mode, the foreground `archive-get` and `archive-push` do not load `archive.info`; the cost applies to each _batch_ in _async mode_ and to each _WAL segment_ only in _sync mode_. So, I would say that Format 6 always uses 600000 rounds. The header records the # of rounds. A documented `repo-cipher-round` setting lets the user _decrease_ the rounds when the passphrase is a truly random/secure value. This should be safe by default.