Install
Works with Drupal: ^11.3 || ^12Using Composer to manage Drupal site dependencies
Alternative installation files
Release notes
WARNING: THERE IS NO MIGRATION PATH FROM A RELEASE BEFORE 1.0.0-ALPHA12.
Do not update a site running alpha11 or earlier to this release. Personal Data Vault ships no update hooks, and none is coming until the first beta release. A site on alpha11 or earlier must uninstall the Personal Data Vault modules and install 1.0.0-alpha14 fresh, as the alpha12 release notes describe. From alpha12 or alpha13, this release changes code only: no configuration, schema or stored data changes. Rebuild the cache after installing.
Security: a return path with a tab or a line break left the site
A browser deletes tabs and line breaks anywhere in a URL. So a slash, a tab, then /evil.example becomes //evil.example, which is another host. Alpha13 accepted such a return_to in two places:
- the vault's unlock form, which sent the owner there right after they unlocked their vault;
- the consumer site's unlock and consent flows, which sent the owner there when they came back from the vault.
Both now refuse a return path that holds a control character, or that Drupal's UrlHelper::isExternal() calls external. The unlock form then falls back to the owner's vault page, and the consumer site to its front page. The vault's local consent page applies the same rule. It already stayed on the vault site, because it adds the site's own address to the path (Issue 3620302, Issue 3620304).
The operator's own Vault access page is refused
The Vault access tab on a user's profile lets an operator inspect that user's vault. On the operator's own profile, the tab was hidden, but its page still opened by URL. It is now refused there with a 403. The Vault tab already shows that vault, with its data and every action. On another user's profile, nothing changes (Issue 3620303).
Fewer listeners on every request
- A consumer site's API call now extends an unlock kept open by page navigation when the API finishes its answer. The
X-Pdv-Vault-Unlock-Expires-Inheader counts that extension. A call refused with the uniform 403 or a 429 no longer extends the unlock. - The listener that extends an unlock while the owner browses the vault site now handles only the vault site's unlock cookie. It is registered only while some tenant uses Any page the owner visits. On a site where every tenant uses Reading or saving vault items only, it no longer runs at all. A
$configoverride in settings.php counts. - Saving the PDV settings form, or saving or deleting a tenant, rebuilds the container when that answer changes. If you change the site-wide choice another way, for example with
drush config:setor a configuration import, rebuild the cache afterwards. - Once no tenant uses Any page the owner visits, pages on the vault site stop extending unlocks at once. That includes the unlocks still open that were made under that choice (Issue 3620303).
For developers
- New:
Drupal\pdv\InternalPathPolicy::isInternalPath(), the one rule for a return path that stays on the site. - New:
Drupal\pdv_engine\PdvEngineServiceProvider, and the serviceDrupal\pdv_engine\PageNavigationUse.SettingsFormtakesPageNavigationUseas a new constructor argument. ConsumerFlowTrait::getInternalReturnTo()is renamedgetInternalReturnPath().VaultUnlockSubscriberno longer reads the unlock header, and is not always in the container.- Removed:
Drupal\pdv_engine\Hook\LocalTasksHooks.