Skip to content

Commit ee48aa5

Browse files
authored
Merge pull request #1965 from joel-u410/joel/exec-env-use-decryption-order
fix: Add decryption-order flag to exec-env, exec-file, and publish commands
2 parents 531230b + 5e7448c commit ee48aa5

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

cmd/sops/main.go

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,11 @@ func main() {
196196
Name: "same-process",
197197
Usage: "run command in the current process instead of in a child process",
198198
},
199+
cli.StringFlag{
200+
Name: "decryption-order",
201+
Usage: "comma separated list of decryption key types",
202+
EnvVar: "SOPS_DECRYPTION_ORDER",
203+
},
199204
}, keyserviceFlags...),
200205
Action: func(c *cli.Context) error {
201206
if c.NArg() != 2 {
@@ -305,6 +310,11 @@ func main() {
305310
Name: "filename",
306311
Usage: fmt.Sprintf("filename for the temporarily file (default: %s)", exec.FallbackFilename),
307312
},
313+
cli.StringFlag{
314+
Name: "decryption-order",
315+
Usage: "comma separated list of decryption key types",
316+
EnvVar: "SOPS_DECRYPTION_ORDER",
317+
},
308318
}, keyserviceFlags...),
309319
Action: func(c *cli.Context) error {
310320
if c.NArg() != 2 {
@@ -383,6 +393,11 @@ func main() {
383393
Name: "verbose",
384394
Usage: "Enable verbose logging output",
385395
},
396+
cli.StringFlag{
397+
Name: "decryption-order",
398+
Usage: "comma separated list of decryption key types",
399+
EnvVar: "SOPS_DECRYPTION_ORDER",
400+
},
386401
}, keyserviceFlags...),
387402
Action: func(c *cli.Context) error {
388403
if c.Bool("verbose") || c.GlobalBool("verbose") {

0 commit comments

Comments
 (0)