You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Azure credentials validation (inherited from barman-cloud dependency) allows users to specify storageKey or storageSasToken without specifying storageAccount in the ObjectStore resource. This configuration passes validation but fails at runtime.
Example invalid ObjectStore configuration that currently passes validation:
You're correct—currently, the plugin-barman-cloud relies on validation logic from the barman-cloud dependency, which (prior to the referenced upstream PR) does not enforce that storageAccount must be present when using storageKey or storageSasToken. This means invalid Azure ObjectStore configurations can pass validation but will fail at runtime, as storageAccount is required for authentication and forming the destination path (docs).
There are no open issues or merged PRs in plugin-barman-cloud that address or track this specific validation bug or reference the upstream fix. The ObjectStoreSpec simply wraps the upstream BarmanObjectStoreConfiguration and does not implement its own Azure-specific validation (code).
Until the upstream PR is merged and released, you'll need to manually ensure storageAccount is included in your Azure credentials when using storageKey or storageSasToken. Keep an eye on updates to the barman-cloud dependency and plugin-barman-cloud releases for when this validation fix is incorporated.
Activity
dosubot commentedon Dec 29, 2025
You're correct—currently, the plugin-barman-cloud relies on validation logic from the barman-cloud dependency, which (prior to the referenced upstream PR) does not enforce that storageAccount must be present when using storageKey or storageSasToken. This means invalid Azure ObjectStore configurations can pass validation but will fail at runtime, as storageAccount is required for authentication and forming the destination path (docs).
There are no open issues or merged PRs in plugin-barman-cloud that address or track this specific validation bug or reference the upstream fix. The ObjectStoreSpec simply wraps the upstream BarmanObjectStoreConfiguration and does not implement its own Azure-specific validation (code).
Until the upstream PR is merged and released, you'll need to manually ensure storageAccount is included in your Azure credentials when using storageKey or storageSasToken. Keep an eye on updates to the barman-cloud dependency and plugin-barman-cloud releases for when this validation fix is incorporated.
To reply, just mention @dosu.
Docs are dead. Just use Dosu.
fix(azure): update barman-cloud with Azure validation fix (cloudnativ…
chore(main): release 0.11.0 (#717)
chore(deps): update dependency cloudnative-pg/plugin-barman-cloud to …
chore(deps): update dependency cloudnative-pg/plugin-barman-cloud to …
chore(deps): update dependency https://github.com/cloudnative-pg/plug…