Skip to main content

shoulders secrets init

shoulders secrets init​

Generate the age key and write .sops.yaml

Synopsis​

Generate an age identity for this machine, create the flux-system/sops-age Secret on the next 'shoulders up', and write a .sops.yaml creation rule so 'sops -e' encrypts to the right recipient without extra flags.

The private key never enters git. The .sops.yaml file contains only the public recipient, so it is safe to commit — commit it when the team shares one key, and keep it out of git when every machine has its own.

shoulders secrets init [flags]

Options​

--force Replace an existing identity
-h, --help help for init

Options inherited from parent commands​

--cluster string Target cluster from the topology (defaults to the only cluster, or the hub)
--config string Path to config file (default "/home/runner/.shoulders/config.yaml")
--kubeconfig string Path to kubeconfig file
-o, --output string Output format: table|json|yaml (default "table")
--set stringArray Set a config value override (key=value), repeatable. Overrides are ephemeral and are not saved to the config file

SEE ALSO​

Auto generated by spf13/cobra on 23-Oct-2026​