Edit

opencenter secrets encrypt

Encrypt secrets in YAML files

Synopsis

Encrypt secrets in YAML files using SOPS.

This command finds all unencrypted YAML files that match SOPS configuration rules and encrypts them using the configured Age keys. By default, it creates backups of the original files for safety.

The encryption process:

  1. Creates timestamped backups of original files (unless --no-backup is set)

  2. Encrypts files using SOPS with configured Age keys

  3. Validates successful encryption

  4. Reports results and backup locations

Use this command when you want to encrypt secrets in your project.

opencenter secrets encrypt [flags]

Options

  -h, --help          help for encrypt
      --no-backup     Skip backup creation before encryption
      --path string   Path to search for files to encrypt (default ".")

SEE ALSO

  • opencenter_secrets.md[opencenter secrets] - Manage secrets across backends

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