Skip to content

Concepts

Keys and trust

A machine trusts a release because it verifies against a public key you gave that machine, not because of anything inside the release.

The key pair

gal approved-config keygen creates an Ed25519 key pair as two new files:

  • The private key (for example publisher.pkcs8), written with mode 0600. sign refuses a private key that other users can read.
  • The public key (for example publisher.pub): exactly 32 raw bytes. keygen also prints it as public_key_base64; decoding that value with base64 -d gives the same 32 bytes.

keygen also prints the keyid: the SHA-256 of the public key file. The same value appears in every signed file and in the signer_keyid that verify prints, so people can confirm they hold the same key by comparing it. keygen never overwrites an existing file.

Who holds what

  • The publisher keeps the private key and uses it to sign releases. Keep it off machines that only install releases.
  • Each installing machine holds the public key, and passes it to verify and install with --public-key, together with the organization and channel it expects.

Where trust comes from

Give the public key to machines through a channel you already trust. Never take it from a release file or from whoever sent you the release: a key supplied by an untrusted release does not establish trust. The same applies to the --enroll-payload-sha256 value a machine needs when its first release is a later one.

Not available yet

  • There is no command to rotate or revoke a key.
  • GAL does not distribute or manage keys for you. A guide to creating and protecting a signing key is not written yet.

Checked against CLI 0.2.1 on 2026-10-21 (Ubuntu 24.04 x86_64 (glibc 2.39, Node.js 24) and macOS 26.5 on Apple silicon (Node.js 25), from the npm registry).