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 command doesn't read --aws-profile flag value
- sops encryption/decryption with age key doesn't work for Python ini Files with [DEFAULT] section HOT 4
- New patch version please HOT 4
- Main project page getsops/sops never loads because of README rendering issue HOT 3
- hc-vault: Support for kubernetes auth HOT 1
- Support encryption with x.509 cert in win certmgr
- Allow to encrypt specific nodes in a file with specific keys (muliple matching creation_rules) HOT 3
- Different AWS profiles are ignored when using multiple KMS keys
- exec-env/exec-file: support "--" to separate command to run HOT 4
- Can't use docker compose and sops together HOT 3
- `sops execfile` filename should not have a random suffix appended in --no-fifo mode HOT 2
- diff shows entire file has changed HOT 1
- [question] Where is the documentation? HOT 2
- ForbiddenByRbac when using azure key vault backend with version 3.8+
- "$" in code examples in Readme prevents simple copy/paste HOT 1
- When we encrypt our values it updates all variables HOT 2
- Decrypt doesn't handle multiple files / bulk operations
- panic: runtime error: invalid memory address or nil pointer dereference when using updatekeys HOT 11
- SOPS mac_only_encrypted HOT 2
- Does sops edit exist? HOT 2
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.