Install

Works with Drupal: ^11.3 || ^12

Using Composer to manage Drupal site dependencies

Alternative installation files

Download tar.gz 587.41 KB
MD5: c2b3d27e6a32d58f2e697d7419a9c898
SHA-1: 569c15812695039a545e710b9e5506e021f99b59
SHA-256: 1fac55b687dac956848532f387b1df2025c826127d330b3e682608b10b5f62de
Download zip 851.69 KB
MD5: 3327c3b09abd5cfee1703ad71c8babc7
SHA-1: 54a0f3dc9d6137b7c921c565bd84007f9496a904
SHA-256: 5f3b19d0a5ea1df1aa7d1f6ff38c591b7bae29bc6ec0305a101203557301fb7a

Release notes

Updating from 1.0.0-alpha10 takes two steps, both straight away. Rebuild the cache (drush cr), because several services changed their constructor arguments and one was renamed, so the site fails until the container is rebuilt. Then install the new first_warned_at field on subject keys, which has no update hook since pdv has no beta release yet:

drush php:eval "\Drupal::entityDefinitionUpdateManager()->installFieldStorageDefinition('first_warned_at', 'pdv_subject_key', 'pdv', \Drupal::service('entity_field.manager')->getFieldStorageDefinitions('pdv_subject_key')['first_warned_at']);"

Until it is installed, a site with dormant-vault cleanup turned on gets an error from the cleanup pass of every cron run and from the cleanup panel on Vault subjects. No other table and no shipped configuration changes; the one new setting reads as today's behaviour until it is saved.

A Master KEK can no longer be deleted or re-valued by accident

A Master KEK wraps every subject key of the vaults stored under it, so deleting it, or changing its value, makes those vaults permanently unreadable. Only the Key module's delete form refused it. drush key:delete, drush config:delete key.key.<id>, code, and a configuration import whose sync directory does not contain the key all deleted it, and nothing refused a new value. Now a key that is the site's Master KEK, or still wraps any subject key, cannot be deleted or re-valued from anywhere. A configuration import that would do either is refused before it applies anything, and the key's edit form shows the refusal as a form error. Moving the key to another provider that holds the same value still works (Issue 3620292).

Dormant-vault cleanup warns every owner before erasing

Cleanup erased a vault as soon as its last activity was older than the deletion age, whether or not any reminder had been sent. So turning cleanup on, or shortening the deletion age, crypto-erased every vault already idle that long on the next cron run, with no warning at all. A vault's deadline is now never sooner than the longest reminder lead-time after its first reminder, and it is erased only once every reminder has been sent: a vault already past its deadline is warned on the next run and gets the whole reminder schedule. With no reminders configured it is erased at the deletion age, as before. Vaults that were warned before this release are warned again from the first reminder, since when they were warned was not recorded. The preview on Vault subjects counts as "erased on the next cron run" only the vaults that will be (Issue 3620294).

A tenant or an item kind still in use cannot be deleted

A tenant's delete form refused the delete while vault items, subject keys or consumers belonged to it, but not while item kinds of its own did, and drush, code and configuration imports were not refused at all. A tenant is now refused on every path while anything belongs to it, and its delete page lists what is left. A tenant-scoped item kind now depends on its tenant, so an import that removes both deletes the kind first (Issue 3620291).

An item kind could be deleted while vault items still used it, leaving them named by the kind's machine name and a record kind's items with no fields to show their values by. It is now refused on every path while any item uses it, and its delete page says how many do (Issue 3620293).

What keeps a vault unlocked is a setting

A new setting, What keeps the vault unlocked, on the PDV settings form and on each tenant, chooses between Any page the owner visits, the only behaviour until now and still the default, and Reading or saving vault items only, which locks the vault again once the owner stops working with it, even while they keep browsing. A tenant can leave it at the site default (Issue 3620290).

A request that sends no vault session key no longer builds the vault's key and crypto services: on alpha10 every request that missed the page cache built fourteen of them. A request that does send one does the same vault work as before (Issue 3620290).

The cross-site write API refuses an oversized body before reading it

The write endpoints checked their size cap only after reading the whole request body into memory, and PHP bounds a POST body but not a PUT one. A body whose declared length is over the cap is now refused with a 413 before it is read (Issue 3620294).

Messages

  • Plurals on the Vault subjects page, the Master KEK rotation form and the trust revoke form were written with "(s)"; they use Drupal's plural forms now, so they read correctly for one and can be translated (Issue 3620293).
  • When applying an owner's decisions on a request fails, the owner sees a translated sentence saying nothing was shared, instead of the exception's own English message, which is logged (Issue 3620293).
  • French: the audit trail is the journal d'audit throughout, where some entries said piste d'audit or left Audit Trail in English (Issue 3620289); dormant-vault cleanup says inactivité and coffres-forts inactifs (Issue 3620294).

API changes

  • VaultSession is now UnlockedSessionManager and no longer has rehydrate(), stageCookie() or applyCookie(); the new UnlockedSessionStorage holds the unlocked sessions, and VaultUnlockSubscriber listens to requests only (Issue 3620290).
  • A pdv_tenant entity key marks a type whose rows belong to a vault tenant, as pdv's items, subject keys and item kinds now do; deleting a tenant anything still belongs to throws TenantInUseException (Issue 3620291).
  • Deleting or re-valuing a key that protects vault data throws MasterKekInUseException (Issue 3620292).
  • Deleting an item kind in use throws ItemKindInUseException. ItemKindRepository::all() is now loadAll(), and ConsumerTenantHooks::consumerTenantBuilder() is now copyTenantToNewConsumer() (Issue 3620293).
  • PdvSubjectKeyInterface has getFirstWarnedAt() and setFirstWarnedAt() (Issue 3620294).

Housekeeping

The codebase metrics page is measured against this release (Issue 3620295).

Created by: mably
Created on: 30 Sep 2026 at 21:35 UTC
Last updated: 30 Sep 2026 at 21:35 UTC
Bug fixes
New features

Other releases