Rebuilt from the private main after the 1.1.0 lab regression: ML-DSA verification needs Go 1.27, the hub image ships writable state directories for Docker volumes, issued leaves follow RFC 5280/8813 key usage, Opsgenie is deprecated, and LICENSE is the verbatim Apache text.
17 KiB
Plugin catalogue: install from the signed catalogue, and what is in it
Administrators install first-party plugins from a signed catalogue instead of
uploading .wasm files by hand. This page covers the catalogue flow, then
lists what is in the tree and what a plugin author must show before it is
listed. Operator install steps for uploads live in
DELIVERY_PLUGINS.md; the author guide is
../plugins/README.md; the design is
../design/DELIVERY_PLUGINS.md and decision
D-328.
Install from the catalogue
Plugins page, Catalogue tab (pki-admin only). Opening the tab makes the hub fetch the catalogue; nothing is fetched in the background. Each row shows what the plugin can do, whether it is installed, and an Install or Upgrade button. Install adds the version disabled. Enabling it from the Installed tab follows the same rule as an upload: a plugin with High or Critical capabilities (every delivery plugin receives the private key) needs a second administrator to approve.
API (both audited, pki-admin):
GET /api/v1/plugin-catalogue: entries withstatus(available,installed,upgradable) andcompatible(the hub meetsmin_hub_version).POST /api/v1/plugin-catalogue/{id}/installwith optional{"version"}(default: highest listed). Returns 201 and the same body as an upload.
What is verified, in order
- The catalogue and
<catalogue url>.bundleare fetched through the egress guard (HTTPS only; private addresses allowed for an internal mirror unlessKRYPTKEEPER_EGRESS_DENY_PRIVATE=true; loopback and metadata never). - The catalogue signature is checked against the compiled-in first-party
plugin key or a key in
KRYPTKEEPER_PLUGIN_TRUSTED_KEYS. Tampered bytes, an unknown signer or no signature all refuse with 502. There is no new trust root: this is the key the first-party tier already uses. - The manifest, its cosign bundle and the module are downloaded (size capped).
- The module's SHA-256 must equal the catalogue entry's and the manifest's pin; the manifest's id and version must match the entry.
- The files go to the same install function as a manual upload, which checks the manifest signature (so the tier is first-party or verified, never a silent community), compiles the module and records the signer.
Configuration
| Variable | Effect |
|---|---|
| unset | https://kryptkeeper.io/plugins/catalogue.json |
KRYPTKEEPER_PLUGIN_CATALOGUE_URL=<url> |
Use that catalogue (a mirror, or your own signed with a trusted key). The signature is read from <url>.bundle. |
KRYPTKEEPER_PLUGIN_CATALOGUE_URL= (empty) |
Catalogue off: the API answers 503 and the tab says so. |
KRYPTKEEPER_DELIVERY_PLUGINS=off |
All plugins off, catalogue included. |
Air-gapped hubs: import by hand
Download plugin-catalogue-<tag>.tar.gz from the release page on a connected
machine and carry it in. It holds catalogue.json, catalogue.json.bundle and
<id>/<version>/{manifest.json,manifest.json.bundle,plugin.wasm} per plugin.
Import one plugin per call; the hub verifies the catalogue signature exactly as
for an online fetch and never touches the network:
tar -xzf plugin-catalogue-v1.1.0.tar.gz -C cat && cd cat
ID=kryptkeeper.vault-kv; VER=1.0.0
jq -n --arg id "$ID" --arg ver "$VER" \
--arg cat "$(base64 < catalogue.json | tr -d '\n')" --arg cb "$(cat catalogue.json.bundle)" \
--arg m "$(base64 < $ID/$VER/manifest.json | tr -d '\n')" --arg b "$(cat $ID/$VER/manifest.json.bundle)" \
--arg w "$(base64 < $ID/$VER/plugin.wasm | tr -d '\n')" \
'{id:$id,version:$ver,catalogue_base64:$cat,catalogue_bundle:$cb,manifest_base64:$m,bundle:$b,wasm_base64:$w}' |
curl -sS -X POST "$HUB/api/v1/plugin-catalogue/import" -H "Authorization: Bearer $TOKEN" \
-H 'Content-Type: application/json' --data-binary @-
Publishing a catalogue (release owner)
make plugins, then scripts/sign-plugins.sh (signs each manifest with the
plugin key), then node scripts/plugins/build-catalogue.mjs --out <dir> --base-url https://kryptkeeper.io/plugins, then cosign sign-blob --key kk-plugin.key --bundle <dir>/catalogue.json.bundle --signing-config scripts/cosign-signing-config.json <dir>/catalogue.json. The plugin-catalogue
job in packaging/public/github-release.yml does exactly this on a v* tag and
attaches the tarball to the release; it needs the repository secrets
PLUGIN_SIGNING_KEY and PLUGIN_SIGNING_PASSWORD (packaging/SIGNING.md) and
has not been run. Copy the tree to site/plugins/ and deploy the site to
make the default URL live; that step is manual for now (ROADMAP).
Honest status (read this first)
Every plugin below is shipped in tree: its source, manifest and conformance tests are in the repository and pass against recorded or fake servers. None has been verified against a real account or device yet. Live UAT against real AWS, Azure, GCP, Cloudflare and Vault accounts is ticket W27-32 and has not run. F5 and Citrix are additionally labelled "not yet verified on a real device" in their own manifest names (D-118 needs one BIG-IP VE or NetScaler VPX run first).
Two further caveats apply to all rows:
- Every checked-in
manifest.jsoncarries a placeholderartifact.sha256of 64 zeros.make pluginsbuilds the module and pins the real digest into the manifest underdist/plugins/<name>/; install that one, never the file underplugins/. - Trust tier is decided at install time by the signature, not by the manifest (see section 1). A plugin installed from the catalogue is always signed, so it is first-party (or verified); an upload without a signature is community.
Catalogue
Facts below are read from each plugins/<dir>/manifest.json (version 1.0.0,
publisher "Kryptkeeper Authors", license Apache-2.0, api_version
kryptkeeper.delivery/v1 for all). Every plugin declares
receive_private_key (Critical) and tls_verify. The network column is what
the manifest grants; credential host means the host comes from the named
credential field.
| Plugin id (directory) | Delivers to | Status | Verification | Network capability | Tracked by |
|---|---|---|---|---|---|
kryptkeeper.f5-bigip (plugins/f5) |
F5 BIG-IP client-ssl profile | shipped (in tree); not verified on a real device | tls (dial) |
credential host base_url, ports 443, 8443 |
W20-22, D-118 |
kryptkeeper.citrix-adc (plugins/citrix) |
Citrix ADC / NetScaler cert-key pair | shipped (in tree); not verified on a real device | tls (dial) |
credential host base_url, port 443 |
W20-22, D-118 |
kryptkeeper.example-device (plugins/example) |
Reference HTTPS device, not a product | shipped (in tree); example only | tls (dial) |
credential host base_url |
W20 (copy to start) |
kryptkeeper.vault-kv (plugins/vault) |
HashiCorp Vault KV v2 | shipped (in tree); no live Vault yet | readback |
credential host base_url, ports 443, 8200 |
W27-27, W27-32 |
kryptkeeper.azure-keyvault (plugins/azure-keyvault) |
Azure Key Vault secret | shipped (in tree); no live account yet | readback |
credential host vault_url plus login.microsoftonline.com |
W27-28, W27-32 |
kryptkeeper.gcp-secretmanager (plugins/gcp-secretmanager) |
GCP Secret Manager secret | shipped (in tree); no live account yet | readback |
secretmanager.googleapis.com, oauth2.googleapis.com |
W27-28, W27-32 |
kryptkeeper.aws-secretsmanager (plugins/aws-secretsmanager) |
AWS Secrets Manager secret | shipped (in tree); no live account yet | readback |
secretsmanager.<region>.amazonaws.com for 10 listed regions |
W27-29, W27-32 |
kryptkeeper.aws (plugins/aws) |
AWS ACM import, ALB listener or CloudFront binding | shipped (in tree); no live account yet | tls (dial) |
cloudfront.amazonaws.com, plus acm.<region> and elasticloadbalancing.<region> for 10 listed regions |
W27-29, W27-32 |
kryptkeeper.azure (plugins/azure) |
Azure Application Gateway or Front Door (via Key Vault certificate) | shipped (in tree); no live account yet | tls (dial) |
credential host vault_url plus login.microsoftonline.com, management.azure.com |
W27-30, W27-32 |
kryptkeeper.cloudflare-custom-cert (plugins/cloudflare) |
Cloudflare custom certificate for a zone hostname | shipped (in tree); no live account yet | tls (dial) |
credential host api_base |
W27-31, W27-32 |
Notify plugins (kind notify, W38-02)
These declare no receive_private_key and no tls_verify; they only send
alerts. Network is a credential host, so each is High and needs a second
approver to enable. Operator guide: NOTIFICATION_PLUGINS.md.
| Plugin id (directory) | Sends to | Status | Network capability | Tracked by |
|---|---|---|---|---|
kryptkeeper.microsoft-teams (plugins/microsoft-teams) |
Teams channel through a Workflows webhook | shipped (in tree); stand-in receiver only | credential host webhook_url |
W38-02, W32-29 |
kryptkeeper.pagerduty (plugins/pagerduty) |
PagerDuty Events API v2 (trigger, resolve) | shipped (in tree); stand-in receiver only | credential host api_base (default events.pagerduty.com) |
W38-02 |
kryptkeeper.opsgenie (plugins/opsgenie) |
Opsgenie Alerts API (create, close) | deprecated (D-329), removal in 2.0; stand-in receiver only | credential host api_base (default api.opsgenie.com) |
W38-02 |
DNS-01 plugins (kind dns01, W38-08)
These declare no receive_private_key and no tls_verify; they only write and
delete one ACME challenge TXT record. Network to the vendor host makes each High,
so a second approver enables it. Operator guide: the dns_provider: plugin
section of ACME_UPSTREAM.md.
| Plugin id (directory) | Writes to | Status | Network capability | Tracked by |
|---|---|---|---|---|
kryptkeeper.digitalocean-dns (plugins/digitalocean-dns) |
DigitalOcean DNS API v2, one record per value | shipped (in tree); stand-in API only | api.digitalocean.com |
W38-08 |
kryptkeeper.godaddy-dns (plugins/godaddy-dns) |
GoDaddy Domains v1, record set per name, sso-key auth |
shipped (in tree); stand-in API only | api.godaddy.com |
W38-08 |
kryptkeeper.ns1-dns (plugins/ns1-dns) |
NS1 (IBM NS1 Connect), record per name | shipped (in tree); stand-in API only | api.nsone.net |
W38-08 |
kryptkeeper.akamai-edgedns (plugins/akamai-edgedns) |
Akamai Edge DNS API v2, EdgeGrid signed, record set per name | shipped (in tree); stand-in API only; signing checked against the vendor's test vectors | credential host host (the plugin accepts only *.akamaiapis.net) |
W38-08 |
The ten regions in the AWS manifests are us-east-1, us-east-2, us-west-1, us-west-2, eu-west-1, eu-west-2, eu-central-1, ap-southeast-1, ap-southeast-2 and ap-northeast-1. A region not in the manifest is not reachable until the manifest is changed and re-installed as a new version.
Ticket plugins (kind ticket, W38-09)
Open, check and close tickets from an ITSM connection of kind plugin; see
ITSM.md. ServiceNow and Jira stay native in 1.1.
| Plugin id (directory) | Ticket system | Status | Network capability | Tracked by |
|---|---|---|---|---|
kryptkeeper.zendesk (plugins/zendesk) |
Zendesk Support tickets (create, show, solve) | shipped (in tree); stand-in service only | credential host base_url (your <subdomain>.zendesk.com) |
W38-09 |
kryptkeeper.freshservice (plugins/freshservice) |
Freshservice tickets (create, view, resolve) | shipped (in tree); stand-in service only | credential host base_url (your <domain>.freshservice.com) |
W38-09 |
Credential and target fields
Declared in the manifests; secret fields are encrypted in the credential
store and never returned by the API.
| Plugin | Credential fields (secret marked *) |
Target fields (required marked +) |
|---|---|---|
| f5, citrix | base_url+, username+, password+* |
client_ssl_profile+ (f5); certkey_name+ (citrix) |
| example | base_url+, token+* |
listener+ |
| vault | base_url+, token+*, namespace |
mount (default secret), path+ |
| azure-keyvault | vault_url+, tenant_id+, client_id+, client_secret+* |
secret_name+ |
| gcp-secretmanager | service_account_json+*, project_id+ |
secret_id+ |
| aws-secretsmanager | access_key_id+, secret_access_key+, session_token, region+ |
secret_id+ |
| zendesk (ticket) | base_url+, email+, api_token+* |
none |
| freshservice (ticket) | base_url+, api_key+*, requester_email+, workspace_id |
none |
| aws | same four as aws-secretsmanager | mode+, listener_arn, distribution_id, certificate_arn, import_mode |
| azure | vault_url+, tenant_id+, client_id+, client_secret+* |
mode+, subscription_id+, resource_group+, keyvault_cert_name+, gateway_name, ssl_certificate_name, profile_name, secret_name |
| cloudflare | api_base+, api_token+* |
zone_id+, hostname+, bundle_method (default ubiquitous) |
What readback means for you
Secret stores have no TLS endpoint to dial. A readback plugin declares
"verification": "readback"; after the write the hub asks the plugin to
fetch the exact version it wrote (using the push's rollback_handle),
parses the PEM and compares the leaf SHA-256 itself. A mismatch is
verify_failed and rolls back. Setting verify_host_port on the target
forces the TLS dial instead. Details: DELIVERY_PLUGINS.md section 4.
Note what read-back does and does not prove: it proves the store holds the
certificate the hub sent. It does not prove any workload has picked it up.
For the Kubernetes Secret path, which is not a plugin but a built-in
install_mode=k8s, see EXTERNAL_SECRETS.md.
1. Trust tiers
From DELIVERY_PLUGINS.md section 1. The tier comes from the signature on the install request:
| Signed with | Trust tier |
|---|---|
| the Kryptkeeper plugin key compiled into the hub | first-party |
a key in the file named by KRYPTKEEPER_PLUGIN_TRUSTED_KEYS |
verified |
| nothing | community |
A signature that verifies against neither is refused (400), never treated as community. The tier is a label: it does not change who must approve enabling the plugin, which follows its capabilities. A newly installed plugin is always disabled until enabled.
2. Capability taxonomy
Copied from the design doc. The UI shows exactly these sentences; manifests cannot supply their own wording.
| Capability | Tier | What the operator is told |
|---|---|---|
receive_private_key |
Critical | "This plugin receives the private key of every certificate it delivers." |
trust_store |
Critical | "This plugin can add certificate authorities to the trust store of the hosts it delivers to." |
elevated_exec |
High | "This plugin runs commands as an administrator (root/sudo or Windows administrator) on target hosts." |
remote_exec |
High | "This plugin runs commands on target hosts over SSH or WinRM." |
network (beyond the credential's host) |
High | "This plugin connects to hosts other than the device you configure: ." |
network (credential host only) |
High (any network access is at least High) | "This plugin connects to the device address you configure, so it has network access." |
file_write |
Standard | "This plugin writes files on target hosts under: ." |
tls_verify |
Standard | "This plugin checks which certificate the service presents." |
Every plugin in the catalogue is Critical because it receives the private key. That is inherent: a key-bearing delivery cannot be done without it.
3. Submission checklist
Copy into the pull request description and tick every line. A line that does not apply gets a one-sentence reason, not a deletion.
manifest.jsonhasapi_versionkryptkeeper.delivery/v1, a uniqueid, aversion,licenseand asourceURL.artifact.sha256equals the SHA-256 of the built module (the build pins it; do not commit a hand-typed value).- Capabilities are minimal. Each one is justified in the PR text,
including every host or port under
network. No wildcard hosts. - Builds with
GOOS=wasip1 GOARCH=wasm go build -buildmode=c-shared. - Passes
conformance.Suiteintests/plugins/conformance(see the existingvault_test.goorexampledevice_test.gofor the shape). - Rollback is proven: a
RollbackHandleis returned andRolledBackis reported honestly (true only when the plugin confirmed it). - No secrets in logs, errors or returned detail text. Test keys are generated in the test, never committed.
- Credential schema and target schema are documented and mark every
secret field
"secret": true. - Verification is declared: the default TLS dial, or
"verification": "readback"with averifyop that only fetches. - For the
verifiedtier: the release is signed with cosign (ECDSA P-256) and the public key is supplied forKRYPTKEEPER_PLUGIN_TRUSTED_KEYS. - Real-device or real-account evidence is attached, or the plugin name and PR state "not verified on a real device/account" in plain words (as F5 and Citrix do).
- A row for the plugin is added to the catalogue above with real manifest values and an honest status.