Publishing plugins
Cicord has no plugin server: a plugin is a git repository with semver tags (or a
directory of a repository that holds several plugins), and a registry is a git repository
with an index.yaml that lists plugins, like Go modules or Homebrew taps.
Release a plugin
Section titled “Release a plugin”-
Put the plugin in its own git repository, with
plugin.yamlat the root. -
Set
metadata.versioninplugin.yamlto the version to release, and commit. -
Check everything without changing anything:
Terminal window cicord plugin publish --dry-run -
Release it and update a local checkout of the registry:
Terminal window cicord plugin publish --push --registry ../cicord-plugins --publisher acme -
Commit the registry change there and open a pull request.
Several plugins in one repository
Section titled “Several plugins in one repository”A repository can hold several plugins, one directory each (plugins/xp/plugin.yaml), like
the official registry. Each plugin is released with its own tags,
<name>/v<semver> (xp/v1.2.0), and its index entry names its directory with path:
cicord plugin publish plugins/xp --push --registry ../cicord-plugins# or from the repository rootcicord plugin publish --path plugins/xp --push --registry ../cicord-pluginsOnly that directory must be committed, so the index of a repository that is also its own
registry (--registry .) can stay uncommitted while you publish several plugins in a row.
cicord plugin publish [plugin-dir]:
- builds and inspects the plugin like
cicord plugin build(any error stops it); - refuses a dirty working tree (the tag must point at the validated code), a
metadata.namethat is not a valid registry key, and a version that is not a semver greater than every earlier release tag of the plugin (local tags; with--push, the remote’s too); - creates the annotated tag
v<version>onHEAD(<name>/v<version>for a plugin in a subdirectory, withpathin its entry), and pushes it with--push(to--remote, defaultorigin, with your git credentials); - computes the index entry:
repofrom--repoor the remote URL (git@host:a/b.gitbecomeshttps://host/a/b.git; URLs with credentials are refused),displayName,descriptionandkeywordsfromplugin.yaml,publisher,versionandcommit. With--registry <dir>it adds or updates the entry in thatindex.yaml, keeping comments and the fields it does not manage; an existing entry keeps itsverifiedflag andpublisher, and itsrepoandpathonly change with--replace-repo. Without--registry(or with an https URL) it prints the entry and the steps.
Everything is checked before the tag is created. publish never sets verified: registry
maintainers do. If the registry’s index is signed, it warns that the signature is now stale.
You can also tag releases by hand (v1.2.0, or xp/v1.2.0 in a monorepo) and edit
index.yaml yourself.
The registry index
Section titled “The registry index”A registry is a git repository with index.yaml at its root:
plugins: xp: repo: https://github.com/acme/cicord-xp.git # plugin repository, semver tags v1.2.0 # path: plugins/xp # monorepo: plugin directory, tags xp/v1.2.0 displayName: XP & levels # optional description: Levels and a portal leaderboard keywords: [xp, levels] publisher: acme verified: false # only honoured from the signed official index version: 1.2.0 # optional: latest release (written by publish) commit: 3f1c… # optional: its tag's commit (a moved tag is refused)With path, only that directory is downloaded and hashed (the hash in cicord.lock is the same
as for the plugin in its own repository), and only the tags <name>/v<semver> are releases. A
path is a relative directory: no .., no leading /, no hidden segments.
An https registry may only list https plugin repositories. Users add it and install from
it:
cicord registry add acme https://github.com/acme/cicord-plugins.gitcicord registry search xpcicord plugin add acme/xp --bot moderatoror from the admin console: Store → Sources → Add, then Install on a plugin. Installing pins
the version in cicord.lock (commit and content hash) and adds source: acme/xp with
version: ^1.2.0 to the bot.
To ship an update, publish a new tag: Cicord compares each locked version with the highest release tag of the plugin repository and offers the update. Keep the settings of a minor version compatible (a new required field makes every existing instance invalid, and the update is refused until admins fix it) and release breaking changes as a new major version. New capabilities, intents or network hosts are shown to admins before they update.
cicord registry list|add|remove|update|search manages sources from the command line; there
file:// URLs and local paths are allowed, for development registries (the admin console
only accepts https://).
Private registries
Section titled “Private registries”A registry can require an access token (a private GitHub or GitLab repository). Its secret is
always named CICORD_REGISTRY_<NAME>_TOKEN, after the registry’s own name, so that a
cicord.yaml edit can never send another secret (a bot token, another registry’s token) to a
registry host.
CICORD_REGISTRY_ACME_TOKEN=… cicord registry add acme https://github.com/acme/private-plugins.git --privateThis writes secretRef: CICORD_REGISTRY_ACME_TOKEN to cicord.yaml (only the name, never the
token). On the runtime, provide the token as an environment variable or with
cicord secret set CICORD_REGISTRY_ACME_TOKEN, or paste it in the admin console (Store →
Sources), which stores it encrypted. The token is sent, as HTTP basic auth over https, to the
registry’s host only (its index and the plugin repositories on that host).
By default the Store and plugin downloads refuse private network addresses; set
CICORD_ALLOW_PRIVATE_REGISTRIES=true on the runtime to allow a registry on your internal
network.
The official registry
Section titled “The official registry”The official registry is github.com/cicord/cicord-plugins,
a monorepo maintained by the Cicord project: one directory per plugin (plugins/<name>/,
tags <name>/v<semver>) and a signed index.yaml at its root. Its plugins join source
cicord, without any cicord.yaml entry, and only it can mark publishers as verified.
Community plugins are submitted there by pull request (see its CONTRIBUTING.md).
index.yaml.sig, next to the index, is a signature envelope followed by one ed25519
signature per signing key:
# Signatures of index.yaml (cicord registry sign). Do not edit.format: cicord-registry-signature-v1registry: https://github.com/cicord/cicord-plugins # normalized URL of the registryserial: 1764000000 # increases with every signatureexpires: 2026-12-23T00:00:00Z # the signature is refused after thisindex-sha256: 9f86d081… # SHA-256 of the exact bytes of index.yamled25519 <key-id> <base64 signature>A runtime only uses an index read from an official URL when a signature by one of the official
public keys embedded in the binary verifies and the hash matches, registry is the official
URL, it has not expired, and serial is not lower than the highest serial this runtime has
already seen (stored in its state database, so a replayed older index is refused). Otherwise
the source is an error source: nothing is listed or installable from it, and the bundled
plugins remain.
When a plugin is both bundled and in the official registry, the registry version is used only
if it is a valid semver greater than the bundled one. Installing it locks it in
cicord.lock as cicord/<name>.
For registry maintainers
Section titled “For registry maintainers”| Command | Purpose |
|---|---|
cicord registry keygen --out <file> |
Create an ed25519 key pair. The private key file is mode 0600 and never overwritten; the public key is printed. |
cicord registry sign <dir> --key <file|env:NAME> --registry-url <url> |
Write index.yaml.sig. The serial defaults to the current Unix time; the validity to 30 days (--expires-in, at most 180 days). Repeat --key to sign with several keys during a rotation. |
cicord registry verify <dir> [--public-key <b64>] [--registry-url <url>] |
Check the signature, hash, registry and expiry, for the registry’s CI. |
Sign again after every change to index.yaml, and on a schedule (for example a weekly CI
job), so the signature never expires; a lapsed signature makes runtimes stop listing the
registry’s plugins until it is signed again. Serials only go up: sign refuses a --serial
that is not above the current one.