Skip to content

Commit 7e1ffab

Browse files
committed
Allow to configure --enable-local-keyservice and --keyservice through env variables.
Signed-off-by: Felix Fontein <[email protected]>
1 parent a512952 commit 7e1ffab

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

cmd/sops/main.go

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,14 @@ func main() {
7878

7979
keyserviceFlags := []cli.Flag{
8080
cli.BoolTFlag{
81-
Name: "enable-local-keyservice",
82-
Usage: "use local key service",
81+
Name: "enable-local-keyservice",
82+
Usage: "use local key service",
83+
EnvVar: "SOPS_ENABLE_LOCAL_KEYSERVICE",
8384
},
8485
cli.StringSliceFlag{
85-
Name: "keyservice",
86-
Usage: "Specify the key services to use in addition to the local one. Can be specified more than once. Syntax: protocol://address. Example: tcp://myserver.com:5000",
86+
Name: "keyservice",
87+
Usage: "Specify the key services to use in addition to the local one. Can be specified more than once. Syntax: protocol://address. Example: tcp://myserver.com:5000",
88+
EnvVar: "SOPS_KEYSERVICE",
8789
},
8890
}
8991
app.Name = "sops"

0 commit comments

Comments
 (0)