A community registry is a registry.json file that lists node packages from other authors. An instance admin adds it in Zerodot.
Zerodot does not check registries or the packages in them. A package can steal the credentials and data that your workflows give to its nodes.
Turn on community packages
Community packages are off by default. Set this variable on web, API, and worker:
ZERODOT_COMMUNITY_NODES=true
Restart the services. For the variables, see Configuration.
If ZERODOT_NODES_INSTALL=false, installs are off and this variable has no effect. Packages that are installed stay installed.
Add a registry
You must be an instance admin.
- Open System > Nodes.
- Go to Community registries.
- Click Add registry.
- Enter the Registry address. It must start with
https://. - Read the warning Anybody can make a registry.
- Select the box to accept the risk for this instance.
- Click Add registry.
Zerodot reads the file. If the file is not valid or not reachable, it shows an error. An instance can have 20 registries at most.
The packages of the registry show in the Community group. Nothing is installed yet.
Install a community package
- Open System > Nodes.
- Find the package in the Community group.
- Click Install.
- Read the warning. A package with the Verified badge shows Verified, but not written by zerodot. The Zerodot team read the source of this version. That makes bad code less likely, but not impossible.
- Select the box to accept the risk.
- Type the package name in the field.
- Click Install.
Zerodot installs the version that the registry lists. It installs the package only when the npm checksum matches the registry.
If the registry lists a new version while you read the dialog, the install fails. Check the package again.
Versions
A package stays on the installed version. A new version in the registry does not install itself.
To change the version:
- Open System > Nodes.
- Open the package.
- Pick a version.
- For a community package, read the warning. Then select I trust the author of this version, and I accept the risk for this instance.
- Click Update or Downgrade.
For more about packages, see Install node packages.
Names that clash
If two registries list the same name, the first registry in the list wins. An official @zerodot/* package always wins.
Remove a registry
Remove a registry from the same list. Its packages no longer show. Packages that you installed from it stay installed. Remove them one by one.
Audit log
Zerodot records these actions: adding and removing a registry, and installing, updating, and removing a package. See Recent admin actions on the System page.
Allow only verified packages
By default, an admin can install any version that a registry lists. To allow only verified versions, set:
ZERODOT_UNVERIFIED_NODES=false
Zerodot team lists verified versions in verified.json. A version is verified only when the name, the version, and the checksum all match. See Get a package verified.
To read the list from another address, set:
ZERODOT_VERIFIED_NODES_URL=https://example.com/verified.json
If Zerodot cannot read the list, no package counts as verified.