Skip to content

bomify trust key add

bomify trust key add

Add or replace a public key in the managed key store

Synopsis

Add stores a copy of the public key or certificate under , for "bomify trust create --key-option

Later edits to have no effect until it's added again. Adding an existing replaces it for every rule using it, which is how to rotate a key.

bomify trust key add <name> <file> [flags]

Examples

  # Store the team's cosign public key as "team"
  bomify trust key add team keys/team.pub

  # Rotate it: every rule using "team" now trusts the new key
  bomify trust key add team keys/team-2026.pub

Options

  -h, --help   help for add

Options inherited from parent commands

      --data-dir string   directory to store bomify data (e.g., built packages). default is $HOME/.bomify or the value of the BOMIFY_DATA_DIR environment variable
      --docs-dir string   directory to write documentation to (if empty, no docs are generated)
      --verbose           enable verbose (debug) logging

SEE ALSO