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:
-
Creates timestamped backups of original files (unless --no-backup is set)
-
Encrypts files using SOPS with configured Age keys
-
Validates successful encryption
-
Reports results and backup locations
Use this command when you want to encrypt secrets in your project.
opencenter secrets encrypt [flags]