atomic-sign (1) Linux Manual Page
atomic-sign- Create a signature for an image
WARNING
Only use atomic sign if you trust the remote registry which contains the image (preferably by being the only administrator of it).
Synopsis
atomic sign [-h|–help] [-d, –directory] [–sign-by] [-g, –gnupghome] [ image … ]Description
atomic sign will create a local signature for one or more local images that have been pulled from a registry. By default, the signature will be written into a directory derived from the registry configuration files as configured by registry_confdir in /etc/atomic.conf.Options
-h –help -d –directory
–sign-by
-g –gnupghome
Examples
Sign the foobar image from privateregistry.example.comatomic sign privateregistry.example.com/foobar
Sign the foobar image and save the signature in /tmp/signatures/.
atomic sign -d /tmp/signatures privateregistry.example.com
Sign the busybox image with the identify of foo [at] bar.com with a user’s keyring
sudo atomic sign –sign-by foo [at] bar.com –gnupghome=~/.gnupg privateregistry.example.com
Related Configuration
The write (and read) location for signatures is defined in YAML-based configuration files in /etc/containers/registries.d/. When you sign an image, atomic will use those configuration files to determine where to write the signature based on the the name of the originating registry or a default storage value unless overriden with the -d option. For example, consider the following configuration file. docker:
When signing an image preceeded with the registry name ‘privateregistry.example.com’, the signature will be written into subdirectories of /var/lib/atomic/signature/privateregistry.example.com. The use of ‘sigstore’ also means the signature will be ‘read’ from that same location on a pull-related function.
You can also scope the registry definitions by repository and even name. Consider the following addition to the configuration above.
privateregistry.exaple.com/john:
Now any image from the john repository will use the sigstore-staging location of means that signatures should be written to that location but read should occur from the http URL provided.
The user’s keyring will be used during signing. When running as root user this may not be desired. Another keyring may be specified using environment variable GNUPGHOME, passed in via argument –gnupghome or set in configuration file atomic.conf. For example:
gnupg_homedir: /home/USER/.gnupg
