Signed plugins¶
Code that arrives over the network is code execution on every node that installs it, so with security on (the default)
every plugin jar that did not come embedded in the agent jar is installed only from an owner-only private copy that
verifies against plugin_signing_truststore. Sources: controller/docs/caller-authorization.md sections 5 and 8, the
repo README.
What is verified¶
pluginupload,pluginaddfrom a repository or an absolute path,getjarfetches,plugindownload,controllerupdate, the repository cache andsavetorepoat the global: the jar must be signed, every entry, by a signer chaining toplugin_signing_truststore(JarSignatures.verify). The cache names a jar by its own hash; a hash a caller supplies is advisory.- The repo plugin's
putjarstores exactly the bytes it verified, andrepolist/getjarlist and serve only jars that pass the same check; unsigned, partially signed, tampered and foreign-signed jars are refused (status 9,refusal=signature). - A signature carrying a trusted RFC 3161 timestamp (the TSA's certificate has the time-stamping extended key usage and chains to the trust store) is judged at the stamped time, so a stored jar stays installable after its signing certificate expires. Without one, re-sign jars before the signing certificate expires.
- In production (
security_profile=production) the check runs entirely through the node's installed JCA providers, that is the FIPS 140-3 modules in approved-only mode, never the JDK's internal jar verifier (JarSignatures.verifyCms): each signature block is verified as CMS SignedData over its.SFwith Bouncy Castle FIPS, the signer must chain toplugin_signing_truststoreand may sign code, a trusted RFC 3161 timestamp moves the date the signature is judged at, the.SFmust cover the whole manifest (or, after a manifest was extended, its unchanged main attributes and each signed section), and every entry must match its section's digest. Only SHA-256, SHA-384 and SHA-512 digests count. Without Bouncy Castle FIPS every jar is refused. The standard profile uses the JDK's verifier (JarSignatures.verify); the library's tests hold both verifiers to the same decisions. - Jars embedded in the agent jar are trusted as part of it (the release itself is signed:
scripts/sign-release.sh,scripts/verify-release.shin the agent repository).
Settings¶
| Setting | Default | Meaning |
|---|---|---|
plugin_signing_required |
broker_security_enabled (true) |
false: unsigned jars are installed (development only; a WARNING every boot) |
plugin_signing_truststore |
(none) | the anchors jar signatures must chain to: a PEM bundle (no password; required in production), or PKCS12 with plugin_signing_truststore_password (standard profile, outside FIPS mode, only) |
With signing required and no trust store, every jar arriving over the network is refused.
Signing a jar¶
jarsigner -keystore codesign.p12 -storetype PKCS12 -digestalg SHA-384 -sigalg SHA384withRSA \
-tsa https://<your RFC 3161 TSA> plugin.jar codesign
Keep the code-signing CA separate from the node PKI; give nodes only its certificate (the PEM trust bundle).