Skip to content

SOPS env file encryption example is using the wrong type #2202

@judgeaxl

Description

@judgeaxl

Under https://fluxcd.io/flux/components/kustomize/kustomizations/#kustomize-secretgenerator

there's an example of how to encrypt an env secret:

sops -e --input-type=json config.json > config.json.encrypted
sops -e --input-type=yaml config.yaml > config.yaml.encrypted
sops -e --input-type=env config.env > config.env.encrypted

The third example is wrong, the type should be dotenv instead of env. One also have to give both --input-type dotenv and --output-type dotenv.

I didn't check yaml and json at this time, but at least this would be fixing the env case:

sops -e --input-type=json config.json > config.json.encrypted
sops -e --input-type=yaml config.yaml > config.yaml.encrypted
sops -e --input-type=dotenv --output-type=dotenv config.env > config.env.encrypted

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions