uSync Complete (Publisher) Integration

Umbraco.Community.CSPManager.uSync.Complete extends the uSync integration with push and pull support via uSync Publisher.

This allows you to push or pull CSP policies directly between live Umbraco environments on-demand from the backoffice — without running a full uSync export/import cycle.

Requirements

Installation

Install this package in addition to the base uSync package:

dotnet add package Umbraco.Community.CSPManager.uSync.Complete

Push and Pull Actions

Once installed, Push and Pull entity actions become available in the CSP Manager backoffice section.

Push — sends the selected CSP policy from your current environment to a remote Umbraco instance:

Push CSP policies to a remote environment

Pull — fetches a CSP policy from a remote Umbraco instance into your current environment:

Pull CSP policies from a remote environment

These actions are available on both individual CSP policy items and the CSP Manager tree root.

Domain policies

Pushing a domain policy also pushes its content node. The node’s hostnames aren’t sent as part of the policy: Umbraco doesn’t give hostnames a stable key, so they can’t be declared as a dependency. A domain policy can only exist for a node with a hostname, so set up the node’s hostnames in Culture and Hostnames on the target first, otherwise the policy fails to import with that reason. Pushing the tree root sends every policy.

Publisher doesn’t remove domain policies that exist only on the target. Delete them there, or sync the delete with a uSync import of the delete marker.