Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error from tandalone execution #44

Open
rafalkrupinski opened this issue Apr 20, 2023 · 2 comments
Open

Error from tandalone execution #44

rafalkrupinski opened this issue Apr 20, 2023 · 2 comments

Comments

@rafalkrupinski
Copy link

First time working with sops.

$ echo FOO=secret >secret-vars.env
$ sops -e -i secret-vars.env
$ cat secret-vars.env  | SopsSecretGenerator

failed to evaluate function: failed to parse input bytes: failed to extract objects: unhandled node kind 8failed to parse input bytes: failed to extract objects: unhandled node kind 8

SopsSecretGenerator is a Kustomize generator plugin that generates Secrets from sops-encrypted files.
This plugin supports legacy Kustomize plugin style as well KRM Functions style.

Note:
  The usage examples here are for standalone execution. If the plugin is used via Kustomize,
  then Kustomize will handle passing data to the plugin.

Usage:
- Legacy: SopsSecretGenerator SopsSecretGenerator.yaml
- KRM: cat ResourceList.yaml | SopsSecretGenerator

$ SopsSecretGenerator secret-vars.env 
Error: yaml: unmarshal errors:
  line 1: cannot unmarshal !!str `FOO=ENC...` into main.SopsSecretGenerator
@jcassee
Copy link
Contributor

jcassee commented Apr 10, 2024

Hi @rafalkrupinski, I'm sorry I missed your question from 😱 last year.

Is this still a problem for you?

This plugin is not meant to run stand-alone. What is your use-case?

@rafalkrupinski
Copy link
Author

I think I was trying to encrypt some secrets for storing in git, so that later they could be read by kustomize + sops.
But I've moved to other solutions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants