Edit

opencenter secrets keys generate

Generate new Age key pair for SOPS encryption

Synopsis

Generate a new Age key pair for SOPS encryption.

This command creates a new Age key pair and optionally updates the .sops.yaml configuration file with the new public key. The private key is saved securely with appropriate file permissions (600).

The generated public key should be used in .sops.yaml configuration and cluster specifications for SOPS encryption.

opencenter secrets keys generate [flags]

Options

      --dry-run              Show what would be done without making changes
  -h, --help                 help for generate
      --key-file string      Path to save the Age key file (default: ~/.config/sops/age/keys.txt)
      --update-sops-config   Update .sops.yaml configuration with new public key (default true)

SEE ALSO

  • opencenter_secrets_keys.md[opencenter secrets keys] - Manage SOPS encryption keys

Auto generated by spf13/cobra on 28-Apr-2026