Comments (3)
I cannot reproduce this. First, none of the exec-env
commands you showed actually work:
- It's
exec-env
, notexe-env
(I guess that typo happened when you wrote this post and it's not actually what you ran); exec-env
expects two positional parameters, you provided one (the file to decrypt).
If I run sops exec-env ../x.yml /bin/bash
I end up in a shell where the values in ../x.yml
are available. Same for sops exec-env ../x.yml export
. But if I run sops exec-env ../x.yml
or sops exec-env ../x.yml /bin/bash -c export
or something else where there are not exactly two positional arguments, I get the message you mentioned (error: missing file to decrypt
).
So my guess is that you ran something with not exactly two positional arguments to exec-env
.
from sops.
Apologies, it seems I was being a total moron when I was testing this out..
What I was trying to do was make this work from a package.json...
And I think I got my wires totally crossed when I dropped out of that to a shell when it did not work correctly the first time.
In the cold light of day, and your comments I see the issue.
here is what I had in my package.json
{
...
"scripts": {
"dev": "sops exec-env ../secrets.dev.enc.yaml concurrently \"yarn start\" \"yarn start-backend\"",
},
...
}
Which yielded the error above...
But adding in some '
seems to do the trick and make it work.
{
...
"scripts": {
"dev": "sops exec-env ../secrets.dev.enc.yaml 'concurrently \"yarn start\" \"yarn start-backend\"'",
},
...
}
(I dont think the error message itself helped out either 😆)
from sops.
(I dont think the error message itself helped out either 😆)
I fully agree! :)
from sops.
Related Issues (20)
- SOPS_AGE_KEY doesn't accept space separated keys HOT 2
- mac m1 Use gcp kms encryption and decryption will crash
- Sops removes quotes from keys in YAML HOT 2
- unable to force specific gpg subkey HOT 1
- [Feature Request] Permit allowlisted unencrypted comments
- encrypted_regex for particular nodes in yaml? HOT 4
- `Invalid --set format` error when trying to set deeply nested value HOT 11
- sops keyservice via .sops.yaml HOT 1
- Is it possible to encrypt text strings in Python using sops? HOT 2
- Encrypt dotenv file inplace more than once should be failsafe. HOT 11
- GitHub repository does not link to the project website url HOT 1
- CI: add Rust code formatting check (for functional tests) HOT 1
- Error: Failed to get the data key required to decrypt the SOPS file. HOT 1
- Allow easy embedding of sops inside other Go CLI HOT 2
- Support github id based public key encryption
- Failing age tests after setting SOPS_AGE_KEY_FILE env var
- README.rst is not being rendered due to its size HOT 11
- sops 3.8.1 (latest) encrypted files are not working in kubernetes cluster.
- Use Azure Key Vault login error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sops.