Admin signs an approved plugin
The admin reviews a
.difypkg from a trusted developer and signs it with their own key before installing.Developer ships a signed plugin
The developer signs the
.difypkg and publishes the matching public key. Admins who trust the developer add that public key to the verification list.Generate a Key Pair
Sign and Verify a Plugin
1
Sign the package
your_plugin_project.signed.difypkg in the same directory.2
Verify the signed package
If you omit
-p, dify signature verify checks against the Dify Marketplace public key. Any plugin not signed by Dify will fail verification in that mode.Enable Verification on the Daemon
Admins install signed plugins by giving the plugin daemon a list of trusted public keys.1
Place the public key
Put the
.public.pem file somewhere the daemon container can reach it. For Docker Compose installs:2
Configure the daemon environment
Set these variables on the
plugin_daemon service:A
docker-compose.override.yaml snippet:docker/volumes/plugin_daemon mounts to /app/storage inside the container, so the path in THIRD_PARTY_SIGNATURE_VERIFICATION_PUBLIC_KEYS must use the in-container path.3
Restart Dify
.difypkg files matching the configured public keys install cleanly; unsigned or mismatched ones are rejected.